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 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --with-mad-tree=PATH mad tree for static linking"
66 --enable-ffmpeg ffmpeg codec (default disabled)"
68 --with-ffmpeg=PATH path to ffmpeg installation"
70 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
72 --enable-a52 AC3 support with liba52 (default enabled)"
74 --with-a52-tree=PATH a52dec tree for static linking "
76 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
80 --enable-x11 X11 support (default enabled)"
82 --enable-xvideo XVideo support (default enabled)"
84 --enable-sdl SDL support (default enabled)"
86 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
88 --enable-directx Win32 DirectX support (default enabled on Win32)"
90 --with-directx=PATH Win32 DirectX headers and libraries"
92 --enable-fb Linux framebuffer support (default enabled on Linux)"
94 --enable-mga Linux kernel Matrox support (default disabled)"
96 --enable-ggi GGI support (default disabled)"
98 --with-ggi=PATH path to libggi"
100 --enable-glide Glide (3dfx) support (default disabled)"
102 --with-glide=PATH path to libglide"
104 --enable-aa aalib output (default disabled)"
108 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
110 --enable-esd Esound library support (default disabled)"
112 --enable-arts aRts sound server (default disabled)"
114 --enable-alsa ALSA sound support for Linux (default disabled)"
116 --enable-waveout Win32 waveOut module (default enabled on Win32)"
120 --enable-gtk Gtk+ support (default enabled)"
122 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
124 --enable-gnome Gnome interface support (default disabled)"
126 --enable-qt Qt interface support (default disabled)"
128 --enable-kde KDE interface support (default disabled)"
130 --enable-macosx MacOS X support (default enabled on MacOS X)"
132 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
134 --enable-intfwin Win32 interface support (default disabled)"
136 --with-bcbuilder=PATH Borland C++ Builder installation path"
138 --enable-ncurses ncurses interface support (default disabled)"
140 --enable-lirc lirc support (default disabled)"
144 --with-words=endianness set endianness (big or little)"
146 --enable-gprof gprof profiling (default disabled)"
148 --enable-cprof cprof profiling (default disabled)"
150 --enable-pth GNU Pth support (default disabled)"
152 --enable-st State Threads (default disabled)"
154 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
156 # Initialize some variables set by options.
157 # The variables have the same names as the options, with
158 # dashes changed to underlines.
160 cache_file=./config.cache
169 program_transform_name=s,x,x,
177 bindir='${exec_prefix}/bin'
178 sbindir='${exec_prefix}/sbin'
179 libexecdir='${exec_prefix}/libexec'
180 datadir='${prefix}/share'
181 sysconfdir='${prefix}/etc'
182 sharedstatedir='${prefix}/com'
183 localstatedir='${prefix}/var'
184 libdir='${exec_prefix}/lib'
185 includedir='${prefix}/include'
186 oldincludedir='/usr/include'
187 infodir='${prefix}/info'
188 mandir='${prefix}/man'
190 # Initialize some other variables.
193 SHELL=${CONFIG_SHELL-/bin/sh}
194 # Maximum number of lines to put in a shell here document.
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
209 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
213 # Accept the important Cygnus configure options, so we can diagnose typos.
217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220 bindir="$ac_optarg" ;;
222 -build | --build | --buil | --bui | --bu)
224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225 build="$ac_optarg" ;;
227 -cache-file | --cache-file | --cache-fil | --cache-fi \
228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229 ac_prev=cache_file ;;
230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232 cache_file="$ac_optarg" ;;
234 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
236 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
238 datadir="$ac_optarg" ;;
240 -disable-* | --disable-*)
241 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix="$ac_optarg" ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host | --host | --hos | --ho)
332 -host=* | --host=* | --hos=* | --ho=*)
335 -includedir | --includedir | --includedi | --included | --include \
336 | --includ | --inclu | --incl | --inc)
337 ac_prev=includedir ;;
338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339 | --includ=* | --inclu=* | --incl=* | --inc=*)
340 includedir="$ac_optarg" ;;
342 -infodir | --infodir | --infodi | --infod | --info | --inf)
344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345 infodir="$ac_optarg" ;;
347 -libdir | --libdir | --libdi | --libd)
349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
350 libdir="$ac_optarg" ;;
352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353 | --libexe | --libex | --libe)
354 ac_prev=libexecdir ;;
355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356 | --libexe=* | --libex=* | --libe=*)
357 libexecdir="$ac_optarg" ;;
359 -localstatedir | --localstatedir | --localstatedi | --localstated \
360 | --localstate | --localstat | --localsta | --localst \
361 | --locals | --local | --loca | --loc | --lo)
362 ac_prev=localstatedir ;;
363 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366 localstatedir="$ac_optarg" ;;
368 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
370 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371 mandir="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
381 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
385 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387 | --oldin | --oldi | --old | --ol | --o)
388 ac_prev=oldincludedir ;;
389 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392 oldincludedir="$ac_optarg" ;;
394 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
396 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397 prefix="$ac_optarg" ;;
399 -program-prefix | --program-prefix | --program-prefi | --program-pref \
400 | --program-pre | --program-pr | --program-p)
401 ac_prev=program_prefix ;;
402 -program-prefix=* | --program-prefix=* | --program-prefi=* \
403 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404 program_prefix="$ac_optarg" ;;
406 -program-suffix | --program-suffix | --program-suffi | --program-suff \
407 | --program-suf | --program-su | --program-s)
408 ac_prev=program_suffix ;;
409 -program-suffix=* | --program-suffix=* | --program-suffi=* \
410 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411 program_suffix="$ac_optarg" ;;
413 -program-transform-name | --program-transform-name \
414 | --program-transform-nam | --program-transform-na \
415 | --program-transform-n | --program-transform- \
416 | --program-transform | --program-transfor \
417 | --program-transfo | --program-transf \
418 | --program-trans | --program-tran \
419 | --progr-tra | --program-tr | --program-t)
420 ac_prev=program_transform_name ;;
421 -program-transform-name=* | --program-transform-name=* \
422 | --program-transform-nam=* | --program-transform-na=* \
423 | --program-transform-n=* | --program-transform-=* \
424 | --program-transform=* | --program-transfor=* \
425 | --program-transfo=* | --program-transf=* \
426 | --program-trans=* | --program-tran=* \
427 | --progr-tra=* | --program-tr=* | --program-t=*)
428 program_transform_name="$ac_optarg" ;;
430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431 | -silent | --silent | --silen | --sile | --sil)
434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
438 sbindir="$ac_optarg" ;;
440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442 | --sharedst | --shareds | --shared | --share | --shar \
444 ac_prev=sharedstatedir ;;
445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
449 sharedstatedir="$ac_optarg" ;;
451 -site | --site | --sit)
453 -site=* | --site=* | --sit=*)
456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459 srcdir="$ac_optarg" ;;
461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462 | --syscon | --sysco | --sysc | --sys | --sy)
463 ac_prev=sysconfdir ;;
464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466 sysconfdir="$ac_optarg" ;;
468 -target | --target | --targe | --targ | --tar | --ta | --t)
470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471 target="$ac_optarg" ;;
473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
476 -version | --version | --versio | --versi | --vers)
477 echo "configure generated by autoconf version 2.13"
481 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes="$ac_optarg" ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569 | --no-cr | --no-c) ;;
570 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file=include/main.h
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE; then
623 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
625 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
639 echo "creating cache $cache_file"
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
652 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
653 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
654 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
661 ac_n= ac_c='\c' ac_t=
667 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
668 if test -f $ac_dir/install-sh; then
670 ac_install_sh="$ac_aux_dir/install-sh -c"
672 elif test -f $ac_dir/install.sh; then
674 ac_install_sh="$ac_aux_dir/install.sh -c"
678 if test -z "$ac_aux_dir"; then
679 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
681 ac_config_guess=$ac_aux_dir/config.guess
682 ac_config_sub=$ac_aux_dir/config.sub
683 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
686 # Do some error checking and defaulting for the host and target type.
688 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
691 # 1. You are not allowed to specify --host, --target, and nonopt at the
693 # 2. Host defaults to nonopt.
694 # 3. If nonopt is not specified, then host defaults to the current host,
695 # as determined by config.guess.
696 # 4. Target and build default to nonopt.
697 # 5. If nonopt is not specified, then target and build default to host.
699 # The aliases save the names the user supplied, while $host etc.
700 # will get canonicalized.
701 case $host---$target---$nonopt in
702 NONE---*---* | *---NONE---* | *---*---NONE) ;;
703 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707 # Make sure we can run config.sub.
708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 echo $ac_n "checking host system type""... $ac_c" 1>&6
713 echo "configure:714: checking host system type" >&5
716 case "$host_alias" in
720 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
723 *) host_alias=$nonopt ;;
727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
728 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$host" 1>&6
733 echo $ac_n "checking target system type""... $ac_c" 1>&6
734 echo "configure:735: checking target system type" >&5
737 case "$target_alias" in
740 NONE) target_alias=$host_alias ;;
741 *) target_alias=$nonopt ;;
745 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
746 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$target" 1>&6
751 echo $ac_n "checking build system type""... $ac_c" 1>&6
752 echo "configure:753: checking build system type" >&5
755 case "$build_alias" in
758 NONE) build_alias=$host_alias ;;
759 *) build_alias=$nonopt ;;
763 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
764 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$build" 1>&6
769 test "$host_alias" != "$target_alias" &&
770 test "$program_prefix$program_suffix$program_transform_name" = \
772 program_prefix=${target_alias}-
779 save_CFLAGS="${CFLAGS}"
780 save_CPPFLAGS="${CPPFLAGS}"
781 save_LDFLAGS="${LDFLAGS}"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftestmake <<\EOF
791 @echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_${ac_make}_set=yes
798 eval ac_cv_prog_make_${ac_make}_set=no
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
806 echo "$ac_t""no" 1>&6
807 SET_MAKE="MAKE=${MAKE-make}"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy "$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
948 ac_cv_prog_cc_cross=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c <<EOF
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1032 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C preprocessor" >&5
1034 # On Suns, sometimes $CPP names a directory.
1035 if test -n "$CPP" && test -d "$CPP"; then
1038 if test -z "$CPP"; then
1039 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 # This must be in double quotes, not single quotes, because CPP may get
1043 # substituted into the Makefile and "${CC-cc}" will confuse make.
1045 # On the NeXT, cc -E runs the code through the compiler's parser,
1046 # not just through cpp.
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1063 CPP="${CC-cc} -E -traditional-cpp"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1080 CPP="${CC-cc} -nologo -E"
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1104 ac_cv_prog_CPP="$CPP"
1106 CPP="$ac_cv_prog_CPP"
1108 ac_cv_prog_CPP="$CPP"
1110 echo "$ac_t""$CPP" 1>&6
1113 if test $host != $build; then
1114 ac_tool_prefix=${host_alias}-
1119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1149 if test -z "$ac_cv_prog_RANLIB"; then
1150 if test -n "$ac_tool_prefix"; then
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_RANLIB="ranlib"
1171 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1174 RANLIB="$ac_cv_prog_RANLIB"
1175 if test -n "$RANLIB"; then
1176 echo "$ac_t""$RANLIB" 1>&6
1178 echo "$ac_t""no" 1>&6
1186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}strip; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$STRIP"; then
1194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1208 STRIP="$ac_cv_prog_STRIP"
1209 if test -n "$STRIP"; then
1210 echo "$ac_t""$STRIP" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_STRIP"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "strip", so it can be a program name with args.
1219 set dummy strip; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -n "$STRIP"; then
1226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_STRIP="strip"
1238 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1241 STRIP="$ac_cv_prog_STRIP"
1242 if test -n "$STRIP"; then
1243 echo "$ac_t""$STRIP" 1>&6
1245 echo "$ac_t""no" 1>&6
1254 # Extract the first word of "gmake", so it can be a program name with args.
1255 set dummy gmake; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1263 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1266 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1279 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1283 GMAKE="$ac_cv_path_GMAKE"
1284 if test -n "$GMAKE"; then
1285 echo "$ac_t""$GMAKE" 1>&6
1287 echo "$ac_t""no" 1>&6
1290 if test "x$GMAKE" = "xno"; then
1291 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1292 echo "configure:1293: checking whether GNU make is installed" >&5
1293 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if make --version | grep -q -i gnu; then
1299 echo "This software needs you to install GNU make to compile properly."
1300 echo "You can get it from http://www.gnu.org/."
1305 echo "$ac_t""$ac_cv_gmake" 1>&6
1311 ALL_LINGUAS="de en_GB fr ja no ru nl"
1313 cat >> confdefs.h <<EOF
1314 #define VLC_PACKAGE "$PACKAGE"
1317 cat >> confdefs.h <<EOF
1318 #define VLC_VERSION "$VERSION"
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_RANLIB="ranlib"
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1344 RANLIB="$ac_cv_prog_RANLIB"
1345 if test -n "$RANLIB"; then
1346 echo "$ac_t""$RANLIB" 1>&6
1348 echo "$ac_t""no" 1>&6
1352 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for strerror in -lcposix" >&5
1354 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 ac_save_LIBS="$LIBS"
1359 LIBS="-lcposix $LIBS"
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* Override any gcc2 internal prototype to avoid an error. */
1364 /* We use char because int might match the return type of a gcc2
1365 builtin and then its argument prototype would still apply. */
1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 eval "ac_cv_lib_$ac_lib_var=yes"
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1379 eval "ac_cv_lib_$ac_lib_var=no"
1382 LIBS="$ac_save_LIBS"
1385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1386 echo "$ac_t""yes" 1>&6
1387 LIBS="$LIBS -lcposix"
1389 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1395 echo "configure:1396: checking for ANSI C header files" >&5
1396 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1412 ac_cv_header_stdc=yes
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 ac_cv_header_stdc=no
1422 if test $ac_cv_header_stdc = yes; then
1423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "memchr" >/dev/null 2>&1; then
1434 ac_cv_header_stdc=no
1440 if test $ac_cv_header_stdc = yes; then
1441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448 egrep "free" >/dev/null 2>&1; then
1452 ac_cv_header_stdc=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1460 if test "$cross_compiling" = yes; then
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1467 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1468 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1470 int main () { int i; for (i = 0; i < 256; i++)
1471 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 ac_cv_header_stdc=no
1490 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1491 if test $ac_cv_header_stdc = yes; then
1492 cat >> confdefs.h <<\EOF
1493 #define STDC_HEADERS 1
1498 echo $ac_n "checking for working const""... $ac_c" 1>&6
1499 echo "configure:1500: checking for working const" >&5
1500 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 /* Ultrix mips cc rejects this. */
1510 typedef int charset[2]; const charset x;
1511 /* SunOS 4.1.1 cc rejects this. */
1512 char const *const *ccp;
1514 /* NEC SVR4.0.2 mips cc rejects this. */
1515 struct point {int x, y;};
1516 static struct point const zero = {0,0};
1517 /* AIX XL C 1.02.0.0 rejects this.
1518 It does not let you subtract one const X* pointer from another in an arm
1519 of an if-expression whose if-part is not a constant expression */
1520 const char *g = "string";
1521 ccp = &g + (g ? g-g : 0);
1522 /* HPUX 7.0 cc rejects these. */
1525 ccp = (char const *const *) p;
1526 { /* SCO 3.2v4 cc rejects this. */
1528 char const *s = 0 ? (char *) 0 : (char const *) 0;
1532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1534 const int *foo = &x[0];
1537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1538 typedef const int *iptr;
1542 { /* AIX XL C 1.02.0.0 rejects this saying
1543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1544 struct s { int j; const int *ap[3]; };
1545 struct s *b; b->j = 5;
1547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1553 if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1565 echo "$ac_t""$ac_cv_c_const" 1>&6
1566 if test $ac_cv_c_const = no; then
1567 cat >> confdefs.h <<\EOF
1573 echo $ac_n "checking for inline""... $ac_c" 1>&6
1574 echo "configure:1575: checking for inline" >&5
1575 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1579 for ac_kw in inline __inline__ __inline; do
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1588 if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1590 ac_cv_c_inline=$ac_kw; break
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1600 echo "$ac_t""$ac_cv_c_inline" 1>&6
1601 case "$ac_cv_c_inline" in
1603 no) cat >> confdefs.h <<\EOF
1607 *) cat >> confdefs.h <<EOF
1608 #define inline $ac_cv_c_inline
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1630 ac_cv_type_off_t=yes
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no; then
1640 cat >> confdefs.h <<\EOF
1646 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1647 echo "configure:1648: checking for size_t" >&5
1648 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1663 ac_cv_type_size_t=yes
1666 ac_cv_type_size_t=no
1671 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1672 if test $ac_cv_type_size_t = no; then
1673 cat >> confdefs.h <<\EOF
1674 #define size_t unsigned
1679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1680 # for constant arguments. Useless!
1681 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1682 echo "configure:1683: checking for working alloca.h" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1691 char *p = alloca(2 * sizeof(int));
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 ac_cv_header_alloca_h=yes
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 ac_cv_header_alloca_h=no
1706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1707 if test $ac_cv_header_alloca_h = yes; then
1708 cat >> confdefs.h <<\EOF
1709 #define HAVE_ALLOCA_H 1
1714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1715 echo "configure:1716: checking for alloca" >&5
1716 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1724 # define alloca __builtin_alloca
1727 # include <malloc.h>
1728 # define alloca _alloca
1731 # include <alloca.h>
1736 # ifndef alloca /* predefined by HP cc +Olibcalls */
1745 char *p = (char *) alloca(1);
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 ac_cv_func_alloca_works=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 ac_cv_func_alloca_works=no
1760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1761 if test $ac_cv_func_alloca_works = yes; then
1762 cat >> confdefs.h <<\EOF
1763 #define HAVE_ALLOCA 1
1768 if test $ac_cv_func_alloca_works = no; then
1769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1770 # that cause trouble. Some versions do not even contain alloca or
1771 # contain a buggy version. If you still want to use their alloca,
1772 # use ar to extract alloca.o from them instead of compiling alloca.c.
1773 ALLOCA=alloca.${ac_objext}
1774 cat >> confdefs.h <<\EOF
1779 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether alloca needs Cray hooks" >&5
1781 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 #if defined(CRAY) && ! defined(CRAY2)
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "webecray" >/dev/null 2>&1; then
1806 echo "$ac_t""$ac_cv_os_cray" 1>&6
1807 if test $ac_cv_os_cray = yes; then
1808 for ac_func in _getb67 GETB67 getb67; do
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 cat >> confdefs.h <<EOF
1853 #define CRAY_STACKSEG_END $ac_func
1858 echo "$ac_t""no" 1>&6
1864 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1865 echo "configure:1866: checking stack direction for C alloca" >&5
1866 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_c_stack_direction=0
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 find_stack_direction ()
1877 static char *addr = 0;
1882 return find_stack_direction ();
1885 return (&dummy > addr) ? 1 : -1;
1889 exit (find_stack_direction() < 0);
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1894 ac_cv_c_stack_direction=1
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 ac_cv_c_stack_direction=-1
1906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1907 cat >> confdefs.h <<EOF
1908 #define STACK_DIRECTION $ac_cv_c_stack_direction
1913 for ac_hdr in unistd.h
1915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1931 eval "ac_cv_header_$ac_safe=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_header_$ac_safe=no"
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h <<EOF
1945 #define $ac_tr_hdr 1
1949 echo "$ac_t""no" 1>&6
1953 for ac_func in getpagesize
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_func" >&5
1957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1966 /* Override any gcc2 internal prototype to avoid an error. */
1967 /* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 eval "ac_cv_func_$ac_func=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 eval "ac_cv_func_$ac_func=no"
1996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h <<EOF
2000 #define $ac_tr_func 1
2004 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2009 echo "configure:2010: checking for working mmap" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 if test "$cross_compiling" = yes; then
2014 ac_cv_func_mmap_fixed_mapped=no
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 /* Thanks to Mike Haertel and Jim Avera for this test.
2021 Here is a matrix of mmap possibilities:
2022 mmap private not fixed
2023 mmap private fixed at somewhere currently unmapped
2024 mmap private fixed at somewhere already mapped
2025 mmap shared not fixed
2026 mmap shared fixed at somewhere currently unmapped
2027 mmap shared fixed at somewhere already mapped
2028 For private mappings, we should verify that changes cannot be read()
2029 back from the file, nor mmap's back from the file at a different
2030 address. (There have been systems where private was not correctly
2031 implemented like the infamous i386 svr4.0, and systems where the
2032 VM page cache was not coherent with the filesystem buffer cache
2033 like early versions of FreeBSD and possibly contemporary NetBSD.)
2034 For shared mappings, we should conversely verify that changes get
2035 propogated back to all the places they're supposed to be.
2037 Grep wants private fixed already mapped.
2038 The main things grep needs to know about mmap are:
2039 * does it exist and is it safe to write into the mmap'd area
2040 * how to use it (BSD variants) */
2041 #include <sys/types.h>
2043 #include <sys/mman.h>
2045 /* This mess was copied from the GNU getpagesize.h. */
2046 #ifndef HAVE_GETPAGESIZE
2047 # ifdef HAVE_UNISTD_H
2048 # include <unistd.h>
2051 /* Assume that all systems that can run configure have sys/param.h. */
2052 # ifndef HAVE_SYS_PARAM_H
2053 # define HAVE_SYS_PARAM_H 1
2056 # ifdef _SC_PAGESIZE
2057 # define getpagesize() sysconf(_SC_PAGESIZE)
2058 # else /* no _SC_PAGESIZE */
2059 # ifdef HAVE_SYS_PARAM_H
2060 # include <sys/param.h>
2061 # ifdef EXEC_PAGESIZE
2062 # define getpagesize() EXEC_PAGESIZE
2063 # else /* no EXEC_PAGESIZE */
2065 # define getpagesize() NBPG * CLSIZE
2068 # endif /* no CLSIZE */
2069 # else /* no NBPG */
2071 # define getpagesize() NBPC
2072 # else /* no NBPC */
2074 # define getpagesize() PAGESIZE
2075 # endif /* PAGESIZE */
2076 # endif /* no NBPC */
2077 # endif /* no NBPG */
2078 # endif /* no EXEC_PAGESIZE */
2079 # else /* no HAVE_SYS_PARAM_H */
2080 # define getpagesize() 8192 /* punt totally */
2081 # endif /* no HAVE_SYS_PARAM_H */
2082 # endif /* no _SC_PAGESIZE */
2084 #endif /* no HAVE_GETPAGESIZE */
2087 extern "C" { void *malloc(unsigned); }
2095 char *data, *data2, *data3;
2099 pagesize = getpagesize();
2102 * First, make a file with some known garbage in it.
2104 data = malloc(pagesize);
2107 for (i = 0; i < pagesize; ++i)
2108 *(data + i) = rand();
2110 fd = creat("conftestmmap", 0600);
2113 if (write(fd, data, pagesize) != pagesize)
2118 * Next, try to mmap the file at a fixed address which
2119 * already has something else allocated at it. If we can,
2120 * also make sure that we see the same garbage.
2122 fd = open("conftestmmap", O_RDWR);
2125 data2 = malloc(2 * pagesize);
2128 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2129 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data2 + i))
2137 * Finally, make sure that changes to the mapped area
2138 * do not percolate back to the file as seen by read().
2139 * (This is a bug on some variants of i386 svr4.0.)
2141 for (i = 0; i < pagesize; ++i)
2142 *(data2 + i) = *(data2 + i) + 1;
2143 data3 = malloc(pagesize);
2146 if (read(fd, data3, pagesize) != pagesize)
2148 for (i = 0; i < pagesize; ++i)
2149 if (*(data + i) != *(data3 + i))
2152 unlink("conftestmmap");
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2159 ac_cv_func_mmap_fixed_mapped=yes
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 ac_cv_func_mmap_fixed_mapped=no
2171 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2173 cat >> confdefs.h <<\EOF
2180 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether we are using the GNU C Library 2.1 or newer" >&5
2182 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2189 #include <features.h>
2190 #ifdef __GNU_LIBRARY__
2191 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "Lucky GNU user" >/dev/null 2>&1; then
2200 ac_cv_gnu_library_2_1=yes
2203 ac_cv_gnu_library_2_1=no
2211 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2213 GLIBC21="$ac_cv_gnu_library_2_1"
2217 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2218 stdlib.h string.h unistd.h sys/param.h
2220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2258 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2259 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2260 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_func" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $ac_func(); below. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 eval "ac_cv_func_$ac_func=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_func_$ac_func=no"
2303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_func 1
2311 echo "$ac_t""no" 1>&6
2318 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2319 if test "${with_libiconv_prefix+set}" = set; then
2320 withval="$with_libiconv_prefix"
2322 for dir in `echo "$withval" | tr : ' '`; do
2323 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2324 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2330 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2331 echo "configure:2332: checking for iconv" >&5
2332 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2336 am_cv_func_iconv="no, consider installing GNU libiconv"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2344 iconv_t cd = iconv_open("","");
2345 iconv(cd,NULL,NULL,NULL,NULL);
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 am_cv_func_iconv=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2357 if test "$am_cv_func_iconv" != yes; then
2358 am_save_LIBS="$LIBS"
2359 LIBS="$LIBS -liconv"
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2366 iconv_t cd = iconv_open("","");
2367 iconv(cd,NULL,NULL,NULL,NULL);
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374 am_cv_func_iconv=yes
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2380 LIBS="$am_save_LIBS"
2385 echo "$ac_t""$am_cv_func_iconv" 1>&6
2386 if test "$am_cv_func_iconv" = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_ICONV 1
2391 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2392 echo "configure:2393: checking for iconv declaration" >&5
2393 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2407 #if defined(__STDC__) || defined(__cplusplus)
2408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 am_cv_proto_iconv_arg1=""
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2424 am_cv_proto_iconv_arg1="const"
2427 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);"
2430 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2431 echo "$ac_t""${ac_t:-
2432 }$am_cv_proto_iconv" 1>&6
2433 cat >> confdefs.h <<EOF
2434 #define ICONV_CONST $am_cv_proto_iconv_arg1
2439 if test "$am_cv_lib_iconv" = yes; then
2445 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2446 echo "configure:2447: checking for nl_langinfo and CODESET" >&5
2447 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <langinfo.h>
2455 char* cs = nl_langinfo(CODESET);
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 am_cv_langinfo_codeset=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 am_cv_langinfo_codeset=no
2471 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2472 if test $am_cv_langinfo_codeset = yes; then
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_LANGINFO_CODESET 1
2479 if test $ac_cv_header_locale_h = yes; then
2480 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2481 echo "configure:2482: checking for LC_MESSAGES" >&5
2482 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 am_cv_val_LC_MESSAGES=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 am_cv_val_LC_MESSAGES=no
2505 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2506 if test $am_cv_val_LC_MESSAGES = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LC_MESSAGES 1
2513 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether NLS is requested" >&5
2515 # Check whether --enable-nls or --disable-nls was given.
2516 if test "${enable_nls+set}" = set; then
2517 enableval="$enable_nls"
2523 echo "$ac_t""$USE_NLS" 1>&6
2526 BUILD_INCLUDED_LIBINTL=no
2527 USE_INCLUDED_LIBINTL=no
2530 if test "$USE_NLS" = "yes"; then
2531 cat >> confdefs.h <<\EOF
2532 #define ENABLE_NLS 1
2535 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether included gettext is requested" >&5
2537 # Check whether --with-included-gettext or --without-included-gettext was given.
2538 if test "${with_included_gettext+set}" = set; then
2539 withval="$with_included_gettext"
2540 nls_cv_force_use_gnu_gettext=$withval
2542 nls_cv_force_use_gnu_gettext=no
2545 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2547 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2548 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2554 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2556 echo "configure:2557: checking for libintl.h" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <libintl.h>
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 eval "ac_cv_header_$ac_safe=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_header_$ac_safe=no"
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2583 echo "configure:2584: checking for GNU gettext in libc" >&5
2584 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2591 extern int _nl_msg_cat_cntr;
2593 bindtextdomain ("", "");
2594 return (int) gettext ("") + _nl_msg_cat_cntr
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 gt_cv_func_gnugettext1_libc=yes
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 gt_cv_func_gnugettext1_libc=no
2609 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2612 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2613 echo "configure:2614: checking for GNU gettext in libintl" >&5
2614 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 gt_save_LIBS="$LIBS"
2618 LIBS="$LIBS -lintl $LIBICONV"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <libintl.h>
2623 extern int _nl_msg_cat_cntr;
2625 bindtextdomain ("", "");
2626 return (int) gettext ("") + _nl_msg_cat_cntr
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 gt_cv_func_gnugettext1_libintl=yes
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 gt_cv_func_gnugettext1_libintl=no
2639 LIBS="$gt_save_LIBS"
2642 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2646 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2647 && test "$PACKAGE" != gettext; }; then
2648 cat >> confdefs.h <<\EOF
2649 #define HAVE_GETTEXT 1
2653 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2654 INTLLIBS="-lintl $LIBICONV"
2657 gt_save_LIBS="$LIBS"
2658 LIBS="$LIBS $INTLLIBS"
2659 for ac_func in dcgettext
2661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_func" >&5
2663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $ac_func(); below. */
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2679 /* The GNU C library defines this for functions which it implements
2680 to always fail with ENOSYS. Some functions are actually named
2681 something starting with __ and the normal name is an alias. */
2682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 eval "ac_cv_func_$ac_func=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_func_$ac_func=no"
2702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_func 1
2710 echo "$ac_t""no" 1>&6
2714 LIBS="$gt_save_LIBS"
2716 # Extract the first word of "msgfmt", so it can be a program name with args.
2717 set dummy msgfmt; ac_word=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2729 for ac_dir in $PATH; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2733 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2743 MSGFMT="$ac_cv_path_MSGFMT"
2744 if test "$MSGFMT" != ":"; then
2745 echo "$ac_t""$MSGFMT" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2751 set dummy gmsgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2767 for ac_dir in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2779 GMSGFMT="$ac_cv_path_GMSGFMT"
2780 if test -n "$GMSGFMT"; then
2781 echo "$ac_t""$GMSGFMT" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "xgettext", so it can be a program name with args.
2788 set dummy xgettext; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2800 for ac_dir in $PATH; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2804 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2810 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2814 XGETTEXT="$ac_cv_path_XGETTEXT"
2815 if test "$XGETTEXT" != ":"; then
2816 echo "$ac_t""$XGETTEXT" 1>&6
2818 echo "$ac_t""no" 1>&6
2826 echo "$ac_t""no" 1>&6
2830 if test "$CATOBJEXT" = "NONE"; then
2831 nls_cv_use_gnu_gettext=yes
2835 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2836 INTLOBJS="\$(GETTOBJS)"
2837 # Extract the first word of "msgfmt", so it can be a program name with args.
2838 set dummy msgfmt; ac_word=$2
2839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_word" >&5
2841 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2850 for ac_dir in $PATH; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2854 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2860 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2864 MSGFMT="$ac_cv_path_MSGFMT"
2865 if test "$MSGFMT" != ":"; then
2866 echo "$ac_t""$MSGFMT" 1>&6
2868 echo "$ac_t""no" 1>&6
2871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2872 set dummy gmsgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2888 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2900 GMSGFMT="$ac_cv_path_GMSGFMT"
2901 if test -n "$GMSGFMT"; then
2902 echo "$ac_t""$GMSGFMT" 1>&6
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "xgettext", so it can be a program name with args.
2908 set dummy xgettext; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2920 for ac_dir in $PATH; do
2921 test -z "$ac_dir" && ac_dir=.
2922 if test -f $ac_dir/$ac_word; then
2923 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2924 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2934 XGETTEXT="$ac_cv_path_XGETTEXT"
2935 if test "$XGETTEXT" != ":"; then
2936 echo "$ac_t""$XGETTEXT" 1>&6
2938 echo "$ac_t""no" 1>&6
2942 BUILD_INCLUDED_LIBINTL=yes
2943 USE_INCLUDED_LIBINTL=yes
2945 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2946 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2949 if test "$GMSGFMT" != ":"; then
2950 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2953 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2958 if test "$XGETTEXT" != ":"; then
2959 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2962 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2972 if test "$PACKAGE" = gettext; then
2973 BUILD_INCLUDED_LIBINTL=yes
2976 for ac_prog in bison
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_word" >&5
2982 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test -n "$INTLBISON"; then
2986 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_INTLBISON="$ac_prog"
3000 INTLBISON="$ac_cv_prog_INTLBISON"
3001 if test -n "$INTLBISON"; then
3002 echo "$ac_t""$INTLBISON" 1>&6
3004 echo "$ac_t""no" 1>&6
3007 test -n "$INTLBISON" && break
3010 if test -z "$INTLBISON"; then
3013 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3014 echo "configure:3015: checking version of bison" >&5
3015 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3016 case $ac_prog_version in
3017 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3018 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3019 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3020 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3022 echo "$ac_t""$ac_prog_version" 1>&6
3024 if test $ac_verc_fail = yes; then
3028 for lang in $ALL_LINGUAS; do
3029 GMOFILES="$GMOFILES $lang.gmo"
3030 POFILES="$POFILES $lang.po"
3044 nls_cv_header_libgt=
3056 if test "x$CATOBJEXT" != "x"; then
3057 if test "x$ALL_LINGUAS" = "x"; then
3060 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3061 echo "configure:3062: checking for catalogs to be installed" >&5
3063 for presentlang in $ALL_LINGUAS; do
3065 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3066 # Use the presentlang catalog if desiredlang is
3067 # a. equal to presentlang, or
3068 # b. a variant of presentlang (because in this case,
3069 # presentlang can be used as a fallback for messages
3070 # which are not translated in the desiredlang catalog).
3071 case "$desiredlang" in
3072 "$presentlang"*) useit=yes;;
3075 if test $useit = yes; then
3076 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3079 LINGUAS=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3083 if test -n "$LINGUAS"; then
3084 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3089 if test -n "$ac_aux_dir"; then
3090 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3092 if test -z "$MKINSTALLDIRS"; then
3093 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3097 INTL_LIBTOOL_SUFFIX_PREFIX=
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3113 echo "configure:3114: checking for a BSD compatible install" >&5
3114 if test -z "$INSTALL"; then
3115 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3119 for ac_dir in $PATH; do
3120 # Account for people who put trailing slashes in PATH elements.
3122 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3124 # OSF1 and SCO ODT 3.0 have their own names for install.
3125 # Don't use installbsd from OSF since it installs stuff as root
3127 for ac_prog in ginstall scoinst install; do
3128 if test -f $ac_dir/$ac_prog; then
3129 if test $ac_prog = install &&
3130 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3134 ac_cv_path_install="$ac_dir/$ac_prog -c"
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL="$ac_cv_path_install"
3148 # As a last resort, use the slow shell script. We don't cache a
3149 # path for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the path is relative.
3152 INSTALL="$ac_install_sh"
3155 echo "$ac_t""$INSTALL" 1>&6
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 case x"${target_os}" in
3175 save_CFLAGS="${save_CFLAGS} -pthread"
3176 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3177 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3181 save_CFLAGS="${save_CFLAGS} -pthread"
3185 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3189 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}windres; ac_word=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 if test -n "$WINDRES"; then
3197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3201 for ac_dir in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f $ac_dir/$ac_word; then
3204 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3211 WINDRES="$ac_cv_prog_WINDRES"
3212 if test -n "$WINDRES"; then
3213 echo "$ac_t""$WINDRES" 1>&6
3215 echo "$ac_t""no" 1>&6
3219 if test -z "$ac_cv_prog_WINDRES"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "windres", so it can be a program name with args.
3222 set dummy windres; ac_word=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$WINDRES"; then
3229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3233 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_prog_WINDRES="windres"
3241 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3244 WINDRES="$ac_cv_prog_WINDRES"
3245 if test -n "$WINDRES"; then
3246 echo "$ac_t""$WINDRES" 1>&6
3248 echo "$ac_t""no" 1>&6
3256 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3257 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3258 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3259 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3260 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3261 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3262 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3266 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3267 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3271 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3272 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3273 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3274 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3275 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3282 if test x"${SYS}" = xmingw32
3284 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3286 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3289 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3291 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_func" >&5
3295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char $ac_func(); below. */
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3311 /* The GNU C library defines this for functions which it implements
3312 to always fail with ENOSYS. Some functions are actually named
3313 something starting with __ and the normal name is an alias. */
3314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 eval "ac_cv_func_$ac_func=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 eval "ac_cv_func_$ac_func=no"
3334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_func 1
3342 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking for connect""... $ac_c" 1>&6
3348 echo "configure:3349: checking for connect" >&5
3349 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* System header to define __stub macros and hopefully few prototypes,
3356 which can conflict with char connect(); below. */
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_connect) || defined (__stub___connect)
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 eval "ac_cv_func_connect=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_func_connect=no"
3388 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3392 echo "$ac_t""no" 1>&6
3394 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3395 echo "configure:3396: checking for connect in -lsocket" >&5
3396 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 ac_save_LIBS="$LIBS"
3401 LIBS="-lsocket $LIBS"
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 /* Override any gcc2 internal prototype to avoid an error. */
3406 /* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416 eval "ac_cv_lib_$ac_lib_var=yes"
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 eval "ac_cv_lib_$ac_lib_var=no"
3424 LIBS="$ac_save_LIBS"
3427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3428 echo "$ac_t""yes" 1>&6
3429 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3430 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3433 echo "$ac_t""no" 1>&6
3438 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3439 echo "configure:3440: checking for gethostbyname" >&5
3440 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 /* System header to define __stub macros and hopefully few prototypes,
3447 which can conflict with char gethostbyname(); below. */
3449 /* Override any gcc2 internal prototype to avoid an error. */
3450 /* We use char because int might match the return type of a gcc2
3451 builtin and then its argument prototype would still apply. */
3452 char gethostbyname();
3456 /* The GNU C library defines this for functions which it implements
3457 to always fail with ENOSYS. Some functions are actually named
3458 something starting with __ and the normal name is an alias. */
3459 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_func_gethostbyname=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_func_gethostbyname=no"
3479 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3483 echo "$ac_t""no" 1>&6
3485 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3486 echo "configure:3487: checking for gethostbyname in -lnsl" >&5
3487 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 ac_save_LIBS="$LIBS"
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char gethostbyname();
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 eval "ac_cv_lib_$ac_lib_var=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_lib_$ac_lib_var=no"
3515 LIBS="$ac_save_LIBS"
3518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3522 echo "$ac_t""no" 1>&6
3528 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3529 echo "configure:3530: checking for gethostbyname" >&5
3530 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 /* System header to define __stub macros and hopefully few prototypes,
3537 which can conflict with char gethostbyname(); below. */
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char gethostbyname();
3546 /* The GNU C library defines this for functions which it implements
3547 to always fail with ENOSYS. Some functions are actually named
3548 something starting with __ and the normal name is an alias. */
3549 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 eval "ac_cv_func_gethostbyname=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 eval "ac_cv_func_gethostbyname=no"
3569 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3570 echo "$ac_t""yes" 1>&6
3573 echo "$ac_t""no" 1>&6
3575 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3576 echo "configure:3577: checking for gethostbyname in -lbind" >&5
3577 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 ac_save_LIBS="$LIBS"
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 /* Override any gcc2 internal prototype to avoid an error. */
3587 /* We use char because int might match the return type of a gcc2
3588 builtin and then its argument prototype would still apply. */
3589 char gethostbyname();
3595 if { (eval echo configure:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3597 eval "ac_cv_lib_$ac_lib_var=yes"
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 eval "ac_cv_lib_$ac_lib_var=no"
3605 LIBS="$ac_save_LIBS"
3608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6
3610 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3612 echo "$ac_t""no" 1>&6
3618 for ac_func in nanosleep
3620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_func" >&5
3622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 /* System header to define __stub macros and hopefully few prototypes,
3629 which can conflict with char $ac_func(); below. */
3631 /* Override any gcc2 internal prototype to avoid an error. */
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3638 /* The GNU C library defines this for functions which it implements
3639 to always fail with ENOSYS. Some functions are actually named
3640 something starting with __ and the normal name is an alias. */
3641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3649 if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651 eval "ac_cv_func_$ac_func=yes"
3653 echo "configure: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3656 eval "ac_cv_func_$ac_func=no"
3661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3664 cat >> confdefs.h <<EOF
3665 #define $ac_tr_func 1
3669 echo "$ac_t""no" 1>&6
3670 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3671 echo "configure:3672: checking for nanosleep in -lrt" >&5
3672 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_save_LIBS="$LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3692 eval "ac_cv_lib_$ac_lib_var=yes"
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3697 eval "ac_cv_lib_$ac_lib_var=no"
3700 LIBS="$ac_save_LIBS"
3703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3707 echo "$ac_t""no" 1>&6
3708 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3709 echo "configure:3710: checking for nanosleep in -lposix4" >&5
3710 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 ac_save_LIBS="$LIBS"
3715 LIBS="-lposix4 $LIBS"
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 /* We use char because int might match the return type of a gcc2
3721 builtin and then its argument prototype would still apply. */
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 eval "ac_cv_lib_$ac_lib_var=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 eval "ac_cv_lib_$ac_lib_var=no"
3738 LIBS="$ac_save_LIBS"
3741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3745 echo "$ac_t""no" 1>&6
3755 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3756 echo "configure:3757: checking for inet_aton" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char inet_aton(); below. */
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 eval "ac_cv_func_inet_aton=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 eval "ac_cv_func_inet_aton=no"
3796 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3800 echo "$ac_t""no" 1>&6
3802 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3803 echo "configure:3804: checking for inet_aton in -lresolv" >&5
3804 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 ac_save_LIBS="$LIBS"
3809 LIBS="-lresolv $LIBS"
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 eval "ac_cv_lib_$ac_lib_var=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 eval "ac_cv_lib_$ac_lib_var=no"
3832 LIBS="$ac_save_LIBS"
3835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3839 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3846 echo "configure:3847: checking for textdomain" >&5
3847 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* System header to define __stub macros and hopefully few prototypes,
3854 which can conflict with char textdomain(); below. */
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3863 /* The GNU C library defines this for functions which it implements
3864 to always fail with ENOSYS. Some functions are actually named
3865 something starting with __ and the normal name is an alias. */
3866 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_func_textdomain=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_func_textdomain=no"
3886 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3890 echo "$ac_t""no" 1>&6
3892 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3893 echo "configure:3894: checking for textdomain in -lintl" >&5
3894 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 ac_save_LIBS="$LIBS"
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 eval "ac_cv_lib_$ac_lib_var=yes"
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3919 eval "ac_cv_lib_$ac_lib_var=no"
3922 LIBS="$ac_save_LIBS"
3925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 save_LDFLAGS="${save_LDFLAGS} -lintl"
3929 echo "$ac_t""no" 1>&6
3937 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3938 echo "configure:3939: checking for getopt_long" >&5
3939 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char getopt_long(); below. */
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3955 /* The GNU C library defines this for functions which it implements
3956 to always fail with ENOSYS. Some functions are actually named
3957 something starting with __ and the normal name is an alias. */
3958 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 eval "ac_cv_func_getopt_long=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_func_getopt_long=no"
3978 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_GETOPT_LONG 1
3985 echo "$ac_t""no" 1>&6
3986 # FreeBSD has a gnugetopt library for this:
3987 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3988 echo "configure:3989: checking for getopt_long in -lgnugetopt" >&5
3989 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 ac_save_LIBS="$LIBS"
3994 LIBS="-lgnugetopt $LIBS"
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 eval "ac_cv_lib_$ac_lib_var=no"
4017 LIBS="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_GETOPT_LONG 1
4025 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4027 echo "$ac_t""no" 1>&6
4034 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4035 echo "configure:4036: checking return type of signal handlers" >&5
4036 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 #include <sys/types.h>
4048 extern "C" void (*signal (int, void (*)(int)))(int);
4050 void (*signal ()) ();
4057 if { (eval echo configure:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 ac_cv_type_signal=void
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4064 ac_cv_type_signal=int
4069 echo "$ac_t""$ac_cv_type_signal" 1>&6
4070 cat >> confdefs.h <<EOF
4071 #define RETSIGTYPE $ac_cv_type_signal
4075 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4076 echo "configure:4077: checking for dlopen in -ldl" >&5
4077 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_save_LIBS="$LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4097 eval "ac_cv_lib_$ac_lib_var=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4102 eval "ac_cv_lib_$ac_lib_var=no"
4105 LIBS="$ac_save_LIBS"
4108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4112 echo "$ac_t""no" 1>&6
4115 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4116 echo "configure:4117: checking for cos in -lm" >&5
4117 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4121 ac_save_LIBS="$LIBS"
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4137 eval "ac_cv_lib_$ac_lib_var=yes"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 eval "ac_cv_lib_$ac_lib_var=no"
4145 LIBS="$ac_save_LIBS"
4148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4150 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4151 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4153 echo "$ac_t""no" 1>&6
4156 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4157 echo "configure:4158: checking for pow in -lm" >&5
4158 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 ac_save_LIBS="$LIBS"
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 eval "ac_cv_lib_$ac_lib_var=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 eval "ac_cv_lib_$ac_lib_var=no"
4186 LIBS="$ac_save_LIBS"
4189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4190 echo "$ac_t""yes" 1>&6
4191 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4192 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4193 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4194 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4197 echo "$ac_t""no" 1>&6
4202 if test "x${THREAD_LIB}" = xerror; then
4203 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4204 echo "configure:4205: checking for pthread_attr_init in -lpthread" >&5
4205 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 ac_save_LIBS="$LIBS"
4210 LIBS="-lpthread $LIBS"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4217 char pthread_attr_init();
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 eval "ac_cv_lib_$ac_lib_var=yes"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 eval "ac_cv_lib_$ac_lib_var=no"
4233 LIBS="$ac_save_LIBS"
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4238 THREAD_LIB="-lpthread"
4240 echo "$ac_t""no" 1>&6
4244 if test "x${THREAD_LIB}" = xerror; then
4245 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4246 echo "configure:4247: checking for pthread_attr_init in -lpthreads" >&5
4247 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 ac_save_LIBS="$LIBS"
4252 LIBS="-lpthreads $LIBS"
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4259 char pthread_attr_init();
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 eval "ac_cv_lib_$ac_lib_var=yes"
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 eval "ac_cv_lib_$ac_lib_var=no"
4275 LIBS="$ac_save_LIBS"
4278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 THREAD_LIB="-lpthreads"
4282 echo "$ac_t""no" 1>&6
4286 if test "x${THREAD_LIB}" = xerror; then
4287 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4288 echo "configure:4289: checking for pthread_attr_init in -lc_r" >&5
4289 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 ac_save_LIBS="$LIBS"
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301 char pthread_attr_init();
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309 eval "ac_cv_lib_$ac_lib_var=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_lib_$ac_lib_var=no"
4317 LIBS="$ac_save_LIBS"
4320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4324 echo "$ac_t""no" 1>&6
4328 if test "x${THREAD_LIB}" = xerror; then
4329 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4330 echo "configure:4331: checking for pthread_attr_init" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char pthread_attr_init(); below. */
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4343 char pthread_attr_init();
4347 /* The GNU C library defines this for functions which it implements
4348 to always fail with ENOSYS. Some functions are actually named
4349 something starting with __ and the normal name is an alias. */
4350 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4353 pthread_attr_init();
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 eval "ac_cv_func_pthread_attr_init=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_func_pthread_attr_init=no"
4370 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4374 echo "$ac_t""no" 1>&6
4380 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4381 echo "configure:4382: checking for cthread_fork in -lthreads" >&5
4382 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 ac_save_LIBS="$LIBS"
4387 LIBS="-lthreads $LIBS"
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char cthread_fork();
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402 eval "ac_cv_lib_$ac_lib_var=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4407 eval "ac_cv_lib_$ac_lib_var=no"
4410 LIBS="$ac_save_LIBS"
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 THREAD_LIB="-lthreads"
4417 echo "$ac_t""no" 1>&6
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <pthread.h>
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 egrep "pthread_cond_t" >/dev/null 2>&1; then
4430 cat >> confdefs.h <<\EOF
4431 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 #include <strings.h>
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 egrep "strncasecmp" >/dev/null 2>&1; then
4446 cat >> confdefs.h <<\EOF
4447 #define STRNCASECMP_IN_STRINGS_H 1
4454 for ac_hdr in getopt.h strings.h
4456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_hdr" >&5
4459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4468 { (eval echo configure:4469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4470 if test -z "$ac_err"; then
4472 eval "ac_cv_header_$ac_safe=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_header_$ac_safe=no"
4482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4485 cat >> confdefs.h <<EOF
4486 #define $ac_tr_hdr 1
4490 echo "$ac_t""no" 1>&6
4494 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_hdr" >&5
4499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4508 { (eval echo configure:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4510 if test -z "$ac_err"; then
4512 eval "ac_cv_header_$ac_safe=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_header_$ac_safe=no"
4522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4525 cat >> confdefs.h <<EOF
4526 #define $ac_tr_hdr 1
4530 echo "$ac_t""no" 1>&6
4534 for ac_hdr in dlfcn.h image.h
4536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4538 echo "configure:4539: checking for $ac_hdr" >&5
4539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4548 { (eval echo configure:4549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4550 if test -z "$ac_err"; then
4552 eval "ac_cv_header_$ac_safe=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_header_$ac_safe=no"
4562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_hdr 1
4570 echo "$ac_t""no" 1>&6
4574 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_hdr" >&5
4579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4588 { (eval echo configure:4589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4590 if test -z "$ac_err"; then
4592 eval "ac_cv_header_$ac_safe=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_header_$ac_safe=no"
4602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4605 cat >> confdefs.h <<EOF
4606 #define $ac_tr_hdr 1
4610 echo "$ac_t""no" 1>&6
4614 for ac_hdr in machine/param.h sys/shm.h
4616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4618 echo "configure:4619: checking for $ac_hdr" >&5
4619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4628 { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4630 if test -z "$ac_err"; then
4632 eval "ac_cv_header_$ac_safe=yes"
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 eval "ac_cv_header_$ac_safe=no"
4642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4645 cat >> confdefs.h <<EOF
4646 #define $ac_tr_hdr 1
4650 echo "$ac_t""no" 1>&6
4654 for ac_hdr in linux/version.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4695 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4696 echo "configure:4697: checking whether time.h and sys/time.h may both be included" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 #include <sys/types.h>
4704 #include <sys/time.h>
4710 if { (eval echo configure:4711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4712 ac_cv_header_time=yes
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 ac_cv_header_time=no
4722 echo "$ac_t""$ac_cv_header_time" 1>&6
4723 if test $ac_cv_header_time = yes; then
4724 cat >> confdefs.h <<\EOF
4725 #define TIME_WITH_SYS_TIME 1
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737 egrep "nanosleep" >/dev/null 2>&1; then
4740 cat >> confdefs.h <<\EOF
4741 #define HAVE_DECL_NANOSLEEP 1
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4752 #include <sys/time.h>
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 egrep "timespec" >/dev/null 2>&1; then
4758 cat >> confdefs.h <<\EOF
4759 #define HAVE_STRUCT_TIMESPEC 1
4767 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.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 if test x$SYS != xmingw32
4810 if test x$x_includes = xNONE; then
4811 x_includes=/usr/X11R6/include
4813 if test x$x_libraries = xNONE; then
4814 x_libraries=/usr/X11R6/lib
4816 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4817 for ac_hdr in X11/extensions/dpms.h
4819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_hdr" >&5
4822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4831 { (eval echo configure:4832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4833 if test -z "$ac_err"; then
4835 eval "ac_cv_header_$ac_safe=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_header_$ac_safe=no"
4845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4848 cat >> confdefs.h <<EOF
4849 #define $ac_tr_hdr 1
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 #include <X11/extensions/dpms.h>
4857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4858 egrep "DPMSInfo" >/dev/null 2>&1; then
4861 cat >> confdefs.h <<\EOF
4862 #define DPMSINFO_IN_DPMS_H 1
4871 echo "$ac_t""no" 1>&6
4875 CPPFLAGS="$save_CPPFLAGS"
4878 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4879 echo "configure:4880: checking for ntohl in sys/param.h" >&5
4880 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 CFLAGS="${save_CFLAGS} -Wall -Werror"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 #include <sys/param.h>
4889 void foo() { int meuh; ntohl(meuh); }
4892 if { (eval echo configure:4893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4894 ac_cv_c_ntohl_sys_param_h=yes
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 ac_cv_c_ntohl_sys_param_h=no
4904 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4905 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4906 cat >> confdefs.h <<\EOF
4907 #define NTOHL_IN_SYS_PARAM_H 1
4912 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4913 echo "configure:4914: checking if \$CC accepts -finline-limit" >&5
4914 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4928 ac_cv_c_inline_limit=yes
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 ac_cv_c_inline_limit=no
4938 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4939 if test x"$ac_cv_c_inline_limit" != x"no"; then
4940 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4943 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4944 echo "configure:4945: checking if \$CC accepts -Wall -Winline" >&5
4945 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 CFLAGS="${save_CFLAGS} -Wall -Winline"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_c_Wall_Winline=yes
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 ac_cv_c_Wall_Winline=no
4969 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4970 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4971 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4973 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4974 echo "configure:4975: checking if \$CC accepts -wall -winline" >&5
4975 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 CFLAGS="${save_CFLAGS} -wall -winline"
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4987 if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4989 ac_cv_c_wall_winline=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 ac_cv_c_wall_winline=no
4999 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5000 if test x"$ac_cv_c_wall_winline" != x"no"; then
5001 save_CFLAGS="${save_CFLAGS} -wall -winline"
5005 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5006 echo "configure:5007: checking if \$CC accepts -pipe" >&5
5007 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 CFLAGS="${save_CFLAGS} -pipe"
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5019 if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5031 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5032 if test x"$ac_cv_c_pipe" != x"no"; then
5033 save_CFLAGS="${save_CFLAGS} -pipe"
5036 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5037 echo "configure:5038: checking if \$CC accepts -O3" >&5
5038 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 CFLAGS="${save_CFLAGS} -O3"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5062 echo "$ac_t""$ac_cv_c_o3" 1>&6
5063 if test x"$ac_cv_c_o3" != x"no"; then
5064 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5066 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5067 echo "configure:5068: checking if \$CC accepts -O2" >&5
5068 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 CFLAGS="${save_CFLAGS} -O2"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5092 echo "$ac_t""$ac_cv_c_o2" 1>&6
5093 if test x"$ac_cv_c_o2" != x"no"; then
5094 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5096 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5097 echo "configure:5098: checking if \$CC accepts -O" >&5
5098 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5099 echo $ac_n "(cached) $ac_c" 1>&6
5101 CFLAGS="${save_CFLAGS} -O"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5110 if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5122 echo "$ac_t""$ac_cv_c_o" 1>&6
5123 if test x"$ac_cv_c_o" != x"no"; then
5124 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5129 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5130 echo "configure:5131: checking if \$CC accepts -ffast-math" >&5
5131 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 CFLAGS="${save_CFLAGS} -ffast-math"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5145 ac_cv_c_fast_math=yes
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5150 ac_cv_c_fast_math=no
5155 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5156 if test x"$ac_cv_c_fast_math" != x"no"; then
5157 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5160 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5161 echo "configure:5162: checking if \$CC accepts -funroll-loops" >&5
5162 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 CFLAGS="${save_CFLAGS} -funroll-loops"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5176 ac_cv_c_unroll_loops=yes
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 ac_cv_c_unroll_loops=no
5186 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5187 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5188 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5191 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5192 echo "configure:5193: checking if \$CC accepts -fomit-frame-pointer" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5207 ac_cv_c_omit_frame_pointer=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5212 ac_cv_c_omit_frame_pointer=no
5217 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5218 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5219 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5222 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5223 echo "configure:5224: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5224 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5236 if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5248 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5249 if test x"$ac_cv_ld_darwin" != x"no"; then
5250 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5253 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5254 echo "configure:5255: checking if \$CC accepts -shared" >&5
5255 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 CFLAGS="${save_CFLAGS} -shared"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5269 ac_cv_ld_plugins=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5279 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5280 if test x"$ac_cv_ld_plugins" != x"no"; then
5281 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5284 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5285 echo "configure:5286: checking for variadic cpp macros" >&5
5286 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 CFLAGS="${save_CFLAGS}"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5294 #define a(b,c...) printf(b,##c)
5296 a("foo");a("%s","bar");a("%s%s","baz","quux");
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 ac_cv_cpp_variadic_macros=yes
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 ac_cv_cpp_variadic_macros=no
5311 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5312 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5313 cat >> confdefs.h <<\EOF
5314 #define HAVE_VARIADIC_MACROS 1
5319 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5320 echo "configure:5321: checking __attribute__ ((aligned ())) support" >&5
5321 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 ac_cv_c_attribute_aligned=0
5325 CFLAGS="${save_CFLAGS} -Werror"
5326 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5332 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5335 if { (eval echo configure:5336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5337 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5346 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5347 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5348 cat >> confdefs.h <<EOF
5349 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5354 CFLAGS="${save_CFLAGS}"
5355 CPPFLAGS="${save_CPPFLAGS}"
5356 LDFLAGS="${save_LDFLAGS}"
5358 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5359 echo "configure:5360: checking for boolean_t in sys/types.h" >&5
5360 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5366 #include <sys/types.h>
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5373 ac_cv_c_boolean_t_sys_types_h=yes
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5378 ac_cv_c_boolean_t_sys_types_h=no
5383 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5384 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5385 cat >> confdefs.h <<\EOF
5386 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5391 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5392 echo "configure:5393: checking for boolean_t in pthread.h" >&5
5393 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 #include <pthread.h>
5404 if { (eval echo configure:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5406 ac_cv_c_boolean_t_pthread_h=yes
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5411 ac_cv_c_boolean_t_pthread_h=no
5416 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5417 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5418 cat >> confdefs.h <<\EOF
5419 #define BOOLEAN_T_IN_PTHREAD_H 1
5424 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5425 echo "configure:5426: checking for boolean_t in cthreads.h" >&5
5426 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5432 #include <cthreads.h>
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 ac_cv_c_boolean_t_cthreads_h=yes
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 ac_cv_c_boolean_t_cthreads_h=no
5449 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5450 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5451 cat >> confdefs.h <<\EOF
5452 #define BOOLEAN_T_IN_CTHREADS_H 1
5457 case x"${target_cpu}" in
5462 ARCH="${target_cpu}"
5466 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5467 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5469 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5470 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5471 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5472 SSE_MODULES="imdctsse downmixsse"
5473 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5475 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5476 echo "configure:5477: checking if \$CC groks MMX inline assembly" >&5
5477 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5485 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5488 if { (eval echo configure:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490 ac_cv_mmx_inline=yes
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5500 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5501 if test x"$ac_cv_mmx_inline" != x"no"; then
5502 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5505 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5506 echo "configure:5507: checking if \$CC groks MMX EXT inline assembly" >&5
5507 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5515 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5518 if { (eval echo configure:5519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520 ac_cv_mmxext_inline=yes
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 ac_cv_mmxext_inline=no
5530 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5531 if test x"$ac_cv_mmxext_inline" != x"no"; then
5532 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5535 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5536 echo "configure:5537: checking if \$CC groks 3D Now! inline assembly" >&5
5537 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5545 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 ac_cv_3dnow_inline=yes
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 ac_cv_3dnow_inline=no
5560 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5561 if test x"$ac_cv_3dnow_inline" != x"no"; then
5562 cat >> confdefs.h <<\EOF
5563 #define CAN_COMPILE_3DNOW 1
5566 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5569 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5570 echo "configure:5571: checking if \$CC groks SSE inline assembly" >&5
5571 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5579 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5584 ac_cv_sse_inline=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5594 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5595 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5596 cat >> confdefs.h <<\EOF
5597 #define CAN_COMPILE_SSE 1
5600 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5603 # don't try to grok altivec with native mingw32 it doesn't work right now
5604 # we should be able to remove this test with future versions of mingw32
5605 if test x$SYS != xmingw32; then
5606 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5607 echo "configure:5608: checking if \$CC groks Altivec inline assembly" >&5
5608 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 asm volatile("vperm 0,1,2,3");
5619 if { (eval echo configure:5620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621 ac_cv_altivec_inline=yes
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5627 CFLAGS="$CFLAGS -Wa,-m7400"
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="-Wa,-m7400"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 ac_cv_altivec_inline=no
5652 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5653 if test x"$ac_cv_altivec_inline" != x"no"; then
5654 cat >> confdefs.h <<\EOF
5655 #define CAN_COMPILE_ALTIVEC 1
5658 if test x"$ac_cv_altivec_inline" != x"yes"; then
5659 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5660 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5661 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5662 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5664 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5667 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5668 echo "configure:5669: checking if \$CC groks Altivec C extensions" >&5
5669 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5673 CFLAGS="$CFLAGS -faltivec"
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5680 vec_mtvscr((vector unsigned int)(0));
5683 if { (eval echo configure:5684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5685 ac_cv_c_altivec=-faltivec
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5692 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5698 vec_mtvscr((vector unsigned int)(0));
5701 if { (eval echo configure:5702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5703 ac_cv_c_altivec="-fvec"
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5718 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5719 if test x"$ac_cv_c_altivec" != x"no"; then
5720 cat >> confdefs.h <<\EOF
5721 #define CAN_COMPILE_C_ALTIVEC 1
5724 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5725 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5726 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5727 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5728 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5731 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5732 echo "configure:5733: checking if linker needs -framework vecLib" >&5
5733 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 save_LDFLAGS=$LDFLAGS
5737 LDFLAGS="$LDFLAGS -framework vecLib"
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 ac_cv_ld_altivec=yes
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5756 LDFLAGS=$save_LDFLAGS
5760 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5761 if test x"$ac_cv_ld_altivec" != x"no"; then
5762 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5763 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5764 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5765 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5770 # Check whether --with- or --without- was given.
5771 if test "${with_+set}" = set; then
5776 # Check whether --with- or --without- was given.
5777 if test "${with_+set}" = set; then
5783 # Check whether --with-tuning or --without-tuning was given.
5784 if test "${with_tuning+set}" = set; then
5785 withval="$with_tuning"
5789 if test "x$with_tuning" != "x"; then
5790 TUNING="$with_tuning"
5792 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5794 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5798 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5801 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5804 # Check whether --enable-optimizations or --disable-optimizations was given.
5805 if test "${enable_optimizations+set}" = set; then
5806 enableval="$enable_optimizations"
5807 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5813 # Check whether --enable-altivec or --disable-altivec was given.
5814 if test "${enable_altivec+set}" = set; then
5815 enableval="$enable_altivec"
5816 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5817 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5819 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5820 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5825 # Check whether --enable-debug or --disable-debug was given.
5826 if test "${enable_debug+set}" = set; then
5827 enableval="$enable_debug"
5828 if test x$enable_debug = xyes; then DEBUG=1; fi
5833 # Check whether --enable-release or --disable-release was given.
5834 if test "${enable_release+set}" = set; then
5835 enableval="$enable_release"
5836 if test x$enable_release = xyes; then RELEASE=1; fi
5838 VERSION="${VERSION}_`date +%Y-%m-%d`"
5843 # Check whether --with- or --without- was given.
5844 if test "${with_+set}" = set; then
5850 # Check whether --enable-dvd or --disable-dvd was given.
5851 if test "${enable_dvd+set}" = set; then
5852 enableval="$enable_dvd"
5856 if test "x$enable_dvd" != "xno"
5858 # Check whether --with-dvdcss or --without-dvdcss was given.
5859 if test "${with_dvdcss+set}" = set; then
5860 withval="$with_dvdcss"
5864 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5865 if test "${with_dvdcss_tree+set}" = set; then
5866 withval="$with_dvdcss_tree"
5870 case "x$with_dvdcss" in
5872 if test "x$with_dvdcss_tree" = x
5874 for ac_hdr in dvdcss/dvdcss.h
5876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5878 echo "configure:5879: checking for $ac_hdr" >&5
5879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5888 { (eval echo configure:5889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5890 if test -z "$ac_err"; then
5892 eval "ac_cv_header_$ac_safe=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_header_$ac_safe=no"
5902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5905 cat >> confdefs.h <<EOF
5906 #define $ac_tr_hdr 1
5908 PLUGINS="${PLUGINS} dvd"
5909 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5911 echo "$ac_t""no" 1>&6
5912 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
5913 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5918 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5919 echo "configure:5920: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5920 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5921 if test "x$real_dvdcss_tree" = x
5923 echo "$ac_t""no" 1>&6
5924 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5926 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5928 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5929 BUILTINS="${BUILTINS} dvd"
5930 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5931 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5933 echo "$ac_t""no" 1>&6
5934 { 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; }
5939 PLUGINS="${PLUGINS} dvd"
5940 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5941 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5944 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5945 echo "configure:5946: checking for dvdcss headers in ${with_dvdcss}" >&5
5946 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5948 echo "$ac_t""yes" 1>&6
5949 PLUGINS="${PLUGINS} dvd"
5950 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5951 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5953 echo "$ac_t""no" 1>&6
5954 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5960 # Check whether --enable-dvdread or --disable-dvdread was given.
5961 if test "${enable_dvdread+set}" = set; then
5962 enableval="$enable_dvdread"
5966 if test "x$enable_dvdread" != "xno"
5968 # Check whether --with-dvdread or --without-dvdread was given.
5969 if test "${with_dvdread+set}" = set; then
5970 withval="$with_dvdread"
5974 if test "x$with_dvdread" = x
5979 test_LDFLAGS="-L${with_dvdread}/lib"
5980 test_CFLAGS="-I${with_dvdread}/include"
5982 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5983 for ac_hdr in dvdread/dvd_reader.h
5985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5987 echo "configure:5988: checking for $ac_hdr" >&5
5988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5997 { (eval echo configure:5998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5999 if test -z "$ac_err"; then
6001 eval "ac_cv_header_$ac_safe=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 eval "ac_cv_header_$ac_safe=no"
6011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6014 cat >> confdefs.h <<EOF
6015 #define $ac_tr_hdr 1
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 #include <dvdread/dvd_reader.h>
6023 void foo() { int i=DVD_VIDEO_LB_LEN; }
6026 if { (eval echo configure:6027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6029 PLUGINS="${PLUGINS} dvdread"
6030 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6031 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6038 if test "x$enable_dvdread" != x
6040 { 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; }
6047 echo "$ac_t""no" 1>&6
6048 if test "x$enable_dvdread" != x
6050 if test "x$with_dvdread" != x
6052 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6054 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6061 CPPFLAGS="$save_CPPFLAGS"
6064 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6065 if test "${enable_dvbpsi+set}" = set; then
6066 enableval="$enable_dvbpsi"
6070 if test "x$enable_dvbpsi" != "xno"
6072 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6073 if test "${with_dvbpsi+set}" = set; then
6074 withval="$with_dvbpsi"
6078 if test "x$with_dvbpsi" = x
6083 test_LDFLAGS="-L${with_dvbpsi}/lib"
6084 test_CFLAGS="-I${with_dvbpsi}/include"
6086 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6087 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6088 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6089 echo "configure:6090: checking for dvbpsi/dr.h" >&5
6090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 #include <dvbpsi/dr.h>
6098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6099 { (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6101 if test -z "$ac_err"; then
6103 eval "ac_cv_header_$ac_safe=yes"
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 eval "ac_cv_header_$ac_safe=no"
6113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6114 echo "$ac_t""yes" 1>&6
6116 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6117 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6118 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6121 echo "$ac_t""no" 1>&6
6123 if test "x$enable_dvbpsi" != x
6125 { 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; }
6130 CPPFLAGS="$save_CPPFLAGS"
6133 # Check whether --enable-vcd or --disable-vcd was given.
6134 if test "${enable_vcd+set}" = set; then
6135 enableval="$enable_vcd"
6140 if test x$enable_vcd != xno
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 #include <linux/cdrom.h>
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 egrep "cdrom_msf0" >/dev/null 2>&1; then
6151 PLUGINS="${PLUGINS} vcd"
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 #include <sys/cdio.h>
6162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6163 egrep "ioc_toc_header " >/dev/null 2>&1; then
6166 PLUGINS="${PLUGINS} vcd"
6167 cat >> confdefs.h <<\EOF
6168 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6176 if test "x${SYS}" = "xbsdi"
6178 PLUGINS="${PLUGINS} vcd"
6181 if test "x${SYS}" = "xdarwin"
6183 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6184 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6188 # Check whether --enable-satellite or --disable-satellite was given.
6189 if test "${enable_satellite+set}" = set; then
6190 enableval="$enable_satellite"
6191 if test x$enable_satellite = xyes
6193 PLUGINS="${PLUGINS} satellite"
6198 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6200 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6201 echo "configure:6202: checking for inet_pton" >&5
6202 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char inet_pton(); below. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 /* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_func_inet_pton=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_func_inet_pton=no"
6241 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 PLUGINS="${PLUGINS} ipv6"
6245 echo "$ac_t""no" 1>&6
6249 if test "x$SYS" = "xmingw32"
6251 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6252 echo "configure:6253: checking for getaddrinfo in ws2tcpip.h" >&5
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 #include <ws2tcpip.h>
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 egrep "addrinfo" >/dev/null 2>&1; then
6261 echo "$ac_t""yes" 1>&6
6262 PLUGINS="${PLUGINS} ipv6"
6265 echo "$ac_t""no" 1>&6
6271 # Check whether --enable-avi or --disable-avi was given.
6272 if test "${enable_avi+set}" = set; then
6273 enableval="$enable_avi"
6277 if test x$enable_avi != xno
6279 PLUGINS="${PLUGINS} avi"
6283 # Check whether --with- or --without- was given.
6284 if test "${with_+set}" = set; then
6290 # Check whether --enable-mad or --disable-mad was given.
6291 if test "${enable_mad+set}" = set; then
6292 enableval="$enable_mad"
6296 if test x$enable_mad = xyes
6298 # Check whether --with-mad or --without-mad was given.
6299 if test "${with_mad+set}" = set; then
6304 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6306 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6307 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6310 # Check whether --with-mad-tree or --without-mad-tree was given.
6311 if test "${with_mad_tree+set}" = set; then
6312 withval="$with_mad_tree"
6316 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6318 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6319 if test "x$real_mad_tree" = x
6321 echo "$ac_t""no" 1>&6
6322 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6324 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6325 echo "configure:6326: checking for mad.h in ${real_mad_tree}/libmad" >&5
6326 if test -f ${real_mad_tree}/libmad/mad.h
6328 echo "$ac_t""yes" 1>&6
6329 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6330 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6331 save_LDFLAGS=$LDFLAGS
6332 LDFLAGS=$mad_LDFLAGS
6333 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6334 echo "configure:6335: checking for mad_bit_init in -lmad" >&5
6335 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6339 ac_save_LIBS="$LIBS"
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 /* Override any gcc2 internal prototype to avoid an error. */
6345 /* We use char because int might match the return type of a gcc2
6346 builtin and then its argument prototype would still apply. */
6347 char mad_bit_init();
6353 if { (eval echo configure:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355 eval "ac_cv_lib_$ac_lib_var=yes"
6357 echo "configure: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6360 eval "ac_cv_lib_$ac_lib_var=no"
6363 LIBS="$ac_save_LIBS"
6366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6369 BUILTINS="${BUILTINS} mad"
6370 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6373 echo "$ac_t""no" 1>&6
6374 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6378 LDFLAGS=$save_LDFLAGS
6380 echo "$ac_t""no" 1>&6
6381 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6385 save_LDFLAGS=$LDFLAGS
6386 CFLAGS="$CFLAGS $mad_CFLAGS"
6387 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6390 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6392 echo "configure:6393: checking for $ac_hdr" >&5
6393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6396 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6402 { (eval echo configure:6403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6404 if test -z "$ac_err"; then
6406 eval "ac_cv_header_$ac_safe=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_header_$ac_safe=no"
6416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6417 echo "$ac_t""yes" 1>&6
6418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6419 cat >> confdefs.h <<EOF
6420 #define $ac_tr_hdr 1
6424 echo "$ac_t""no" 1>&6
6425 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6429 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6430 echo "configure:6431: checking for mad_bit_init in -lmad" >&5
6431 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6435 ac_save_LIBS="$LIBS"
6437 cat > conftest.$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6443 char mad_bit_init();
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 eval "ac_cv_lib_$ac_lib_var=yes"
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 eval "ac_cv_lib_$ac_lib_var=no"
6459 LIBS="$ac_save_LIBS"
6462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6463 echo "$ac_t""yes" 1>&6
6465 PLUGINS="${PLUGINS} mad"
6466 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6468 echo "$ac_t""no" 1>&6
6469 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6473 LDFLAGS=$save_LDFLAGS
6477 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6478 if test "${enable_ffmpeg+set}" = set; then
6479 enableval="$enable_ffmpeg"
6483 if test "x$enable_ffmpeg" = "xyes"
6485 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6486 if test "${with_ffmpeg+set}" = set; then
6487 withval="$with_ffmpeg"
6491 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6493 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6494 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6497 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6498 if test "${with_ffmpeg_tree+set}" = set; then
6499 withval="$with_ffmpeg_tree"
6503 if test "x$with_ffmpeg_tree" != "x"
6505 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6506 echo "configure:6507: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6507 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6508 if test "x$real_ffmpeg_tree" = x
6510 echo "$ac_t""no" 1>&6
6511 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6513 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6515 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6516 BUILTINS="${BUILTINS} ffmpeg"
6517 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6518 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6520 echo "$ac_t""no" 1>&6
6521 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6525 save_LDFLAGS=$LDFLAGS
6526 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6527 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6528 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6529 echo "configure:6530: checking for avcodec_init in -lavcodec" >&5
6530 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 ac_save_LIBS="$LIBS"
6535 LIBS="-lavcodec $LIBS"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char avcodec_init();
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 eval "ac_cv_lib_$ac_lib_var=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_lib_$ac_lib_var=no"
6558 LIBS="$ac_save_LIBS"
6561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6564 BUILTINS="${BUILTINS} ffmpeg"
6565 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6567 echo "$ac_t""no" 1>&6
6568 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6572 LDFLAGS=$save_LDFLAGS
6577 if test x$SYS = xbeos
6579 PLUGINS="${PLUGINS} beos"
6582 # Check whether --enable-a52 or --disable-a52 was given.
6583 if test "${enable_a52+set}" = set; then
6584 enableval="$enable_a52"
6588 if test "x$enable_a52" != "xno"
6590 # Check whether --with-a52-tree or --without-a52-tree was given.
6591 if test "${with_a52_tree+set}" = set; then
6592 withval="$with_a52_tree"
6596 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6598 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6599 if test "x$real_a52_tree" = x
6601 echo "$ac_t""no" 1>&6
6602 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6604 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6605 echo "configure:6606: checking for a52.h in ${real_a52_tree}/include" >&5
6606 if test -f ${real_a52_tree}/include/a52.h
6608 echo "$ac_t""yes" 1>&6
6609 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6610 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6611 save_LDFLAGS=$LDFLAGS
6612 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6613 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6614 echo "configure:6615: checking for a52_free in -la52" >&5
6615 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6619 ac_save_LIBS="$LIBS"
6620 LIBS="-la52 -lm $LIBS"
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* Override any gcc2 internal prototype to avoid an error. */
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 eval "ac_cv_lib_$ac_lib_var=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_lib_$ac_lib_var=no"
6643 LIBS="$ac_save_LIBS"
6646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6649 BUILTINS="${BUILTINS} a52"
6650 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6651 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6654 echo "$ac_t""no" 1>&6
6656 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6658 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6660 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6665 LDFLAGS=$save_LDFLAGS
6667 echo "$ac_t""no" 1>&6
6668 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6670 else for ac_hdr in a52dec/a52.h
6672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6674 echo "configure:6675: checking for $ac_hdr" >&5
6675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6684 { (eval echo configure:6685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6686 if test -z "$ac_err"; then
6688 eval "ac_cv_header_$ac_safe=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 eval "ac_cv_header_$ac_safe=no"
6698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6699 echo "$ac_t""yes" 1>&6
6700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6701 cat >> confdefs.h <<EOF
6702 #define $ac_tr_hdr 1
6705 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6706 echo "configure:6707: checking for a52_free in -la52" >&5
6707 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 ac_save_LIBS="$LIBS"
6712 LIBS="-la52 -lm $LIBS"
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 /* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 eval "ac_cv_lib_$ac_lib_var=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_lib_$ac_lib_var=no"
6735 LIBS="$ac_save_LIBS"
6738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6739 echo "$ac_t""yes" 1>&6
6741 BUILTINS="${BUILTINS} a52"
6742 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6743 a52_CFLAGS="${a52_CFLAGS}"
6746 echo "$ac_t""no" 1>&6
6751 echo "$ac_t""no" 1>&6
6758 # Check whether --enable-vorbis or --disable-vorbis was given.
6759 if test "${enable_vorbis+set}" = set; then
6760 enableval="$enable_vorbis"
6764 if test "x$enable_vorbis" != "xno"
6766 for ac_hdr in ogg/ogg.h
6768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_hdr" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6782 if test -z "$ac_err"; then
6784 eval "ac_cv_header_$ac_safe=yes"
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6790 eval "ac_cv_header_$ac_safe=no"
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6797 cat >> confdefs.h <<EOF
6798 #define $ac_tr_hdr 1
6801 #PLUGINS="${PLUGINS} vorbis"
6802 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6805 echo "$ac_t""no" 1>&6
6812 # Check whether --with- or --without- was given.
6813 if test "${with_+set}" = set; then
6819 # Check whether --enable-x11 or --disable-x11 was given.
6820 if test "${enable_x11+set}" = set; then
6821 enableval="$enable_x11"
6825 if test x$enable_x11 != xno &&
6826 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6827 if test x$x_includes = xNONE; then
6828 x_includes=/usr/X11R6/include
6830 if test x$x_libraries = xNONE; then
6831 x_libraries=/usr/X11R6/lib
6833 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6834 for ac_hdr in X11/Xlib.h
6836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6838 echo "configure:6839: checking for $ac_hdr" >&5
6839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6848 { (eval echo configure:6849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6850 if test -z "$ac_err"; then
6852 eval "ac_cv_header_$ac_safe=yes"
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 eval "ac_cv_header_$ac_safe=no"
6862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6865 cat >> confdefs.h <<EOF
6866 #define $ac_tr_hdr 1
6869 PLUGINS="${PLUGINS} x11"
6870 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6871 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6874 echo "$ac_t""no" 1>&6
6878 CPPFLAGS="$save_CPPFLAGS"
6881 # Check whether --enable-xvideo or --disable-xvideo was given.
6882 if test "${enable_xvideo+set}" = set; then
6883 enableval="$enable_xvideo"
6887 if test x$enable_xvideo != xno &&
6888 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6889 if test x$x_includes = xNONE; then
6890 x_includes=/usr/X11R6/include
6892 if test x$x_libraries = xNONE; then
6893 x_libraries=/usr/X11R6/lib
6895 save_CPPFLAGS=$CPPFLAGS
6896 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6897 for ac_hdr in X11/extensions/Xv.h
6899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6901 echo "configure:6902: checking for $ac_hdr" >&5
6902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6911 { (eval echo configure:6912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6913 if test -z "$ac_err"; then
6915 eval "ac_cv_header_$ac_safe=yes"
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6921 eval "ac_cv_header_$ac_safe=no"
6925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6928 cat >> confdefs.h <<EOF
6929 #define $ac_tr_hdr 1
6933 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6934 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6935 echo "configure:6936: checking for XvSetPortAttribute in -lXv_pic" >&5
6936 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 ac_save_LIBS="$LIBS"
6941 LIBS="-lXv_pic $LIBS"
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char XvSetPortAttribute();
6951 XvSetPortAttribute()
6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 eval "ac_cv_lib_$ac_lib_var=yes"
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6961 eval "ac_cv_lib_$ac_lib_var=no"
6964 LIBS="$ac_save_LIBS"
6967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6970 PLUGINS="${PLUGINS} xvideo"
6971 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6972 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6974 echo "$ac_t""no" 1>&6
6975 # We don't have Xv_pic, let's make xvideo.a as builtin
6976 BUILTINS="${BUILTINS} xvideo"
6977 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6978 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6981 CFLAGS="$save_CFLAGS"
6983 CPPFLAGS="$save_CPPFLAGS"
6985 echo "$ac_t""no" 1>&6
6991 # Check whether --enable-sdl or --disable-sdl was given.
6992 if test "${enable_sdl+set}" = set; then
6993 enableval="$enable_sdl"
6997 if test "x$enable_sdl" != "xno"
7000 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7001 if test "${with_sdl_config_path+set}" = set; then
7002 withval="$with_sdl_config_path"
7003 if test "x$with_sdl_config_path" != "xno"
7005 SDL_PATH="$with_sdl_config_path:$PATH"
7009 # Extract the first word of "sdl12-config", so it can be a program name with args.
7010 set dummy sdl12-config; ac_word=$2
7011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7012 echo "configure:7013: checking for $ac_word" >&5
7013 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 case "$SDL12_CONFIG" in
7018 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7021 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7025 ac_dummy="$SDL_PATH"
7026 for ac_dir in $ac_dummy; do
7027 test -z "$ac_dir" && ac_dir=.
7028 if test -f $ac_dir/$ac_word; then
7029 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7034 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7038 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7039 if test -n "$SDL12_CONFIG"; then
7040 echo "$ac_t""$SDL12_CONFIG" 1>&6
7042 echo "$ac_t""no" 1>&6
7045 SDL_CONFIG=${SDL12_CONFIG}
7046 SDL_HEADER="SDL12/SDL.h"
7047 if test x${SDL_CONFIG} = xno
7049 # Extract the first word of "sdl11-config", so it can be a program name with args.
7050 set dummy sdl11-config; ac_word=$2
7051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7052 echo "configure:7053: checking for $ac_word" >&5
7053 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7056 case "$SDL11_CONFIG" in
7058 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7061 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7065 ac_dummy="$SDL_PATH"
7066 for ac_dir in $ac_dummy; do
7067 test -z "$ac_dir" && ac_dir=.
7068 if test -f $ac_dir/$ac_word; then
7069 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7074 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7078 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7079 if test -n "$SDL11_CONFIG"; then
7080 echo "$ac_t""$SDL11_CONFIG" 1>&6
7082 echo "$ac_t""no" 1>&6
7085 SDL_CONFIG=${SDL11_CONFIG}
7086 SDL_HEADER="SDL11/SDL.h"
7088 if test x${SDL_CONFIG} = xno
7090 # Extract the first word of "sdl-config", so it can be a program name with args.
7091 set dummy sdl-config; ac_word=$2
7092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7093 echo "configure:7094: checking for $ac_word" >&5
7094 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 case "$SDL_CONFIG" in
7099 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7102 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7106 ac_dummy="$SDL_PATH"
7107 for ac_dir in $ac_dummy; do
7108 test -z "$ac_dir" && ac_dir=.
7109 if test -f $ac_dir/$ac_word; then
7110 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7115 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7119 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7120 if test -n "$SDL_CONFIG"; then
7121 echo "$ac_t""$SDL_CONFIG" 1>&6
7123 echo "$ac_t""no" 1>&6
7126 SDL_HEADER="SDL/SDL.h"
7128 if test x${SDL_CONFIG} != xno
7130 PLUGINS="${PLUGINS} sdl"
7131 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7132 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7133 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7134 for ac_hdr in ${SDL_HEADER}
7136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7138 echo "configure:7139: checking for $ac_hdr" >&5
7139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 cat > conftest.$ac_ext <<EOF
7143 #line 7144 "configure"
7144 #include "confdefs.h"
7147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7148 { (eval echo configure:7149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7150 if test -z "$ac_err"; then
7152 eval "ac_cv_header_$ac_safe=yes"
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7158 eval "ac_cv_header_$ac_safe=no"
7162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7163 echo "$ac_t""yes" 1>&6
7164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7165 cat >> confdefs.h <<EOF
7166 #define $ac_tr_hdr 1
7168 cat >> confdefs.h <<EOF
7169 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7173 echo "$ac_t""no" 1>&6
7174 { echo "configure: error: The development package for SDL is not installed.
7175 Please install it and try again. Alternatively you can also configure with
7176 --disable-sdl." 1>&2; exit 1; }
7181 CPPFLAGS="$save_CPPFLAGS"
7182 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7184 { echo "configure: error: The development package for SDL is not installed.
7185 Please install it and try again. Alternatively you can also configure with
7186 --disable-sdl." 1>&2; exit 1; }
7188 elif test "x$enable_sdl" = "xyes"
7190 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7191 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7196 # Check whether --enable-directx or --disable-directx was given.
7197 if test "${enable_directx+set}" = set; then
7198 enableval="$enable_directx"
7202 if test "x$enable_directx" != "xno"
7204 if test x$SYS = xmingw32
7206 # Check whether --with-directx or --without-directx was given.
7207 if test "${with_directx+set}" = set; then
7208 withval="$with_directx"
7212 if test "x$with_directx" = "x"
7214 for ac_hdr in ddraw.h
7216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7218 echo "configure:7219: checking for $ac_hdr" >&5
7219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7230 if test -z "$ac_err"; then
7232 eval "ac_cv_header_$ac_safe=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 eval "ac_cv_header_$ac_safe=no"
7242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7245 cat >> confdefs.h <<EOF
7246 #define $ac_tr_hdr 1
7248 PLUGINS="${PLUGINS} directx"
7249 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7251 echo "$ac_t""no" 1>&6
7256 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7257 echo "configure:7258: checking for directX headers in ${with_directx}" >&5
7258 if test -f ${with_directx}/ddraw.h
7260 PLUGINS="${PLUGINS} directx"
7261 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7262 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7263 echo "$ac_t""yes" 1>&6
7265 echo "$ac_t""no" 1>&6
7266 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7272 # Check whether --enable-fb or --disable-fb was given.
7273 if test "${enable_fb+set}" = set; then
7274 enableval="$enable_fb"
7278 if test x$enable_fb != xno
7280 for ac_hdr in linux/fb.h
7282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7284 echo "configure:7285: checking for $ac_hdr" >&5
7285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7286 echo $ac_n "(cached) $ac_c" 1>&6
7288 cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7294 { (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7296 if test -z "$ac_err"; then
7298 eval "ac_cv_header_$ac_safe=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 eval "ac_cv_header_$ac_safe=no"
7308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7309 echo "$ac_t""yes" 1>&6
7310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7311 cat >> confdefs.h <<EOF
7312 #define $ac_tr_hdr 1
7315 PLUGINS="${PLUGINS} fb"
7318 echo "$ac_t""no" 1>&6
7324 # Check whether --enable-mga or --disable-mga was given.
7325 if test "${enable_mga+set}" = set; then
7326 enableval="$enable_mga"
7327 if test x$enable_mga = xyes
7329 PLUGINS="${PLUGINS} mga xmga"
7334 # Check whether --enable-ggi or --disable-ggi was given.
7335 if test "${enable_ggi+set}" = set; then
7336 enableval="$enable_ggi"
7340 if test x$enable_ggi = xyes
7342 PLUGINS="${PLUGINS} ggi"
7343 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7344 # Check whether --with-ggi or --without-ggi was given.
7345 if test "${with_ggi+set}" = set; then
7347 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7349 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7350 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7356 # Check whether --enable-glide or --disable-glide was given.
7357 if test "${enable_glide+set}" = set; then
7358 enableval="$enable_glide"
7362 if test x$enable_glide = xyes
7364 PLUGINS="${PLUGINS} glide"
7365 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7366 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7367 # Check whether --with-glide or --without-glide was given.
7368 if test "${with_glide+set}" = set; then
7369 withval="$with_glide"
7370 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7372 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7373 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7379 # Check whether --enable-aa or --disable-aa was given.
7380 if test "${enable_aa+set}" = set; then
7381 enableval="$enable_aa"
7385 if test x$enable_aa = xyes
7387 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7388 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7389 echo "configure:7390: checking for aalib.h" >&5
7390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7399 { (eval echo configure:7400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7401 if test -z "$ac_err"; then
7403 eval "ac_cv_header_$ac_safe=yes"
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7409 eval "ac_cv_header_$ac_safe=no"
7413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7417 echo "$ac_t""no" 1>&6
7421 if test x$have_aa = xtrue
7423 PLUGINS="${PLUGINS} aa"
7424 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7429 # Check whether --with- or --without- was given.
7430 if test "${with_+set}" = set; then
7436 # Check whether --enable-dsp or --disable-dsp was given.
7437 if test "${enable_dsp+set}" = set; then
7438 enableval="$enable_dsp"
7443 if test x$enable_dsp != xno &&
7444 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7446 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7450 echo "configure:7451: checking for $ac_hdr" >&5
7451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7460 { (eval echo configure:7461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7462 if test -z "$ac_err"; then
7464 eval "ac_cv_header_$ac_safe=yes"
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7470 eval "ac_cv_header_$ac_safe=no"
7474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7477 cat >> confdefs.h <<EOF
7478 #define $ac_tr_hdr 1
7481 PLUGINS="${PLUGINS} dsp"
7482 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7483 echo "configure:7484: checking for main in -lossaudio" >&5
7484 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7488 ac_save_LIBS="$LIBS"
7489 LIBS="-lossaudio $LIBS"
7490 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7498 if { (eval echo configure:7499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7500 eval "ac_cv_lib_$ac_lib_var=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_lib_$ac_lib_var=no"
7508 LIBS="$ac_save_LIBS"
7511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7512 echo "$ac_t""yes" 1>&6
7513 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7515 echo "$ac_t""no" 1>&6
7520 echo "$ac_t""no" 1>&6
7526 # Check whether --enable-esd or --disable-esd was given.
7527 if test "${enable_esd+set}" = set; then
7528 enableval="$enable_esd"
7529 if test x$enable_esd = xyes
7531 # Extract the first word of "esd-config", so it can be a program name with args.
7532 set dummy esd-config; ac_word=$2
7533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7534 echo "configure:7535: checking for $ac_word" >&5
7535 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7538 case "$ESD_CONFIG" in
7540 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7543 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7548 for ac_dir in $ac_dummy; do
7549 test -z "$ac_dir" && ac_dir=.
7550 if test -f $ac_dir/$ac_word; then
7551 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7556 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7560 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7561 if test -n "$ESD_CONFIG"; then
7562 echo "$ac_t""$ESD_CONFIG" 1>&6
7564 echo "$ac_t""no" 1>&6
7567 if test x${ESD_CONFIG} != xno
7569 PLUGINS="${PLUGINS} esd"
7570 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7571 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7577 # Check whether --enable-arts or --disable-arts was given.
7578 if test "${enable_arts+set}" = set; then
7579 enableval="$enable_arts"
7580 if test x$enable_arts = xyes
7582 # Extract the first word of "artsc-config", so it can be a program name with args.
7583 set dummy artsc-config; ac_word=$2
7584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_word" >&5
7586 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 case "$ARTS_CONFIG" in
7591 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7594 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7599 for ac_dir in $ac_dummy; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/$ac_word; then
7602 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7607 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7611 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7612 if test -n "$ARTS_CONFIG"; then
7613 echo "$ac_t""$ARTS_CONFIG" 1>&6
7615 echo "$ac_t""no" 1>&6
7618 if test x${ARTS_CONFIG} != xno
7620 PLUGINS="${PLUGINS} arts"
7621 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7622 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7628 # Check whether --enable-alsa or --disable-alsa was given.
7629 if test "${enable_alsa+set}" = set; then
7630 enableval="$enable_alsa"
7631 if test x$enable_alsa = xyes
7633 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7634 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7635 echo "configure:7636: checking for alsa/asoundlib.h" >&5
7636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 #include <alsa/asoundlib.h>
7644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7645 { (eval echo configure:7646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7647 if test -z "$ac_err"; then
7649 eval "ac_cv_header_$ac_safe=yes"
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7655 eval "ac_cv_header_$ac_safe=no"
7659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7660 echo "$ac_t""yes" 1>&6
7661 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7662 echo "configure:7663: checking for main in -lasound" >&5
7663 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 ac_save_LIBS="$LIBS"
7668 LIBS="-lasound $LIBS"
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7679 eval "ac_cv_lib_$ac_lib_var=yes"
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 eval "ac_cv_lib_$ac_lib_var=no"
7687 LIBS="$ac_save_LIBS"
7690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7694 echo "$ac_t""no" 1>&6
7699 echo "$ac_t""no" 1>&6
7703 if test x$have_alsa = xtrue
7705 PLUGINS="${PLUGINS} alsa"
7706 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7712 # Check whether --enable-waveout or --disable-waveout was given.
7713 if test "${enable_waveout+set}" = set; then
7714 enableval="$enable_waveout"
7718 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7720 PLUGINS="${PLUGINS} waveout"
7721 waveout_LDFLAGS="-lwinmm"
7725 # Check whether --with- or --without- was given.
7726 if test "${with_+set}" = set; then
7732 # Check whether --enable-gtk or --disable-gtk was given.
7733 if test "${enable_gtk+set}" = set; then
7734 enableval="$enable_gtk"
7738 if test x$enable_gtk != xno
7741 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7742 if test "${with_gtk_config_path+set}" = set; then
7743 withval="$with_gtk_config_path"
7744 if test "x$with_gtk_config_path" != "xno"
7746 GTK_PATH="$with_gtk_config_path:$PATH"
7750 # look for gtk-config
7751 # Extract the first word of "gtk12-config", so it can be a program name with args.
7752 set dummy gtk12-config; ac_word=$2
7753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7754 echo "configure:7755: checking for $ac_word" >&5
7755 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 case "$GTK12_CONFIG" in
7760 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7763 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7767 ac_dummy="$GTK_PATH"
7768 for ac_dir in $ac_dummy; do
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f $ac_dir/$ac_word; then
7771 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7776 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7780 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7781 if test -n "$GTK12_CONFIG"; then
7782 echo "$ac_t""$GTK12_CONFIG" 1>&6
7784 echo "$ac_t""no" 1>&6
7787 GTK_CONFIG=${GTK12_CONFIG}
7788 if test x${GTK_CONFIG} = xno
7790 # Extract the first word of "gtk-config", so it can be a program name with args.
7791 set dummy gtk-config; ac_word=$2
7792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_word" >&5
7794 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 case "$GTK_CONFIG" in
7799 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7802 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7806 ac_dummy="$GTK_PATH"
7807 for ac_dir in $ac_dummy; do
7808 test -z "$ac_dir" && ac_dir=.
7809 if test -f $ac_dir/$ac_word; then
7810 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7815 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7819 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7820 if test -n "$GTK_CONFIG"; then
7821 echo "$ac_t""$GTK_CONFIG" 1>&6
7823 echo "$ac_t""no" 1>&6
7827 if test x${GTK_CONFIG} != xno
7829 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7831 { 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; }
7833 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7834 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7835 # now look for the gtk.h header
7836 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7837 ac_cv_gtk_headers=yes
7838 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7842 echo "configure:7843: checking for $ac_hdr" >&5
7843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7852 { (eval echo configure:7853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7854 if test -z "$ac_err"; then
7856 eval "ac_cv_header_$ac_safe=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7862 eval "ac_cv_header_$ac_safe=no"
7866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7867 echo "$ac_t""yes" 1>&6
7868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7869 cat >> confdefs.h <<EOF
7870 #define $ac_tr_hdr 1
7874 echo "$ac_t""no" 1>&6
7875 ac_cv_gtk_headers=no
7876 echo "Cannot find gtk development headers."
7881 if test "x$ac_cv_gtk_headers" = xyes
7883 PLUGINS="${PLUGINS} gtk"
7884 ALIASES="${ALIASES} gvlc"
7886 CPPFLAGS="$save_CPPFLAGS"
7890 # Check whether --enable-gnome or --disable-gnome was given.
7891 if test "${enable_gnome+set}" = set; then
7892 enableval="$enable_gnome"
7893 if test x$enable_gnome = xyes; then
7894 # look for gnome-config
7895 # Extract the first word of "gnome-config", so it can be a program name with args.
7896 set dummy gnome-config; ac_word=$2
7897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_word" >&5
7899 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 case "$GNOME_CONFIG" in
7904 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7907 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7912 for ac_dir in $ac_dummy; do
7913 test -z "$ac_dir" && ac_dir=.
7914 if test -f $ac_dir/$ac_word; then
7915 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7920 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7924 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7925 if test -n "$GNOME_CONFIG"; then
7926 echo "$ac_t""$GNOME_CONFIG" 1>&6
7928 echo "$ac_t""no" 1>&6
7931 if test -x ${GNOME_CONFIG}
7933 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7934 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7936 # now look for the gnome.h header
7937 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7938 for ac_hdr in gnome.h
7940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7942 echo "configure:7943: checking for $ac_hdr" >&5
7943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7952 { (eval echo configure:7953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7954 if test -z "$ac_err"; then
7956 eval "ac_cv_header_$ac_safe=yes"
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 eval "ac_cv_header_$ac_safe=no"
7966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7969 cat >> confdefs.h <<EOF
7970 #define $ac_tr_hdr 1
7973 PLUGINS="${PLUGINS} gnome"
7974 ALIASES="${ALIASES} gnome-vlc"
7977 echo "$ac_t""no" 1>&6
7978 { echo "configure: error: Can't find gnome headers. Please install the gnome
7979 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7984 CPPFLAGS="$save_CPPFLAGS"
7989 # Check whether --enable-qt or --disable-qt was given.
7990 if test "${enable_qt+set}" = set; then
7991 enableval="$enable_qt"
7992 if test x$enable_qt = xyes; then
7993 PLUGINS="${PLUGINS} qt"
7994 ALIASES="${ALIASES} qvlc"
7995 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7996 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7997 if test -x ${QTDIR}/bin/moc
7999 MOC=${QTDIR}/bin/moc
8007 # Check whether --enable-kde or --disable-kde was given.
8008 if test "${enable_kde+set}" = set; then
8009 enableval="$enable_kde"
8010 if test x$enable_kde = xyes; then
8011 PLUGINS="${PLUGINS} kde"
8012 ALIASES="${ALIASES} kvlc"
8013 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8014 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8015 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8016 if test -x ${QTDIR}/bin/moc
8018 MOC=${QTDIR}/bin/moc
8026 # Check whether --enable-macosx or --disable-macosx was given.
8027 if test "${enable_macosx+set}" = set; then
8028 enableval="$enable_macosx"
8029 if test x$enable_macosx = xyes
8031 BUILTINS="${BUILTINS} macosx"
8032 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8035 for ac_hdr in Cocoa/Cocoa.h
8037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_hdr" >&5
8040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8049 { (eval echo configure:8050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8051 if test -z "$ac_err"; then
8053 eval "ac_cv_header_$ac_safe=yes"
8056 echo "configure: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8059 eval "ac_cv_header_$ac_safe=no"
8063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8066 cat >> confdefs.h <<EOF
8067 #define $ac_tr_hdr 1
8069 BUILTINS="${BUILTINS} macosx"
8070 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8073 echo "$ac_t""no" 1>&6
8080 # Check whether --enable-qnx or --disable-qnx was given.
8081 if test "${enable_qnx+set}" = set; then
8082 enableval="$enable_qnx"
8086 if test x$enable_qnx != xno
8090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8092 echo "configure:8093: checking for $ac_hdr" >&5
8093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 cat > conftest.$ac_ext <<EOF
8097 #line 8098 "configure"
8098 #include "confdefs.h"
8101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8102 { (eval echo configure:8103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8104 if test -z "$ac_err"; then
8106 eval "ac_cv_header_$ac_safe=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 eval "ac_cv_header_$ac_safe=no"
8116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8117 echo "$ac_t""yes" 1>&6
8118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8119 cat >> confdefs.h <<EOF
8120 #define $ac_tr_hdr 1
8123 PLUGINS="${PLUGINS} qnx"
8124 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8127 echo "$ac_t""no" 1>&6
8133 # Check whether --enable-intfwin or --disable-intfwin was given.
8134 if test "${enable_intfwin+set}" = set; then
8135 enableval="$enable_intfwin"
8136 if test "x$enable_intfwin" != "xno"
8138 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8139 if test "${with_bcbuilder+set}" = set; then
8140 withval="$with_bcbuilder"
8144 if test "x$with_bcbuilder" != "x"
8146 BCBUILDER="$with_bcbuilder"
8148 PLUGINS="${PLUGINS} intfwin"
8153 # Check whether --enable-ncurses or --disable-ncurses was given.
8154 if test "${enable_ncurses+set}" = set; then
8155 enableval="$enable_ncurses"
8156 if test x$enable_ncurses = xyes; then
8157 PLUGINS="${PLUGINS} ncurses"
8158 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8163 # Check whether --enable-lirc or --disable-lirc was given.
8164 if test "${enable_lirc+set}" = set; then
8165 enableval="$enable_lirc"
8169 if test x$enable_lirc = xyes
8171 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for lirc/lirc_client.h" >&5
8174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 #include <lirc/lirc_client.h>
8182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8183 { (eval echo configure:8184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8185 if test -z "$ac_err"; then
8187 eval "ac_cv_header_$ac_safe=yes"
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8193 eval "ac_cv_header_$ac_safe=no"
8197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8199 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8200 echo "configure:8201: checking for lirc_init in -llirc_client" >&5
8201 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 ac_save_LIBS="$LIBS"
8206 LIBS="-llirc_client $LIBS"
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8219 if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8221 eval "ac_cv_lib_$ac_lib_var=yes"
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 eval "ac_cv_lib_$ac_lib_var=no"
8229 LIBS="$ac_save_LIBS"
8232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8233 echo "$ac_t""yes" 1>&6
8236 echo "$ac_t""no" 1>&6
8241 echo "$ac_t""no" 1>&6
8245 if test x$have_lirc = xtrue
8247 PLUGINS="${PLUGINS} lirc"
8248 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8252 # Check whether --with- or --without- was given.
8253 if test "${with_+set}" = set; then
8259 # Check whether --with-words or --without-words was given.
8260 if test "${with_words+set}" = set; then
8261 withval="$with_words"
8265 case "x$with_words" in
8267 ac_cv_c_bigendian=yes
8270 ac_cv_c_bigendian=no
8273 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8274 echo "configure:8275: checking whether the byte order is big-endian" >&5
8275 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 ac_cv_c_bigendian=unknown
8279 cat >conftest.c <<EOF
8280 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8281 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8282 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8283 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8284 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8285 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8286 int main(void) { _a(); _e(); return 0; }
8289 if test -f conftest.c
8291 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8292 && test -f conftest.o
8294 if test "`strings conftest.o | grep BIGenDianSyS`"
8296 ac_cv_c_bigendian=yes
8298 if test "`strings conftest.o | grep LiTTleEnDian`"
8300 ac_cv_c_bigendian=no
8307 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8308 if test x$ac_cv_c_bigendian = xunknown
8310 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8314 if test $ac_cv_c_bigendian = yes
8316 cat >> confdefs.h <<\EOF
8317 #define WORDS_BIGENDIAN 1
8323 # Check whether --enable-gprof or --disable-gprof was given.
8324 if test "${enable_gprof+set}" = set; then
8325 enableval="$enable_gprof"
8326 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8331 # Check whether --enable-cprof or --disable-cprof was given.
8332 if test "${enable_cprof+set}" = set; then
8333 enableval="$enable_cprof"
8334 if test "x$enable_cprof" = "xyes";
8336 LDFLAGS="${LDFLAGS} -lcprof"
8343 # Check whether --enable-pth or --disable-pth was given.
8344 if test "${enable_pth+set}" = set; then
8345 enableval="$enable_pth"
8346 if test "x$enable_pth" = "xyes"; then
8347 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8348 echo "configure:8349: checking for pth_init in -lpth" >&5
8349 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 ac_save_LIBS="$LIBS"
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8369 eval "ac_cv_lib_$ac_lib_var=yes"
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8374 eval "ac_cv_lib_$ac_lib_var=no"
8377 LIBS="$ac_save_LIBS"
8380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8384 cat >> confdefs.h <<EOF
8385 #define $ac_tr_lib 1
8391 echo "$ac_t""no" 1>&6
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8400 egrep "pth_init" >/dev/null 2>&1; then
8403 cat >> confdefs.h <<\EOF
8404 #define PTH_INIT_IN_PTH_H 1
8416 # Check whether --enable-st or --disable-st was given.
8417 if test "${enable_st+set}" = set; then
8418 enableval="$enable_st"
8419 if test "x$enable_st" = "xyes"; then
8420 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8421 echo "configure:8422: checking for st_init in -lst" >&5
8422 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8426 ac_save_LIBS="$LIBS"
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8442 eval "ac_cv_lib_$ac_lib_var=yes"
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 eval "ac_cv_lib_$ac_lib_var=no"
8450 LIBS="$ac_save_LIBS"
8453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8454 echo "$ac_t""yes" 1>&6
8455 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8457 cat >> confdefs.h <<EOF
8458 #define $ac_tr_lib 1
8464 echo "$ac_t""no" 1>&6
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8469 "configure"
8469 #include "confdefs.h"
8472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8473 egrep "st_init" >/dev/null 2>&1; then
8476 cat >> confdefs.h <<\EOF
8477 #define ST_INIT_IN_ST_H 1
8489 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8491 # Check whether --enable-plugins or --disable-plugins was given.
8492 if test "${enable_plugins+set}" = set; then
8493 enableval="$enable_plugins"
8494 if test x$enable_plugins = xno
8496 BUILTINS="${BUILTINS} ${PLUGINS}"
8502 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8504 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8506 BUILTINS="${BUILTINS} ${PLUGINS}"
8510 cat >> confdefs.h <<EOF
8511 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8514 cat >> confdefs.h <<EOF
8515 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8519 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8520 cat >> confdefs.h <<EOF
8521 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8524 cat >> confdefs.h <<EOF
8525 #define MODULE_SYMBOL $VLC_SYMBOL
8529 DATA_PATH="${ac_tool_prefix}/share/videolan"
8531 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8630 cat > confcache <<\EOF
8631 # This file is a shell script that caches the results of configure
8632 # tests run on this system so they can be shared between configure
8633 # scripts and configure runs. It is not useful on other systems.
8634 # If it contains results you don't want to keep, you may remove or edit it.
8636 # By default, configure uses ./config.cache as the cache file,
8637 # creating it if it does not exist already. You can give configure
8638 # the --cache-file=FILE option to use a different cache file; that is
8639 # what configure does when it calls configure scripts in
8640 # subdirectories, so they share the cache.
8641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8642 # config.status only pays attention to the cache file if you give it the
8643 # --recheck option to rerun configure.
8646 # The following way of writing the cache mishandles newlines in values,
8647 # but we know of no workaround that is simple, portable, and efficient.
8648 # So, don't put newlines in cache variables' values.
8649 # Ultrix sh set writes to stderr and can't be redirected directly,
8650 # and sets the high bit in the cache file unless we assign to the vars.
8652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8654 # `set' does not quote correctly, so add quotes (double-quote substitution
8655 # turns \\\\ into \\, and sed turns \\ into \).
8657 -e "s/'/'\\\\''/g" \
8658 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8661 # `set' quotes correctly as required by POSIX, so do not add quotes.
8662 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8665 if cmp -s $cache_file confcache; then
8668 if test -w $cache_file; then
8669 echo "updating cache $cache_file"
8670 cat confcache > $cache_file
8672 echo "not updating unwritable cache $cache_file"
8677 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8680 # Let make expand exec_prefix.
8681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8683 # Any assignment to VPATH causes Sun make to only execute
8684 # the first set of double-colon rules, so remove it if not needed.
8685 # If there is a colon in the path, we need to keep it.
8686 if test "x$srcdir" = x.; then
8687 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8690 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8692 DEFS=-DHAVE_CONFIG_H
8694 # Without the "./", some shells look in PATH for config.status.
8695 : ${CONFIG_STATUS=./config.status}
8697 echo creating $CONFIG_STATUS
8698 rm -f $CONFIG_STATUS
8699 cat > $CONFIG_STATUS <<EOF
8701 # Generated automatically by configure.
8702 # Run this file to recreate the current configuration.
8703 # This directory was configured as follows,
8704 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8706 # $0 $ac_configure_args
8708 # Compiler output produced by configure, useful for debugging
8709 # configure, is in ./config.log if it exists.
8711 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8714 case "\$ac_option" in
8715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8716 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8717 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8718 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8719 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8721 -help | --help | --hel | --he | --h)
8722 echo "\$ac_cs_usage"; exit 0 ;;
8723 *) echo "\$ac_cs_usage"; exit 1 ;;
8727 ac_given_srcdir=$srcdir
8728 ac_given_INSTALL="$INSTALL"
8730 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8732 cat >> $CONFIG_STATUS <<EOF
8734 # Protect against being on the right side of a sed subst in config.status.
8735 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8736 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8740 s%@CFLAGS@%$CFLAGS%g
8741 s%@CPPFLAGS@%$CPPFLAGS%g
8742 s%@CXXFLAGS@%$CXXFLAGS%g
8743 s%@FFLAGS@%$FFLAGS%g
8745 s%@LDFLAGS@%$LDFLAGS%g
8747 s%@exec_prefix@%$exec_prefix%g
8748 s%@prefix@%$prefix%g
8749 s%@program_transform_name@%$program_transform_name%g
8750 s%@bindir@%$bindir%g
8751 s%@sbindir@%$sbindir%g
8752 s%@libexecdir@%$libexecdir%g
8753 s%@datadir@%$datadir%g
8754 s%@sysconfdir@%$sysconfdir%g
8755 s%@sharedstatedir@%$sharedstatedir%g
8756 s%@localstatedir@%$localstatedir%g
8757 s%@libdir@%$libdir%g
8758 s%@includedir@%$includedir%g
8759 s%@oldincludedir@%$oldincludedir%g
8760 s%@infodir@%$infodir%g
8761 s%@mandir@%$mandir%g
8763 s%@host_alias@%$host_alias%g
8764 s%@host_cpu@%$host_cpu%g
8765 s%@host_vendor@%$host_vendor%g
8766 s%@host_os@%$host_os%g
8767 s%@target@%$target%g
8768 s%@target_alias@%$target_alias%g
8769 s%@target_cpu@%$target_cpu%g
8770 s%@target_vendor@%$target_vendor%g
8771 s%@target_os@%$target_os%g
8773 s%@build_alias@%$build_alias%g
8774 s%@build_cpu@%$build_cpu%g
8775 s%@build_vendor@%$build_vendor%g
8776 s%@build_os@%$build_os%g
8777 s%@SET_MAKE@%$SET_MAKE%g
8780 s%@RANLIB@%$RANLIB%g
8783 s%@ALLOCA@%$ALLOCA%g
8784 s%@GLIBC21@%$GLIBC21%g
8785 s%@LIBICONV@%$LIBICONV%g
8786 s%@USE_NLS@%$USE_NLS%g
8787 s%@MSGFMT@%$MSGFMT%g
8788 s%@GMSGFMT@%$GMSGFMT%g
8789 s%@XGETTEXT@%$XGETTEXT%g
8790 s%@INTLBISON@%$INTLBISON%g
8791 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8792 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8793 s%@CATALOGS@%$CATALOGS%g
8794 s%@CATOBJEXT@%$CATOBJEXT%g
8795 s%@GMOFILES@%$GMOFILES%g
8796 s%@INTLLIBS@%$INTLLIBS%g
8797 s%@INTLOBJS@%$INTLOBJS%g
8798 s%@POFILES@%$POFILES%g
8800 s%@DATADIRNAME@%$DATADIRNAME%g
8801 s%@INSTOBJEXT@%$INSTOBJEXT%g
8802 s%@GENCAT@%$GENCAT%g
8803 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8804 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8805 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8806 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8807 s%@INSTALL_DATA@%$INSTALL_DATA%g
8808 s%@WINDRES@%$WINDRES%g
8809 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8810 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8811 s%@SDL_CONFIG@%$SDL_CONFIG%g
8812 s%@ESD_CONFIG@%$ESD_CONFIG%g
8813 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8814 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8815 s%@GTK_CONFIG@%$GTK_CONFIG%g
8816 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8817 s%@DATA_PATH@%$DATA_PATH%g
8818 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8821 s%@PLUGINS@%$PLUGINS%g
8822 s%@BUILTINS@%$BUILTINS%g
8823 s%@ALIASES@%$ALIASES%g
8828 s%@OPTIMS@%$OPTIMS%g
8829 s%@TUNING@%$TUNING%g
8830 s%@RELEASE@%$RELEASE%g
8832 s%@BCBUILDER@%$BCBUILDER%g
8833 s%@PACKAGE@%$PACKAGE%g
8834 s%@VERSION@%$VERSION%g
8835 s%@NEED_GETOPT@%$NEED_GETOPT%g
8836 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8837 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8838 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8839 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8840 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8841 s%@a52_CFLAGS@%$a52_CFLAGS%g
8842 s%@arts_CFLAGS@%$arts_CFLAGS%g
8843 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8844 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8845 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8846 s%@directx_CFLAGS@%$directx_CFLAGS%g
8847 s%@esd_CFLAGS@%$esd_CFLAGS%g
8848 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8849 s%@glide_CFLAGS@%$glide_CFLAGS%g
8850 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8851 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8852 s%@kde_CFLAGS@%$kde_CFLAGS%g
8853 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8854 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8855 s%@mad_CFLAGS@%$mad_CFLAGS%g
8856 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8857 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8858 s%@qt_CFLAGS@%$qt_CFLAGS%g
8859 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8860 s%@x11_CFLAGS@%$x11_CFLAGS%g
8861 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8862 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8863 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8864 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8865 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8866 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8867 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8868 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8869 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8870 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8871 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8872 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8873 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8874 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8875 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8876 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8877 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8878 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8879 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8880 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8881 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8882 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8883 s%@http_LDFLAGS@%$http_LDFLAGS%g
8884 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8885 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8886 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8887 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8888 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8889 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
8890 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8891 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8892 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8893 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8894 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8895 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8896 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8897 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8898 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8899 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8900 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8901 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8902 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8903 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8904 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8905 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8910 cat >> $CONFIG_STATUS <<\EOF
8912 # Split the substitutions into bite-sized pieces for seds with
8913 # small command number limits, like on Digital OSF/1 and HP-UX.
8914 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8915 ac_file=1 # Number of current file.
8916 ac_beg=1 # First line for current file.
8917 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8920 while $ac_more_lines; do
8921 if test $ac_beg -gt 1; then
8922 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8924 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8926 if test ! -s conftest.s$ac_file; then
8928 rm -f conftest.s$ac_file
8930 if test -z "$ac_sed_cmds"; then
8931 ac_sed_cmds="sed -f conftest.s$ac_file"
8933 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8935 ac_file=`expr $ac_file + 1`
8937 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8940 if test -z "$ac_sed_cmds"; then
8945 cat >> $CONFIG_STATUS <<EOF
8947 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
8949 cat >> $CONFIG_STATUS <<\EOF
8950 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8953 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8954 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8955 *) ac_file_in="${ac_file}.in" ;;
8958 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8960 # Remove last slash and all that follows it. Not all systems have dirname.
8961 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8962 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8963 # The file is in a subdirectory.
8964 test ! -d "$ac_dir" && mkdir "$ac_dir"
8965 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8966 # A "../" for each directory in $ac_dir_suffix.
8967 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8969 ac_dir_suffix= ac_dots=
8972 case "$ac_given_srcdir" in
8974 if test -z "$ac_dots"; then top_srcdir=.
8975 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8976 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8978 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8979 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8982 case "$ac_given_INSTALL" in
8983 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8984 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8987 echo creating "$ac_file"
8989 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8991 *Makefile*) ac_comsub="1i\\
8992 # $configure_input" ;;
8996 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8998 s%@configure_input@%$configure_input%g
8999 s%@srcdir@%$srcdir%g
9000 s%@top_srcdir@%$top_srcdir%g
9001 s%@INSTALL@%$INSTALL%g
9002 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9009 # ac_d sets the value in "#define NAME VALUE" lines.
9010 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9011 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9014 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9015 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9016 ac_uB='\([ ]\)%\1#\2define\3'
9019 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9020 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9021 ac_eB='$%\1#\2define\3'
9025 if test "${CONFIG_HEADERS+set}" != set; then
9027 cat >> $CONFIG_STATUS <<EOF
9028 CONFIG_HEADERS="include/defs.h"
9030 cat >> $CONFIG_STATUS <<\EOF
9032 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9035 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9036 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9037 *) ac_file_in="${ac_file}.in" ;;
9040 echo creating $ac_file
9042 rm -f conftest.frag conftest.in conftest.out
9043 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9044 cat $ac_file_inputs > conftest.in
9048 # Transform confdefs.h into a sed script conftest.vals that substitutes
9049 # the proper values into config.h.in to produce config.h. And first:
9050 # Protect against being on the right side of a sed subst in config.status.
9051 # Protect against being in an unquoted here document in config.status.
9053 cat > conftest.hdr <<\EOF
9056 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9060 sed -n -f conftest.hdr confdefs.h > conftest.vals
9063 # This sed command replaces #undef with comments. This is necessary, for
9064 # example, in the case of _POSIX_SOURCE, which is predefined and required
9065 # on some systems where configure will not decide to define it.
9066 cat >> conftest.vals <<\EOF
9067 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9070 # Break up conftest.vals because some shells have a limit on
9071 # the size of here documents, and old seds have small limits too.
9076 ac_lines=`grep -c . conftest.vals`
9077 # grep -c gives empty output for an empty file on some AIX systems.
9078 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9079 # Write a limited-size here document to conftest.frag.
9080 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9081 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9083 sed -f conftest.frag conftest.in > conftest.out
9085 mv conftest.out conftest.in
9087 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9089 mv conftest.tail conftest.vals
9093 cat >> $CONFIG_STATUS <<\EOF
9094 rm -f conftest.frag conftest.h
9095 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9096 cat conftest.in >> conftest.h
9098 if cmp -s $ac_file conftest.h 2>/dev/null; then
9099 echo "$ac_file is unchanged"
9102 # Remove last slash and all that follows it. Not all systems have dirname.
9103 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9105 # The file is in a subdirectory.
9106 test ! -d "$ac_dir" && mkdir "$ac_dir"
9109 mv conftest.h $ac_file
9114 cat >> $CONFIG_STATUS <<EOF
9118 cat >> $CONFIG_STATUS <<\EOF
9119 for ac_file in $CONFIG_FILES; do
9120 # Support "outfile[:infile[:infile...]]"
9122 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9124 # PO directories have a Makefile.in generated from Makefile.in.in.
9125 case "$ac_file" in */Makefile.in)
9126 # Adjust a relative srcdir.
9127 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9128 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9129 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9130 # In autoconf-2.13 it is called $ac_given_srcdir.
9131 # In autoconf-2.50 it is called $srcdir.
9132 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9133 case "$ac_given_srcdir" in
9134 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9135 /*) top_srcdir="$ac_given_srcdir" ;;
9136 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9138 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9139 rm -f "$ac_dir/POTFILES"
9140 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9141 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9142 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9143 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9151 chmod +x $CONFIG_STATUS
9152 rm -fr confdefs* $ac_clean_files
9153 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9158 --------------------
9159 vlc version : ${VERSION}
9161 architecture : ${ARCH}
9162 optimizations : ${OPTIMS}
9164 debug mode : ${DEBUG}
9165 release : ${RELEASE}
9166 cprof/gprof support : ${CPROF}/${GPROF}
9167 need builtin getopt : ${NEED_GETOPT}
9168 built-in modules :${BUILTINS}
9169 plug-in modules :${PLUGINS}
9170 vlc aliases :${ALIASES}
9172 You may now tune Makefile.opts at your convenience, for instance to choose
9173 which modules get compiled as plugins.
9175 To build vlc and its plugins, type \`$VLC_MAKE'.