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-lirc lirc support (default disabled)"
146 --with-words=endianness set endianness (big or little)"
148 --enable-gprof gprof profiling (default disabled)"
150 --enable-cprof cprof profiling (default disabled)"
152 --enable-pth GNU Pth support (default disabled)"
154 --enable-st State Threads (default disabled)"
156 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
158 # Initialize some variables set by options.
159 # The variables have the same names as the options, with
160 # dashes changed to underlines.
162 cache_file=./config.cache
171 program_transform_name=s,x,x,
179 bindir='${exec_prefix}/bin'
180 sbindir='${exec_prefix}/sbin'
181 libexecdir='${exec_prefix}/libexec'
182 datadir='${prefix}/share'
183 sysconfdir='${prefix}/etc'
184 sharedstatedir='${prefix}/com'
185 localstatedir='${prefix}/var'
186 libdir='${exec_prefix}/lib'
187 includedir='${prefix}/include'
188 oldincludedir='/usr/include'
189 infodir='${prefix}/info'
190 mandir='${prefix}/man'
192 # Initialize some other variables.
195 SHELL=${CONFIG_SHELL-/bin/sh}
196 # Maximum number of lines to put in a shell here document.
203 # If the previous option needs an argument, assign it.
204 if test -n "$ac_prev"; then
205 eval "$ac_prev=\$ac_option"
211 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
215 # Accept the important Cygnus configure options, so we can diagnose typos.
219 -bindir | --bindir | --bindi | --bind | --bin | --bi)
221 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
222 bindir="$ac_optarg" ;;
224 -build | --build | --buil | --bui | --bu)
226 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
227 build="$ac_optarg" ;;
229 -cache-file | --cache-file | --cache-fil | --cache-fi \
230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
231 ac_prev=cache_file ;;
232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
234 cache_file="$ac_optarg" ;;
236 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
238 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
240 datadir="$ac_optarg" ;;
242 -disable-* | --disable-*)
243 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
244 # Reject names that are not valid shell variable names.
245 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
246 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
248 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
249 eval "enable_${ac_feature}=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
253 # Reject names that are not valid shell variable names.
254 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
255 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
257 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
262 eval "enable_${ac_feature}='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix="$ac_optarg" ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he)
278 # Omit some internal or obsolete options to make the list less imposing.
279 # This message is too long to be a string in the A/UX 3.1 sh.
281 Usage: configure [options] [host]
282 Options: [defaults in brackets after descriptions]
284 --cache-file=FILE cache test results in FILE
285 --help print this message
286 --no-create do not create output files
287 --quiet, --silent do not print \`checking...' messages
288 --version print the version of autoconf that created configure
289 Directory and file names:
290 --prefix=PREFIX install architecture-independent files in PREFIX
292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
294 --bindir=DIR user executables in DIR [EPREFIX/bin]
295 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
296 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
297 --datadir=DIR read-only architecture-independent data in DIR
299 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
300 --sharedstatedir=DIR modifiable architecture-independent data in DIR
302 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
303 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
304 --includedir=DIR C header files in DIR [PREFIX/include]
305 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
306 --infodir=DIR info documentation in DIR [PREFIX/info]
307 --mandir=DIR man documentation in DIR [PREFIX/man]
308 --srcdir=DIR find the sources in DIR [configure dir or ..]
309 --program-prefix=PREFIX prepend PREFIX to installed program names
310 --program-suffix=SUFFIX append SUFFIX to installed program names
311 --program-transform-name=PROGRAM
312 run sed PROGRAM on installed program names
316 --build=BUILD configure for building on BUILD [BUILD=HOST]
317 --host=HOST configure for HOST [guessed]
318 --target=TARGET configure for TARGET [TARGET=HOST]
319 Features and packages:
320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
324 --x-includes=DIR X include files are in DIR
325 --x-libraries=DIR X library files are in DIR
327 if test -n "$ac_help"; then
328 echo "--enable and --with options recognized:$ac_help"
332 -host | --host | --hos | --ho)
334 -host=* | --host=* | --hos=* | --ho=*)
337 -includedir | --includedir | --includedi | --included | --include \
338 | --includ | --inclu | --incl | --inc)
339 ac_prev=includedir ;;
340 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
341 | --includ=* | --inclu=* | --incl=* | --inc=*)
342 includedir="$ac_optarg" ;;
344 -infodir | --infodir | --infodi | --infod | --info | --inf)
346 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
347 infodir="$ac_optarg" ;;
349 -libdir | --libdir | --libdi | --libd)
351 -libdir=* | --libdir=* | --libdi=* | --libd=*)
352 libdir="$ac_optarg" ;;
354 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
355 | --libexe | --libex | --libe)
356 ac_prev=libexecdir ;;
357 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
358 | --libexe=* | --libex=* | --libe=*)
359 libexecdir="$ac_optarg" ;;
361 -localstatedir | --localstatedir | --localstatedi | --localstated \
362 | --localstate | --localstat | --localsta | --localst \
363 | --locals | --local | --loca | --loc | --lo)
364 ac_prev=localstatedir ;;
365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
366 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
367 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
368 localstatedir="$ac_optarg" ;;
370 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
372 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
373 mandir="$ac_optarg" ;;
376 # Obsolete; use --without-fp.
379 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
383 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
384 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
387 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
388 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
389 | --oldin | --oldi | --old | --ol | --o)
390 ac_prev=oldincludedir ;;
391 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
392 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
393 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
394 oldincludedir="$ac_optarg" ;;
396 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
398 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
399 prefix="$ac_optarg" ;;
401 -program-prefix | --program-prefix | --program-prefi | --program-pref \
402 | --program-pre | --program-pr | --program-p)
403 ac_prev=program_prefix ;;
404 -program-prefix=* | --program-prefix=* | --program-prefi=* \
405 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
406 program_prefix="$ac_optarg" ;;
408 -program-suffix | --program-suffix | --program-suffi | --program-suff \
409 | --program-suf | --program-su | --program-s)
410 ac_prev=program_suffix ;;
411 -program-suffix=* | --program-suffix=* | --program-suffi=* \
412 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
413 program_suffix="$ac_optarg" ;;
415 -program-transform-name | --program-transform-name \
416 | --program-transform-nam | --program-transform-na \
417 | --program-transform-n | --program-transform- \
418 | --program-transform | --program-transfor \
419 | --program-transfo | --program-transf \
420 | --program-trans | --program-tran \
421 | --progr-tra | --program-tr | --program-t)
422 ac_prev=program_transform_name ;;
423 -program-transform-name=* | --program-transform-name=* \
424 | --program-transform-nam=* | --program-transform-na=* \
425 | --program-transform-n=* | --program-transform-=* \
426 | --program-transform=* | --program-transfor=* \
427 | --program-transfo=* | --program-transf=* \
428 | --program-trans=* | --program-tran=* \
429 | --progr-tra=* | --program-tr=* | --program-t=*)
430 program_transform_name="$ac_optarg" ;;
432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
433 | -silent | --silent | --silen | --sile | --sil)
436 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
438 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
440 sbindir="$ac_optarg" ;;
442 -sharedstatedir | --sharedstatedir | --sharedstatedi \
443 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
444 | --sharedst | --shareds | --shared | --share | --shar \
446 ac_prev=sharedstatedir ;;
447 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
448 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
449 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
451 sharedstatedir="$ac_optarg" ;;
453 -site | --site | --sit)
455 -site=* | --site=* | --sit=*)
458 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
460 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
461 srcdir="$ac_optarg" ;;
463 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
464 | --syscon | --sysco | --sysc | --sys | --sy)
465 ac_prev=sysconfdir ;;
466 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
467 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
468 sysconfdir="$ac_optarg" ;;
470 -target | --target | --targe | --targ | --tar | --ta | --t)
472 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
473 target="$ac_optarg" ;;
475 -v | -verbose | --verbose | --verbos | --verbo | --verb)
478 -version | --version | --versio | --versi | --vers)
479 echo "configure generated by autoconf version 2.13"
483 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
484 # Reject names that are not valid shell variable names.
485 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
486 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
488 ac_package=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}='$ac_optarg'" ;;
495 -without-* | --without-*)
496 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
497 # Reject names that are not valid shell variable names.
498 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
499 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
501 ac_package=`echo $ac_package| sed 's/-/_/g'`
502 eval "with_${ac_package}=no" ;;
505 # Obsolete; use --with-x.
508 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
509 | --x-incl | --x-inc | --x-in | --x-i)
510 ac_prev=x_includes ;;
511 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
512 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
513 x_includes="$ac_optarg" ;;
515 -x-libraries | --x-libraries | --x-librarie | --x-librari \
516 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
517 ac_prev=x_libraries ;;
518 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
519 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
520 x_libraries="$ac_optarg" ;;
522 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
526 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
527 echo "configure: warning: $ac_option: invalid host type" 1>&2
529 if test "x$nonopt" != xNONE; then
530 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
538 if test -n "$ac_prev"; then
539 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
544 # File descriptor usage:
547 # 2 errors and warnings
548 # 3 some systems may open it to /dev/tty
549 # 4 used on the Kubota Titan
550 # 6 checking for... messages and results
551 # 5 compiler messages saved in config.log
552 if test "$silent" = yes; then
560 This file contains any messages produced by compilers while
561 running configure, to aid debugging if configure makes a mistake.
564 # Strip out --no-create and --no-recursion so they do not pile up.
565 # Also quote any args containing shell metacharacters.
570 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
571 | --no-cr | --no-c) ;;
572 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
573 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
574 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
575 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
576 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
581 # Only set these to C if already set. These must not be set unconditionally
582 # because not all systems understand e.g. LANG=C (notably SCO).
583 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
584 # Non-C LC_CTYPE values break the ctype check.
585 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
586 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
587 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
588 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
591 rm -rf conftest* confdefs.h
592 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
595 # A filename unique to this package, relative to the directory that
596 # configure is in, which we can look for to find out if srcdir is correct.
597 ac_unique_file=include/main.h
599 # Find the source files, if location was not specified.
600 if test -z "$srcdir"; then
601 ac_srcdir_defaulted=yes
602 # Try the directory containing this script, then its parent.
604 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
605 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
607 if test ! -r $srcdir/$ac_unique_file; then
611 ac_srcdir_defaulted=no
613 if test ! -r $srcdir/$ac_unique_file; then
614 if test "$ac_srcdir_defaulted" = yes; then
615 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
617 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
620 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
622 # Prefer explicitly selected file to automatically selected ones.
623 if test -z "$CONFIG_SITE"; then
624 if test "x$prefix" != xNONE; then
625 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
627 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
630 for ac_site_file in $CONFIG_SITE; do
631 if test -r "$ac_site_file"; then
632 echo "loading site script $ac_site_file"
637 if test -r "$cache_file"; then
638 echo "loading cache $cache_file"
641 echo "creating cache $cache_file"
646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
647 ac_cpp='$CPP $CPPFLAGS'
648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
650 cross_compiling=$ac_cv_prog_cc_cross
654 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
655 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
656 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
663 ac_n= ac_c='\c' ac_t=
669 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
680 if test -z "$ac_aux_dir"; then
681 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
683 ac_config_guess=$ac_aux_dir/config.guess
684 ac_config_sub=$ac_aux_dir/config.sub
685 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
688 # Do some error checking and defaulting for the host and target type.
690 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
693 # 1. You are not allowed to specify --host, --target, and nonopt at the
695 # 2. Host defaults to nonopt.
696 # 3. If nonopt is not specified, then host defaults to the current host,
697 # as determined by config.guess.
698 # 4. Target and build default to nonopt.
699 # 5. If nonopt is not specified, then target and build default to host.
701 # The aliases save the names the user supplied, while $host etc.
702 # will get canonicalized.
703 case $host---$target---$nonopt in
704 NONE---*---* | *---NONE---* | *---*---NONE) ;;
705 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
709 # Make sure we can run config.sub.
710 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
711 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
714 echo $ac_n "checking host system type""... $ac_c" 1>&6
715 echo "configure:716: checking host system type" >&5
718 case "$host_alias" in
722 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
723 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
725 *) host_alias=$nonopt ;;
729 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
730 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$host" 1>&6
735 echo $ac_n "checking target system type""... $ac_c" 1>&6
736 echo "configure:737: checking target system type" >&5
739 case "$target_alias" in
742 NONE) target_alias=$host_alias ;;
743 *) target_alias=$nonopt ;;
747 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
748 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$target" 1>&6
753 echo $ac_n "checking build system type""... $ac_c" 1>&6
754 echo "configure:755: checking build system type" >&5
757 case "$build_alias" in
760 NONE) build_alias=$host_alias ;;
761 *) build_alias=$nonopt ;;
765 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
766 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
769 echo "$ac_t""$build" 1>&6
771 test "$host_alias" != "$target_alias" &&
772 test "$program_prefix$program_suffix$program_transform_name" = \
774 program_prefix=${target_alias}-
777 CONFIGURE_LINE="$0 $*"
783 save_CPPFLAGS="${CPPFLAGS}"
784 save_CFLAGS="${CFLAGS}"
785 save_LDFLAGS="${LDFLAGS}"
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftestmake <<\EOF
795 @echo 'ac_maketemp="${MAKE}"'
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_${ac_make}_set=yes
802 eval ac_cv_prog_make_${ac_make}_set=no
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
810 echo "$ac_t""no" 1>&6
811 SET_MAKE="MAKE=${MAKE-make}"
814 # Extract the first word of "gcc", so it can be a program name with args.
815 set dummy gcc; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
843 if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845 set dummy cc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy $ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy "$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 if test -z "$CC"; then
895 # Extract the first word of "cl", so it can be a program name with args.
896 set dummy cl; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$CC"; then
903 ac_cv_prog_CC="$CC" # Let the user override the test.
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
934 ac_cpp='$CPP $CPPFLAGS'
935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
937 cross_compiling=$ac_cv_prog_cc_cross
939 cat > conftest.$ac_ext << EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
947 ac_cv_prog_cc_works=yes
948 # If we can't run a trivial program, we are probably using a cross compiler.
949 if (./conftest; exit) 2>/dev/null; then
950 ac_cv_prog_cc_cross=no
952 ac_cv_prog_cc_cross=yes
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 ac_cv_prog_cc_works=no
961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
965 cross_compiling=$ac_cv_prog_cc_cross
967 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
968 if test $ac_cv_prog_cc_works = no; then
969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
971 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
972 echo "configure:973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
973 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
974 cross_compiling=$ac_cv_prog_cc_cross
976 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
977 echo "configure:978: checking whether we are using GNU C" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 cat > conftest.c <<EOF
986 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
993 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
995 if test $ac_cv_prog_gcc = yes; then
1001 ac_test_CFLAGS="${CFLAGS+set}"
1002 ac_save_CFLAGS="$CFLAGS"
1004 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether ${CC-cc} accepts -g" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 echo 'void f(){}' > conftest.c
1010 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1019 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1020 if test "$ac_test_CFLAGS" = set; then
1021 CFLAGS="$ac_save_CFLAGS"
1022 elif test $ac_cv_prog_cc_g = yes; then
1023 if test "$GCC" = yes; then
1029 if test "$GCC" = yes; then
1036 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1037 echo "configure:1038: checking how to run the C preprocessor" >&5
1038 # On Suns, sometimes $CPP names a directory.
1039 if test -n "$CPP" && test -d "$CPP"; then
1042 if test -z "$CPP"; then
1043 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 # This must be in double quotes, not single quotes, because CPP may get
1047 # substituted into the Makefile and "${CC-cc}" will confuse make.
1049 # On the NeXT, cc -E runs the code through the compiler's parser,
1050 # not just through cpp.
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060 if test -z "$ac_err"; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1067 CPP="${CC-cc} -E -traditional-cpp"
1068 cat > conftest.$ac_ext <<EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075 { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077 if test -z "$ac_err"; then
1081 echo "configure: failed program was:" >&5
1082 cat conftest.$ac_ext >&5
1084 CPP="${CC-cc} -nologo -E"
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092 { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094 if test -z "$ac_err"; then
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1108 ac_cv_prog_CPP="$CPP"
1110 CPP="$ac_cv_prog_CPP"
1112 ac_cv_prog_CPP="$CPP"
1114 echo "$ac_t""$CPP" 1>&6
1117 if test $host != $build; then
1118 ac_tool_prefix=${host_alias}-
1123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1126 echo "configure:1127: checking for $ac_word" >&5
1127 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 if test -n "$RANLIB"; then
1131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1135 for ac_dir in $ac_dummy; do
1136 test -z "$ac_dir" && ac_dir=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1145 RANLIB="$ac_cv_prog_RANLIB"
1146 if test -n "$RANLIB"; then
1147 echo "$ac_t""$RANLIB" 1>&6
1149 echo "$ac_t""no" 1>&6
1153 if test -z "$ac_cv_prog_RANLIB"; then
1154 if test -n "$ac_tool_prefix"; then
1155 # Extract the first word of "ranlib", so it can be a program name with args.
1156 set dummy ranlib; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$RANLIB"; then
1163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_RANLIB="ranlib"
1175 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1178 RANLIB="$ac_cv_prog_RANLIB"
1179 if test -n "$RANLIB"; then
1180 echo "$ac_t""$RANLIB" 1>&6
1182 echo "$ac_t""no" 1>&6
1190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1191 set dummy ${ac_tool_prefix}strip; ac_word=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$STRIP"; then
1198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1212 STRIP="$ac_cv_prog_STRIP"
1213 if test -n "$STRIP"; then
1214 echo "$ac_t""$STRIP" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 if test -z "$ac_cv_prog_STRIP"; then
1221 if test -n "$ac_tool_prefix"; then
1222 # Extract the first word of "strip", so it can be a program name with args.
1223 set dummy strip; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$STRIP"; then
1230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_STRIP="strip"
1242 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1245 STRIP="$ac_cv_prog_STRIP"
1246 if test -n "$STRIP"; then
1247 echo "$ac_t""$STRIP" 1>&6
1249 echo "$ac_t""no" 1>&6
1258 # Extract the first word of "gmake", so it can be a program name with args.
1259 set dummy gmake; ac_word=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1267 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1270 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1283 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1287 GMAKE="$ac_cv_path_GMAKE"
1288 if test -n "$GMAKE"; then
1289 echo "$ac_t""$GMAKE" 1>&6
1291 echo "$ac_t""no" 1>&6
1294 if test "x$GMAKE" = "xno"; then
1295 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether GNU make is installed" >&5
1297 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if make --version | grep -q -i gnu; then
1303 echo "This software needs you to install GNU make to compile properly."
1304 echo "You can get it from http://www.gnu.org/."
1309 echo "$ac_t""$ac_cv_gmake" 1>&6
1315 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1317 cat >> confdefs.h <<EOF
1318 #define VLC_PACKAGE "$PACKAGE"
1321 cat >> confdefs.h <<EOF
1322 #define VLC_VERSION "$VERSION"
1325 # Extract the first word of "ranlib", so it can be a program name with args.
1326 set dummy ranlib; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if test -n "$RANLIB"; then
1333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB="ranlib"
1345 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1348 RANLIB="$ac_cv_prog_RANLIB"
1349 if test -n "$RANLIB"; then
1350 echo "$ac_t""$RANLIB" 1>&6
1352 echo "$ac_t""no" 1>&6
1356 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1357 echo "configure:1358: checking for strerror in -lcposix" >&5
1358 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 ac_save_LIBS="$LIBS"
1363 LIBS="-lcposix $LIBS"
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* Override any gcc2 internal prototype to avoid an error. */
1368 /* We use char because int might match the return type of a gcc2
1369 builtin and then its argument prototype would still apply. */
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 eval "ac_cv_lib_$ac_lib_var=yes"
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1383 eval "ac_cv_lib_$ac_lib_var=no"
1386 LIBS="$ac_save_LIBS"
1389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1391 LIBS="$LIBS -lcposix"
1393 echo "$ac_t""no" 1>&6
1398 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1399 echo "configure:1400: checking for ANSI C header files" >&5
1400 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1412 { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1414 if test -z "$ac_err"; then
1416 ac_cv_header_stdc=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 ac_cv_header_stdc=no
1426 if test $ac_cv_header_stdc = yes; then
1427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1434 egrep "memchr" >/dev/null 2>&1; then
1438 ac_cv_header_stdc=no
1444 if test $ac_cv_header_stdc = yes; then
1445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1452 egrep "free" >/dev/null 2>&1; then
1456 ac_cv_header_stdc=no
1462 if test $ac_cv_header_stdc = yes; then
1463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1464 if test "$cross_compiling" = yes; then
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1471 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1472 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1474 int main () { int i; for (i = 0; i < 256; i++)
1475 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 ac_cv_header_stdc=no
1494 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1495 if test $ac_cv_header_stdc = yes; then
1496 cat >> confdefs.h <<\EOF
1497 #define STDC_HEADERS 1
1502 echo $ac_n "checking for working const""... $ac_c" 1>&6
1503 echo "configure:1504: checking for working const" >&5
1504 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1513 /* Ultrix mips cc rejects this. */
1514 typedef int charset[2]; const charset x;
1515 /* SunOS 4.1.1 cc rejects this. */
1516 char const *const *ccp;
1518 /* NEC SVR4.0.2 mips cc rejects this. */
1519 struct point {int x, y;};
1520 static struct point const zero = {0,0};
1521 /* AIX XL C 1.02.0.0 rejects this.
1522 It does not let you subtract one const X* pointer from another in an arm
1523 of an if-expression whose if-part is not a constant expression */
1524 const char *g = "string";
1525 ccp = &g + (g ? g-g : 0);
1526 /* HPUX 7.0 cc rejects these. */
1529 ccp = (char const *const *) p;
1530 { /* SCO 3.2v4 cc rejects this. */
1532 char const *s = 0 ? (char *) 0 : (char const *) 0;
1536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1538 const int *foo = &x[0];
1541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1542 typedef const int *iptr;
1546 { /* AIX XL C 1.02.0.0 rejects this saying
1547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1548 struct s { int j; const int *ap[3]; };
1549 struct s *b; b->j = 5;
1551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1557 if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1569 echo "$ac_t""$ac_cv_c_const" 1>&6
1570 if test $ac_cv_c_const = no; then
1571 cat >> confdefs.h <<\EOF
1577 echo $ac_n "checking for inline""... $ac_c" 1>&6
1578 echo "configure:1579: checking for inline" >&5
1579 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1583 for ac_kw in inline __inline__ __inline; do
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1592 if { (eval echo configure:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1594 ac_cv_c_inline=$ac_kw; break
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1604 echo "$ac_t""$ac_cv_c_inline" 1>&6
1605 case "$ac_cv_c_inline" in
1607 no) cat >> confdefs.h <<\EOF
1611 *) cat >> confdefs.h <<EOF
1612 #define inline $ac_cv_c_inline
1617 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1618 echo "configure:1619: checking for off_t" >&5
1619 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 #include <sys/types.h>
1631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1632 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1634 ac_cv_type_off_t=yes
1642 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1643 if test $ac_cv_type_off_t = no; then
1644 cat >> confdefs.h <<\EOF
1650 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1651 echo "configure:1652: checking for size_t" >&5
1652 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 #include <sys/types.h>
1664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1665 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1667 ac_cv_type_size_t=yes
1670 ac_cv_type_size_t=no
1675 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1676 if test $ac_cv_type_size_t = no; then
1677 cat >> confdefs.h <<\EOF
1678 #define size_t unsigned
1683 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1684 # for constant arguments. Useless!
1685 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1686 echo "configure:1687: checking for working alloca.h" >&5
1687 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1695 char *p = alloca(2 * sizeof(int));
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1700 ac_cv_header_alloca_h=yes
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 ac_cv_header_alloca_h=no
1710 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1711 if test $ac_cv_header_alloca_h = yes; then
1712 cat >> confdefs.h <<\EOF
1713 #define HAVE_ALLOCA_H 1
1718 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1719 echo "configure:1720: checking for alloca" >&5
1720 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1728 # define alloca __builtin_alloca
1731 # include <malloc.h>
1732 # define alloca _alloca
1735 # include <alloca.h>
1740 # ifndef alloca /* predefined by HP cc +Olibcalls */
1749 char *p = (char *) alloca(1);
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 ac_cv_func_alloca_works=yes
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 ac_cv_func_alloca_works=no
1764 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1765 if test $ac_cv_func_alloca_works = yes; then
1766 cat >> confdefs.h <<\EOF
1767 #define HAVE_ALLOCA 1
1772 if test $ac_cv_func_alloca_works = no; then
1773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1774 # that cause trouble. Some versions do not even contain alloca or
1775 # contain a buggy version. If you still want to use their alloca,
1776 # use ar to extract alloca.o from them instead of compiling alloca.c.
1777 ALLOCA=alloca.${ac_objext}
1778 cat >> confdefs.h <<\EOF
1783 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether alloca needs Cray hooks" >&5
1785 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #if defined(CRAY) && ! defined(CRAY2)
1798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1799 egrep "webecray" >/dev/null 2>&1; then
1810 echo "$ac_t""$ac_cv_os_cray" 1>&6
1811 if test $ac_cv_os_cray = yes; then
1812 for ac_func in _getb67 GETB67 getb67; do
1813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_func" >&5
1815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $ac_func(); below. */
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1842 if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1844 eval "ac_cv_func_$ac_func=yes"
1846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1849 eval "ac_cv_func_$ac_func=no"
1854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1855 echo "$ac_t""yes" 1>&6
1856 cat >> confdefs.h <<EOF
1857 #define CRAY_STACKSEG_END $ac_func
1862 echo "$ac_t""no" 1>&6
1868 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1869 echo "configure:1870: checking stack direction for C alloca" >&5
1870 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test "$cross_compiling" = yes; then
1874 ac_cv_c_stack_direction=0
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 find_stack_direction ()
1881 static char *addr = 0;
1886 return find_stack_direction ();
1889 return (&dummy > addr) ? 1 : -1;
1893 exit (find_stack_direction() < 0);
1896 if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1898 ac_cv_c_stack_direction=1
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 ac_cv_c_stack_direction=-1
1910 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1911 cat >> confdefs.h <<EOF
1912 #define STACK_DIRECTION $ac_cv_c_stack_direction
1917 for ac_hdr in unistd.h
1919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_func in getpagesize
1959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_func" >&5
1961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $ac_func(); below. */
1970 /* Override any gcc2 internal prototype to avoid an error. */
1971 /* We use char because int might match the return type of a gcc2
1972 builtin and then its argument prototype would still apply. */
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1990 eval "ac_cv_func_$ac_func=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 eval "ac_cv_func_$ac_func=no"
2000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2003 cat >> confdefs.h <<EOF
2004 #define $ac_tr_func 1
2008 echo "$ac_t""no" 1>&6
2012 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2013 echo "configure:2014: checking for working mmap" >&5
2014 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2017 if test "$cross_compiling" = yes; then
2018 ac_cv_func_mmap_fixed_mapped=no
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2024 /* Thanks to Mike Haertel and Jim Avera for this test.
2025 Here is a matrix of mmap possibilities:
2026 mmap private not fixed
2027 mmap private fixed at somewhere currently unmapped
2028 mmap private fixed at somewhere already mapped
2029 mmap shared not fixed
2030 mmap shared fixed at somewhere currently unmapped
2031 mmap shared fixed at somewhere already mapped
2032 For private mappings, we should verify that changes cannot be read()
2033 back from the file, nor mmap's back from the file at a different
2034 address. (There have been systems where private was not correctly
2035 implemented like the infamous i386 svr4.0, and systems where the
2036 VM page cache was not coherent with the filesystem buffer cache
2037 like early versions of FreeBSD and possibly contemporary NetBSD.)
2038 For shared mappings, we should conversely verify that changes get
2039 propogated back to all the places they're supposed to be.
2041 Grep wants private fixed already mapped.
2042 The main things grep needs to know about mmap are:
2043 * does it exist and is it safe to write into the mmap'd area
2044 * how to use it (BSD variants) */
2045 #include <sys/types.h>
2047 #include <sys/mman.h>
2049 /* This mess was copied from the GNU getpagesize.h. */
2050 #ifndef HAVE_GETPAGESIZE
2051 # ifdef HAVE_UNISTD_H
2052 # include <unistd.h>
2055 /* Assume that all systems that can run configure have sys/param.h. */
2056 # ifndef HAVE_SYS_PARAM_H
2057 # define HAVE_SYS_PARAM_H 1
2060 # ifdef _SC_PAGESIZE
2061 # define getpagesize() sysconf(_SC_PAGESIZE)
2062 # else /* no _SC_PAGESIZE */
2063 # ifdef HAVE_SYS_PARAM_H
2064 # include <sys/param.h>
2065 # ifdef EXEC_PAGESIZE
2066 # define getpagesize() EXEC_PAGESIZE
2067 # else /* no EXEC_PAGESIZE */
2069 # define getpagesize() NBPG * CLSIZE
2072 # endif /* no CLSIZE */
2073 # else /* no NBPG */
2075 # define getpagesize() NBPC
2076 # else /* no NBPC */
2078 # define getpagesize() PAGESIZE
2079 # endif /* PAGESIZE */
2080 # endif /* no NBPC */
2081 # endif /* no NBPG */
2082 # endif /* no EXEC_PAGESIZE */
2083 # else /* no HAVE_SYS_PARAM_H */
2084 # define getpagesize() 8192 /* punt totally */
2085 # endif /* no HAVE_SYS_PARAM_H */
2086 # endif /* no _SC_PAGESIZE */
2088 #endif /* no HAVE_GETPAGESIZE */
2091 extern "C" { void *malloc(unsigned); }
2099 char *data, *data2, *data3;
2103 pagesize = getpagesize();
2106 * First, make a file with some known garbage in it.
2108 data = malloc(pagesize);
2111 for (i = 0; i < pagesize; ++i)
2112 *(data + i) = rand();
2114 fd = creat("conftestmmap", 0600);
2117 if (write(fd, data, pagesize) != pagesize)
2122 * Next, try to mmap the file at a fixed address which
2123 * already has something else allocated at it. If we can,
2124 * also make sure that we see the same garbage.
2126 fd = open("conftestmmap", O_RDWR);
2129 data2 = malloc(2 * pagesize);
2132 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2133 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2134 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2136 for (i = 0; i < pagesize; ++i)
2137 if (*(data + i) != *(data2 + i))
2141 * Finally, make sure that changes to the mapped area
2142 * do not percolate back to the file as seen by read().
2143 * (This is a bug on some variants of i386 svr4.0.)
2145 for (i = 0; i < pagesize; ++i)
2146 *(data2 + i) = *(data2 + i) + 1;
2147 data3 = malloc(pagesize);
2150 if (read(fd, data3, pagesize) != pagesize)
2152 for (i = 0; i < pagesize; ++i)
2153 if (*(data + i) != *(data3 + i))
2156 unlink("conftestmmap");
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2163 ac_cv_func_mmap_fixed_mapped=yes
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 ac_cv_func_mmap_fixed_mapped=no
2175 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2176 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2177 cat >> confdefs.h <<\EOF
2184 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether we are using the GNU C Library 2.1 or newer" >&5
2186 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2193 #include <features.h>
2194 #ifdef __GNU_LIBRARY__
2195 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2202 egrep "Lucky GNU user" >/dev/null 2>&1; then
2204 ac_cv_gnu_library_2_1=yes
2207 ac_cv_gnu_library_2_1=no
2215 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2217 GLIBC21="$ac_cv_gnu_library_2_1"
2221 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2222 stdlib.h string.h unistd.h sys/param.h
2224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_hdr" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2236 { (eval echo configure:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2238 if test -z "$ac_err"; then
2240 eval "ac_cv_header_$ac_safe=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 eval "ac_cv_header_$ac_safe=no"
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2253 cat >> confdefs.h <<EOF
2254 #define $ac_tr_hdr 1
2258 echo "$ac_t""no" 1>&6
2262 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2263 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2264 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_func" >&5
2268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* System header to define __stub macros and hopefully few prototypes,
2275 which can conflict with char $ac_func(); below. */
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2297 eval "ac_cv_func_$ac_func=yes"
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 eval "ac_cv_func_$ac_func=no"
2307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_func 1
2315 echo "$ac_t""no" 1>&6
2322 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2323 if test "${with_libiconv_prefix+set}" = set; then
2324 withval="$with_libiconv_prefix"
2326 for dir in `echo "$withval" | tr : ' '`; do
2327 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2328 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2334 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2335 echo "configure:2336: checking for iconv" >&5
2336 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2340 am_cv_func_iconv="no, consider installing GNU libiconv"
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2348 iconv_t cd = iconv_open("","");
2349 iconv(cd,NULL,NULL,NULL,NULL);
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 am_cv_func_iconv=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2361 if test "$am_cv_func_iconv" != yes; then
2362 am_save_LIBS="$LIBS"
2363 LIBS="$LIBS -liconv"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2370 iconv_t cd = iconv_open("","");
2371 iconv(cd,NULL,NULL,NULL,NULL);
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 am_cv_func_iconv=yes
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2384 LIBS="$am_save_LIBS"
2389 echo "$ac_t""$am_cv_func_iconv" 1>&6
2390 if test "$am_cv_func_iconv" = yes; then
2391 cat >> confdefs.h <<\EOF
2392 #define HAVE_ICONV 1
2395 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2396 echo "configure:2397: checking for iconv declaration" >&5
2397 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2411 #if defined(__STDC__) || defined(__cplusplus)
2412 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 am_cv_proto_iconv_arg1=""
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 am_cv_proto_iconv_arg1="const"
2431 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);"
2434 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2435 echo "$ac_t""${ac_t:-
2436 }$am_cv_proto_iconv" 1>&6
2437 cat >> confdefs.h <<EOF
2438 #define ICONV_CONST $am_cv_proto_iconv_arg1
2443 if test "$am_cv_lib_iconv" = yes; then
2449 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2450 echo "configure:2451: checking for nl_langinfo and CODESET" >&5
2451 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 #include <langinfo.h>
2459 char* cs = nl_langinfo(CODESET);
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 am_cv_langinfo_codeset=yes
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 am_cv_langinfo_codeset=no
2475 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2476 if test $am_cv_langinfo_codeset = yes; then
2477 cat >> confdefs.h <<\EOF
2478 #define HAVE_LANGINFO_CODESET 1
2483 if test $ac_cv_header_locale_h = yes; then
2484 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2485 echo "configure:2486: checking for LC_MESSAGES" >&5
2486 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 am_cv_val_LC_MESSAGES=yes
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 am_cv_val_LC_MESSAGES=no
2509 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2510 if test $am_cv_val_LC_MESSAGES = yes; then
2511 cat >> confdefs.h <<\EOF
2512 #define HAVE_LC_MESSAGES 1
2517 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2518 echo "configure:2519: checking whether NLS is requested" >&5
2519 # Check whether --enable-nls or --disable-nls was given.
2520 if test "${enable_nls+set}" = set; then
2521 enableval="$enable_nls"
2527 echo "$ac_t""$USE_NLS" 1>&6
2530 BUILD_INCLUDED_LIBINTL=no
2531 USE_INCLUDED_LIBINTL=no
2534 if test "$USE_NLS" = "yes"; then
2535 cat >> confdefs.h <<\EOF
2536 #define ENABLE_NLS 1
2539 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether included gettext is requested" >&5
2541 # Check whether --with-included-gettext or --without-included-gettext was given.
2542 if test "${with_included_gettext+set}" = set; then
2543 withval="$with_included_gettext"
2544 nls_cv_force_use_gnu_gettext=$withval
2546 nls_cv_force_use_gnu_gettext=no
2549 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2551 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2552 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2558 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2559 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2560 echo "configure:2561: checking for libintl.h" >&5
2561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 #include <libintl.h>
2569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2570 { (eval echo configure:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2572 if test -z "$ac_err"; then
2574 eval "ac_cv_header_$ac_safe=yes"
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2580 eval "ac_cv_header_$ac_safe=no"
2584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2585 echo "$ac_t""yes" 1>&6
2586 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2587 echo "configure:2588: checking for GNU gettext in libc" >&5
2588 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 #include <libintl.h>
2595 extern int _nl_msg_cat_cntr;
2597 bindtextdomain ("", "");
2598 return (int) gettext ("") + _nl_msg_cat_cntr
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2603 gt_cv_func_gnugettext1_libc=yes
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2608 gt_cv_func_gnugettext1_libc=no
2613 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2615 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2616 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2617 echo "configure:2618: checking for GNU gettext in libintl" >&5
2618 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 gt_save_LIBS="$LIBS"
2622 LIBS="$LIBS -lintl $LIBICONV"
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <libintl.h>
2627 extern int _nl_msg_cat_cntr;
2629 bindtextdomain ("", "");
2630 return (int) gettext ("") + _nl_msg_cat_cntr
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2635 gt_cv_func_gnugettext1_libintl=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 gt_cv_func_gnugettext1_libintl=no
2643 LIBS="$gt_save_LIBS"
2646 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2649 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2650 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2651 && test "$PACKAGE" != gettext; }; then
2652 cat >> confdefs.h <<\EOF
2653 #define HAVE_GETTEXT 1
2657 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2658 INTLLIBS="-lintl $LIBICONV"
2661 gt_save_LIBS="$LIBS"
2662 LIBS="$LIBS $INTLLIBS"
2663 for ac_func in dcgettext
2665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_func" >&5
2667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* System header to define __stub macros and hopefully few prototypes,
2674 which can conflict with char $ac_func(); below. */
2676 /* Override any gcc2 internal prototype to avoid an error. */
2677 /* We use char because int might match the return type of a gcc2
2678 builtin and then its argument prototype would still apply. */
2683 /* The GNU C library defines this for functions which it implements
2684 to always fail with ENOSYS. Some functions are actually named
2685 something starting with __ and the normal name is an alias. */
2686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2696 eval "ac_cv_func_$ac_func=yes"
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2701 eval "ac_cv_func_$ac_func=no"
2706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2707 echo "$ac_t""yes" 1>&6
2708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2709 cat >> confdefs.h <<EOF
2710 #define $ac_tr_func 1
2714 echo "$ac_t""no" 1>&6
2718 LIBS="$gt_save_LIBS"
2720 # Extract the first word of "msgfmt", so it can be a program name with args.
2721 set dummy msgfmt; ac_word=$2
2722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_word" >&5
2724 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2729 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2733 for ac_dir in $PATH; do
2734 test -z "$ac_dir" && ac_dir=.
2735 if test -f $ac_dir/$ac_word; then
2736 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2737 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2743 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2747 MSGFMT="$ac_cv_path_MSGFMT"
2748 if test "$MSGFMT" != ":"; then
2749 echo "$ac_t""$MSGFMT" 1>&6
2751 echo "$ac_t""no" 1>&6
2754 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2755 set dummy gmsgfmt; ac_word=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2766 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2771 for ac_dir in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2783 GMSGFMT="$ac_cv_path_GMSGFMT"
2784 if test -n "$GMSGFMT"; then
2785 echo "$ac_t""$GMSGFMT" 1>&6
2787 echo "$ac_t""no" 1>&6
2791 # Extract the first word of "xgettext", so it can be a program name with args.
2792 set dummy xgettext; ac_word=$2
2793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_word" >&5
2795 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2800 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2804 for ac_dir in $PATH; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2808 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2814 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2818 XGETTEXT="$ac_cv_path_XGETTEXT"
2819 if test "$XGETTEXT" != ":"; then
2820 echo "$ac_t""$XGETTEXT" 1>&6
2822 echo "$ac_t""no" 1>&6
2830 echo "$ac_t""no" 1>&6
2834 if test "$CATOBJEXT" = "NONE"; then
2835 nls_cv_use_gnu_gettext=yes
2839 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2840 INTLOBJS="\$(GETTOBJS)"
2841 # Extract the first word of "msgfmt", so it can be a program name with args.
2842 set dummy msgfmt; ac_word=$2
2843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2844 echo "configure:2845: checking for $ac_word" >&5
2845 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2850 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2854 for ac_dir in $PATH; do
2855 test -z "$ac_dir" && ac_dir=.
2856 if test -f $ac_dir/$ac_word; then
2857 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2858 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2864 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2868 MSGFMT="$ac_cv_path_MSGFMT"
2869 if test "$MSGFMT" != ":"; then
2870 echo "$ac_t""$MSGFMT" 1>&6
2872 echo "$ac_t""no" 1>&6
2875 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2876 set dummy gmsgfmt; ac_word=$2
2877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_word" >&5
2879 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2884 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2887 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2892 for ac_dir in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir=.
2894 if test -f $ac_dir/$ac_word; then
2895 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2900 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2904 GMSGFMT="$ac_cv_path_GMSGFMT"
2905 if test -n "$GMSGFMT"; then
2906 echo "$ac_t""$GMSGFMT" 1>&6
2908 echo "$ac_t""no" 1>&6
2911 # Extract the first word of "xgettext", so it can be a program name with args.
2912 set dummy xgettext; ac_word=$2
2913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_word" >&5
2915 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2920 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2924 for ac_dir in $PATH; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/$ac_word; then
2927 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2938 XGETTEXT="$ac_cv_path_XGETTEXT"
2939 if test "$XGETTEXT" != ":"; then
2940 echo "$ac_t""$XGETTEXT" 1>&6
2942 echo "$ac_t""no" 1>&6
2946 BUILD_INCLUDED_LIBINTL=yes
2947 USE_INCLUDED_LIBINTL=yes
2949 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2950 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2953 if test "$GMSGFMT" != ":"; then
2954 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2957 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2962 if test "$XGETTEXT" != ":"; then
2963 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2966 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2976 if test "$PACKAGE" = gettext; then
2977 BUILD_INCLUDED_LIBINTL=yes
2980 for ac_prog in bison
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_word" >&5
2986 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 if test -n "$INTLBISON"; then
2990 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2994 for ac_dir in $ac_dummy; do
2995 test -z "$ac_dir" && ac_dir=.
2996 if test -f $ac_dir/$ac_word; then
2997 ac_cv_prog_INTLBISON="$ac_prog"
3004 INTLBISON="$ac_cv_prog_INTLBISON"
3005 if test -n "$INTLBISON"; then
3006 echo "$ac_t""$INTLBISON" 1>&6
3008 echo "$ac_t""no" 1>&6
3011 test -n "$INTLBISON" && break
3014 if test -z "$INTLBISON"; then
3017 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3018 echo "configure:3019: checking version of bison" >&5
3019 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3020 case $ac_prog_version in
3021 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3022 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3023 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3024 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3026 echo "$ac_t""$ac_prog_version" 1>&6
3028 if test $ac_verc_fail = yes; then
3032 for lang in $ALL_LINGUAS; do
3033 GMOFILES="$GMOFILES $lang.gmo"
3034 POFILES="$POFILES $lang.po"
3048 nls_cv_header_libgt=
3060 if test "x$CATOBJEXT" != "x"; then
3061 if test "x$ALL_LINGUAS" = "x"; then
3064 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3065 echo "configure:3066: checking for catalogs to be installed" >&5
3067 for presentlang in $ALL_LINGUAS; do
3069 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3070 # Use the presentlang catalog if desiredlang is
3071 # a. equal to presentlang, or
3072 # b. a variant of presentlang (because in this case,
3073 # presentlang can be used as a fallback for messages
3074 # which are not translated in the desiredlang catalog).
3075 case "$desiredlang" in
3076 "$presentlang"*) useit=yes;;
3079 if test $useit = yes; then
3080 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3083 LINGUAS=$NEW_LINGUAS
3084 echo "$ac_t""$LINGUAS" 1>&6
3087 if test -n "$LINGUAS"; then
3088 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3093 if test -n "$ac_aux_dir"; then
3094 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3096 if test -z "$MKINSTALLDIRS"; then
3097 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3101 INTL_LIBTOOL_SUFFIX_PREFIX=
3105 # Find a good install program. We prefer a C program (faster),
3106 # so one script is as good as another. But avoid the broken or
3107 # incompatible versions:
3108 # SysV /etc/install, /usr/sbin/install
3109 # SunOS /usr/etc/install
3110 # IRIX /sbin/install
3112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3115 # ./install, which can be erroneously created by make from ./install.sh.
3116 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3117 echo "configure:3118: checking for a BSD compatible install" >&5
3118 if test -z "$INSTALL"; then
3119 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3123 for ac_dir in $PATH; do
3124 # Account for people who put trailing slashes in PATH elements.
3126 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3128 # OSF1 and SCO ODT 3.0 have their own names for install.
3129 # Don't use installbsd from OSF since it installs stuff as root
3131 for ac_prog in ginstall scoinst install; do
3132 if test -f $ac_dir/$ac_prog; then
3133 if test $ac_prog = install &&
3134 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3135 # AIX install. It has an incompatible calling convention.
3138 ac_cv_path_install="$ac_dir/$ac_prog -c"
3149 if test "${ac_cv_path_install+set}" = set; then
3150 INSTALL="$ac_cv_path_install"
3152 # As a last resort, use the slow shell script. We don't cache a
3153 # path for INSTALL within a source directory, because that will
3154 # break other packages using the cache if that directory is
3155 # removed, or if the path is relative.
3156 INSTALL="$ac_install_sh"
3159 echo "$ac_t""$INSTALL" 1>&6
3161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3162 # It thinks the first close brace ends the variable substitution.
3163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3170 vlc_LDFLAGS="${LDFLAGS}"
3172 case x"${target_os}" in
3181 save_CFLAGS="${save_CFLAGS} -pthread"
3182 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3183 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3187 save_CFLAGS="${save_CFLAGS} -pthread"
3191 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3195 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}windres; ac_word=$2
3197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_word" >&5
3199 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 if test -n "$WINDRES"; then
3203 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3207 for ac_dir in $ac_dummy; do
3208 test -z "$ac_dir" && ac_dir=.
3209 if test -f $ac_dir/$ac_word; then
3210 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3217 WINDRES="$ac_cv_prog_WINDRES"
3218 if test -n "$WINDRES"; then
3219 echo "$ac_t""$WINDRES" 1>&6
3221 echo "$ac_t""no" 1>&6
3225 if test -z "$ac_cv_prog_WINDRES"; then
3226 if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "windres", so it can be a program name with args.
3228 set dummy windres; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test -n "$WINDRES"; then
3235 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 if test -f $ac_dir/$ac_word; then
3242 ac_cv_prog_WINDRES="windres"
3247 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3250 WINDRES="$ac_cv_prog_WINDRES"
3251 if test -n "$WINDRES"; then
3252 echo "$ac_t""$WINDRES" 1>&6
3254 echo "$ac_t""no" 1>&6
3262 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3263 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3264 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3265 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3266 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3267 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3268 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3272 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3273 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3277 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3278 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3279 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3280 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3281 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3288 if test x"${SYS}" = xmingw32
3290 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3292 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3295 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3297 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_func" >&5
3301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* System header to define __stub macros and hopefully few prototypes,
3308 which can conflict with char $ac_func(); below. */
3310 /* Override any gcc2 internal prototype to avoid an error. */
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3317 /* The GNU C library defines this for functions which it implements
3318 to always fail with ENOSYS. Some functions are actually named
3319 something starting with __ and the normal name is an alias. */
3320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3330 eval "ac_cv_func_$ac_func=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 eval "ac_cv_func_$ac_func=no"
3340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3341 echo "$ac_t""yes" 1>&6
3342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3343 cat >> confdefs.h <<EOF
3344 #define $ac_tr_func 1
3348 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking for connect""... $ac_c" 1>&6
3354 echo "configure:3355: checking for connect" >&5
3355 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* System header to define __stub macros and hopefully few prototypes,
3362 which can conflict with char connect(); below. */
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3371 /* The GNU C library defines this for functions which it implements
3372 to always fail with ENOSYS. Some functions are actually named
3373 something starting with __ and the normal name is an alias. */
3374 #if defined (__stub_connect) || defined (__stub___connect)
3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3384 eval "ac_cv_func_connect=yes"
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3389 eval "ac_cv_func_connect=no"
3394 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3398 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3401 echo "configure:3402: checking for connect in -lsocket" >&5
3402 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS="$LIBS"
3407 LIBS="-lsocket $LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_lib_$ac_lib_var=no"
3430 LIBS="$ac_save_LIBS"
3433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3436 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3439 echo "$ac_t""no" 1>&6
3444 echo $ac_n "checking for send""... $ac_c" 1>&6
3445 echo "configure:3446: checking for send" >&5
3446 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* System header to define __stub macros and hopefully few prototypes,
3453 which can conflict with char send(); below. */
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3462 /* The GNU C library defines this for functions which it implements
3463 to always fail with ENOSYS. Some functions are actually named
3464 something starting with __ and the normal name is an alias. */
3465 #if defined (__stub_send) || defined (__stub___send)
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3475 eval "ac_cv_func_send=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 eval "ac_cv_func_send=no"
3485 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3489 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3492 echo "configure:3493: checking for send in -lsocket" >&5
3493 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS="$LIBS"
3498 LIBS="-lsocket $LIBS"
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_lib_$ac_lib_var=no"
3521 LIBS="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3529 echo "$ac_t""no" 1>&6
3534 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3535 echo "configure:3536: checking for gethostbyname" >&5
3536 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 /* System header to define __stub macros and hopefully few prototypes,
3543 which can conflict with char gethostbyname(); below. */
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3548 char gethostbyname();
3552 /* The GNU C library defines this for functions which it implements
3553 to always fail with ENOSYS. Some functions are actually named
3554 something starting with __ and the normal name is an alias. */
3555 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 eval "ac_cv_func_gethostbyname=yes"
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3570 eval "ac_cv_func_gethostbyname=no"
3575 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3576 echo "$ac_t""yes" 1>&6
3579 echo "$ac_t""no" 1>&6
3581 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3582 echo "configure:3583: checking for gethostbyname in -lnsl" >&5
3583 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 ac_save_LIBS="$LIBS"
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char gethostbyname();
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 eval "ac_cv_lib_$ac_lib_var=no"
3611 LIBS="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3618 echo "$ac_t""no" 1>&6
3624 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3625 echo "configure:3626: checking for gethostbyname" >&5
3626 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 /* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char gethostbyname(); below. */
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char gethostbyname();
3642 /* The GNU C library defines this for functions which it implements
3643 to always fail with ENOSYS. Some functions are actually named
3644 something starting with __ and the normal name is an alias. */
3645 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3655 eval "ac_cv_func_gethostbyname=yes"
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3660 eval "ac_cv_func_gethostbyname=no"
3665 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3669 echo "$ac_t""no" 1>&6
3671 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3672 echo "configure:3673: checking for gethostbyname in -lbind" >&5
3673 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 ac_save_LIBS="$LIBS"
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 /* We use char because int might match the return type of a gcc2
3684 builtin and then its argument prototype would still apply. */
3685 char gethostbyname();
3691 if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3693 eval "ac_cv_lib_$ac_lib_var=yes"
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 eval "ac_cv_lib_$ac_lib_var=no"
3701 LIBS="$ac_save_LIBS"
3704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3705 echo "$ac_t""yes" 1>&6
3706 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3708 echo "$ac_t""no" 1>&6
3714 for ac_func in nanosleep
3716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3717 echo "configure:3718: checking for $ac_func" >&5
3718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* System header to define __stub macros and hopefully few prototypes,
3725 which can conflict with char $ac_func(); below. */
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3734 /* The GNU C library defines this for functions which it implements
3735 to always fail with ENOSYS. Some functions are actually named
3736 something starting with __ and the normal name is an alias. */
3737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_func_$ac_func=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_func_$ac_func=no"
3757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3760 cat >> confdefs.h <<EOF
3761 #define $ac_tr_func 1
3765 echo "$ac_t""no" 1>&6
3766 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3767 echo "configure:3768: checking for nanosleep in -lrt" >&5
3768 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 ac_save_LIBS="$LIBS"
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 /* Override any gcc2 internal prototype to avoid an error. */
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788 eval "ac_cv_lib_$ac_lib_var=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 eval "ac_cv_lib_$ac_lib_var=no"
3796 LIBS="$ac_save_LIBS"
3799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3803 echo "$ac_t""no" 1>&6
3804 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3805 echo "configure:3806: checking for nanosleep in -lposix4" >&5
3806 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 ac_save_LIBS="$LIBS"
3811 LIBS="-lposix4 $LIBS"
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 eval "ac_cv_lib_$ac_lib_var=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3831 eval "ac_cv_lib_$ac_lib_var=no"
3834 LIBS="$ac_save_LIBS"
3837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3841 echo "$ac_t""no" 1>&6
3851 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3852 echo "configure:3853: checking for inet_aton" >&5
3853 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 /* System header to define __stub macros and hopefully few prototypes,
3860 which can conflict with char inet_aton(); below. */
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3869 /* The GNU C library defines this for functions which it implements
3870 to always fail with ENOSYS. Some functions are actually named
3871 something starting with __ and the normal name is an alias. */
3872 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 eval "ac_cv_func_inet_aton=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_func_inet_aton=no"
3892 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3896 echo "$ac_t""no" 1>&6
3898 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3899 echo "configure:3900: checking for inet_aton in -lresolv" >&5
3900 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 ac_save_LIBS="$LIBS"
3905 LIBS="-lresolv $LIBS"
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3935 echo "$ac_t""no" 1>&6
3941 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3942 echo "configure:3943: checking for textdomain" >&5
3943 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 /* System header to define __stub macros and hopefully few prototypes,
3950 which can conflict with char textdomain(); below. */
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3959 /* The GNU C library defines this for functions which it implements
3960 to always fail with ENOSYS. Some functions are actually named
3961 something starting with __ and the normal name is an alias. */
3962 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972 eval "ac_cv_func_textdomain=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 eval "ac_cv_func_textdomain=no"
3982 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3986 echo "$ac_t""no" 1>&6
3988 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3989 echo "configure:3990: checking for textdomain in -lintl" >&5
3990 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 ac_save_LIBS="$LIBS"
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4010 eval "ac_cv_lib_$ac_lib_var=yes"
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 eval "ac_cv_lib_$ac_lib_var=no"
4018 LIBS="$ac_save_LIBS"
4021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4022 echo "$ac_t""yes" 1>&6
4023 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4025 echo "$ac_t""no" 1>&6
4033 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4034 echo "configure:4035: checking for getopt_long" >&5
4035 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4041 /* System header to define __stub macros and hopefully few prototypes,
4042 which can conflict with char getopt_long(); below. */
4044 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4051 /* The GNU C library defines this for functions which it implements
4052 to always fail with ENOSYS. Some functions are actually named
4053 something starting with __ and the normal name is an alias. */
4054 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4064 eval "ac_cv_func_getopt_long=yes"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 eval "ac_cv_func_getopt_long=no"
4074 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_GETOPT_LONG 1
4081 echo "$ac_t""no" 1>&6
4082 # FreeBSD has a gnugetopt library for this:
4083 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4084 echo "configure:4085: checking for getopt_long in -lgnugetopt" >&5
4085 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 ac_save_LIBS="$LIBS"
4090 LIBS="-lgnugetopt $LIBS"
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 /* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 eval "ac_cv_lib_$ac_lib_var=yes"
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 eval "ac_cv_lib_$ac_lib_var=no"
4113 LIBS="$ac_save_LIBS"
4116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_GETOPT_LONG 1
4121 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4123 echo "$ac_t""no" 1>&6
4130 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4131 echo "configure:4132: checking return type of signal handlers" >&5
4132 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 #include <sys/types.h>
4144 extern "C" void (*signal (int, void (*)(int)))(int);
4146 void (*signal ()) ();
4153 if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 ac_cv_type_signal=void
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 ac_cv_type_signal=int
4165 echo "$ac_t""$ac_cv_type_signal" 1>&6
4166 cat >> confdefs.h <<EOF
4167 #define RETSIGTYPE $ac_cv_type_signal
4171 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4172 echo "configure:4173: checking for dlopen in -ldl" >&5
4173 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 ac_save_LIBS="$LIBS"
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 /* Override any gcc2 internal prototype to avoid an error. */
4183 /* We use char because int might match the return type of a gcc2
4184 builtin and then its argument prototype would still apply. */
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 eval "ac_cv_lib_$ac_lib_var=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 eval "ac_cv_lib_$ac_lib_var=no"
4201 LIBS="$ac_save_LIBS"
4204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4208 echo "$ac_t""no" 1>&6
4211 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4212 echo "configure:4213: checking for cos in -lm" >&5
4213 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 ac_save_LIBS="$LIBS"
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233 eval "ac_cv_lib_$ac_lib_var=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_lib_$ac_lib_var=no"
4241 LIBS="$ac_save_LIBS"
4244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4247 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4249 echo "$ac_t""no" 1>&6
4252 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4253 echo "configure:4254: checking for pow in -lm" >&5
4254 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 ac_save_LIBS="$LIBS"
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* Override any gcc2 internal prototype to avoid an error. */
4264 /* We use char because int might match the return type of a gcc2
4265 builtin and then its argument prototype would still apply. */
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4274 eval "ac_cv_lib_$ac_lib_var=yes"
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4279 eval "ac_cv_lib_$ac_lib_var=no"
4282 LIBS="$ac_save_LIBS"
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4288 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4289 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4290 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4291 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4294 echo "$ac_t""no" 1>&6
4299 if test "x${THREAD_LIB}" = xerror; then
4300 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4301 echo "configure:4302: checking for pthread_attr_init in -lpthread" >&5
4302 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 ac_save_LIBS="$LIBS"
4307 LIBS="-lpthread $LIBS"
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char pthread_attr_init();
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 eval "ac_cv_lib_$ac_lib_var=yes"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 eval "ac_cv_lib_$ac_lib_var=no"
4330 LIBS="$ac_save_LIBS"
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 THREAD_LIB="-lpthread"
4337 echo "$ac_t""no" 1>&6
4341 if test "x${THREAD_LIB}" = xerror; then
4342 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4343 echo "configure:4344: checking for pthread_attr_init in -lpthreads" >&5
4344 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 ac_save_LIBS="$LIBS"
4349 LIBS="-lpthreads $LIBS"
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char pthread_attr_init();
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 eval "ac_cv_lib_$ac_lib_var=no"
4372 LIBS="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 THREAD_LIB="-lpthreads"
4379 echo "$ac_t""no" 1>&6
4383 if test "x${THREAD_LIB}" = xerror; then
4384 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4385 echo "configure:4386: checking for pthread_attr_init in -lc_r" >&5
4386 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 ac_save_LIBS="$LIBS"
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4398 char pthread_attr_init();
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406 eval "ac_cv_lib_$ac_lib_var=yes"
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4411 eval "ac_cv_lib_$ac_lib_var=no"
4414 LIBS="$ac_save_LIBS"
4417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4418 echo "$ac_t""yes" 1>&6
4421 echo "$ac_t""no" 1>&6
4425 if test "x${THREAD_LIB}" = xerror; then
4426 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4427 echo "configure:4428: checking for pthread_attr_init" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 cat > conftest.$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4434 /* System header to define __stub macros and hopefully few prototypes,
4435 which can conflict with char pthread_attr_init(); below. */
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char pthread_attr_init();
4444 /* The GNU C library defines this for functions which it implements
4445 to always fail with ENOSYS. Some functions are actually named
4446 something starting with __ and the normal name is an alias. */
4447 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4450 pthread_attr_init();
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4457 eval "ac_cv_func_pthread_attr_init=yes"
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 eval "ac_cv_func_pthread_attr_init=no"
4467 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4471 echo "$ac_t""no" 1>&6
4477 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4478 echo "configure:4479: checking for cthread_fork in -lthreads" >&5
4479 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 ac_save_LIBS="$LIBS"
4484 LIBS="-lthreads $LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char cthread_fork();
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_lib_$ac_lib_var=no"
4507 LIBS="$ac_save_LIBS"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 THREAD_LIB="-lthreads"
4514 echo "$ac_t""no" 1>&6
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 #include <pthread.h>
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 egrep "pthread_cond_t" >/dev/null 2>&1; then
4527 cat >> confdefs.h <<\EOF
4528 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <pthread.h>
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 egrep "pthread_once" >/dev/null 2>&1; then
4543 cat >> confdefs.h <<\EOF
4544 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <strings.h>
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 egrep "strncasecmp" >/dev/null 2>&1; then
4559 cat >> confdefs.h <<\EOF
4560 #define STRNCASECMP_IN_STRINGS_H 1
4567 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_hdr" >&5
4572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4581 { (eval echo configure:4582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4583 if test -z "$ac_err"; then
4585 eval "ac_cv_header_$ac_safe=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 eval "ac_cv_header_$ac_safe=no"
4595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4598 cat >> confdefs.h <<EOF
4599 #define $ac_tr_hdr 1
4603 echo "$ac_t""no" 1>&6
4607 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_hdr" >&5
4612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4621 { (eval echo configure:4622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4623 if test -z "$ac_err"; then
4625 eval "ac_cv_header_$ac_safe=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 eval "ac_cv_header_$ac_safe=no"
4635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4638 cat >> confdefs.h <<EOF
4639 #define $ac_tr_hdr 1
4643 echo "$ac_t""no" 1>&6
4647 for ac_hdr in dlfcn.h image.h
4649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4651 echo "configure:4652: checking for $ac_hdr" >&5
4652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4661 { (eval echo configure:4662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4663 if test -z "$ac_err"; then
4665 eval "ac_cv_header_$ac_safe=yes"
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4671 eval "ac_cv_header_$ac_safe=no"
4675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4678 cat >> confdefs.h <<EOF
4679 #define $ac_tr_hdr 1
4683 echo "$ac_t""no" 1>&6
4687 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_hdr" >&5
4692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4701 { (eval echo configure:4702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4703 if test -z "$ac_err"; then
4705 eval "ac_cv_header_$ac_safe=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_header_$ac_safe=no"
4715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_hdr 1
4723 echo "$ac_t""no" 1>&6
4727 for ac_hdr in machine/param.h sys/shm.h
4729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_hdr" >&5
4732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4741 { (eval echo configure:4742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4743 if test -z "$ac_err"; then
4745 eval "ac_cv_header_$ac_safe=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 eval "ac_cv_header_$ac_safe=no"
4755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4758 cat >> confdefs.h <<EOF
4759 #define $ac_tr_hdr 1
4763 echo "$ac_t""no" 1>&6
4767 for ac_hdr in linux/version.h
4769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4771 echo "configure:4772: checking for $ac_hdr" >&5
4772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4781 { (eval echo configure:4782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4783 if test -z "$ac_err"; then
4785 eval "ac_cv_header_$ac_safe=yes"
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4791 eval "ac_cv_header_$ac_safe=no"
4795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4798 cat >> confdefs.h <<EOF
4799 #define $ac_tr_hdr 1
4803 echo "$ac_t""no" 1>&6
4808 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4809 echo "configure:4810: checking whether time.h and sys/time.h may both be included" >&5
4810 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817 #include <sys/time.h>
4823 if { (eval echo configure:4824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4825 ac_cv_header_time=yes
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 ac_cv_header_time=no
4835 echo "$ac_t""$ac_cv_header_time" 1>&6
4836 if test $ac_cv_header_time = yes; then
4837 cat >> confdefs.h <<\EOF
4838 #define TIME_WITH_SYS_TIME 1
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 egrep "nanosleep" >/dev/null 2>&1; then
4853 cat >> confdefs.h <<\EOF
4854 #define HAVE_DECL_NANOSLEEP 1
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 #include <sys/time.h>
4867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4868 egrep "timespec" >/dev/null 2>&1; then
4871 cat >> confdefs.h <<\EOF
4872 #define HAVE_STRUCT_TIMESPEC 1
4880 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_hdr" >&5
4885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4894 { (eval echo configure:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4896 if test -z "$ac_err"; then
4898 eval "ac_cv_header_$ac_safe=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 eval "ac_cv_header_$ac_safe=no"
4908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4909 echo "$ac_t""yes" 1>&6
4910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4911 cat >> confdefs.h <<EOF
4912 #define $ac_tr_hdr 1
4916 echo "$ac_t""no" 1>&6
4921 if test x$SYS != xmingw32
4923 if test x$x_includes = xNONE; then
4924 x_includes=/usr/X11R6/include
4926 if test x$x_libraries = xNONE; then
4927 x_libraries=/usr/X11R6/lib
4929 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4930 for ac_hdr in X11/extensions/dpms.h
4932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h <<EOF
4962 #define $ac_tr_hdr 1
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 #include <X11/extensions/dpms.h>
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 egrep "DPMSInfo" >/dev/null 2>&1; then
4974 cat >> confdefs.h <<\EOF
4975 #define DPMSINFO_IN_DPMS_H 1
4984 echo "$ac_t""no" 1>&6
4988 CPPFLAGS="$save_CPPFLAGS"
4991 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4992 echo "configure:4993: checking for ntohl in sys/param.h" >&5
4993 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 CFLAGS="${save_CFLAGS} -Wall -Werror"
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #include <sys/param.h>
5002 void foo() { int meuh; ntohl(meuh); }
5005 if { (eval echo configure:5006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5007 ac_cv_c_ntohl_sys_param_h=yes
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5012 ac_cv_c_ntohl_sys_param_h=no
5017 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5018 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5019 cat >> confdefs.h <<\EOF
5020 #define NTOHL_IN_SYS_PARAM_H 1
5025 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5026 echo "configure:5027: checking if \$CC accepts -finline-limit" >&5
5027 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5039 if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5041 ac_cv_c_inline_limit=yes
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 ac_cv_c_inline_limit=no
5051 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5052 if test x"$ac_cv_c_inline_limit" != x"no"; then
5053 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5056 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5057 echo "configure:5058: checking if \$CC accepts -Wall -Winline" >&5
5058 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5070 if { (eval echo configure:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5072 ac_cv_c_Wall_Winline=yes
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 ac_cv_c_Wall_Winline=no
5082 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5083 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5084 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5086 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5087 echo "configure:5088: checking if \$CC accepts -wall -winline" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 CFLAGS="-wall -winline ${save_CFLAGS}"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5100 if { (eval echo configure:5101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5102 ac_cv_c_wall_winline=yes
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 ac_cv_c_wall_winline=no
5112 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5113 if test x"$ac_cv_c_wall_winline" != x"no"; then
5114 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5118 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5119 echo "configure:5120: checking if \$CC accepts -pipe" >&5
5120 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 CFLAGS="${save_CFLAGS} -pipe"
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5132 if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5144 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5145 if test x"$ac_cv_c_pipe" != x"no"; then
5146 save_CFLAGS="${save_CFLAGS} -pipe"
5149 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5150 echo "configure:5151: checking if \$CC accepts -O3" >&5
5151 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 CFLAGS="${save_CFLAGS} -O3"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5163 if { (eval echo configure:5164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5175 echo "$ac_t""$ac_cv_c_o3" 1>&6
5176 if test x"$ac_cv_c_o3" != x"no"; then
5177 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5179 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5180 echo "configure:5181: checking if \$CC accepts -O2" >&5
5181 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 CFLAGS="${save_CFLAGS} -O2"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5205 echo "$ac_t""$ac_cv_c_o2" 1>&6
5206 if test x"$ac_cv_c_o2" != x"no"; then
5207 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5209 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5210 echo "configure:5211: checking if \$CC accepts -O" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 CFLAGS="${save_CFLAGS} -O"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5235 echo "$ac_t""$ac_cv_c_o" 1>&6
5236 if test x"$ac_cv_c_o" != x"no"; then
5237 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5242 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5243 echo "configure:5244: checking if \$CC accepts -ffast-math" >&5
5244 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 CFLAGS="${save_CFLAGS} -ffast-math"
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 ac_cv_c_fast_math=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 ac_cv_c_fast_math=no
5268 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5269 if test x"$ac_cv_c_fast_math" != x"no"; then
5270 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5273 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5274 echo "configure:5275: checking if \$CC accepts -funroll-loops" >&5
5275 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 CFLAGS="${save_CFLAGS} -funroll-loops"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 ac_cv_c_unroll_loops=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ac_cv_c_unroll_loops=no
5299 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5300 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5301 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5304 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5305 echo "configure:5306: checking if \$CC accepts -fomit-frame-pointer" >&5
5306 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 ac_cv_c_omit_frame_pointer=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 ac_cv_c_omit_frame_pointer=no
5330 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5331 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5332 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5333 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5334 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5337 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5338 echo "configure:5339: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5339 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5351 if { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5363 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5364 if test x"$ac_cv_ld_darwin" != x"no"; then
5365 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5368 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5369 echo "configure:5370: checking if \$CC accepts -shared" >&5
5370 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 CFLAGS="${save_CFLAGS} -shared"
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5382 if { (eval echo configure:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 ac_cv_ld_plugins=yes
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5394 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5395 if test x"$ac_cv_ld_plugins" != x"no"; then
5396 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5399 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5400 echo "configure:5401: checking for variadic cpp macros" >&5
5401 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 CFLAGS="${save_CFLAGS}"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5409 #define a(b,c...) printf(b,##c)
5411 a("foo");a("%s","bar");a("%s%s","baz","quux");
5414 if { (eval echo configure:5415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416 ac_cv_cpp_variadic_macros=yes
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 ac_cv_cpp_variadic_macros=no
5426 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5427 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_VARIADIC_MACROS 1
5434 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5435 echo "configure:5436: checking __attribute__ ((aligned ())) support" >&5
5436 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 ac_cv_c_attribute_aligned=0
5440 CFLAGS="${save_CFLAGS} -Werror"
5441 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5447 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5450 if { (eval echo configure:5451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5452 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5461 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5462 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5463 cat >> confdefs.h <<EOF
5464 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5469 case x"${target_cpu}" in
5474 ARCH="${target_cpu}"
5478 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5479 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"
5481 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5482 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5483 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5484 SSE_MODULES="imdctsse downmixsse"
5485 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5487 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5488 echo "configure:5489: checking if \$CC groks MMX inline assembly" >&5
5489 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 CFLAGS="${save_CFLAGS}"
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5498 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5501 if { (eval echo configure:5502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5503 ac_cv_mmx_inline=yes
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5513 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5514 if test x"$ac_cv_mmx_inline" != x"no"; then
5515 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5518 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5519 echo "configure:5520: checking if \$CC groks MMX EXT inline assembly" >&5
5520 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 CFLAGS="${save_CFLAGS}"
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5529 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5532 if { (eval echo configure:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5534 ac_cv_mmxext_inline=yes
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 ac_cv_mmxext_inline=no
5544 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5545 if test x"$ac_cv_mmxext_inline" != x"no"; then
5546 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5549 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5550 echo "configure:5551: checking if \$CC groks 3D Now! inline assembly" >&5
5551 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 CFLAGS="${save_CFLAGS}"
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5560 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5563 if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5565 ac_cv_3dnow_inline=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 ac_cv_3dnow_inline=no
5575 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5576 if test x"$ac_cv_3dnow_inline" != x"no"; then
5577 cat >> confdefs.h <<\EOF
5578 #define CAN_COMPILE_3DNOW 1
5581 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5584 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5585 echo "configure:5586: checking if \$CC groks SSE inline assembly" >&5
5586 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 CFLAGS="${save_CFLAGS}"
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5595 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5598 if { (eval echo configure:5599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5600 ac_cv_sse_inline=yes
5602 echo "configure: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5610 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5611 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5612 cat >> confdefs.h <<\EOF
5613 #define CAN_COMPILE_SSE 1
5616 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5619 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5620 # we should be able to remove this test with future versions of mingw32
5621 if test x$SYS != xmingw32; then
5622 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5623 echo "configure:5624: checking if \$CC groks AltiVec inline assembly" >&5
5624 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5627 CFLAGS="${save_CFLAGS}"
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 asm volatile("vperm 0,1,2,3");
5636 if { (eval echo configure:5637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5638 ac_cv_altivec_inline=yes
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 CFLAGS="$save_CFLAGS -Wa,-m7400"
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5649 asm volatile("vperm 0,1,2,3");
5652 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654 ac_cv_altivec_inline="-Wa,-m7400"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5659 ac_cv_altivec_inline=no
5667 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5668 if test x"$ac_cv_altivec_inline" != x"no"; then
5669 cat >> confdefs.h <<\EOF
5670 #define CAN_COMPILE_ALTIVEC 1
5673 if test x"$ac_cv_altivec_inline" != x"yes"; then
5674 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5675 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5676 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5677 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5679 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5682 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5683 echo "configure:5684: checking if \$CC groks AltiVec C extensions" >&5
5684 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 CFLAGS="$save_CFLAGS -faltivec"
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5694 vec_mtvscr((vector unsigned int)(0));
5697 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 ac_cv_c_altivec=-faltivec
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5706 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5712 vec_mtvscr((vector unsigned int)(0));
5715 if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 ac_cv_c_altivec="-fvec"
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5731 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5732 if test x"$ac_cv_c_altivec" != x"no"; then
5733 cat >> confdefs.h <<\EOF
5734 #define CAN_COMPILE_C_ALTIVEC 1
5737 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5738 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5739 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5740 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5741 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5744 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5745 echo "configure:5746: checking if linker needs -framework vecLib" >&5
5746 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 ac_cv_ld_altivec=yes
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5771 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5772 if test x"$ac_cv_ld_altivec" != x"no"; then
5773 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5774 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5775 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5776 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5781 # Check whether --with- or --without- was given.
5782 if test "${with_+set}" = set; then
5787 # Check whether --with- or --without- was given.
5788 if test "${with_+set}" = set; then
5794 # Check whether --with-tuning or --without-tuning was given.
5795 if test "${with_tuning+set}" = set; then
5796 withval="$with_tuning"
5800 if test "x$with_tuning" != "x"; then
5801 TUNING="$with_tuning"
5803 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5805 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5809 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5812 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5815 # Check whether --enable-optimizations or --disable-optimizations was given.
5816 if test "${enable_optimizations+set}" = set; then
5817 enableval="$enable_optimizations"
5818 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5824 # Check whether --enable-altivec or --disable-altivec was given.
5825 if test "${enable_altivec+set}" = set; then
5826 enableval="$enable_altivec"
5827 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5828 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5830 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5831 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5836 # Check whether --enable-debug or --disable-debug was given.
5837 if test "${enable_debug+set}" = set; then
5838 enableval="$enable_debug"
5839 if test x$enable_debug = xyes; then DEBUG=1; fi
5844 # Check whether --enable-release or --disable-release was given.
5845 if test "${enable_release+set}" = set; then
5846 enableval="$enable_release"
5847 if test x$enable_release = xyes; then RELEASE=1; fi
5849 VERSION="${VERSION}_`date +%Y-%m-%d`"
5854 # Check whether --with- or --without- was given.
5855 if test "${with_+set}" = set; then
5861 # Check whether --enable-dvd or --disable-dvd was given.
5862 if test "${enable_dvd+set}" = set; then
5863 enableval="$enable_dvd"
5867 if test "x$enable_dvd" != "xno"
5869 # Check whether --with-dvdcss or --without-dvdcss was given.
5870 if test "${with_dvdcss+set}" = set; then
5871 withval="$with_dvdcss"
5875 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5876 if test "${with_dvdcss_tree+set}" = set; then
5877 withval="$with_dvdcss_tree"
5881 case "x$with_dvdcss" in
5883 if test "x$with_dvdcss_tree" = x
5885 for ac_hdr in dvdcss/dvdcss.h
5887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5889 echo "configure:5890: checking for $ac_hdr" >&5
5890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5899 { (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5901 if test -z "$ac_err"; then
5903 eval "ac_cv_header_$ac_safe=yes"
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5909 eval "ac_cv_header_$ac_safe=no"
5913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5916 cat >> confdefs.h <<EOF
5917 #define $ac_tr_hdr 1
5919 PLUGINS="${PLUGINS} dvd"
5920 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5922 echo "$ac_t""no" 1>&6
5923 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
5924 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5929 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5930 echo "configure:5931: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5931 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5932 if test "x$real_dvdcss_tree" = x
5934 echo "$ac_t""no" 1>&6
5935 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5937 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5939 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5940 BUILTINS="${BUILTINS} dvd"
5941 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5942 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5944 echo "$ac_t""no" 1>&6
5945 { 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; }
5950 PLUGINS="${PLUGINS} dvd"
5951 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5952 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5955 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5956 echo "configure:5957: checking for dvdcss headers in ${with_dvdcss}" >&5
5957 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5959 echo "$ac_t""yes" 1>&6
5960 PLUGINS="${PLUGINS} dvd"
5961 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5962 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5964 echo "$ac_t""no" 1>&6
5965 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5971 # Check whether --enable-dvdread or --disable-dvdread was given.
5972 if test "${enable_dvdread+set}" = set; then
5973 enableval="$enable_dvdread"
5977 if test "x$enable_dvdread" != "xno"
5979 # Check whether --with-dvdread or --without-dvdread was given.
5980 if test "${with_dvdread+set}" = set; then
5981 withval="$with_dvdread"
5985 if test "x$with_dvdread" = x
5990 test_LDFLAGS="-L${with_dvdread}/lib"
5991 test_CFLAGS="-I${with_dvdread}/include"
5993 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5994 for ac_hdr in dvdread/dvd_reader.h
5996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_hdr" >&5
5999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6008 { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6010 if test -z "$ac_err"; then
6012 eval "ac_cv_header_$ac_safe=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_header_$ac_safe=no"
6022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6025 cat >> confdefs.h <<EOF
6026 #define $ac_tr_hdr 1
6029 CFLAGS="${save_CFLAGS}"
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 #include <dvdread/dvd_reader.h>
6035 void foo() { int i=DVD_VIDEO_LB_LEN; }
6038 if { (eval echo configure:6039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6041 PLUGINS="${PLUGINS} dvdread"
6042 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6043 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6050 if test "x$enable_dvdread" != x
6052 { 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; }
6059 echo "$ac_t""no" 1>&6
6060 if test "x$enable_dvdread" != x
6062 if test "x$with_dvdread" != x
6064 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6066 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6073 CPPFLAGS="$save_CPPFLAGS"
6076 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6077 if test "${enable_dvbpsi+set}" = set; then
6078 enableval="$enable_dvbpsi"
6082 if test "x$enable_dvbpsi" != "xno"
6084 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6085 if test "${with_dvbpsi+set}" = set; then
6086 withval="$with_dvbpsi"
6090 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6091 if test "${with_dvbpsi+set}" = set; then
6092 withval="$with_dvbpsi"
6096 case "x$with_dvbpsi" in
6098 if test "x$with_dvbpsi_tree" = x
6100 for ac_hdr in dvbpsi/dr.h
6102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_hdr" >&5
6105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6114 { (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6116 if test -z "$ac_err"; then
6118 eval "ac_cv_header_$ac_safe=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_header_$ac_safe=no"
6128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6129 echo "$ac_t""yes" 1>&6
6130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6131 cat >> confdefs.h <<EOF
6132 #define $ac_tr_hdr 1
6134 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6135 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6137 echo "$ac_t""no" 1>&6
6142 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6143 echo "configure:6144: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6144 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6145 if test "x$real_dvbpsi_tree" = x
6147 echo "$ac_t""no" 1>&6
6148 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6150 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6152 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6153 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6154 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6155 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6157 echo "$ac_t""no" 1>&6
6158 { 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; }
6165 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6166 echo "configure:6167: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6167 if test "x$with_dvbpsi" = x
6172 test_LDFLAGS="-L${with_dvbpsi}/lib"
6173 test_CFLAGS="-I${with_dvbpsi}/include"
6175 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6176 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6177 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6178 echo "configure:6179: checking for dvbpsi/dr.h" >&5
6179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 #include <dvbpsi/dr.h>
6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6190 if test -z "$ac_err"; then
6192 eval "ac_cv_header_$ac_safe=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 eval "ac_cv_header_$ac_safe=no"
6202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6205 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6206 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6207 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6210 echo "$ac_t""no" 1>&6
6212 if test "x$enable_dvbpsi" != x
6214 { 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; }
6219 CPPFLAGS="$save_CPPFLAGS"
6224 # Check whether --enable-vcd or --disable-vcd was given.
6225 if test "${enable_vcd+set}" = set; then
6226 enableval="$enable_vcd"
6231 if test x$enable_vcd != xno
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 #include <linux/cdrom.h>
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "cdrom_msf0" >/dev/null 2>&1; then
6242 PLUGINS="${PLUGINS} vcd"
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 #include <sys/cdio.h>
6253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254 egrep "ioc_toc_header " >/dev/null 2>&1; then
6257 PLUGINS="${PLUGINS} vcd"
6258 cat >> confdefs.h <<\EOF
6259 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6267 if test "x${SYS}" = "xbsdi"
6269 PLUGINS="${PLUGINS} vcd"
6272 if test "x${SYS}" = "xdarwin"
6274 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6275 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6279 # Check whether --enable-satellite or --disable-satellite was given.
6280 if test "${enable_satellite+set}" = set; then
6281 enableval="$enable_satellite"
6282 if test x$enable_satellite = xyes
6284 PLUGINS="${PLUGINS} satellite"
6289 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6291 CFLAGS="$save_CFLAGS"
6292 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6293 echo "configure:6294: checking for inet_pton" >&5
6294 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 /* System header to define __stub macros and hopefully few prototypes,
6301 which can conflict with char inet_pton(); below. */
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6310 /* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 eval "ac_cv_func_inet_pton=yes"
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 eval "ac_cv_func_inet_pton=no"
6333 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6335 PLUGINS="${PLUGINS} ipv6"
6337 echo "$ac_t""no" 1>&6
6341 if test "x$SYS" = "xmingw32"
6343 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6344 echo "configure:6345: checking for getaddrinfo in ws2tcpip.h" >&5
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6348 #include <ws2tcpip.h>
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 egrep "addrinfo" >/dev/null 2>&1; then
6353 echo "$ac_t""yes" 1>&6
6354 PLUGINS="${PLUGINS} ipv6"
6357 echo "$ac_t""no" 1>&6
6363 # Check whether --enable-avi or --disable-avi was given.
6364 if test "${enable_avi+set}" = set; then
6365 enableval="$enable_avi"
6369 if test x$enable_avi != xno
6371 PLUGINS="${PLUGINS} avi"
6375 # Check whether --with- or --without- was given.
6376 if test "${with_+set}" = set; then
6382 # Check whether --enable-mad or --disable-mad was given.
6383 if test "${enable_mad+set}" = set; then
6384 enableval="$enable_mad"
6388 if test x$enable_mad = xyes
6390 # Check whether --with-mad or --without-mad was given.
6391 if test "${with_mad+set}" = set; then
6396 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6398 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6399 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6402 # Check whether --with-mad-tree or --without-mad-tree was given.
6403 if test "${with_mad_tree+set}" = set; then
6404 withval="$with_mad_tree"
6408 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6410 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6411 if test "x$real_mad_tree" = x
6413 echo "$ac_t""no" 1>&6
6414 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6416 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6417 echo "configure:6418: checking for mad.h in ${real_mad_tree}/libmad" >&5
6418 if test -f ${real_mad_tree}/libmad/mad.h
6420 echo "$ac_t""yes" 1>&6
6421 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6422 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6423 save_LDFLAGS=$LDFLAGS
6424 LDFLAGS=$mad_LDFLAGS
6425 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6426 echo "configure:6427: checking for mad_bit_init in -lmad" >&5
6427 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6431 ac_save_LIBS="$LIBS"
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6439 char mad_bit_init();
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447 eval "ac_cv_lib_$ac_lib_var=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 eval "ac_cv_lib_$ac_lib_var=no"
6455 LIBS="$ac_save_LIBS"
6458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6459 echo "$ac_t""yes" 1>&6
6461 BUILTINS="${BUILTINS} mad"
6462 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6465 echo "$ac_t""no" 1>&6
6466 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6470 LDFLAGS=$save_LDFLAGS
6472 echo "$ac_t""no" 1>&6
6473 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6476 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6477 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6482 echo "configure:6483: checking for $ac_hdr" >&5
6483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6492 { (eval echo configure:6493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494 if test -z "$ac_err"; then
6496 eval "ac_cv_header_$ac_safe=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_header_$ac_safe=no"
6506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_hdr 1
6514 echo "$ac_t""no" 1>&6
6515 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6519 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6520 echo "configure:6521: checking for mad_bit_init in -lmad" >&5
6521 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 ac_save_LIBS="$LIBS"
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6533 char mad_bit_init();
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_lib_$ac_lib_var=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_lib_$ac_lib_var=no"
6549 LIBS="$ac_save_LIBS"
6552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6555 PLUGINS="${PLUGINS} mad"
6556 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6558 echo "$ac_t""no" 1>&6
6559 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6565 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6566 if test "${enable_ffmpeg+set}" = set; then
6567 enableval="$enable_ffmpeg"
6571 if test "x$enable_ffmpeg" = "xyes"
6573 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6574 if test "${with_ffmpeg+set}" = set; then
6575 withval="$with_ffmpeg"
6579 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6581 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6582 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6585 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6586 if test "${with_ffmpeg_tree+set}" = set; then
6587 withval="$with_ffmpeg_tree"
6591 if test "x$with_ffmpeg_tree" != "x"
6593 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6594 echo "configure:6595: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6595 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6596 if test "x$real_ffmpeg_tree" = x
6598 echo "$ac_t""no" 1>&6
6599 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6601 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6603 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6604 BUILTINS="${BUILTINS} ffmpeg"
6605 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6606 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6608 echo "$ac_t""no" 1>&6
6609 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6613 save_LDFLAGS=$LDFLAGS
6614 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6615 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6616 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6617 echo "configure:6618: checking for avcodec_init in -lavcodec" >&5
6618 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6622 ac_save_LIBS="$LIBS"
6623 LIBS="-lavcodec $LIBS"
6624 cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure"
6626 #include "confdefs.h"
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630 char avcodec_init();
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6638 eval "ac_cv_lib_$ac_lib_var=yes"
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 eval "ac_cv_lib_$ac_lib_var=no"
6646 LIBS="$ac_save_LIBS"
6649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6650 echo "$ac_t""yes" 1>&6
6652 BUILTINS="${BUILTINS} ffmpeg"
6653 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6655 echo "$ac_t""no" 1>&6
6656 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6660 LDFLAGS=$save_LDFLAGS
6665 if test x$SYS = xbeos
6667 PLUGINS="${PLUGINS} beos"
6670 # Check whether --enable-a52 or --disable-a52 was given.
6671 if test "${enable_a52+set}" = set; then
6672 enableval="$enable_a52"
6676 if test "x$enable_a52" != "xno"
6678 # Check whether --with-a52-tree or --without-a52-tree was given.
6679 if test "${with_a52_tree+set}" = set; then
6680 withval="$with_a52_tree"
6684 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6686 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6687 if test "x$real_a52_tree" = x
6689 echo "$ac_t""no" 1>&6
6690 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6692 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6693 echo "configure:6694: checking for a52.h in ${real_a52_tree}/include" >&5
6694 if test -f ${real_a52_tree}/include/a52.h
6696 echo "$ac_t""yes" 1>&6
6697 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6698 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6699 save_LDFLAGS=$LDFLAGS
6700 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6701 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6702 echo "configure:6703: checking for a52_free in -la52" >&5
6703 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 ac_save_LIBS="$LIBS"
6708 LIBS="-la52 -lm $LIBS"
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 eval "ac_cv_lib_$ac_lib_var=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 eval "ac_cv_lib_$ac_lib_var=no"
6731 LIBS="$ac_save_LIBS"
6734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6737 BUILTINS="${BUILTINS} a52"
6738 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6739 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6742 echo "$ac_t""no" 1>&6
6744 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6746 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6748 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6753 LDFLAGS=$save_LDFLAGS
6755 echo "$ac_t""no" 1>&6
6756 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6758 else for ac_hdr in a52dec/a52.h
6760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6762 echo "configure:6763: checking for $ac_hdr" >&5
6763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6772 { (eval echo configure:6773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6774 if test -z "$ac_err"; then
6776 eval "ac_cv_header_$ac_safe=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 eval "ac_cv_header_$ac_safe=no"
6786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6789 cat >> confdefs.h <<EOF
6790 #define $ac_tr_hdr 1
6793 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6794 echo "configure:6795: checking for a52_free in -la52" >&5
6795 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6799 ac_save_LIBS="$LIBS"
6800 LIBS="-la52 -lm $LIBS"
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 /* Override any gcc2 internal prototype to avoid an error. */
6805 /* We use char because int might match the return type of a gcc2
6806 builtin and then its argument prototype would still apply. */
6813 if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6815 eval "ac_cv_lib_$ac_lib_var=yes"
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6820 eval "ac_cv_lib_$ac_lib_var=no"
6823 LIBS="$ac_save_LIBS"
6826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6827 echo "$ac_t""yes" 1>&6
6829 BUILTINS="${BUILTINS} a52"
6830 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6831 a52_CFLAGS="${a52_CFLAGS}"
6834 echo "$ac_t""no" 1>&6
6839 echo "$ac_t""no" 1>&6
6846 # Check whether --enable-vorbis or --disable-vorbis was given.
6847 if test "${enable_vorbis+set}" = set; then
6848 enableval="$enable_vorbis"
6852 if test "x$enable_vorbis" != "xno"
6854 for ac_hdr in ogg/ogg.h
6856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6858 echo "configure:6859: checking for $ac_hdr" >&5
6859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6868 { (eval echo configure:6869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6870 if test -z "$ac_err"; then
6872 eval "ac_cv_header_$ac_safe=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6878 eval "ac_cv_header_$ac_safe=no"
6882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6885 cat >> confdefs.h <<EOF
6886 #define $ac_tr_hdr 1
6889 #PLUGINS="${PLUGINS} vorbis"
6890 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6893 echo "$ac_t""no" 1>&6
6900 # Check whether --with- or --without- was given.
6901 if test "${with_+set}" = set; then
6907 # Check whether --enable-x11 or --disable-x11 was given.
6908 if test "${enable_x11+set}" = set; then
6909 enableval="$enable_x11"
6913 if test x$enable_x11 != xno &&
6914 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6915 if test x$x_includes = xNONE; then
6916 x_includes=/usr/X11R6/include
6918 if test x$x_libraries = xNONE; then
6919 x_libraries=/usr/X11R6/lib
6921 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6922 for ac_hdr in X11/Xlib.h
6924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6926 echo "configure:6927: checking for $ac_hdr" >&5
6927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6936 { (eval echo configure:6937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6938 if test -z "$ac_err"; then
6940 eval "ac_cv_header_$ac_safe=yes"
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6946 eval "ac_cv_header_$ac_safe=no"
6950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_hdr 1
6957 PLUGINS="${PLUGINS} x11"
6958 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6959 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6962 echo "$ac_t""no" 1>&6
6966 CPPFLAGS="$save_CPPFLAGS"
6969 # Check whether --enable-xvideo or --disable-xvideo was given.
6970 if test "${enable_xvideo+set}" = set; then
6971 enableval="$enable_xvideo"
6975 if test x$enable_xvideo != xno &&
6976 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6977 if test x$x_includes = xNONE; then
6978 x_includes=/usr/X11R6/include
6980 if test x$x_libraries = xNONE; then
6981 x_libraries=/usr/X11R6/lib
6983 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6984 for ac_hdr in X11/extensions/Xv.h
6986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6988 echo "configure:6989: checking for $ac_hdr" >&5
6989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6992 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6998 { (eval echo configure:6999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7000 if test -z "$ac_err"; then
7002 eval "ac_cv_header_$ac_safe=yes"
7005 echo "configure: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7008 eval "ac_cv_header_$ac_safe=no"
7012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7013 echo "$ac_t""yes" 1>&6
7014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7015 cat >> confdefs.h <<EOF
7016 #define $ac_tr_hdr 1
7019 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7020 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7021 echo "configure:7022: checking for XvSetPortAttribute in -lXv_pic" >&5
7022 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 ac_save_LIBS="$LIBS"
7027 LIBS="-lXv_pic $LIBS"
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034 char XvSetPortAttribute();
7037 XvSetPortAttribute()
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 eval "ac_cv_lib_$ac_lib_var=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 eval "ac_cv_lib_$ac_lib_var=no"
7050 LIBS="$ac_save_LIBS"
7053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7056 PLUGINS="${PLUGINS} xvideo"
7057 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7058 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7060 echo "$ac_t""no" 1>&6
7061 # We don't have Xv_pic, let's make xvideo.a as builtin
7062 BUILTINS="${BUILTINS} xvideo"
7063 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7064 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7068 CPPFLAGS="$save_CPPFLAGS"
7070 echo "$ac_t""no" 1>&6
7076 # Check whether --enable-sdl or --disable-sdl was given.
7077 if test "${enable_sdl+set}" = set; then
7078 enableval="$enable_sdl"
7082 if test "x$enable_sdl" != "xno"
7085 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7086 if test "${with_sdl_config_path+set}" = set; then
7087 withval="$with_sdl_config_path"
7088 if test "x$with_sdl_config_path" != "xno"
7090 SDL_PATH="$with_sdl_config_path:$PATH"
7094 # Extract the first word of "sdl12-config", so it can be a program name with args.
7095 set dummy sdl12-config; ac_word=$2
7096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7097 echo "configure:7098: checking for $ac_word" >&5
7098 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 case "$SDL12_CONFIG" in
7103 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7106 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7110 ac_dummy="$SDL_PATH"
7111 for ac_dir in $ac_dummy; do
7112 test -z "$ac_dir" && ac_dir=.
7113 if test -f $ac_dir/$ac_word; then
7114 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7119 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7123 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7124 if test -n "$SDL12_CONFIG"; then
7125 echo "$ac_t""$SDL12_CONFIG" 1>&6
7127 echo "$ac_t""no" 1>&6
7130 SDL_CONFIG=${SDL12_CONFIG}
7131 SDL_HEADER="SDL12/SDL.h"
7132 if test x${SDL_CONFIG} = xno
7134 # Extract the first word of "sdl11-config", so it can be a program name with args.
7135 set dummy sdl11-config; ac_word=$2
7136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7137 echo "configure:7138: checking for $ac_word" >&5
7138 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7141 case "$SDL11_CONFIG" in
7143 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7146 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7150 ac_dummy="$SDL_PATH"
7151 for ac_dir in $ac_dummy; do
7152 test -z "$ac_dir" && ac_dir=.
7153 if test -f $ac_dir/$ac_word; then
7154 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7159 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7163 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7164 if test -n "$SDL11_CONFIG"; then
7165 echo "$ac_t""$SDL11_CONFIG" 1>&6
7167 echo "$ac_t""no" 1>&6
7170 SDL_CONFIG=${SDL11_CONFIG}
7171 SDL_HEADER="SDL11/SDL.h"
7173 if test x${SDL_CONFIG} = xno
7175 # Extract the first word of "sdl-config", so it can be a program name with args.
7176 set dummy sdl-config; ac_word=$2
7177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7178 echo "configure:7179: checking for $ac_word" >&5
7179 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7182 case "$SDL_CONFIG" in
7184 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7187 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7191 ac_dummy="$SDL_PATH"
7192 for ac_dir in $ac_dummy; do
7193 test -z "$ac_dir" && ac_dir=.
7194 if test -f $ac_dir/$ac_word; then
7195 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7200 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7204 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7205 if test -n "$SDL_CONFIG"; then
7206 echo "$ac_t""$SDL_CONFIG" 1>&6
7208 echo "$ac_t""no" 1>&6
7211 SDL_HEADER="SDL/SDL.h"
7213 if test x${SDL_CONFIG} != xno
7215 PLUGINS="${PLUGINS} sdl"
7216 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7217 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7218 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7219 for ac_hdr in ${SDL_HEADER}
7221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7223 echo "configure:7224: checking for $ac_hdr" >&5
7224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7225 echo $ac_n "(cached) $ac_c" 1>&6
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7233 { (eval echo configure:7234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7235 if test -z "$ac_err"; then
7237 eval "ac_cv_header_$ac_safe=yes"
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7243 eval "ac_cv_header_$ac_safe=no"
7247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7248 echo "$ac_t""yes" 1>&6
7249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7250 cat >> confdefs.h <<EOF
7251 #define $ac_tr_hdr 1
7253 cat >> confdefs.h <<EOF
7254 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7258 echo "$ac_t""no" 1>&6
7259 { echo "configure: error: The development package for SDL is not installed.
7260 Please install it and try again. Alternatively you can also configure with
7261 --disable-sdl." 1>&2; exit 1; }
7266 CPPFLAGS="$save_CPPFLAGS"
7267 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7269 { echo "configure: error: The development package for SDL is not installed.
7270 Please install it and try again. Alternatively you can also configure with
7271 --disable-sdl." 1>&2; exit 1; }
7273 elif test "x$enable_sdl" = "xyes"
7275 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7276 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7281 # Check whether --enable-directx or --disable-directx was given.
7282 if test "${enable_directx+set}" = set; then
7283 enableval="$enable_directx"
7287 if test "x$enable_directx" != "xno"
7289 if test x$SYS = xmingw32
7291 # Check whether --with-directx or --without-directx was given.
7292 if test "${with_directx+set}" = set; then
7293 withval="$with_directx"
7297 if test "x$with_directx" = "x"
7299 for ac_hdr in ddraw.h
7301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7303 echo "configure:7304: checking for $ac_hdr" >&5
7304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7313 { (eval echo configure:7314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7315 if test -z "$ac_err"; then
7317 eval "ac_cv_header_$ac_safe=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_header_$ac_safe=no"
7327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7330 cat >> confdefs.h <<EOF
7331 #define $ac_tr_hdr 1
7333 PLUGINS="${PLUGINS} directx"
7334 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7336 echo "$ac_t""no" 1>&6
7341 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7342 echo "configure:7343: checking for directX headers in ${with_directx}" >&5
7343 if test -f ${with_directx}/ddraw.h
7345 PLUGINS="${PLUGINS} directx"
7346 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7347 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7348 echo "$ac_t""yes" 1>&6
7350 echo "$ac_t""no" 1>&6
7351 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7357 # Check whether --enable-fb or --disable-fb was given.
7358 if test "${enable_fb+set}" = set; then
7359 enableval="$enable_fb"
7363 if test x$enable_fb != xno
7365 for ac_hdr in linux/fb.h
7367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7369 echo "configure:7370: checking for $ac_hdr" >&5
7370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7381 if test -z "$ac_err"; then
7383 eval "ac_cv_header_$ac_safe=yes"
7386 echo "configure: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7389 eval "ac_cv_header_$ac_safe=no"
7393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7394 echo "$ac_t""yes" 1>&6
7395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7396 cat >> confdefs.h <<EOF
7397 #define $ac_tr_hdr 1
7400 PLUGINS="${PLUGINS} fb"
7403 echo "$ac_t""no" 1>&6
7409 # Check whether --enable-mga or --disable-mga was given.
7410 if test "${enable_mga+set}" = set; then
7411 enableval="$enable_mga"
7412 if test x$enable_mga = xyes
7414 PLUGINS="${PLUGINS} mga xmga"
7419 # Check whether --enable-ggi or --disable-ggi was given.
7420 if test "${enable_ggi+set}" = set; then
7421 enableval="$enable_ggi"
7425 if test x$enable_ggi = xyes
7427 PLUGINS="${PLUGINS} ggi"
7428 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7429 # Check whether --with-ggi or --without-ggi was given.
7430 if test "${with_ggi+set}" = set; then
7432 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7434 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7435 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7441 # Check whether --enable-glide or --disable-glide was given.
7442 if test "${enable_glide+set}" = set; then
7443 enableval="$enable_glide"
7447 if test x$enable_glide = xyes
7449 PLUGINS="${PLUGINS} glide"
7450 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7451 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7452 # Check whether --with-glide or --without-glide was given.
7453 if test "${with_glide+set}" = set; then
7454 withval="$with_glide"
7455 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7457 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7458 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7464 # Check whether --enable-aa or --disable-aa was given.
7465 if test "${enable_aa+set}" = set; then
7466 enableval="$enable_aa"
7470 if test x$enable_aa = xyes
7472 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7473 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7474 echo "configure:7475: checking for aalib.h" >&5
7475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7484 { (eval echo configure:7485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7486 if test -z "$ac_err"; then
7488 eval "ac_cv_header_$ac_safe=yes"
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7494 eval "ac_cv_header_$ac_safe=no"
7498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7502 echo "$ac_t""no" 1>&6
7506 if test x$have_aa = xtrue
7508 PLUGINS="${PLUGINS} aa"
7509 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7514 # Check whether --with- or --without- was given.
7515 if test "${with_+set}" = set; then
7521 # Check whether --enable-dsp or --disable-dsp was given.
7522 if test "${enable_dsp+set}" = set; then
7523 enableval="$enable_dsp"
7528 if test x$enable_dsp != xno &&
7529 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7531 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7535 echo "configure:7536: checking for $ac_hdr" >&5
7536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7539 cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7545 { (eval echo configure:7546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7547 if test -z "$ac_err"; then
7549 eval "ac_cv_header_$ac_safe=yes"
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7555 eval "ac_cv_header_$ac_safe=no"
7559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7560 echo "$ac_t""yes" 1>&6
7561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7562 cat >> confdefs.h <<EOF
7563 #define $ac_tr_hdr 1
7566 PLUGINS="${PLUGINS} dsp"
7567 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7568 echo "configure:7569: checking for main in -lossaudio" >&5
7569 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 ac_save_LIBS="$LIBS"
7574 LIBS="-lossaudio $LIBS"
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7583 if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7585 eval "ac_cv_lib_$ac_lib_var=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7590 eval "ac_cv_lib_$ac_lib_var=no"
7593 LIBS="$ac_save_LIBS"
7596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7597 echo "$ac_t""yes" 1>&6
7598 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7600 echo "$ac_t""no" 1>&6
7605 echo "$ac_t""no" 1>&6
7611 # Check whether --enable-esd or --disable-esd was given.
7612 if test "${enable_esd+set}" = set; then
7613 enableval="$enable_esd"
7614 if test x$enable_esd = xyes
7616 # Extract the first word of "esd-config", so it can be a program name with args.
7617 set dummy esd-config; ac_word=$2
7618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7619 echo "configure:7620: checking for $ac_word" >&5
7620 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7623 case "$ESD_CONFIG" in
7625 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7628 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7633 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7641 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7645 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7646 if test -n "$ESD_CONFIG"; then
7647 echo "$ac_t""$ESD_CONFIG" 1>&6
7649 echo "$ac_t""no" 1>&6
7652 if test x${ESD_CONFIG} != xno
7654 PLUGINS="${PLUGINS} esd"
7655 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7656 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7662 # Check whether --enable-arts or --disable-arts was given.
7663 if test "${enable_arts+set}" = set; then
7664 enableval="$enable_arts"
7665 if test x$enable_arts = xyes
7667 # Extract the first word of "artsc-config", so it can be a program name with args.
7668 set dummy artsc-config; ac_word=$2
7669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7670 echo "configure:7671: checking for $ac_word" >&5
7671 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7674 case "$ARTS_CONFIG" in
7676 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7679 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7684 for ac_dir in $ac_dummy; do
7685 test -z "$ac_dir" && ac_dir=.
7686 if test -f $ac_dir/$ac_word; then
7687 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7692 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7696 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7697 if test -n "$ARTS_CONFIG"; then
7698 echo "$ac_t""$ARTS_CONFIG" 1>&6
7700 echo "$ac_t""no" 1>&6
7703 if test x${ARTS_CONFIG} != xno
7705 PLUGINS="${PLUGINS} arts"
7706 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7707 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7713 # Check whether --enable-alsa or --disable-alsa was given.
7714 if test "${enable_alsa+set}" = set; then
7715 enableval="$enable_alsa"
7716 if test x$enable_alsa = xyes
7718 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7719 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7720 echo "configure:7721: checking for alsa/asoundlib.h" >&5
7721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 #include <alsa/asoundlib.h>
7729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7730 { (eval echo configure:7731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7732 if test -z "$ac_err"; then
7734 eval "ac_cv_header_$ac_safe=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7740 eval "ac_cv_header_$ac_safe=no"
7744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7745 echo "$ac_t""yes" 1>&6
7746 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7747 echo "configure:7748: checking for main in -lasound" >&5
7748 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7752 ac_save_LIBS="$LIBS"
7753 LIBS="-lasound $LIBS"
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7764 eval "ac_cv_lib_$ac_lib_var=yes"
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7769 eval "ac_cv_lib_$ac_lib_var=no"
7772 LIBS="$ac_save_LIBS"
7775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7776 echo "$ac_t""yes" 1>&6
7779 echo "$ac_t""no" 1>&6
7784 echo "$ac_t""no" 1>&6
7788 if test x$have_alsa = xtrue
7790 PLUGINS="${PLUGINS} alsa"
7791 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7797 # Check whether --enable-waveout or --disable-waveout was given.
7798 if test "${enable_waveout+set}" = set; then
7799 enableval="$enable_waveout"
7803 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7805 PLUGINS="${PLUGINS} waveout"
7806 waveout_LDFLAGS="-lwinmm"
7810 # Check whether --with- or --without- was given.
7811 if test "${with_+set}" = set; then
7817 # Check whether --enable-gtk or --disable-gtk was given.
7818 if test "${enable_gtk+set}" = set; then
7819 enableval="$enable_gtk"
7823 if test x$enable_gtk != xno
7826 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7827 if test "${with_gtk_config_path+set}" = set; then
7828 withval="$with_gtk_config_path"
7829 if test "x$with_gtk_config_path" != "xno"
7831 GTK_PATH="$with_gtk_config_path:$PATH"
7835 # look for gtk-config
7836 # Extract the first word of "gtk12-config", so it can be a program name with args.
7837 set dummy gtk12-config; ac_word=$2
7838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_word" >&5
7840 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7843 case "$GTK12_CONFIG" in
7845 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7848 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7852 ac_dummy="$GTK_PATH"
7853 for ac_dir in $ac_dummy; do
7854 test -z "$ac_dir" && ac_dir=.
7855 if test -f $ac_dir/$ac_word; then
7856 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7861 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7865 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7866 if test -n "$GTK12_CONFIG"; then
7867 echo "$ac_t""$GTK12_CONFIG" 1>&6
7869 echo "$ac_t""no" 1>&6
7872 GTK_CONFIG=${GTK12_CONFIG}
7873 if test x${GTK_CONFIG} = xno
7875 # Extract the first word of "gtk-config", so it can be a program name with args.
7876 set dummy gtk-config; ac_word=$2
7877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_word" >&5
7879 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 case "$GTK_CONFIG" in
7884 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7887 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7891 ac_dummy="$GTK_PATH"
7892 for ac_dir in $ac_dummy; do
7893 test -z "$ac_dir" && ac_dir=.
7894 if test -f $ac_dir/$ac_word; then
7895 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7900 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7904 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7905 if test -n "$GTK_CONFIG"; then
7906 echo "$ac_t""$GTK_CONFIG" 1>&6
7908 echo "$ac_t""no" 1>&6
7912 if test x${GTK_CONFIG} != xno
7914 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7916 { 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; }
7918 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7919 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7920 # now look for the gtk.h header
7921 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7922 ac_cv_gtk_headers=yes
7923 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_hdr" >&5
7928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7939 if test -z "$ac_err"; then
7941 eval "ac_cv_header_$ac_safe=yes"
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 eval "ac_cv_header_$ac_safe=no"
7951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7954 cat >> confdefs.h <<EOF
7955 #define $ac_tr_hdr 1
7959 echo "$ac_t""no" 1>&6
7960 ac_cv_gtk_headers=no
7961 echo "Cannot find gtk development headers."
7966 if test "x$ac_cv_gtk_headers" = xyes
7968 PLUGINS="${PLUGINS} gtk"
7969 ALIASES="${ALIASES} gvlc"
7971 CPPFLAGS="$save_CPPFLAGS"
7975 # Check whether --enable-gnome or --disable-gnome was given.
7976 if test "${enable_gnome+set}" = set; then
7977 enableval="$enable_gnome"
7978 if test x$enable_gnome = xyes; then
7979 # look for gnome-config
7980 # Extract the first word of "gnome-config", so it can be a program name with args.
7981 set dummy gnome-config; ac_word=$2
7982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7983 echo "configure:7984: checking for $ac_word" >&5
7984 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7987 case "$GNOME_CONFIG" in
7989 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7992 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7997 for ac_dir in $ac_dummy; do
7998 test -z "$ac_dir" && ac_dir=.
7999 if test -f $ac_dir/$ac_word; then
8000 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8005 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8009 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8010 if test -n "$GNOME_CONFIG"; then
8011 echo "$ac_t""$GNOME_CONFIG" 1>&6
8013 echo "$ac_t""no" 1>&6
8016 if test -x ${GNOME_CONFIG}
8018 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8019 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8021 # now look for the gnome.h header
8022 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8023 for ac_hdr in gnome.h
8025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_hdr" >&5
8028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8037 { (eval echo configure:8038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8039 if test -z "$ac_err"; then
8041 eval "ac_cv_header_$ac_safe=yes"
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8047 eval "ac_cv_header_$ac_safe=no"
8051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8052 echo "$ac_t""yes" 1>&6
8053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8054 cat >> confdefs.h <<EOF
8055 #define $ac_tr_hdr 1
8058 PLUGINS="${PLUGINS} gnome"
8059 ALIASES="${ALIASES} gnome-vlc"
8062 echo "$ac_t""no" 1>&6
8063 { echo "configure: error: Can't find gnome headers. Please install the gnome
8064 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8069 CPPFLAGS="$save_CPPFLAGS"
8074 # Check whether --enable-qt or --disable-qt was given.
8075 if test "${enable_qt+set}" = set; then
8076 enableval="$enable_qt"
8077 if test x$enable_qt = xyes; then
8078 PLUGINS="${PLUGINS} qt"
8079 ALIASES="${ALIASES} qvlc"
8080 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8081 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8082 if test -x ${QTDIR}/bin/moc
8084 MOC=${QTDIR}/bin/moc
8092 # Check whether --enable-kde or --disable-kde was given.
8093 if test "${enable_kde+set}" = set; then
8094 enableval="$enable_kde"
8095 if test x$enable_kde = xyes; then
8096 PLUGINS="${PLUGINS} kde"
8097 ALIASES="${ALIASES} kvlc"
8098 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8099 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8100 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8101 if test -x ${QTDIR}/bin/moc
8103 MOC=${QTDIR}/bin/moc
8111 # Check whether --enable-macosx or --disable-macosx was given.
8112 if test "${enable_macosx+set}" = set; then
8113 enableval="$enable_macosx"
8114 if test x$enable_macosx = xyes
8116 BUILTINS="${BUILTINS} macosx"
8117 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8120 for ac_hdr in Cocoa/Cocoa.h
8122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8124 echo "configure:8125: checking for $ac_hdr" >&5
8125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8128 cat > conftest.$ac_ext <<EOF
8129 #line 8130 "configure"
8130 #include "confdefs.h"
8133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8134 { (eval echo configure:8135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8136 if test -z "$ac_err"; then
8138 eval "ac_cv_header_$ac_safe=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_header_$ac_safe=no"
8148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8149 echo "$ac_t""yes" 1>&6
8150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8151 cat >> confdefs.h <<EOF
8152 #define $ac_tr_hdr 1
8154 BUILTINS="${BUILTINS} macosx"
8155 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8158 echo "$ac_t""no" 1>&6
8165 # Check whether --enable-qnx or --disable-qnx was given.
8166 if test "${enable_qnx+set}" = set; then
8167 enableval="$enable_qnx"
8171 if test x$enable_qnx != xno
8175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8177 echo "configure:8178: checking for $ac_hdr" >&5
8178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8187 { (eval echo configure:8188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8189 if test -z "$ac_err"; then
8191 eval "ac_cv_header_$ac_safe=yes"
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8197 eval "ac_cv_header_$ac_safe=no"
8201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8204 cat >> confdefs.h <<EOF
8205 #define $ac_tr_hdr 1
8208 PLUGINS="${PLUGINS} qnx"
8209 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8212 echo "$ac_t""no" 1>&6
8218 # Check whether --enable-intfwin or --disable-intfwin was given.
8219 if test "${enable_intfwin+set}" = set; then
8220 enableval="$enable_intfwin"
8221 if test "x$enable_intfwin" != "xno"
8223 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8224 if test "${with_bcbuilder+set}" = set; then
8225 withval="$with_bcbuilder"
8229 if test "x$with_bcbuilder" != "x"
8231 BCBUILDER="$with_bcbuilder"
8233 PLUGINS="${PLUGINS} intfwin"
8238 # Check whether --enable-ncurses or --disable-ncurses was given.
8239 if test "${enable_ncurses+set}" = set; then
8240 enableval="$enable_ncurses"
8241 if test x$enable_ncurses = xyes; then
8242 PLUGINS="${PLUGINS} ncurses"
8243 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8248 # Check whether --enable-lirc or --disable-lirc was given.
8249 if test "${enable_lirc+set}" = set; then
8250 enableval="$enable_lirc"
8254 if test x$enable_lirc = xyes
8256 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8257 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8258 echo "configure:8259: checking for lirc/lirc_client.h" >&5
8259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 #include <lirc/lirc_client.h>
8267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8268 { (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8270 if test -z "$ac_err"; then
8272 eval "ac_cv_header_$ac_safe=yes"
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8278 eval "ac_cv_header_$ac_safe=no"
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8285 echo "configure:8286: checking for lirc_init in -llirc_client" >&5
8286 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8290 ac_save_LIBS="$LIBS"
8291 LIBS="-llirc_client $LIBS"
8292 cat > conftest.$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8304 if { (eval echo configure:8305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8306 eval "ac_cv_lib_$ac_lib_var=yes"
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8311 eval "ac_cv_lib_$ac_lib_var=no"
8314 LIBS="$ac_save_LIBS"
8317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8321 echo "$ac_t""no" 1>&6
8326 echo "$ac_t""no" 1>&6
8330 if test x$have_lirc = xtrue
8332 PLUGINS="${PLUGINS} lirc"
8333 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8337 # Check whether --with- or --without- was given.
8338 if test "${with_+set}" = set; then
8344 # Check whether --with-words or --without-words was given.
8345 if test "${with_words+set}" = set; then
8346 withval="$with_words"
8350 case "x$with_words" in
8352 ac_cv_c_bigendian=yes
8355 ac_cv_c_bigendian=no
8358 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8359 echo "configure:8360: checking whether the byte order is big-endian" >&5
8360 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8363 ac_cv_c_bigendian=unknown
8364 cat >conftest.c <<EOF
8365 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8366 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8367 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8368 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8369 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8370 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8371 int main(void) { _a(); _e(); return 0; }
8374 if test -f conftest.c
8376 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8377 && test -f conftest.o
8379 if test "`strings conftest.o | grep BIGenDianSyS`"
8381 ac_cv_c_bigendian=yes
8383 if test "`strings conftest.o | grep LiTTleEnDian`"
8385 ac_cv_c_bigendian=no
8392 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8393 if test x$ac_cv_c_bigendian = xunknown
8395 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8399 if test $ac_cv_c_bigendian = yes
8401 cat >> confdefs.h <<\EOF
8402 #define WORDS_BIGENDIAN 1
8410 # Check whether --enable-gprof or --disable-gprof was given.
8411 if test "${enable_gprof+set}" = set; then
8412 enableval="$enable_gprof"
8413 if test "x$enable_gprof" = "xyes"
8423 # Check whether --enable-cprof or --disable-cprof was given.
8424 if test "${enable_cprof+set}" = set; then
8425 enableval="$enable_cprof"
8426 if test "x$enable_cprof" = "xyes"
8428 LDFLAGS="${LDFLAGS} -lcprof"
8436 # Check whether --enable-pth or --disable-pth was given.
8437 if test "${enable_pth+set}" = set; then
8438 enableval="$enable_pth"
8439 if test "x$enable_pth" = "xyes"; then
8440 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8441 echo "configure:8442: checking for pth_init in -lpth" >&5
8442 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
8446 ac_save_LIBS="$LIBS"
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8460 if { (eval echo configure:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 eval "ac_cv_lib_$ac_lib_var=yes"
8464 echo "configure: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8467 eval "ac_cv_lib_$ac_lib_var=no"
8470 LIBS="$ac_save_LIBS"
8473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8477 cat >> confdefs.h <<EOF
8478 #define $ac_tr_lib 1
8484 echo "$ac_t""no" 1>&6
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8493 egrep "pth_init" >/dev/null 2>&1; then
8496 cat >> confdefs.h <<\EOF
8497 #define PTH_INIT_IN_PTH_H 1
8509 # Check whether --enable-st or --disable-st was given.
8510 if test "${enable_st+set}" = set; then
8511 enableval="$enable_st"
8512 if test "x$enable_st" = "xyes"; then
8513 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8514 echo "configure:8515: checking for st_init in -lst" >&5
8515 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8519 ac_save_LIBS="$LIBS"
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 /* Override any gcc2 internal prototype to avoid an error. */
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8535 eval "ac_cv_lib_$ac_lib_var=yes"
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 eval "ac_cv_lib_$ac_lib_var=no"
8543 LIBS="$ac_save_LIBS"
8546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6
8548 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8550 cat >> confdefs.h <<EOF
8551 #define $ac_tr_lib 1
8557 echo "$ac_t""no" 1>&6
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8566 egrep "st_init" >/dev/null 2>&1; then
8569 cat >> confdefs.h <<\EOF
8570 #define ST_INIT_IN_ST_H 1
8582 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8583 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8585 # Check whether --enable-plugins or --disable-plugins was given.
8586 if test "${enable_plugins+set}" = set; then
8587 enableval="$enable_plugins"
8588 if test x$enable_plugins = xno
8590 BUILTINS="${BUILTINS} ${PLUGINS}"
8596 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8598 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8600 BUILTINS="${BUILTINS} ${PLUGINS}"
8604 cat >> confdefs.h <<EOF
8605 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8608 cat >> confdefs.h <<EOF
8609 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8612 cat >> confdefs.h <<EOF
8613 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8617 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8618 cat >> confdefs.h <<EOF
8619 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8622 cat >> confdefs.h <<EOF
8623 #define MODULE_SYMBOL $VLC_SYMBOL
8627 DATA_PATH="${ac_tool_prefix}/share/videolan"
8629 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8632 CPPFLAGS="${save_CPPFLAGS}"
8633 CFLAGS="${save_CFLAGS}"
8634 LDFLAGS="${save_LDFLAGS}"
8733 cat > confcache <<\EOF
8734 # This file is a shell script that caches the results of configure
8735 # tests run on this system so they can be shared between configure
8736 # scripts and configure runs. It is not useful on other systems.
8737 # If it contains results you don't want to keep, you may remove or edit it.
8739 # By default, configure uses ./config.cache as the cache file,
8740 # creating it if it does not exist already. You can give configure
8741 # the --cache-file=FILE option to use a different cache file; that is
8742 # what configure does when it calls configure scripts in
8743 # subdirectories, so they share the cache.
8744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8745 # config.status only pays attention to the cache file if you give it the
8746 # --recheck option to rerun configure.
8749 # The following way of writing the cache mishandles newlines in values,
8750 # but we know of no workaround that is simple, portable, and efficient.
8751 # So, don't put newlines in cache variables' values.
8752 # Ultrix sh set writes to stderr and can't be redirected directly,
8753 # and sets the high bit in the cache file unless we assign to the vars.
8755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8757 # `set' does not quote correctly, so add quotes (double-quote substitution
8758 # turns \\\\ into \\, and sed turns \\ into \).
8760 -e "s/'/'\\\\''/g" \
8761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8764 # `set' quotes correctly as required by POSIX, so do not add quotes.
8765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8768 if cmp -s $cache_file confcache; then
8771 if test -w $cache_file; then
8772 echo "updating cache $cache_file"
8773 cat confcache > $cache_file
8775 echo "not updating unwritable cache $cache_file"
8780 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8783 # Let make expand exec_prefix.
8784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8786 # Any assignment to VPATH causes Sun make to only execute
8787 # the first set of double-colon rules, so remove it if not needed.
8788 # If there is a colon in the path, we need to keep it.
8789 if test "x$srcdir" = x.; then
8790 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8793 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8795 DEFS=-DHAVE_CONFIG_H
8797 # Without the "./", some shells look in PATH for config.status.
8798 : ${CONFIG_STATUS=./config.status}
8800 echo creating $CONFIG_STATUS
8801 rm -f $CONFIG_STATUS
8802 cat > $CONFIG_STATUS <<EOF
8804 # Generated automatically by configure.
8805 # Run this file to recreate the current configuration.
8806 # This directory was configured as follows,
8807 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8809 # $0 $ac_configure_args
8811 # Compiler output produced by configure, useful for debugging
8812 # configure, is in ./config.log if it exists.
8814 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8817 case "\$ac_option" in
8818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8824 -help | --help | --hel | --he | --h)
8825 echo "\$ac_cs_usage"; exit 0 ;;
8826 *) echo "\$ac_cs_usage"; exit 1 ;;
8830 ac_given_srcdir=$srcdir
8831 ac_given_INSTALL="$INSTALL"
8833 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8835 cat >> $CONFIG_STATUS <<EOF
8837 # Protect against being on the right side of a sed subst in config.status.
8838 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8839 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8843 s%@CFLAGS@%$CFLAGS%g
8844 s%@CPPFLAGS@%$CPPFLAGS%g
8845 s%@CXXFLAGS@%$CXXFLAGS%g
8846 s%@FFLAGS@%$FFLAGS%g
8848 s%@LDFLAGS@%$LDFLAGS%g
8850 s%@exec_prefix@%$exec_prefix%g
8851 s%@prefix@%$prefix%g
8852 s%@program_transform_name@%$program_transform_name%g
8853 s%@bindir@%$bindir%g
8854 s%@sbindir@%$sbindir%g
8855 s%@libexecdir@%$libexecdir%g
8856 s%@datadir@%$datadir%g
8857 s%@sysconfdir@%$sysconfdir%g
8858 s%@sharedstatedir@%$sharedstatedir%g
8859 s%@localstatedir@%$localstatedir%g
8860 s%@libdir@%$libdir%g
8861 s%@includedir@%$includedir%g
8862 s%@oldincludedir@%$oldincludedir%g
8863 s%@infodir@%$infodir%g
8864 s%@mandir@%$mandir%g
8866 s%@host_alias@%$host_alias%g
8867 s%@host_cpu@%$host_cpu%g
8868 s%@host_vendor@%$host_vendor%g
8869 s%@host_os@%$host_os%g
8870 s%@target@%$target%g
8871 s%@target_alias@%$target_alias%g
8872 s%@target_cpu@%$target_cpu%g
8873 s%@target_vendor@%$target_vendor%g
8874 s%@target_os@%$target_os%g
8876 s%@build_alias@%$build_alias%g
8877 s%@build_cpu@%$build_cpu%g
8878 s%@build_vendor@%$build_vendor%g
8879 s%@build_os@%$build_os%g
8880 s%@SET_MAKE@%$SET_MAKE%g
8883 s%@RANLIB@%$RANLIB%g
8886 s%@ALLOCA@%$ALLOCA%g
8887 s%@GLIBC21@%$GLIBC21%g
8888 s%@LIBICONV@%$LIBICONV%g
8889 s%@USE_NLS@%$USE_NLS%g
8890 s%@MSGFMT@%$MSGFMT%g
8891 s%@GMSGFMT@%$GMSGFMT%g
8892 s%@XGETTEXT@%$XGETTEXT%g
8893 s%@INTLBISON@%$INTLBISON%g
8894 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8895 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8896 s%@CATALOGS@%$CATALOGS%g
8897 s%@CATOBJEXT@%$CATOBJEXT%g
8898 s%@GMOFILES@%$GMOFILES%g
8899 s%@INTLLIBS@%$INTLLIBS%g
8900 s%@INTLOBJS@%$INTLOBJS%g
8901 s%@POFILES@%$POFILES%g
8903 s%@DATADIRNAME@%$DATADIRNAME%g
8904 s%@INSTOBJEXT@%$INSTOBJEXT%g
8905 s%@GENCAT@%$GENCAT%g
8906 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8907 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8908 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8909 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8910 s%@INSTALL_DATA@%$INSTALL_DATA%g
8911 s%@WINDRES@%$WINDRES%g
8912 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8913 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8914 s%@SDL_CONFIG@%$SDL_CONFIG%g
8915 s%@ESD_CONFIG@%$ESD_CONFIG%g
8916 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8917 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8918 s%@GTK_CONFIG@%$GTK_CONFIG%g
8919 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8920 s%@DATA_PATH@%$DATA_PATH%g
8921 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8924 s%@PLUGINS@%$PLUGINS%g
8925 s%@BUILTINS@%$BUILTINS%g
8926 s%@ALIASES@%$ALIASES%g
8931 s%@OPTIMS@%$OPTIMS%g
8932 s%@TUNING@%$TUNING%g
8933 s%@RELEASE@%$RELEASE%g
8935 s%@BCBUILDER@%$BCBUILDER%g
8936 s%@PACKAGE@%$PACKAGE%g
8937 s%@VERSION@%$VERSION%g
8938 s%@NEED_GETOPT@%$NEED_GETOPT%g
8939 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8940 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8941 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8942 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8943 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8944 s%@a52_CFLAGS@%$a52_CFLAGS%g
8945 s%@arts_CFLAGS@%$arts_CFLAGS%g
8946 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
8947 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8948 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8949 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8950 s%@directx_CFLAGS@%$directx_CFLAGS%g
8951 s%@esd_CFLAGS@%$esd_CFLAGS%g
8952 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8953 s%@glide_CFLAGS@%$glide_CFLAGS%g
8954 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8955 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8956 s%@kde_CFLAGS@%$kde_CFLAGS%g
8957 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8958 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8959 s%@mad_CFLAGS@%$mad_CFLAGS%g
8960 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8961 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8962 s%@qt_CFLAGS@%$qt_CFLAGS%g
8963 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8964 s%@x11_CFLAGS@%$x11_CFLAGS%g
8965 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8966 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8967 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8968 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8969 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8970 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8971 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8972 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8973 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8974 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8975 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8976 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8977 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8978 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8979 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8980 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8981 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8982 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8983 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8984 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8985 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8986 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8987 s%@http_LDFLAGS@%$http_LDFLAGS%g
8988 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8989 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8990 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8991 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8992 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8993 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
8994 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8995 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8996 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8997 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8998 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8999 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9000 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9001 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9002 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9003 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9004 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9005 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9006 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9007 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9008 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9009 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9014 cat >> $CONFIG_STATUS <<\EOF
9016 # Split the substitutions into bite-sized pieces for seds with
9017 # small command number limits, like on Digital OSF/1 and HP-UX.
9018 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9019 ac_file=1 # Number of current file.
9020 ac_beg=1 # First line for current file.
9021 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9024 while $ac_more_lines; do
9025 if test $ac_beg -gt 1; then
9026 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9028 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9030 if test ! -s conftest.s$ac_file; then
9032 rm -f conftest.s$ac_file
9034 if test -z "$ac_sed_cmds"; then
9035 ac_sed_cmds="sed -f conftest.s$ac_file"
9037 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9039 ac_file=`expr $ac_file + 1`
9041 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9044 if test -z "$ac_sed_cmds"; then
9049 cat >> $CONFIG_STATUS <<EOF
9051 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9053 cat >> $CONFIG_STATUS <<\EOF
9054 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9057 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9058 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9059 *) ac_file_in="${ac_file}.in" ;;
9062 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9064 # Remove last slash and all that follows it. Not all systems have dirname.
9065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9067 # The file is in a subdirectory.
9068 test ! -d "$ac_dir" && mkdir "$ac_dir"
9069 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9070 # A "../" for each directory in $ac_dir_suffix.
9071 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9073 ac_dir_suffix= ac_dots=
9076 case "$ac_given_srcdir" in
9078 if test -z "$ac_dots"; then top_srcdir=.
9079 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9080 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9082 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9083 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9086 case "$ac_given_INSTALL" in
9087 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9088 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9091 echo creating "$ac_file"
9093 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9095 *Makefile*) ac_comsub="1i\\
9096 # $configure_input" ;;
9100 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9102 s%@configure_input@%$configure_input%g
9103 s%@srcdir@%$srcdir%g
9104 s%@top_srcdir@%$top_srcdir%g
9105 s%@INSTALL@%$INSTALL%g
9106 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9110 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9111 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9113 # ac_d sets the value in "#define NAME VALUE" lines.
9114 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9115 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9118 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9119 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9120 ac_uB='\([ ]\)%\1#\2define\3'
9123 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9124 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9125 ac_eB='$%\1#\2define\3'
9129 if test "${CONFIG_HEADERS+set}" != set; then
9131 cat >> $CONFIG_STATUS <<EOF
9132 CONFIG_HEADERS="include/defs.h"
9134 cat >> $CONFIG_STATUS <<\EOF
9136 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9139 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9140 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9141 *) ac_file_in="${ac_file}.in" ;;
9144 echo creating $ac_file
9146 rm -f conftest.frag conftest.in conftest.out
9147 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9148 cat $ac_file_inputs > conftest.in
9152 # Transform confdefs.h into a sed script conftest.vals that substitutes
9153 # the proper values into config.h.in to produce config.h. And first:
9154 # Protect against being on the right side of a sed subst in config.status.
9155 # Protect against being in an unquoted here document in config.status.
9157 cat > conftest.hdr <<\EOF
9160 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9164 sed -n -f conftest.hdr confdefs.h > conftest.vals
9167 # This sed command replaces #undef with comments. This is necessary, for
9168 # example, in the case of _POSIX_SOURCE, which is predefined and required
9169 # on some systems where configure will not decide to define it.
9170 cat >> conftest.vals <<\EOF
9171 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9174 # Break up conftest.vals because some shells have a limit on
9175 # the size of here documents, and old seds have small limits too.
9180 ac_lines=`grep -c . conftest.vals`
9181 # grep -c gives empty output for an empty file on some AIX systems.
9182 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9183 # Write a limited-size here document to conftest.frag.
9184 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9185 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9187 sed -f conftest.frag conftest.in > conftest.out
9189 mv conftest.out conftest.in
9191 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9193 mv conftest.tail conftest.vals
9197 cat >> $CONFIG_STATUS <<\EOF
9198 rm -f conftest.frag conftest.h
9199 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9200 cat conftest.in >> conftest.h
9202 if cmp -s $ac_file conftest.h 2>/dev/null; then
9203 echo "$ac_file is unchanged"
9206 # Remove last slash and all that follows it. Not all systems have dirname.
9207 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9208 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9209 # The file is in a subdirectory.
9210 test ! -d "$ac_dir" && mkdir "$ac_dir"
9213 mv conftest.h $ac_file
9218 cat >> $CONFIG_STATUS <<EOF
9222 cat >> $CONFIG_STATUS <<\EOF
9223 for ac_file in $CONFIG_FILES; do
9224 # Support "outfile[:infile[:infile...]]"
9226 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9228 # PO directories have a Makefile.in generated from Makefile.in.in.
9229 case "$ac_file" in */Makefile.in)
9230 # Adjust a relative srcdir.
9231 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9232 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9233 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9234 # In autoconf-2.13 it is called $ac_given_srcdir.
9235 # In autoconf-2.50 it is called $srcdir.
9236 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9237 case "$ac_given_srcdir" in
9238 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9239 /*) top_srcdir="$ac_given_srcdir" ;;
9240 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9242 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9243 rm -f "$ac_dir/POTFILES"
9244 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9245 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9246 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9247 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9255 chmod +x $CONFIG_STATUS
9256 rm -fr confdefs* $ac_clean_files
9257 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9262 --------------------
9263 vlc version : ${VERSION}
9265 architecture : ${ARCH}
9266 optimizations : ${OPTIMS}
9268 debug mode : ${DEBUG}
9269 release : ${RELEASE}
9270 profiling : ${PROFILING}
9271 need builtin getopt : ${NEED_GETOPT}
9272 built-in modules :${BUILTINS}
9273 plug-in modules :${PLUGINS}
9274 vlc aliases :${ALIASES}
9276 You may now tune Makefile.opts at your convenience, for instance to choose
9277 which modules get compiled as plugins.
9279 To build vlc and its plugins, type \`$VLC_MAKE'.