3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
54 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
56 --enable-satellite satellite card support (default disabled)"
58 --enable-avi AVI demux module (default enabled)"
62 --enable-mad libmad module (default disabled)"
64 --with-mad=PATH path to libmad"
66 --with-mad-tree=PATH mad tree for static linking"
68 --enable-ffmpeg ffmpeg codec (default disabled)"
70 --with-ffmpeg=PATH path to ffmpeg installation"
72 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
74 --enable-a52 AC3 support with liba52 (default enabled)"
76 --with-a52-tree=PATH a52dec tree for static linking "
78 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
82 --enable-x11 X11 support (default enabled)"
84 --enable-xvideo XVideo support (default enabled)"
86 --enable-sdl SDL support (default enabled)"
88 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
90 --enable-directx Win32 DirectX support (default enabled on Win32)"
92 --with-directx=PATH Win32 DirectX headers and libraries"
94 --enable-fb Linux framebuffer support (default enabled on Linux)"
96 --enable-mga Linux kernel Matrox support (default disabled)"
98 --enable-ggi GGI support (default disabled)"
100 --with-ggi=PATH path to libggi"
102 --enable-glide Glide (3dfx) support (default disabled)"
104 --with-glide=PATH path to libglide"
106 --enable-aa aalib output (default disabled)"
110 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
112 --enable-esd Esound library support (default disabled)"
114 --enable-arts aRts sound server (default disabled)"
116 --enable-alsa ALSA sound support for Linux (default disabled)"
118 --enable-waveout Win32 waveOut module (default enabled on Win32)"
122 --enable-gtk Gtk+ support (default enabled)"
124 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
126 --enable-gnome Gnome interface support (default disabled)"
128 --enable-qt Qt interface support (default disabled)"
130 --enable-kde KDE interface support (default disabled)"
132 --enable-macosx MacOS X support (default enabled on MacOS X)"
134 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
136 --enable-intfwin Win32 interface support (default disabled)"
138 --with-bcbuilder=PATH Borland C++ Builder installation path"
140 --enable-ncurses ncurses interface support (default disabled)"
142 --enable-lirc lirc support (default disabled)"
146 --with-words=endianness set endianness (big or little)"
148 --enable-gprof gprof profiling (default disabled)"
150 --enable-cprof cprof profiling (default disabled)"
152 --enable-pth GNU Pth support (default disabled)"
154 --enable-st State Threads (default disabled)"
156 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
158 # Initialize some variables set by options.
159 # The variables have the same names as the options, with
160 # dashes changed to underlines.
162 cache_file=./config.cache
171 program_transform_name=s,x,x,
179 bindir='${exec_prefix}/bin'
180 sbindir='${exec_prefix}/sbin'
181 libexecdir='${exec_prefix}/libexec'
182 datadir='${prefix}/share'
183 sysconfdir='${prefix}/etc'
184 sharedstatedir='${prefix}/com'
185 localstatedir='${prefix}/var'
186 libdir='${exec_prefix}/lib'
187 includedir='${prefix}/include'
188 oldincludedir='/usr/include'
189 infodir='${prefix}/info'
190 mandir='${prefix}/man'
192 # Initialize some other variables.
195 SHELL=${CONFIG_SHELL-/bin/sh}
196 # Maximum number of lines to put in a shell here document.
203 # If the previous option needs an argument, assign it.
204 if test -n "$ac_prev"; then
205 eval "$ac_prev=\$ac_option"
211 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
215 # Accept the important Cygnus configure options, so we can diagnose typos.
219 -bindir | --bindir | --bindi | --bind | --bin | --bi)
221 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
222 bindir="$ac_optarg" ;;
224 -build | --build | --buil | --bui | --bu)
226 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
227 build="$ac_optarg" ;;
229 -cache-file | --cache-file | --cache-fil | --cache-fi \
230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
231 ac_prev=cache_file ;;
232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
234 cache_file="$ac_optarg" ;;
236 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
238 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
240 datadir="$ac_optarg" ;;
242 -disable-* | --disable-*)
243 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
244 # Reject names that are not valid shell variable names.
245 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
246 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
248 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
249 eval "enable_${ac_feature}=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
253 # Reject names that are not valid shell variable names.
254 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
255 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
257 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
262 eval "enable_${ac_feature}='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix="$ac_optarg" ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he)
278 # Omit some internal or obsolete options to make the list less imposing.
279 # This message is too long to be a string in the A/UX 3.1 sh.
281 Usage: configure [options] [host]
282 Options: [defaults in brackets after descriptions]
284 --cache-file=FILE cache test results in FILE
285 --help print this message
286 --no-create do not create output files
287 --quiet, --silent do not print \`checking...' messages
288 --version print the version of autoconf that created configure
289 Directory and file names:
290 --prefix=PREFIX install architecture-independent files in PREFIX
292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
294 --bindir=DIR user executables in DIR [EPREFIX/bin]
295 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
296 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
297 --datadir=DIR read-only architecture-independent data in DIR
299 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
300 --sharedstatedir=DIR modifiable architecture-independent data in DIR
302 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
303 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
304 --includedir=DIR C header files in DIR [PREFIX/include]
305 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
306 --infodir=DIR info documentation in DIR [PREFIX/info]
307 --mandir=DIR man documentation in DIR [PREFIX/man]
308 --srcdir=DIR find the sources in DIR [configure dir or ..]
309 --program-prefix=PREFIX prepend PREFIX to installed program names
310 --program-suffix=SUFFIX append SUFFIX to installed program names
311 --program-transform-name=PROGRAM
312 run sed PROGRAM on installed program names
316 --build=BUILD configure for building on BUILD [BUILD=HOST]
317 --host=HOST configure for HOST [guessed]
318 --target=TARGET configure for TARGET [TARGET=HOST]
319 Features and packages:
320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
324 --x-includes=DIR X include files are in DIR
325 --x-libraries=DIR X library files are in DIR
327 if test -n "$ac_help"; then
328 echo "--enable and --with options recognized:$ac_help"
332 -host | --host | --hos | --ho)
334 -host=* | --host=* | --hos=* | --ho=*)
337 -includedir | --includedir | --includedi | --included | --include \
338 | --includ | --inclu | --incl | --inc)
339 ac_prev=includedir ;;
340 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
341 | --includ=* | --inclu=* | --incl=* | --inc=*)
342 includedir="$ac_optarg" ;;
344 -infodir | --infodir | --infodi | --infod | --info | --inf)
346 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
347 infodir="$ac_optarg" ;;
349 -libdir | --libdir | --libdi | --libd)
351 -libdir=* | --libdir=* | --libdi=* | --libd=*)
352 libdir="$ac_optarg" ;;
354 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
355 | --libexe | --libex | --libe)
356 ac_prev=libexecdir ;;
357 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
358 | --libexe=* | --libex=* | --libe=*)
359 libexecdir="$ac_optarg" ;;
361 -localstatedir | --localstatedir | --localstatedi | --localstated \
362 | --localstate | --localstat | --localsta | --localst \
363 | --locals | --local | --loca | --loc | --lo)
364 ac_prev=localstatedir ;;
365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
366 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
367 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
368 localstatedir="$ac_optarg" ;;
370 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
372 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
373 mandir="$ac_optarg" ;;
376 # Obsolete; use --without-fp.
379 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
383 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
384 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
387 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
388 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
389 | --oldin | --oldi | --old | --ol | --o)
390 ac_prev=oldincludedir ;;
391 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
392 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
393 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
394 oldincludedir="$ac_optarg" ;;
396 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
398 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
399 prefix="$ac_optarg" ;;
401 -program-prefix | --program-prefix | --program-prefi | --program-pref \
402 | --program-pre | --program-pr | --program-p)
403 ac_prev=program_prefix ;;
404 -program-prefix=* | --program-prefix=* | --program-prefi=* \
405 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
406 program_prefix="$ac_optarg" ;;
408 -program-suffix | --program-suffix | --program-suffi | --program-suff \
409 | --program-suf | --program-su | --program-s)
410 ac_prev=program_suffix ;;
411 -program-suffix=* | --program-suffix=* | --program-suffi=* \
412 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
413 program_suffix="$ac_optarg" ;;
415 -program-transform-name | --program-transform-name \
416 | --program-transform-nam | --program-transform-na \
417 | --program-transform-n | --program-transform- \
418 | --program-transform | --program-transfor \
419 | --program-transfo | --program-transf \
420 | --program-trans | --program-tran \
421 | --progr-tra | --program-tr | --program-t)
422 ac_prev=program_transform_name ;;
423 -program-transform-name=* | --program-transform-name=* \
424 | --program-transform-nam=* | --program-transform-na=* \
425 | --program-transform-n=* | --program-transform-=* \
426 | --program-transform=* | --program-transfor=* \
427 | --program-transfo=* | --program-transf=* \
428 | --program-trans=* | --program-tran=* \
429 | --progr-tra=* | --program-tr=* | --program-t=*)
430 program_transform_name="$ac_optarg" ;;
432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
433 | -silent | --silent | --silen | --sile | --sil)
436 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
438 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
440 sbindir="$ac_optarg" ;;
442 -sharedstatedir | --sharedstatedir | --sharedstatedi \
443 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
444 | --sharedst | --shareds | --shared | --share | --shar \
446 ac_prev=sharedstatedir ;;
447 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
448 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
449 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
451 sharedstatedir="$ac_optarg" ;;
453 -site | --site | --sit)
455 -site=* | --site=* | --sit=*)
458 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
460 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
461 srcdir="$ac_optarg" ;;
463 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
464 | --syscon | --sysco | --sysc | --sys | --sy)
465 ac_prev=sysconfdir ;;
466 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
467 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
468 sysconfdir="$ac_optarg" ;;
470 -target | --target | --targe | --targ | --tar | --ta | --t)
472 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
473 target="$ac_optarg" ;;
475 -v | -verbose | --verbose | --verbos | --verbo | --verb)
478 -version | --version | --versio | --versi | --vers)
479 echo "configure generated by autoconf version 2.13"
483 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
484 # Reject names that are not valid shell variable names.
485 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
486 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
488 ac_package=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}='$ac_optarg'" ;;
495 -without-* | --without-*)
496 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
497 # Reject names that are not valid shell variable names.
498 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
499 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
501 ac_package=`echo $ac_package| sed 's/-/_/g'`
502 eval "with_${ac_package}=no" ;;
505 # Obsolete; use --with-x.
508 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
509 | --x-incl | --x-inc | --x-in | --x-i)
510 ac_prev=x_includes ;;
511 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
512 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
513 x_includes="$ac_optarg" ;;
515 -x-libraries | --x-libraries | --x-librarie | --x-librari \
516 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
517 ac_prev=x_libraries ;;
518 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
519 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
520 x_libraries="$ac_optarg" ;;
522 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
526 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
527 echo "configure: warning: $ac_option: invalid host type" 1>&2
529 if test "x$nonopt" != xNONE; then
530 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
538 if test -n "$ac_prev"; then
539 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
544 # File descriptor usage:
547 # 2 errors and warnings
548 # 3 some systems may open it to /dev/tty
549 # 4 used on the Kubota Titan
550 # 6 checking for... messages and results
551 # 5 compiler messages saved in config.log
552 if test "$silent" = yes; then
560 This file contains any messages produced by compilers while
561 running configure, to aid debugging if configure makes a mistake.
564 # Strip out --no-create and --no-recursion so they do not pile up.
565 # Also quote any args containing shell metacharacters.
570 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
571 | --no-cr | --no-c) ;;
572 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
573 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
574 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
575 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
576 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
581 # Only set these to C if already set. These must not be set unconditionally
582 # because not all systems understand e.g. LANG=C (notably SCO).
583 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
584 # Non-C LC_CTYPE values break the ctype check.
585 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
586 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
587 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
588 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
591 rm -rf conftest* confdefs.h
592 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
595 # A filename unique to this package, relative to the directory that
596 # configure is in, which we can look for to find out if srcdir is correct.
597 ac_unique_file=include/main.h
599 # Find the source files, if location was not specified.
600 if test -z "$srcdir"; then
601 ac_srcdir_defaulted=yes
602 # Try the directory containing this script, then its parent.
604 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
605 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
607 if test ! -r $srcdir/$ac_unique_file; then
611 ac_srcdir_defaulted=no
613 if test ! -r $srcdir/$ac_unique_file; then
614 if test "$ac_srcdir_defaulted" = yes; then
615 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
617 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
620 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
622 # Prefer explicitly selected file to automatically selected ones.
623 if test -z "$CONFIG_SITE"; then
624 if test "x$prefix" != xNONE; then
625 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
627 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
630 for ac_site_file in $CONFIG_SITE; do
631 if test -r "$ac_site_file"; then
632 echo "loading site script $ac_site_file"
637 if test -r "$cache_file"; then
638 echo "loading cache $cache_file"
641 echo "creating cache $cache_file"
646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
647 ac_cpp='$CPP $CPPFLAGS'
648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
650 cross_compiling=$ac_cv_prog_cc_cross
654 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
655 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
656 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
663 ac_n= ac_c='\c' ac_t=
669 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
680 if test -z "$ac_aux_dir"; then
681 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
683 ac_config_guess=$ac_aux_dir/config.guess
684 ac_config_sub=$ac_aux_dir/config.sub
685 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
688 # Do some error checking and defaulting for the host and target type.
690 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
693 # 1. You are not allowed to specify --host, --target, and nonopt at the
695 # 2. Host defaults to nonopt.
696 # 3. If nonopt is not specified, then host defaults to the current host,
697 # as determined by config.guess.
698 # 4. Target and build default to nonopt.
699 # 5. If nonopt is not specified, then target and build default to host.
701 # The aliases save the names the user supplied, while $host etc.
702 # will get canonicalized.
703 case $host---$target---$nonopt in
704 NONE---*---* | *---NONE---* | *---*---NONE) ;;
705 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
709 # Make sure we can run config.sub.
710 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
711 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
714 echo $ac_n "checking host system type""... $ac_c" 1>&6
715 echo "configure:716: checking host system type" >&5
718 case "$host_alias" in
722 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
723 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
725 *) host_alias=$nonopt ;;
729 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
730 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$host" 1>&6
735 echo $ac_n "checking target system type""... $ac_c" 1>&6
736 echo "configure:737: checking target system type" >&5
739 case "$target_alias" in
742 NONE) target_alias=$host_alias ;;
743 *) target_alias=$nonopt ;;
747 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
748 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$target" 1>&6
753 echo $ac_n "checking build system type""... $ac_c" 1>&6
754 echo "configure:755: checking build system type" >&5
757 case "$build_alias" in
760 NONE) build_alias=$host_alias ;;
761 *) build_alias=$nonopt ;;
765 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
766 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
769 echo "$ac_t""$build" 1>&6
771 test "$host_alias" != "$target_alias" &&
772 test "$program_prefix$program_suffix$program_transform_name" = \
774 program_prefix=${target_alias}-
781 save_CFLAGS="${CFLAGS}"
782 save_CPPFLAGS="${CPPFLAGS}"
783 save_LDFLAGS="${LDFLAGS}"
785 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
786 echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5
787 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
788 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 cat > conftestmake <<\EOF
793 @echo 'ac_maketemp="${MAKE}"'
795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
796 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
797 if test -n "$ac_maketemp"; then
798 eval ac_cv_prog_make_${ac_make}_set=yes
800 eval ac_cv_prog_make_${ac_make}_set=no
804 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
805 echo "$ac_t""yes" 1>&6
808 echo "$ac_t""no" 1>&6
809 SET_MAKE="MAKE=${MAKE-make}"
812 # Extract the first word of "gcc", so it can be a program name with args.
813 set dummy gcc; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
835 if test -n "$CC"; then
836 echo "$ac_t""$CC" 1>&6
838 echo "$ac_t""no" 1>&6
841 if test -z "$CC"; then
842 # Extract the first word of "cc", so it can be a program name with args.
843 set dummy cc; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$CC"; then
850 ac_cv_prog_CC="$CC" # Let the user override the test.
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
855 for ac_dir in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir=.
857 if test -f $ac_dir/$ac_word; then
858 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
867 if test $ac_prog_rejected = yes; then
868 # We found a bogon in the path, so make sure we never use it.
869 set dummy $ac_cv_prog_CC
871 if test $# -gt 0; then
872 # We chose a different compiler from the bogus one.
873 # However, it has the same basename, so the bogon will be chosen
874 # first if we set CC to just the basename; use the full file name.
876 set dummy "$ac_dir/$ac_word" "$@"
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
890 if test -z "$CC"; then
893 # Extract the first word of "cl", so it can be a program name with args.
894 set dummy cl; ac_word=$2
895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896 echo "configure:897: checking for $ac_word" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 if test -n "$CC"; then
901 ac_cv_prog_CC="$CC" # Let the user override the test.
903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
905 for ac_dir in $ac_dummy; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word; then
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
924 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
927 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
928 echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
932 ac_cpp='$CPP $CPPFLAGS'
933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
935 cross_compiling=$ac_cv_prog_cc_cross
937 cat > conftest.$ac_ext << EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
945 ac_cv_prog_cc_works=yes
946 # If we can't run a trivial program, we are probably using a cross compiler.
947 if (./conftest; exit) 2>/dev/null; then
948 ac_cv_prog_cc_cross=no
950 ac_cv_prog_cc_cross=yes
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
955 ac_cv_prog_cc_works=no
959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
960 ac_cpp='$CPP $CPPFLAGS'
961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
963 cross_compiling=$ac_cv_prog_cc_cross
965 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
966 if test $ac_cv_prog_cc_works = no; then
967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
971 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
975 echo "configure:976: checking whether we are using GNU C" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 cat > conftest.c <<EOF
984 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
991 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
993 if test $ac_cv_prog_gcc = yes; then
999 ac_test_CFLAGS="${CFLAGS+set}"
1000 ac_save_CFLAGS="$CFLAGS"
1002 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether ${CC-cc} accepts -g" >&5
1004 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 echo 'void f(){}' > conftest.c
1008 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1017 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1018 if test "$ac_test_CFLAGS" = set; then
1019 CFLAGS="$ac_save_CFLAGS"
1020 elif test $ac_cv_prog_cc_g = yes; then
1021 if test "$GCC" = yes; then
1027 if test "$GCC" = yes; then
1034 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1035 echo "configure:1036: checking how to run the C preprocessor" >&5
1036 # On Suns, sometimes $CPP names a directory.
1037 if test -n "$CPP" && test -d "$CPP"; then
1040 if test -z "$CPP"; then
1041 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 # This must be in double quotes, not single quotes, because CPP may get
1045 # substituted into the Makefile and "${CC-cc}" will confuse make.
1047 # On the NeXT, cc -E runs the code through the compiler's parser,
1048 # not just through cpp.
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1065 CPP="${CC-cc} -E -traditional-cpp"
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1073 { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1075 if test -z "$ac_err"; then
1079 echo "configure: failed program was:" >&5
1080 cat conftest.$ac_ext >&5
1082 CPP="${CC-cc} -nologo -E"
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1090 { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1092 if test -z "$ac_err"; then
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1106 ac_cv_prog_CPP="$CPP"
1108 CPP="$ac_cv_prog_CPP"
1110 ac_cv_prog_CPP="$CPP"
1112 echo "$ac_t""$CPP" 1>&6
1115 if test $host != $build; then
1116 ac_tool_prefix=${host_alias}-
1121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 if test -n "$RANLIB"; then
1129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1133 for ac_dir in $ac_dummy; do
1134 test -z "$ac_dir" && ac_dir=.
1135 if test -f $ac_dir/$ac_word; then
1136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1143 RANLIB="$ac_cv_prog_RANLIB"
1144 if test -n "$RANLIB"; then
1145 echo "$ac_t""$RANLIB" 1>&6
1147 echo "$ac_t""no" 1>&6
1151 if test -z "$ac_cv_prog_RANLIB"; then
1152 if test -n "$ac_tool_prefix"; then
1153 # Extract the first word of "ranlib", so it can be a program name with args.
1154 set dummy ranlib; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$RANLIB"; then
1161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_RANLIB="ranlib"
1173 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1176 RANLIB="$ac_cv_prog_RANLIB"
1177 if test -n "$RANLIB"; then
1178 echo "$ac_t""$RANLIB" 1>&6
1180 echo "$ac_t""no" 1>&6
1188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1189 set dummy ${ac_tool_prefix}strip; ac_word=$2
1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_word" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 if test -n "$STRIP"; then
1196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1200 for ac_dir in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1210 STRIP="$ac_cv_prog_STRIP"
1211 if test -n "$STRIP"; then
1212 echo "$ac_t""$STRIP" 1>&6
1214 echo "$ac_t""no" 1>&6
1218 if test -z "$ac_cv_prog_STRIP"; then
1219 if test -n "$ac_tool_prefix"; then
1220 # Extract the first word of "strip", so it can be a program name with args.
1221 set dummy strip; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$STRIP"; then
1228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_STRIP="strip"
1240 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1243 STRIP="$ac_cv_prog_STRIP"
1244 if test -n "$STRIP"; then
1245 echo "$ac_t""$STRIP" 1>&6
1247 echo "$ac_t""no" 1>&6
1256 # Extract the first word of "gmake", so it can be a program name with args.
1257 set dummy gmake; ac_word=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1265 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1268 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1273 for ac_dir in $ac_dummy; do
1274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1281 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1285 GMAKE="$ac_cv_path_GMAKE"
1286 if test -n "$GMAKE"; then
1287 echo "$ac_t""$GMAKE" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 if test "x$GMAKE" = "xno"; then
1293 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1294 echo "configure:1295: checking whether GNU make is installed" >&5
1295 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if make --version | grep -q -i gnu; then
1301 echo "This software needs you to install GNU make to compile properly."
1302 echo "You can get it from http://www.gnu.org/."
1307 echo "$ac_t""$ac_cv_gmake" 1>&6
1313 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1315 cat >> confdefs.h <<EOF
1316 #define VLC_PACKAGE "$PACKAGE"
1319 cat >> confdefs.h <<EOF
1320 #define VLC_VERSION "$VERSION"
1323 # Extract the first word of "ranlib", so it can be a program name with args.
1324 set dummy ranlib; ac_word=$2
1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_word" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if test -n "$RANLIB"; then
1331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1335 for ac_dir in $ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 if test -f $ac_dir/$ac_word; then
1338 ac_cv_prog_RANLIB="ranlib"
1343 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1346 RANLIB="$ac_cv_prog_RANLIB"
1347 if test -n "$RANLIB"; then
1348 echo "$ac_t""$RANLIB" 1>&6
1350 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1355 echo "configure:1356: checking for strerror in -lcposix" >&5
1356 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 ac_save_LIBS="$LIBS"
1361 LIBS="-lcposix $LIBS"
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 /* Override any gcc2 internal prototype to avoid an error. */
1366 /* We use char because int might match the return type of a gcc2
1367 builtin and then its argument prototype would still apply. */
1374 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1376 eval "ac_cv_lib_$ac_lib_var=yes"
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1381 eval "ac_cv_lib_$ac_lib_var=no"
1384 LIBS="$ac_save_LIBS"
1387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1388 echo "$ac_t""yes" 1>&6
1389 LIBS="$LIBS -lcposix"
1391 echo "$ac_t""no" 1>&6
1396 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1397 echo "configure:1398: checking for ANSI C header files" >&5
1398 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1414 ac_cv_header_stdc=yes
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1420 ac_cv_header_stdc=no
1424 if test $ac_cv_header_stdc = yes; then
1425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432 egrep "memchr" >/dev/null 2>&1; then
1436 ac_cv_header_stdc=no
1442 if test $ac_cv_header_stdc = yes; then
1443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1450 egrep "free" >/dev/null 2>&1; then
1454 ac_cv_header_stdc=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1462 if test "$cross_compiling" = yes; then
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1469 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1470 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1472 int main () { int i; for (i = 0; i < 256; i++)
1473 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1484 ac_cv_header_stdc=no
1492 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1493 if test $ac_cv_header_stdc = yes; then
1494 cat >> confdefs.h <<\EOF
1495 #define STDC_HEADERS 1
1500 echo $ac_n "checking for working const""... $ac_c" 1>&6
1501 echo "configure:1502: checking for working const" >&5
1502 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1511 /* Ultrix mips cc rejects this. */
1512 typedef int charset[2]; const charset x;
1513 /* SunOS 4.1.1 cc rejects this. */
1514 char const *const *ccp;
1516 /* NEC SVR4.0.2 mips cc rejects this. */
1517 struct point {int x, y;};
1518 static struct point const zero = {0,0};
1519 /* AIX XL C 1.02.0.0 rejects this.
1520 It does not let you subtract one const X* pointer from another in an arm
1521 of an if-expression whose if-part is not a constant expression */
1522 const char *g = "string";
1523 ccp = &g + (g ? g-g : 0);
1524 /* HPUX 7.0 cc rejects these. */
1527 ccp = (char const *const *) p;
1528 { /* SCO 3.2v4 cc rejects this. */
1530 char const *s = 0 ? (char *) 0 : (char const *) 0;
1534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1536 const int *foo = &x[0];
1539 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1540 typedef const int *iptr;
1544 { /* AIX XL C 1.02.0.0 rejects this saying
1545 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1546 struct s { int j; const int *ap[3]; };
1547 struct s *b; b->j = 5;
1549 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1555 if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1567 echo "$ac_t""$ac_cv_c_const" 1>&6
1568 if test $ac_cv_c_const = no; then
1569 cat >> confdefs.h <<\EOF
1575 echo $ac_n "checking for inline""... $ac_c" 1>&6
1576 echo "configure:1577: checking for inline" >&5
1577 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1581 for ac_kw in inline __inline__ __inline; do
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1590 if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1592 ac_cv_c_inline=$ac_kw; break
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1602 echo "$ac_t""$ac_cv_c_inline" 1>&6
1603 case "$ac_cv_c_inline" in
1605 no) cat >> confdefs.h <<\EOF
1609 *) cat >> confdefs.h <<EOF
1610 #define inline $ac_cv_c_inline
1615 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1616 echo "configure:1617: checking for off_t" >&5
1617 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 #include <sys/types.h>
1629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1630 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1632 ac_cv_type_off_t=yes
1640 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1641 if test $ac_cv_type_off_t = no; then
1642 cat >> confdefs.h <<\EOF
1648 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1649 echo "configure:1650: checking for size_t" >&5
1650 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include <sys/types.h>
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1665 ac_cv_type_size_t=yes
1668 ac_cv_type_size_t=no
1673 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1674 if test $ac_cv_type_size_t = no; then
1675 cat >> confdefs.h <<\EOF
1676 #define size_t unsigned
1681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1682 # for constant arguments. Useless!
1683 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1684 echo "configure:1685: checking for working alloca.h" >&5
1685 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1693 char *p = alloca(2 * sizeof(int));
1696 if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1698 ac_cv_header_alloca_h=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 ac_cv_header_alloca_h=no
1708 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1709 if test $ac_cv_header_alloca_h = yes; then
1710 cat >> confdefs.h <<\EOF
1711 #define HAVE_ALLOCA_H 1
1716 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1717 echo "configure:1718: checking for alloca" >&5
1718 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 # define alloca __builtin_alloca
1729 # include <malloc.h>
1730 # define alloca _alloca
1733 # include <alloca.h>
1738 # ifndef alloca /* predefined by HP cc +Olibcalls */
1747 char *p = (char *) alloca(1);
1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1752 ac_cv_func_alloca_works=yes
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1757 ac_cv_func_alloca_works=no
1762 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1763 if test $ac_cv_func_alloca_works = yes; then
1764 cat >> confdefs.h <<\EOF
1765 #define HAVE_ALLOCA 1
1770 if test $ac_cv_func_alloca_works = no; then
1771 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1772 # that cause trouble. Some versions do not even contain alloca or
1773 # contain a buggy version. If you still want to use their alloca,
1774 # use ar to extract alloca.o from them instead of compiling alloca.c.
1775 ALLOCA=alloca.${ac_objext}
1776 cat >> confdefs.h <<\EOF
1781 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1782 echo "configure:1783: checking whether alloca needs Cray hooks" >&5
1783 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #if defined(CRAY) && ! defined(CRAY2)
1796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1797 egrep "webecray" >/dev/null 2>&1; then
1808 echo "$ac_t""$ac_cv_os_cray" 1>&6
1809 if test $ac_cv_os_cray = yes; then
1810 for ac_func in _getb67 GETB67 getb67; do
1811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_func" >&5
1813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $ac_func(); below. */
1822 /* Override any gcc2 internal prototype to avoid an error. */
1823 /* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1840 if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1842 eval "ac_cv_func_$ac_func=yes"
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 eval "ac_cv_func_$ac_func=no"
1852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 cat >> confdefs.h <<EOF
1855 #define CRAY_STACKSEG_END $ac_func
1860 echo "$ac_t""no" 1>&6
1866 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1867 echo "configure:1868: checking stack direction for C alloca" >&5
1868 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 if test "$cross_compiling" = yes; then
1872 ac_cv_c_stack_direction=0
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 find_stack_direction ()
1879 static char *addr = 0;
1884 return find_stack_direction ();
1887 return (&dummy > addr) ? 1 : -1;
1891 exit (find_stack_direction() < 0);
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1896 ac_cv_c_stack_direction=1
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 ac_cv_c_stack_direction=-1
1908 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1909 cat >> confdefs.h <<EOF
1910 #define STACK_DIRECTION $ac_cv_c_stack_direction
1915 for ac_hdr in unistd.h
1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_hdr" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1929 { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1931 if test -z "$ac_err"; then
1933 eval "ac_cv_header_$ac_safe=yes"
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1939 eval "ac_cv_header_$ac_safe=no"
1943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1946 cat >> confdefs.h <<EOF
1947 #define $ac_tr_hdr 1
1951 echo "$ac_t""no" 1>&6
1955 for ac_func in getpagesize
1957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_func" >&5
1959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $ac_func(); below. */
1968 /* Override any gcc2 internal prototype to avoid an error. */
1969 /* We use char because int might match the return type of a gcc2
1970 builtin and then its argument prototype would still apply. */
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1988 eval "ac_cv_func_$ac_func=yes"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 eval "ac_cv_func_$ac_func=no"
1998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2001 cat >> confdefs.h <<EOF
2002 #define $ac_tr_func 1
2006 echo "$ac_t""no" 1>&6
2010 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2011 echo "configure:2012: checking for working mmap" >&5
2012 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 if test "$cross_compiling" = yes; then
2016 ac_cv_func_mmap_fixed_mapped=no
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2022 /* Thanks to Mike Haertel and Jim Avera for this test.
2023 Here is a matrix of mmap possibilities:
2024 mmap private not fixed
2025 mmap private fixed at somewhere currently unmapped
2026 mmap private fixed at somewhere already mapped
2027 mmap shared not fixed
2028 mmap shared fixed at somewhere currently unmapped
2029 mmap shared fixed at somewhere already mapped
2030 For private mappings, we should verify that changes cannot be read()
2031 back from the file, nor mmap's back from the file at a different
2032 address. (There have been systems where private was not correctly
2033 implemented like the infamous i386 svr4.0, and systems where the
2034 VM page cache was not coherent with the filesystem buffer cache
2035 like early versions of FreeBSD and possibly contemporary NetBSD.)
2036 For shared mappings, we should conversely verify that changes get
2037 propogated back to all the places they're supposed to be.
2039 Grep wants private fixed already mapped.
2040 The main things grep needs to know about mmap are:
2041 * does it exist and is it safe to write into the mmap'd area
2042 * how to use it (BSD variants) */
2043 #include <sys/types.h>
2045 #include <sys/mman.h>
2047 /* This mess was copied from the GNU getpagesize.h. */
2048 #ifndef HAVE_GETPAGESIZE
2049 # ifdef HAVE_UNISTD_H
2050 # include <unistd.h>
2053 /* Assume that all systems that can run configure have sys/param.h. */
2054 # ifndef HAVE_SYS_PARAM_H
2055 # define HAVE_SYS_PARAM_H 1
2058 # ifdef _SC_PAGESIZE
2059 # define getpagesize() sysconf(_SC_PAGESIZE)
2060 # else /* no _SC_PAGESIZE */
2061 # ifdef HAVE_SYS_PARAM_H
2062 # include <sys/param.h>
2063 # ifdef EXEC_PAGESIZE
2064 # define getpagesize() EXEC_PAGESIZE
2065 # else /* no EXEC_PAGESIZE */
2067 # define getpagesize() NBPG * CLSIZE
2070 # endif /* no CLSIZE */
2071 # else /* no NBPG */
2073 # define getpagesize() NBPC
2074 # else /* no NBPC */
2076 # define getpagesize() PAGESIZE
2077 # endif /* PAGESIZE */
2078 # endif /* no NBPC */
2079 # endif /* no NBPG */
2080 # endif /* no EXEC_PAGESIZE */
2081 # else /* no HAVE_SYS_PARAM_H */
2082 # define getpagesize() 8192 /* punt totally */
2083 # endif /* no HAVE_SYS_PARAM_H */
2084 # endif /* no _SC_PAGESIZE */
2086 #endif /* no HAVE_GETPAGESIZE */
2089 extern "C" { void *malloc(unsigned); }
2097 char *data, *data2, *data3;
2101 pagesize = getpagesize();
2104 * First, make a file with some known garbage in it.
2106 data = malloc(pagesize);
2109 for (i = 0; i < pagesize; ++i)
2110 *(data + i) = rand();
2112 fd = creat("conftestmmap", 0600);
2115 if (write(fd, data, pagesize) != pagesize)
2120 * Next, try to mmap the file at a fixed address which
2121 * already has something else allocated at it. If we can,
2122 * also make sure that we see the same garbage.
2124 fd = open("conftestmmap", O_RDWR);
2127 data2 = malloc(2 * pagesize);
2130 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2131 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2134 for (i = 0; i < pagesize; ++i)
2135 if (*(data + i) != *(data2 + i))
2139 * Finally, make sure that changes to the mapped area
2140 * do not percolate back to the file as seen by read().
2141 * (This is a bug on some variants of i386 svr4.0.)
2143 for (i = 0; i < pagesize; ++i)
2144 *(data2 + i) = *(data2 + i) + 1;
2145 data3 = malloc(pagesize);
2148 if (read(fd, data3, pagesize) != pagesize)
2150 for (i = 0; i < pagesize; ++i)
2151 if (*(data + i) != *(data3 + i))
2154 unlink("conftestmmap");
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2161 ac_cv_func_mmap_fixed_mapped=yes
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 ac_cv_func_mmap_fixed_mapped=no
2173 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2174 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2175 cat >> confdefs.h <<\EOF
2182 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether we are using the GNU C Library 2.1 or newer" >&5
2184 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2191 #include <features.h>
2192 #ifdef __GNU_LIBRARY__
2193 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2200 egrep "Lucky GNU user" >/dev/null 2>&1; then
2202 ac_cv_gnu_library_2_1=yes
2205 ac_cv_gnu_library_2_1=no
2213 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2215 GLIBC21="$ac_cv_gnu_library_2_1"
2219 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2220 stdlib.h string.h unistd.h sys/param.h
2222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_hdr" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2238 eval "ac_cv_header_$ac_safe=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_header_$ac_safe=no"
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2251 cat >> confdefs.h <<EOF
2252 #define $ac_tr_hdr 1
2256 echo "$ac_t""no" 1>&6
2260 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2261 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2262 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_func" >&5
2266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 /* System header to define __stub macros and hopefully few prototypes,
2273 which can conflict with char $ac_func(); below. */
2275 /* Override any gcc2 internal prototype to avoid an error. */
2276 /* We use char because int might match the return type of a gcc2
2277 builtin and then its argument prototype would still apply. */
2282 /* The GNU C library defines this for functions which it implements
2283 to always fail with ENOSYS. Some functions are actually named
2284 something starting with __ and the normal name is an alias. */
2285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2295 eval "ac_cv_func_$ac_func=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 eval "ac_cv_func_$ac_func=no"
2305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2308 cat >> confdefs.h <<EOF
2309 #define $ac_tr_func 1
2313 echo "$ac_t""no" 1>&6
2320 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2321 if test "${with_libiconv_prefix+set}" = set; then
2322 withval="$with_libiconv_prefix"
2324 for dir in `echo "$withval" | tr : ' '`; do
2325 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2326 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2332 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2333 echo "configure:2334: checking for iconv" >&5
2334 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2338 am_cv_func_iconv="no, consider installing GNU libiconv"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2346 iconv_t cd = iconv_open("","");
2347 iconv(cd,NULL,NULL,NULL,NULL);
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 am_cv_func_iconv=yes
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2359 if test "$am_cv_func_iconv" != yes; then
2360 am_save_LIBS="$LIBS"
2361 LIBS="$LIBS -liconv"
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2368 iconv_t cd = iconv_open("","");
2369 iconv(cd,NULL,NULL,NULL,NULL);
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 am_cv_func_iconv=yes
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2382 LIBS="$am_save_LIBS"
2387 echo "$ac_t""$am_cv_func_iconv" 1>&6
2388 if test "$am_cv_func_iconv" = yes; then
2389 cat >> confdefs.h <<\EOF
2390 #define HAVE_ICONV 1
2393 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2394 echo "configure:2395: checking for iconv declaration" >&5
2395 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2409 #if defined(__STDC__) || defined(__cplusplus)
2410 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2419 if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421 am_cv_proto_iconv_arg1=""
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2426 am_cv_proto_iconv_arg1="const"
2429 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);"
2432 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2433 echo "$ac_t""${ac_t:-
2434 }$am_cv_proto_iconv" 1>&6
2435 cat >> confdefs.h <<EOF
2436 #define ICONV_CONST $am_cv_proto_iconv_arg1
2441 if test "$am_cv_lib_iconv" = yes; then
2447 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2448 echo "configure:2449: checking for nl_langinfo and CODESET" >&5
2449 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <langinfo.h>
2457 char* cs = nl_langinfo(CODESET);
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 am_cv_langinfo_codeset=yes
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 am_cv_langinfo_codeset=no
2473 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2474 if test $am_cv_langinfo_codeset = yes; then
2475 cat >> confdefs.h <<\EOF
2476 #define HAVE_LANGINFO_CODESET 1
2481 if test $ac_cv_header_locale_h = yes; then
2482 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2483 echo "configure:2484: checking for LC_MESSAGES" >&5
2484 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 am_cv_val_LC_MESSAGES=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 am_cv_val_LC_MESSAGES=no
2507 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2508 if test $am_cv_val_LC_MESSAGES = yes; then
2509 cat >> confdefs.h <<\EOF
2510 #define HAVE_LC_MESSAGES 1
2515 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2516 echo "configure:2517: checking whether NLS is requested" >&5
2517 # Check whether --enable-nls or --disable-nls was given.
2518 if test "${enable_nls+set}" = set; then
2519 enableval="$enable_nls"
2525 echo "$ac_t""$USE_NLS" 1>&6
2528 BUILD_INCLUDED_LIBINTL=no
2529 USE_INCLUDED_LIBINTL=no
2532 if test "$USE_NLS" = "yes"; then
2533 cat >> confdefs.h <<\EOF
2534 #define ENABLE_NLS 1
2537 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2538 echo "configure:2539: checking whether included gettext is requested" >&5
2539 # Check whether --with-included-gettext or --without-included-gettext was given.
2540 if test "${with_included_gettext+set}" = set; then
2541 withval="$with_included_gettext"
2542 nls_cv_force_use_gnu_gettext=$withval
2544 nls_cv_force_use_gnu_gettext=no
2547 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2549 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2550 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2556 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2557 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2558 echo "configure:2559: checking for libintl.h" >&5
2559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2565 #include <libintl.h>
2567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2568 { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2570 if test -z "$ac_err"; then
2572 eval "ac_cv_header_$ac_safe=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2578 eval "ac_cv_header_$ac_safe=no"
2582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2585 echo "configure:2586: checking for GNU gettext in libc" >&5
2586 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #include <libintl.h>
2593 extern int _nl_msg_cat_cntr;
2595 bindtextdomain ("", "");
2596 return (int) gettext ("") + _nl_msg_cat_cntr
2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2601 gt_cv_func_gnugettext1_libc=yes
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2606 gt_cv_func_gnugettext1_libc=no
2611 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2613 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2614 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2615 echo "configure:2616: checking for GNU gettext in libintl" >&5
2616 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 gt_save_LIBS="$LIBS"
2620 LIBS="$LIBS -lintl $LIBICONV"
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <libintl.h>
2625 extern int _nl_msg_cat_cntr;
2627 bindtextdomain ("", "");
2628 return (int) gettext ("") + _nl_msg_cat_cntr
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 gt_cv_func_gnugettext1_libintl=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 gt_cv_func_gnugettext1_libintl=no
2641 LIBS="$gt_save_LIBS"
2644 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2647 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2648 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2649 && test "$PACKAGE" != gettext; }; then
2650 cat >> confdefs.h <<\EOF
2651 #define HAVE_GETTEXT 1
2655 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2656 INTLLIBS="-lintl $LIBICONV"
2659 gt_save_LIBS="$LIBS"
2660 LIBS="$LIBS $INTLLIBS"
2661 for ac_func in dcgettext
2663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_func" >&5
2665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* System header to define __stub macros and hopefully few prototypes,
2672 which can conflict with char $ac_func(); below. */
2674 /* Override any gcc2 internal prototype to avoid an error. */
2675 /* We use char because int might match the return type of a gcc2
2676 builtin and then its argument prototype would still apply. */
2681 /* The GNU C library defines this for functions which it implements
2682 to always fail with ENOSYS. Some functions are actually named
2683 something starting with __ and the normal name is an alias. */
2684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2694 eval "ac_cv_func_$ac_func=yes"
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2699 eval "ac_cv_func_$ac_func=no"
2704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2707 cat >> confdefs.h <<EOF
2708 #define $ac_tr_func 1
2712 echo "$ac_t""no" 1>&6
2716 LIBS="$gt_save_LIBS"
2718 # Extract the first word of "msgfmt", so it can be a program name with args.
2719 set dummy msgfmt; ac_word=$2
2720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_word" >&5
2722 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2727 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2731 for ac_dir in $PATH; do
2732 test -z "$ac_dir" && ac_dir=.
2733 if test -f $ac_dir/$ac_word; then
2734 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2735 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2741 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2745 MSGFMT="$ac_cv_path_MSGFMT"
2746 if test "$MSGFMT" != ":"; then
2747 echo "$ac_t""$MSGFMT" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2753 set dummy gmsgfmt; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2764 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2769 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2781 GMSGFMT="$ac_cv_path_GMSGFMT"
2782 if test -n "$GMSGFMT"; then
2783 echo "$ac_t""$GMSGFMT" 1>&6
2785 echo "$ac_t""no" 1>&6
2789 # Extract the first word of "xgettext", so it can be a program name with args.
2790 set dummy xgettext; ac_word=$2
2791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_word" >&5
2793 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2798 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2802 for ac_dir in $PATH; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2806 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2812 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2816 XGETTEXT="$ac_cv_path_XGETTEXT"
2817 if test "$XGETTEXT" != ":"; then
2818 echo "$ac_t""$XGETTEXT" 1>&6
2820 echo "$ac_t""no" 1>&6
2828 echo "$ac_t""no" 1>&6
2832 if test "$CATOBJEXT" = "NONE"; then
2833 nls_cv_use_gnu_gettext=yes
2837 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2838 INTLOBJS="\$(GETTOBJS)"
2839 # Extract the first word of "msgfmt", so it can be a program name with args.
2840 set dummy msgfmt; ac_word=$2
2841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2842 echo "configure:2843: checking for $ac_word" >&5
2843 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2852 for ac_dir in $PATH; do
2853 test -z "$ac_dir" && ac_dir=.
2854 if test -f $ac_dir/$ac_word; then
2855 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2856 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2862 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2866 MSGFMT="$ac_cv_path_MSGFMT"
2867 if test "$MSGFMT" != ":"; then
2868 echo "$ac_t""$MSGFMT" 1>&6
2870 echo "$ac_t""no" 1>&6
2873 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2874 set dummy gmsgfmt; ac_word=$2
2875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_word" >&5
2877 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2882 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2885 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2890 for ac_dir in $ac_dummy; do
2891 test -z "$ac_dir" && ac_dir=.
2892 if test -f $ac_dir/$ac_word; then
2893 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2898 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2902 GMSGFMT="$ac_cv_path_GMSGFMT"
2903 if test -n "$GMSGFMT"; then
2904 echo "$ac_t""$GMSGFMT" 1>&6
2906 echo "$ac_t""no" 1>&6
2909 # Extract the first word of "xgettext", so it can be a program name with args.
2910 set dummy xgettext; ac_word=$2
2911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_word" >&5
2913 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2918 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2922 for ac_dir in $PATH; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if test -f $ac_dir/$ac_word; then
2925 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2926 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2932 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2936 XGETTEXT="$ac_cv_path_XGETTEXT"
2937 if test "$XGETTEXT" != ":"; then
2938 echo "$ac_t""$XGETTEXT" 1>&6
2940 echo "$ac_t""no" 1>&6
2944 BUILD_INCLUDED_LIBINTL=yes
2945 USE_INCLUDED_LIBINTL=yes
2947 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2948 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2951 if test "$GMSGFMT" != ":"; then
2952 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2955 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2960 if test "$XGETTEXT" != ":"; then
2961 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2964 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2974 if test "$PACKAGE" = gettext; then
2975 BUILD_INCLUDED_LIBINTL=yes
2978 for ac_prog in bison
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$INTLBISON"; then
2988 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2992 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_INTLBISON="$ac_prog"
3002 INTLBISON="$ac_cv_prog_INTLBISON"
3003 if test -n "$INTLBISON"; then
3004 echo "$ac_t""$INTLBISON" 1>&6
3006 echo "$ac_t""no" 1>&6
3009 test -n "$INTLBISON" && break
3012 if test -z "$INTLBISON"; then
3015 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3016 echo "configure:3017: checking version of bison" >&5
3017 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3018 case $ac_prog_version in
3019 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3020 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3021 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3022 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3024 echo "$ac_t""$ac_prog_version" 1>&6
3026 if test $ac_verc_fail = yes; then
3030 for lang in $ALL_LINGUAS; do
3031 GMOFILES="$GMOFILES $lang.gmo"
3032 POFILES="$POFILES $lang.po"
3046 nls_cv_header_libgt=
3058 if test "x$CATOBJEXT" != "x"; then
3059 if test "x$ALL_LINGUAS" = "x"; then
3062 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3063 echo "configure:3064: checking for catalogs to be installed" >&5
3065 for presentlang in $ALL_LINGUAS; do
3067 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3068 # Use the presentlang catalog if desiredlang is
3069 # a. equal to presentlang, or
3070 # b. a variant of presentlang (because in this case,
3071 # presentlang can be used as a fallback for messages
3072 # which are not translated in the desiredlang catalog).
3073 case "$desiredlang" in
3074 "$presentlang"*) useit=yes;;
3077 if test $useit = yes; then
3078 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3081 LINGUAS=$NEW_LINGUAS
3082 echo "$ac_t""$LINGUAS" 1>&6
3085 if test -n "$LINGUAS"; then
3086 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3091 if test -n "$ac_aux_dir"; then
3092 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3094 if test -z "$MKINSTALLDIRS"; then
3095 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3099 INTL_LIBTOOL_SUFFIX_PREFIX=
3103 # Find a good install program. We prefer a C program (faster),
3104 # so one script is as good as another. But avoid the broken or
3105 # incompatible versions:
3106 # SysV /etc/install, /usr/sbin/install
3107 # SunOS /usr/etc/install
3108 # IRIX /sbin/install
3110 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3111 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3112 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3113 # ./install, which can be erroneously created by make from ./install.sh.
3114 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3115 echo "configure:3116: checking for a BSD compatible install" >&5
3116 if test -z "$INSTALL"; then
3117 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3121 for ac_dir in $PATH; do
3122 # Account for people who put trailing slashes in PATH elements.
3124 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3126 # OSF1 and SCO ODT 3.0 have their own names for install.
3127 # Don't use installbsd from OSF since it installs stuff as root
3129 for ac_prog in ginstall scoinst install; do
3130 if test -f $ac_dir/$ac_prog; then
3131 if test $ac_prog = install &&
3132 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3133 # AIX install. It has an incompatible calling convention.
3136 ac_cv_path_install="$ac_dir/$ac_prog -c"
3147 if test "${ac_cv_path_install+set}" = set; then
3148 INSTALL="$ac_cv_path_install"
3150 # As a last resort, use the slow shell script. We don't cache a
3151 # path for INSTALL within a source directory, because that will
3152 # break other packages using the cache if that directory is
3153 # removed, or if the path is relative.
3154 INSTALL="$ac_install_sh"
3157 echo "$ac_t""$INSTALL" 1>&6
3159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3160 # It thinks the first close brace ends the variable substitution.
3161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3168 case x"${target_os}" in
3177 save_CFLAGS="${save_CFLAGS} -pthread"
3178 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3179 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3183 save_CFLAGS="${save_CFLAGS} -pthread"
3187 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3191 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3192 set dummy ${ac_tool_prefix}windres; ac_word=$2
3193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3194 echo "configure:3195: checking for $ac_word" >&5
3195 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 if test -n "$WINDRES"; then
3199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3203 for ac_dir in $ac_dummy; do
3204 test -z "$ac_dir" && ac_dir=.
3205 if test -f $ac_dir/$ac_word; then
3206 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3213 WINDRES="$ac_cv_prog_WINDRES"
3214 if test -n "$WINDRES"; then
3215 echo "$ac_t""$WINDRES" 1>&6
3217 echo "$ac_t""no" 1>&6
3221 if test -z "$ac_cv_prog_WINDRES"; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "windres", so it can be a program name with args.
3224 set dummy windres; ac_word=$2
3225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3226 echo "configure:3227: checking for $ac_word" >&5
3227 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 if test -n "$WINDRES"; then
3231 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f $ac_dir/$ac_word; then
3238 ac_cv_prog_WINDRES="windres"
3243 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3246 WINDRES="$ac_cv_prog_WINDRES"
3247 if test -n "$WINDRES"; then
3248 echo "$ac_t""$WINDRES" 1>&6
3250 echo "$ac_t""no" 1>&6
3258 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3259 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3260 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3261 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3262 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3263 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3264 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3268 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3269 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3273 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3274 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3275 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3276 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3277 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3284 if test x"${SYS}" = xmingw32
3286 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3288 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3291 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3293 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3349 echo $ac_n "checking for connect""... $ac_c" 1>&6
3350 echo "configure:3351: checking for connect" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char connect(); below. */
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_connect) || defined (__stub___connect)
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3380 eval "ac_cv_func_connect=yes"
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3385 eval "ac_cv_func_connect=no"
3390 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3394 echo "$ac_t""no" 1>&6
3396 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3397 echo "configure:3398: checking for connect in -lsocket" >&5
3398 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 ac_save_LIBS="$LIBS"
3403 LIBS="-lsocket $LIBS"
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* Override any gcc2 internal prototype to avoid an error. */
3408 /* We use char because int might match the return type of a gcc2
3409 builtin and then its argument prototype would still apply. */
3416 if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3418 eval "ac_cv_lib_$ac_lib_var=yes"
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3423 eval "ac_cv_lib_$ac_lib_var=no"
3426 LIBS="$ac_save_LIBS"
3429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3432 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3435 echo "$ac_t""no" 1>&6
3440 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3441 echo "configure:3442: checking for gethostbyname" >&5
3442 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* System header to define __stub macros and hopefully few prototypes,
3449 which can conflict with char gethostbyname(); below. */
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char gethostbyname();
3458 /* The GNU C library defines this for functions which it implements
3459 to always fail with ENOSYS. Some functions are actually named
3460 something starting with __ and the normal name is an alias. */
3461 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471 eval "ac_cv_func_gethostbyname=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 eval "ac_cv_func_gethostbyname=no"
3481 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3485 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3488 echo "configure:3489: checking for gethostbyname in -lnsl" >&5
3489 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 ac_save_LIBS="$LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char gethostbyname();
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 eval "ac_cv_lib_$ac_lib_var=no"
3517 LIBS="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3524 echo "$ac_t""no" 1>&6
3530 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3531 echo "configure:3532: checking for gethostbyname" >&5
3532 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 /* System header to define __stub macros and hopefully few prototypes,
3539 which can conflict with char gethostbyname(); below. */
3541 /* Override any gcc2 internal prototype to avoid an error. */
3542 /* We use char because int might match the return type of a gcc2
3543 builtin and then its argument prototype would still apply. */
3544 char gethostbyname();
3548 /* The GNU C library defines this for functions which it implements
3549 to always fail with ENOSYS. Some functions are actually named
3550 something starting with __ and the normal name is an alias. */
3551 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3561 eval "ac_cv_func_gethostbyname=yes"
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3566 eval "ac_cv_func_gethostbyname=no"
3571 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3575 echo "$ac_t""no" 1>&6
3577 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3578 echo "configure:3579: checking for gethostbyname in -lbind" >&5
3579 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 ac_save_LIBS="$LIBS"
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3591 char gethostbyname();
3597 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 eval "ac_cv_lib_$ac_lib_var=yes"
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 eval "ac_cv_lib_$ac_lib_var=no"
3607 LIBS="$ac_save_LIBS"
3610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3614 echo "$ac_t""no" 1>&6
3620 for ac_func in nanosleep
3622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3623 echo "configure:3624: checking for $ac_func" >&5
3624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* System header to define __stub macros and hopefully few prototypes,
3631 which can conflict with char $ac_func(); below. */
3633 /* Override any gcc2 internal prototype to avoid an error. */
3634 /* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3640 /* The GNU C library defines this for functions which it implements
3641 to always fail with ENOSYS. Some functions are actually named
3642 something starting with __ and the normal name is an alias. */
3643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 eval "ac_cv_func_$ac_func=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_func_$ac_func=no"
3663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3666 cat >> confdefs.h <<EOF
3667 #define $ac_tr_func 1
3671 echo "$ac_t""no" 1>&6
3672 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3673 echo "configure:3674: checking for nanosleep in -lrt" >&5
3674 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS="$LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3709 echo "$ac_t""no" 1>&6
3710 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3711 echo "configure:3712: checking for nanosleep in -lposix4" >&5
3712 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 ac_save_LIBS="$LIBS"
3717 LIBS="-lposix4 $LIBS"
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3732 eval "ac_cv_lib_$ac_lib_var=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 eval "ac_cv_lib_$ac_lib_var=no"
3740 LIBS="$ac_save_LIBS"
3743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3747 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3758 echo "configure:3759: checking for inet_aton" >&5
3759 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char inet_aton(); below. */
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3775 /* The GNU C library defines this for functions which it implements
3776 to always fail with ENOSYS. Some functions are actually named
3777 something starting with __ and the normal name is an alias. */
3778 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788 eval "ac_cv_func_inet_aton=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 eval "ac_cv_func_inet_aton=no"
3798 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3802 echo "$ac_t""no" 1>&6
3804 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3805 echo "configure:3806: checking for inet_aton in -lresolv" >&5
3806 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 ac_save_LIBS="$LIBS"
3811 LIBS="-lresolv $LIBS"
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 eval "ac_cv_lib_$ac_lib_var=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3831 eval "ac_cv_lib_$ac_lib_var=no"
3834 LIBS="$ac_save_LIBS"
3837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3841 echo "$ac_t""no" 1>&6
3847 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3848 echo "configure:3849: checking for textdomain" >&5
3849 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 /* System header to define __stub macros and hopefully few prototypes,
3856 which can conflict with char textdomain(); below. */
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3865 /* The GNU C library defines this for functions which it implements
3866 to always fail with ENOSYS. Some functions are actually named
3867 something starting with __ and the normal name is an alias. */
3868 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_func_textdomain=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_func_textdomain=no"
3888 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3892 echo "$ac_t""no" 1>&6
3894 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3895 echo "configure:3896: checking for textdomain in -lintl" >&5
3896 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 ac_save_LIBS="$LIBS"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3916 eval "ac_cv_lib_$ac_lib_var=yes"
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3921 eval "ac_cv_lib_$ac_lib_var=no"
3924 LIBS="$ac_save_LIBS"
3927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 save_LDFLAGS="${save_LDFLAGS} -lintl"
3931 echo "$ac_t""no" 1>&6
3939 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3940 echo "configure:3941: checking for getopt_long" >&5
3941 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char getopt_long(); below. */
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3957 /* The GNU C library defines this for functions which it implements
3958 to always fail with ENOSYS. Some functions are actually named
3959 something starting with __ and the normal name is an alias. */
3960 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 eval "ac_cv_func_getopt_long=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 eval "ac_cv_func_getopt_long=no"
3980 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_GETOPT_LONG 1
3987 echo "$ac_t""no" 1>&6
3988 # FreeBSD has a gnugetopt library for this:
3989 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3990 echo "configure:3991: checking for getopt_long in -lgnugetopt" >&5
3991 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 ac_save_LIBS="$LIBS"
3996 LIBS="-lgnugetopt $LIBS"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 /* Override any gcc2 internal prototype to avoid an error. */
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4011 eval "ac_cv_lib_$ac_lib_var=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 eval "ac_cv_lib_$ac_lib_var=no"
4019 LIBS="$ac_save_LIBS"
4022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_GETOPT_LONG 1
4027 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4029 echo "$ac_t""no" 1>&6
4036 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4037 echo "configure:4038: checking return type of signal handlers" >&5
4038 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 #include <sys/types.h>
4050 extern "C" void (*signal (int, void (*)(int)))(int);
4052 void (*signal ()) ();
4059 if { (eval echo configure:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4061 ac_cv_type_signal=void
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4066 ac_cv_type_signal=int
4071 echo "$ac_t""$ac_cv_type_signal" 1>&6
4072 cat >> confdefs.h <<EOF
4073 #define RETSIGTYPE $ac_cv_type_signal
4077 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4078 echo "configure:4079: checking for dlopen in -ldl" >&5
4079 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4083 ac_save_LIBS="$LIBS"
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 eval "ac_cv_lib_$ac_lib_var=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_lib_$ac_lib_var=no"
4107 LIBS="$ac_save_LIBS"
4110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4111 echo "$ac_t""yes" 1>&6
4112 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4114 echo "$ac_t""no" 1>&6
4117 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4118 echo "configure:4119: checking for cos in -lm" >&5
4119 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 ac_save_LIBS="$LIBS"
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 /* Override any gcc2 internal prototype to avoid an error. */
4129 /* We use char because int might match the return type of a gcc2
4130 builtin and then its argument prototype would still apply. */
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4139 eval "ac_cv_lib_$ac_lib_var=yes"
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 eval "ac_cv_lib_$ac_lib_var=no"
4147 LIBS="$ac_save_LIBS"
4150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4153 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4155 echo "$ac_t""no" 1>&6
4158 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4159 echo "configure:4160: checking for pow in -lm" >&5
4160 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_lib_$ac_lib_var=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_lib_$ac_lib_var=no"
4188 LIBS="$ac_save_LIBS"
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4194 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4195 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4196 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4199 echo "$ac_t""no" 1>&6
4204 if test "x${THREAD_LIB}" = xerror; then
4205 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4206 echo "configure:4207: checking for pthread_attr_init in -lpthread" >&5
4207 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_save_LIBS="$LIBS"
4212 LIBS="-lpthread $LIBS"
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* Override any gcc2 internal prototype to avoid an error. */
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4219 char pthread_attr_init();
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 eval "ac_cv_lib_$ac_lib_var=yes"
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 eval "ac_cv_lib_$ac_lib_var=no"
4235 LIBS="$ac_save_LIBS"
4238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 THREAD_LIB="-lpthread"
4242 echo "$ac_t""no" 1>&6
4246 if test "x${THREAD_LIB}" = xerror; then
4247 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4248 echo "configure:4249: checking for pthread_attr_init in -lpthreads" >&5
4249 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 ac_save_LIBS="$LIBS"
4254 LIBS="-lpthreads $LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4261 char pthread_attr_init();
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_lib_$ac_lib_var=no"
4277 LIBS="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 THREAD_LIB="-lpthreads"
4284 echo "$ac_t""no" 1>&6
4288 if test "x${THREAD_LIB}" = xerror; then
4289 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4290 echo "configure:4291: checking for pthread_attr_init in -lc_r" >&5
4291 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 ac_save_LIBS="$LIBS"
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4303 char pthread_attr_init();
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4311 eval "ac_cv_lib_$ac_lib_var=yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 eval "ac_cv_lib_$ac_lib_var=no"
4319 LIBS="$ac_save_LIBS"
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4326 echo "$ac_t""no" 1>&6
4330 if test "x${THREAD_LIB}" = xerror; then
4331 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4332 echo "configure:4333: checking for pthread_attr_init" >&5
4333 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 /* System header to define __stub macros and hopefully few prototypes,
4340 which can conflict with char pthread_attr_init(); below. */
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345 char pthread_attr_init();
4349 /* The GNU C library defines this for functions which it implements
4350 to always fail with ENOSYS. Some functions are actually named
4351 something starting with __ and the normal name is an alias. */
4352 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4355 pthread_attr_init();
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 eval "ac_cv_func_pthread_attr_init=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4367 eval "ac_cv_func_pthread_attr_init=no"
4372 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4376 echo "$ac_t""no" 1>&6
4382 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4383 echo "configure:4384: checking for cthread_fork in -lthreads" >&5
4384 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 ac_save_LIBS="$LIBS"
4389 LIBS="-lthreads $LIBS"
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4396 char cthread_fork();
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404 eval "ac_cv_lib_$ac_lib_var=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 eval "ac_cv_lib_$ac_lib_var=no"
4412 LIBS="$ac_save_LIBS"
4415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 THREAD_LIB="-lthreads"
4419 echo "$ac_t""no" 1>&6
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 #include <pthread.h>
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 egrep "pthread_cond_t" >/dev/null 2>&1; then
4432 cat >> confdefs.h <<\EOF
4433 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <strings.h>
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 egrep "strncasecmp" >/dev/null 2>&1; then
4448 cat >> confdefs.h <<\EOF
4449 #define STRNCASECMP_IN_STRINGS_H 1
4456 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4460 echo "configure:4461: checking for $ac_hdr" >&5
4461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4470 { (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4472 if test -z "$ac_err"; then
4474 eval "ac_cv_header_$ac_safe=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_header_$ac_safe=no"
4484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6
4486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4487 cat >> confdefs.h <<EOF
4488 #define $ac_tr_hdr 1
4492 echo "$ac_t""no" 1>&6
4496 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_hdr" >&5
4501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4510 { (eval echo configure:4511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4512 if test -z "$ac_err"; then
4514 eval "ac_cv_header_$ac_safe=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4520 eval "ac_cv_header_$ac_safe=no"
4524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4527 cat >> confdefs.h <<EOF
4528 #define $ac_tr_hdr 1
4532 echo "$ac_t""no" 1>&6
4536 for ac_hdr in dlfcn.h image.h
4538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4540 echo "configure:4541: checking for $ac_hdr" >&5
4541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4550 { (eval echo configure:4551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4552 if test -z "$ac_err"; then
4554 eval "ac_cv_header_$ac_safe=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 eval "ac_cv_header_$ac_safe=no"
4564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4567 cat >> confdefs.h <<EOF
4568 #define $ac_tr_hdr 1
4572 echo "$ac_t""no" 1>&6
4576 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_hdr 1
4612 echo "$ac_t""no" 1>&6
4616 for ac_hdr in machine/param.h sys/shm.h
4618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_hdr 1
4652 echo "$ac_t""no" 1>&6
4656 for ac_hdr in linux/version.h
4658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_hdr" >&5
4661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4670 { (eval echo configure:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4672 if test -z "$ac_err"; then
4674 eval "ac_cv_header_$ac_safe=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_header_$ac_safe=no"
4684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4687 cat >> confdefs.h <<EOF
4688 #define $ac_tr_hdr 1
4692 echo "$ac_t""no" 1>&6
4697 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4698 echo "configure:4699: checking whether time.h and sys/time.h may both be included" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <sys/types.h>
4706 #include <sys/time.h>
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4714 ac_cv_header_time=yes
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 ac_cv_header_time=no
4724 echo "$ac_t""$ac_cv_header_time" 1>&6
4725 if test $ac_cv_header_time = yes; then
4726 cat >> confdefs.h <<\EOF
4727 #define TIME_WITH_SYS_TIME 1
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 egrep "nanosleep" >/dev/null 2>&1; then
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_DECL_NANOSLEEP 1
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <sys/time.h>
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757 egrep "timespec" >/dev/null 2>&1; then
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE_STRUCT_TIMESPEC 1
4769 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4810 if test x$SYS != xmingw32
4812 if test x$x_includes = xNONE; then
4813 x_includes=/usr/X11R6/include
4815 if test x$x_libraries = xNONE; then
4816 x_libraries=/usr/X11R6/lib
4818 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4819 for ac_hdr in X11/extensions/dpms.h
4821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_hdr" >&5
4824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4833 { (eval echo configure:4834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4835 if test -z "$ac_err"; then
4837 eval "ac_cv_header_$ac_safe=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 eval "ac_cv_header_$ac_safe=no"
4847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4850 cat >> confdefs.h <<EOF
4851 #define $ac_tr_hdr 1
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <X11/extensions/dpms.h>
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 egrep "DPMSInfo" >/dev/null 2>&1; then
4863 cat >> confdefs.h <<\EOF
4864 #define DPMSINFO_IN_DPMS_H 1
4873 echo "$ac_t""no" 1>&6
4877 CPPFLAGS="$save_CPPFLAGS"
4880 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4881 echo "configure:4882: checking for ntohl in sys/param.h" >&5
4882 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 CFLAGS="${save_CFLAGS} -Wall -Werror"
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 #include <sys/param.h>
4891 void foo() { int meuh; ntohl(meuh); }
4894 if { (eval echo configure:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896 ac_cv_c_ntohl_sys_param_h=yes
4898 echo "configure: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4901 ac_cv_c_ntohl_sys_param_h=no
4906 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4907 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4908 cat >> confdefs.h <<\EOF
4909 #define NTOHL_IN_SYS_PARAM_H 1
4914 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4915 echo "configure:4916: checking if \$CC accepts -finline-limit" >&5
4916 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4928 if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 ac_cv_c_inline_limit=yes
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 ac_cv_c_inline_limit=no
4940 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4941 if test x"$ac_cv_c_inline_limit" != x"no"; then
4942 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4945 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4946 echo "configure:4947: checking if \$CC accepts -Wall -Winline" >&5
4947 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 CFLAGS="${save_CFLAGS} -Wall -Winline"
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4959 if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4961 ac_cv_c_Wall_Winline=yes
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 ac_cv_c_Wall_Winline=no
4971 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4972 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4973 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4975 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4976 echo "configure:4977: checking if \$CC accepts -wall -winline" >&5
4977 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 CFLAGS="${save_CFLAGS} -wall -winline"
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4989 if { (eval echo configure:4990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4991 ac_cv_c_wall_winline=yes
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4996 ac_cv_c_wall_winline=no
5001 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5002 if test x"$ac_cv_c_wall_winline" != x"no"; then
5003 save_CFLAGS="${save_CFLAGS} -wall -winline"
5007 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5008 echo "configure:5009: checking if \$CC accepts -pipe" >&5
5009 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 CFLAGS="${save_CFLAGS} -pipe"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5021 if { (eval echo configure:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5033 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5034 if test x"$ac_cv_c_pipe" != x"no"; then
5035 save_CFLAGS="${save_CFLAGS} -pipe"
5038 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5039 echo "configure:5040: checking if \$CC accepts -O3" >&5
5040 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 CFLAGS="${save_CFLAGS} -O3"
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5052 if { (eval echo configure:5053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5064 echo "$ac_t""$ac_cv_c_o3" 1>&6
5065 if test x"$ac_cv_c_o3" != x"no"; then
5066 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5068 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5069 echo "configure:5070: checking if \$CC accepts -O2" >&5
5070 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 CFLAGS="${save_CFLAGS} -O2"
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5082 if { (eval echo configure:5083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5094 echo "$ac_t""$ac_cv_c_o2" 1>&6
5095 if test x"$ac_cv_c_o2" != x"no"; then
5096 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5098 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5099 echo "configure:5100: checking if \$CC accepts -O" >&5
5100 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 CFLAGS="${save_CFLAGS} -O"
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5112 if { (eval echo configure:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5124 echo "$ac_t""$ac_cv_c_o" 1>&6
5125 if test x"$ac_cv_c_o" != x"no"; then
5126 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5131 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5132 echo "configure:5133: checking if \$CC accepts -ffast-math" >&5
5133 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 CFLAGS="${save_CFLAGS} -ffast-math"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5145 if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5147 ac_cv_c_fast_math=yes
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 ac_cv_c_fast_math=no
5157 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5158 if test x"$ac_cv_c_fast_math" != x"no"; then
5159 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5162 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5163 echo "configure:5164: checking if \$CC accepts -funroll-loops" >&5
5164 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 CFLAGS="${save_CFLAGS} -funroll-loops"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5176 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5178 ac_cv_c_unroll_loops=yes
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 ac_cv_c_unroll_loops=no
5188 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5189 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5190 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5193 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5194 echo "configure:5195: checking if \$CC accepts -fomit-frame-pointer" >&5
5195 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5207 if { (eval echo configure:5208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 ac_cv_c_omit_frame_pointer=yes
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 ac_cv_c_omit_frame_pointer=no
5219 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5220 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5221 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5224 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5225 echo "configure:5226: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5226 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5250 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5251 if test x"$ac_cv_ld_darwin" != x"no"; then
5252 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5255 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5256 echo "configure:5257: checking if \$CC accepts -shared" >&5
5257 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 CFLAGS="${save_CFLAGS} -shared"
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 ac_cv_ld_plugins=yes
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5281 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5282 if test x"$ac_cv_ld_plugins" != x"no"; then
5283 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5286 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5287 echo "configure:5288: checking for variadic cpp macros" >&5
5288 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5291 CFLAGS="${save_CFLAGS}"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5296 #define a(b,c...) printf(b,##c)
5298 a("foo");a("%s","bar");a("%s%s","baz","quux");
5301 if { (eval echo configure:5302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5303 ac_cv_cpp_variadic_macros=yes
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5308 ac_cv_cpp_variadic_macros=no
5313 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5314 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_VARIADIC_MACROS 1
5321 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5322 echo "configure:5323: checking __attribute__ ((aligned ())) support" >&5
5323 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 ac_cv_c_attribute_aligned=0
5327 CFLAGS="${save_CFLAGS} -Werror"
5328 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5334 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5348 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5349 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5350 cat >> confdefs.h <<EOF
5351 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5356 CFLAGS="${save_CFLAGS}"
5357 CPPFLAGS="${save_CPPFLAGS}"
5358 LDFLAGS="${save_LDFLAGS}"
5360 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5361 echo "configure:5362: checking for boolean_t in sys/types.h" >&5
5362 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5368 #include <sys/types.h>
5373 if { (eval echo configure:5374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 ac_cv_c_boolean_t_sys_types_h=yes
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 ac_cv_c_boolean_t_sys_types_h=no
5385 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5386 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5387 cat >> confdefs.h <<\EOF
5388 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5393 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5394 echo "configure:5395: checking for boolean_t in pthread.h" >&5
5395 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 #include <pthread.h>
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5408 ac_cv_c_boolean_t_pthread_h=yes
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 ac_cv_c_boolean_t_pthread_h=no
5418 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5419 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5420 cat >> confdefs.h <<\EOF
5421 #define BOOLEAN_T_IN_PTHREAD_H 1
5426 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5427 echo "configure:5428: checking for boolean_t in cthreads.h" >&5
5428 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 #include <cthreads.h>
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5441 ac_cv_c_boolean_t_cthreads_h=yes
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 ac_cv_c_boolean_t_cthreads_h=no
5451 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5452 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5453 cat >> confdefs.h <<\EOF
5454 #define BOOLEAN_T_IN_CTHREADS_H 1
5459 case x"${target_cpu}" in
5464 ARCH="${target_cpu}"
5468 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"
5469 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 filter_crop fx_scope"
5471 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5472 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5473 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5474 SSE_MODULES="imdctsse downmixsse"
5475 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5477 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5478 echo "configure:5479: checking if \$CC groks MMX inline assembly" >&5
5479 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5487 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5490 if { (eval echo configure:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5492 ac_cv_mmx_inline=yes
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5502 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5503 if test x"$ac_cv_mmx_inline" != x"no"; then
5504 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5507 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5508 echo "configure:5509: checking if \$CC groks MMX EXT inline assembly" >&5
5509 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5517 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5522 ac_cv_mmxext_inline=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 ac_cv_mmxext_inline=no
5532 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5533 if test x"$ac_cv_mmxext_inline" != x"no"; then
5534 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5537 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5538 echo "configure:5539: checking if \$CC groks 3D Now! inline assembly" >&5
5539 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5550 if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552 ac_cv_3dnow_inline=yes
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 ac_cv_3dnow_inline=no
5562 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5563 if test x"$ac_cv_3dnow_inline" != x"no"; then
5564 cat >> confdefs.h <<\EOF
5565 #define CAN_COMPILE_3DNOW 1
5568 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5571 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5572 echo "configure:5573: checking if \$CC groks SSE inline assembly" >&5
5573 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5581 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5584 if { (eval echo configure:5585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5586 ac_cv_sse_inline=yes
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5596 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5597 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5598 cat >> confdefs.h <<\EOF
5599 #define CAN_COMPILE_SSE 1
5602 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5605 # don't try to grok altivec with native mingw32 it doesn't work right now
5606 # we should be able to remove this test with future versions of mingw32
5607 if test x$SYS != xmingw32; then
5608 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5609 echo "configure:5610: checking if \$CC groks Altivec inline assembly" >&5
5610 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5618 asm volatile("vperm 0,1,2,3");
5621 if { (eval echo configure:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5623 ac_cv_altivec_inline=yes
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5629 CFLAGS="$CFLAGS -Wa,-m7400"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5635 asm volatile("vperm 0,1,2,3");
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5640 ac_cv_altivec_inline="-Wa,-m7400"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 ac_cv_altivec_inline=no
5654 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5655 if test x"$ac_cv_altivec_inline" != x"no"; then
5656 cat >> confdefs.h <<\EOF
5657 #define CAN_COMPILE_ALTIVEC 1
5660 if test x"$ac_cv_altivec_inline" != x"yes"; then
5661 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5662 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5663 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5664 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5666 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5669 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5670 echo "configure:5671: checking if \$CC groks Altivec C extensions" >&5
5671 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5675 CFLAGS="$CFLAGS -faltivec"
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5682 vec_mtvscr((vector unsigned int)(0));
5685 if { (eval echo configure:5686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5687 ac_cv_c_altivec=-faltivec
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5694 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5700 vec_mtvscr((vector unsigned int)(0));
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 ac_cv_c_altivec="-fvec"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5720 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5721 if test x"$ac_cv_c_altivec" != x"no"; then
5722 cat >> confdefs.h <<\EOF
5723 #define CAN_COMPILE_C_ALTIVEC 1
5726 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5727 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5728 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5729 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5730 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5733 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5734 echo "configure:5735: checking if linker needs -framework vecLib" >&5
5735 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 save_LDFLAGS=$LDFLAGS
5739 LDFLAGS="$LDFLAGS -framework vecLib"
5740 cat > conftest.$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 ac_cv_ld_altivec=yes
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5758 LDFLAGS=$save_LDFLAGS
5762 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5763 if test x"$ac_cv_ld_altivec" != x"no"; then
5764 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5765 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5766 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5767 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5772 # Check whether --with- or --without- was given.
5773 if test "${with_+set}" = set; then
5778 # Check whether --with- or --without- was given.
5779 if test "${with_+set}" = set; then
5785 # Check whether --with-tuning or --without-tuning was given.
5786 if test "${with_tuning+set}" = set; then
5787 withval="$with_tuning"
5791 if test "x$with_tuning" != "x"; then
5792 TUNING="$with_tuning"
5794 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5796 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5800 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5803 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5806 # Check whether --enable-optimizations or --disable-optimizations was given.
5807 if test "${enable_optimizations+set}" = set; then
5808 enableval="$enable_optimizations"
5809 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5815 # Check whether --enable-altivec or --disable-altivec was given.
5816 if test "${enable_altivec+set}" = set; then
5817 enableval="$enable_altivec"
5818 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5819 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5821 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5822 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5827 # Check whether --enable-debug or --disable-debug was given.
5828 if test "${enable_debug+set}" = set; then
5829 enableval="$enable_debug"
5830 if test x$enable_debug = xyes; then DEBUG=1; fi
5835 # Check whether --enable-release or --disable-release was given.
5836 if test "${enable_release+set}" = set; then
5837 enableval="$enable_release"
5838 if test x$enable_release = xyes; then RELEASE=1; fi
5840 VERSION="${VERSION}_`date +%Y-%m-%d`"
5845 # Check whether --with- or --without- was given.
5846 if test "${with_+set}" = set; then
5852 # Check whether --enable-dvd or --disable-dvd was given.
5853 if test "${enable_dvd+set}" = set; then
5854 enableval="$enable_dvd"
5858 if test "x$enable_dvd" != "xno"
5860 # Check whether --with-dvdcss or --without-dvdcss was given.
5861 if test "${with_dvdcss+set}" = set; then
5862 withval="$with_dvdcss"
5866 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5867 if test "${with_dvdcss_tree+set}" = set; then
5868 withval="$with_dvdcss_tree"
5872 case "x$with_dvdcss" in
5874 if test "x$with_dvdcss_tree" = x
5876 for ac_hdr in dvdcss/dvdcss.h
5878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_hdr" >&5
5881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5890 { (eval echo configure:5891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5892 if test -z "$ac_err"; then
5894 eval "ac_cv_header_$ac_safe=yes"
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5900 eval "ac_cv_header_$ac_safe=no"
5904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5907 cat >> confdefs.h <<EOF
5908 #define $ac_tr_hdr 1
5910 PLUGINS="${PLUGINS} dvd"
5911 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5913 echo "$ac_t""no" 1>&6
5914 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
5915 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5920 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5921 echo "configure:5922: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5922 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5923 if test "x$real_dvdcss_tree" = x
5925 echo "$ac_t""no" 1>&6
5926 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5928 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5930 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5931 BUILTINS="${BUILTINS} dvd"
5932 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5933 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5935 echo "$ac_t""no" 1>&6
5936 { 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; }
5941 PLUGINS="${PLUGINS} dvd"
5942 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5943 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5946 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5947 echo "configure:5948: checking for dvdcss headers in ${with_dvdcss}" >&5
5948 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5950 echo "$ac_t""yes" 1>&6
5951 PLUGINS="${PLUGINS} dvd"
5952 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5953 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5955 echo "$ac_t""no" 1>&6
5956 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5962 # Check whether --enable-dvdread or --disable-dvdread was given.
5963 if test "${enable_dvdread+set}" = set; then
5964 enableval="$enable_dvdread"
5968 if test "x$enable_dvdread" != "xno"
5970 # Check whether --with-dvdread or --without-dvdread was given.
5971 if test "${with_dvdread+set}" = set; then
5972 withval="$with_dvdread"
5976 if test "x$with_dvdread" = x
5981 test_LDFLAGS="-L${with_dvdread}/lib"
5982 test_CFLAGS="-I${with_dvdread}/include"
5984 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5985 for ac_hdr in dvdread/dvd_reader.h
5987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_hdr" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5999 { (eval echo configure:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6001 if test -z "$ac_err"; then
6003 eval "ac_cv_header_$ac_safe=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_header_$ac_safe=no"
6013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_hdr 1
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 #include <dvdread/dvd_reader.h>
6025 void foo() { int i=DVD_VIDEO_LB_LEN; }
6028 if { (eval echo configure:6029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6031 PLUGINS="${PLUGINS} dvdread"
6032 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6033 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6040 if test "x$enable_dvdread" != x
6042 { 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; }
6049 echo "$ac_t""no" 1>&6
6050 if test "x$enable_dvdread" != x
6052 if test "x$with_dvdread" != x
6054 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6056 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6063 CPPFLAGS="$save_CPPFLAGS"
6066 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6067 if test "${enable_dvbpsi+set}" = set; then
6068 enableval="$enable_dvbpsi"
6072 if test "x$enable_dvbpsi" != "xno"
6074 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6075 if test "${with_dvbpsi+set}" = set; then
6076 withval="$with_dvbpsi"
6080 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6081 if test "${with_dvbpsi+set}" = set; then
6082 withval="$with_dvbpsi"
6086 case "x$with_dvbpsi" in
6088 if test "x$with_dvbpsi_tree" = x
6090 for ac_hdr in dvbpsi/dr.h
6092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_hdr" >&5
6095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6104 { (eval echo configure:6105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6106 if test -z "$ac_err"; then
6108 eval "ac_cv_header_$ac_safe=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_header_$ac_safe=no"
6118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6121 cat >> confdefs.h <<EOF
6122 #define $ac_tr_hdr 1
6124 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6125 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6127 echo "$ac_t""no" 1>&6
6132 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6133 echo "configure:6134: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6134 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6135 if test "x$real_dvbpsi_tree" = x
6137 echo "$ac_t""no" 1>&6
6138 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6140 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6142 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6143 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6144 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6145 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6147 echo "$ac_t""no" 1>&6
6148 { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6155 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6156 echo "configure:6157: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6157 if test "x$with_dvbpsi" = x
6162 test_LDFLAGS="-L${with_dvbpsi}/lib"
6163 test_CFLAGS="-I${with_dvbpsi}/include"
6165 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6166 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6167 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6168 echo "configure:6169: checking for dvbpsi/dr.h" >&5
6169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <dvbpsi/dr.h>
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6180 if test -z "$ac_err"; then
6182 eval "ac_cv_header_$ac_safe=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_header_$ac_safe=no"
6192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6193 echo "$ac_t""yes" 1>&6
6195 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6196 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6197 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6200 echo "$ac_t""no" 1>&6
6202 if test "x$enable_dvbpsi" != x
6204 { 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; }
6209 CPPFLAGS="$save_CPPFLAGS"
6214 # Check whether --enable-vcd or --disable-vcd was given.
6215 if test "${enable_vcd+set}" = set; then
6216 enableval="$enable_vcd"
6221 if test x$enable_vcd != xno
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 #include <linux/cdrom.h>
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 egrep "cdrom_msf0" >/dev/null 2>&1; then
6232 PLUGINS="${PLUGINS} vcd"
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 #include <sys/cdio.h>
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 egrep "ioc_toc_header " >/dev/null 2>&1; then
6247 PLUGINS="${PLUGINS} vcd"
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6257 if test "x${SYS}" = "xbsdi"
6259 PLUGINS="${PLUGINS} vcd"
6262 if test "x${SYS}" = "xdarwin"
6264 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6265 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6269 # Check whether --enable-satellite or --disable-satellite was given.
6270 if test "${enable_satellite+set}" = set; then
6271 enableval="$enable_satellite"
6272 if test x$enable_satellite = xyes
6274 PLUGINS="${PLUGINS} satellite"
6279 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6281 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6282 echo "configure:6283: checking for inet_pton" >&5
6283 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6286 cat > conftest.$ac_ext <<EOF
6287 #line 6288 "configure"
6288 #include "confdefs.h"
6289 /* System header to define __stub macros and hopefully few prototypes,
6290 which can conflict with char inet_pton(); below. */
6292 /* Override any gcc2 internal prototype to avoid an error. */
6293 /* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6299 /* The GNU C library defines this for functions which it implements
6300 to always fail with ENOSYS. Some functions are actually named
6301 something starting with __ and the normal name is an alias. */
6302 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6310 if { (eval echo configure:6311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6312 eval "ac_cv_func_inet_pton=yes"
6314 echo "configure: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6317 eval "ac_cv_func_inet_pton=no"
6322 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6323 echo "$ac_t""yes" 1>&6
6324 PLUGINS="${PLUGINS} ipv6"
6326 echo "$ac_t""no" 1>&6
6330 if test "x$SYS" = "xmingw32"
6332 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6333 echo "configure:6334: checking for getaddrinfo in ws2tcpip.h" >&5
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 #include <ws2tcpip.h>
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 egrep "addrinfo" >/dev/null 2>&1; then
6342 echo "$ac_t""yes" 1>&6
6343 PLUGINS="${PLUGINS} ipv6"
6346 echo "$ac_t""no" 1>&6
6352 # Check whether --enable-avi or --disable-avi was given.
6353 if test "${enable_avi+set}" = set; then
6354 enableval="$enable_avi"
6358 if test x$enable_avi != xno
6360 PLUGINS="${PLUGINS} avi"
6364 # Check whether --with- or --without- was given.
6365 if test "${with_+set}" = set; then
6371 # Check whether --enable-mad or --disable-mad was given.
6372 if test "${enable_mad+set}" = set; then
6373 enableval="$enable_mad"
6377 if test x$enable_mad = xyes
6379 # Check whether --with-mad or --without-mad was given.
6380 if test "${with_mad+set}" = set; then
6385 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6387 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6388 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6391 # Check whether --with-mad-tree or --without-mad-tree was given.
6392 if test "${with_mad_tree+set}" = set; then
6393 withval="$with_mad_tree"
6397 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6399 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6400 if test "x$real_mad_tree" = x
6402 echo "$ac_t""no" 1>&6
6403 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6405 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6406 echo "configure:6407: checking for mad.h in ${real_mad_tree}/libmad" >&5
6407 if test -f ${real_mad_tree}/libmad/mad.h
6409 echo "$ac_t""yes" 1>&6
6410 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6411 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6412 save_LDFLAGS=$LDFLAGS
6413 LDFLAGS=$mad_LDFLAGS
6414 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6415 echo "configure:6416: checking for mad_bit_init in -lmad" >&5
6416 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 ac_save_LIBS="$LIBS"
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6428 char mad_bit_init();
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436 eval "ac_cv_lib_$ac_lib_var=yes"
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 eval "ac_cv_lib_$ac_lib_var=no"
6444 LIBS="$ac_save_LIBS"
6447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6448 echo "$ac_t""yes" 1>&6
6450 BUILTINS="${BUILTINS} mad"
6451 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6454 echo "$ac_t""no" 1>&6
6455 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6459 LDFLAGS=$save_LDFLAGS
6461 echo "$ac_t""no" 1>&6
6462 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6466 save_LDFLAGS=$LDFLAGS
6467 CFLAGS="$CFLAGS $mad_CFLAGS"
6468 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6473 echo "configure:6474: checking for $ac_hdr" >&5
6474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6483 { (eval echo configure:6484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6485 if test -z "$ac_err"; then
6487 eval "ac_cv_header_$ac_safe=yes"
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 eval "ac_cv_header_$ac_safe=no"
6497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6500 cat >> confdefs.h <<EOF
6501 #define $ac_tr_hdr 1
6505 echo "$ac_t""no" 1>&6
6506 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6510 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6511 echo "configure:6512: checking for mad_bit_init in -lmad" >&5
6512 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 ac_save_LIBS="$LIBS"
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char mad_bit_init();
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_lib_$ac_lib_var=no"
6540 LIBS="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6546 PLUGINS="${PLUGINS} mad"
6547 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6549 echo "$ac_t""no" 1>&6
6550 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6554 LDFLAGS=$save_LDFLAGS
6558 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6559 if test "${enable_ffmpeg+set}" = set; then
6560 enableval="$enable_ffmpeg"
6564 if test "x$enable_ffmpeg" = "xyes"
6566 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6567 if test "${with_ffmpeg+set}" = set; then
6568 withval="$with_ffmpeg"
6572 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6574 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6575 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6578 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6579 if test "${with_ffmpeg_tree+set}" = set; then
6580 withval="$with_ffmpeg_tree"
6584 if test "x$with_ffmpeg_tree" != "x"
6586 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6587 echo "configure:6588: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6588 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6589 if test "x$real_ffmpeg_tree" = x
6591 echo "$ac_t""no" 1>&6
6592 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6594 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6596 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6597 BUILTINS="${BUILTINS} ffmpeg"
6598 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6599 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6601 echo "$ac_t""no" 1>&6
6602 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6606 save_LDFLAGS=$LDFLAGS
6607 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6608 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6609 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6610 echo "configure:6611: checking for avcodec_init in -lavcodec" >&5
6611 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6615 ac_save_LIBS="$LIBS"
6616 LIBS="-lavcodec $LIBS"
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 /* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */
6623 char avcodec_init();
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 eval "ac_cv_lib_$ac_lib_var=yes"
6633 echo "configure: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6636 eval "ac_cv_lib_$ac_lib_var=no"
6639 LIBS="$ac_save_LIBS"
6642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6645 BUILTINS="${BUILTINS} ffmpeg"
6646 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6648 echo "$ac_t""no" 1>&6
6649 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6653 LDFLAGS=$save_LDFLAGS
6658 if test x$SYS = xbeos
6660 PLUGINS="${PLUGINS} beos"
6663 # Check whether --enable-a52 or --disable-a52 was given.
6664 if test "${enable_a52+set}" = set; then
6665 enableval="$enable_a52"
6669 if test "x$enable_a52" != "xno"
6671 # Check whether --with-a52-tree or --without-a52-tree was given.
6672 if test "${with_a52_tree+set}" = set; then
6673 withval="$with_a52_tree"
6677 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6679 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6680 if test "x$real_a52_tree" = x
6682 echo "$ac_t""no" 1>&6
6683 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6685 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6686 echo "configure:6687: checking for a52.h in ${real_a52_tree}/include" >&5
6687 if test -f ${real_a52_tree}/include/a52.h
6689 echo "$ac_t""yes" 1>&6
6690 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6691 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6692 save_LDFLAGS=$LDFLAGS
6693 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6694 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6695 echo "configure:6696: checking for a52_free in -la52" >&5
6696 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 ac_save_LIBS="$LIBS"
6701 LIBS="-la52 -lm $LIBS"
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 eval "ac_cv_lib_$ac_lib_var=yes"
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 eval "ac_cv_lib_$ac_lib_var=no"
6724 LIBS="$ac_save_LIBS"
6727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6728 echo "$ac_t""yes" 1>&6
6730 BUILTINS="${BUILTINS} a52"
6731 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6732 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6735 echo "$ac_t""no" 1>&6
6737 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6739 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6741 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6746 LDFLAGS=$save_LDFLAGS
6748 echo "$ac_t""no" 1>&6
6749 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6751 else for ac_hdr in a52dec/a52.h
6753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6755 echo "configure:6756: checking for $ac_hdr" >&5
6756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6765 { (eval echo configure:6766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6767 if test -z "$ac_err"; then
6769 eval "ac_cv_header_$ac_safe=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_header_$ac_safe=no"
6779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6780 echo "$ac_t""yes" 1>&6
6781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6782 cat >> confdefs.h <<EOF
6783 #define $ac_tr_hdr 1
6786 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6787 echo "configure:6788: checking for a52_free in -la52" >&5
6788 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6793 LIBS="-la52 -lm $LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6822 BUILTINS="${BUILTINS} a52"
6823 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6824 a52_CFLAGS="${a52_CFLAGS}"
6827 echo "$ac_t""no" 1>&6
6832 echo "$ac_t""no" 1>&6
6839 # Check whether --enable-vorbis or --disable-vorbis was given.
6840 if test "${enable_vorbis+set}" = set; then
6841 enableval="$enable_vorbis"
6845 if test "x$enable_vorbis" != "xno"
6847 for ac_hdr in ogg/ogg.h
6849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_hdr" >&5
6852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6861 { (eval echo configure:6862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6863 if test -z "$ac_err"; then
6865 eval "ac_cv_header_$ac_safe=yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 eval "ac_cv_header_$ac_safe=no"
6875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6876 echo "$ac_t""yes" 1>&6
6877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6878 cat >> confdefs.h <<EOF
6879 #define $ac_tr_hdr 1
6882 #PLUGINS="${PLUGINS} vorbis"
6883 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6886 echo "$ac_t""no" 1>&6
6893 # Check whether --with- or --without- was given.
6894 if test "${with_+set}" = set; then
6900 # Check whether --enable-x11 or --disable-x11 was given.
6901 if test "${enable_x11+set}" = set; then
6902 enableval="$enable_x11"
6906 if test x$enable_x11 != xno &&
6907 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6908 if test x$x_includes = xNONE; then
6909 x_includes=/usr/X11R6/include
6911 if test x$x_libraries = xNONE; then
6912 x_libraries=/usr/X11R6/lib
6914 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6915 for ac_hdr in X11/Xlib.h
6917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6919 echo "configure:6920: checking for $ac_hdr" >&5
6920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6929 { (eval echo configure:6930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6931 if test -z "$ac_err"; then
6933 eval "ac_cv_header_$ac_safe=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_header_$ac_safe=no"
6943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6944 echo "$ac_t""yes" 1>&6
6945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6946 cat >> confdefs.h <<EOF
6947 #define $ac_tr_hdr 1
6950 PLUGINS="${PLUGINS} x11"
6951 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6952 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6955 echo "$ac_t""no" 1>&6
6959 CPPFLAGS="$save_CPPFLAGS"
6962 # Check whether --enable-xvideo or --disable-xvideo was given.
6963 if test "${enable_xvideo+set}" = set; then
6964 enableval="$enable_xvideo"
6968 if test x$enable_xvideo != xno &&
6969 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6970 if test x$x_includes = xNONE; then
6971 x_includes=/usr/X11R6/include
6973 if test x$x_libraries = xNONE; then
6974 x_libraries=/usr/X11R6/lib
6976 save_CPPFLAGS=$CPPFLAGS
6977 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6978 for ac_hdr in X11/extensions/Xv.h
6980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_hdr" >&5
6983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6992 { (eval echo configure:6993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6994 if test -z "$ac_err"; then
6996 eval "ac_cv_header_$ac_safe=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 eval "ac_cv_header_$ac_safe=no"
7006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7009 cat >> confdefs.h <<EOF
7010 #define $ac_tr_hdr 1
7014 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7015 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7016 echo "configure:7017: checking for XvSetPortAttribute in -lXv_pic" >&5
7017 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6
7021 ac_save_LIBS="$LIBS"
7022 LIBS="-lXv_pic $LIBS"
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7029 char XvSetPortAttribute();
7032 XvSetPortAttribute()
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 eval "ac_cv_lib_$ac_lib_var=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 eval "ac_cv_lib_$ac_lib_var=no"
7045 LIBS="$ac_save_LIBS"
7048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7051 PLUGINS="${PLUGINS} xvideo"
7052 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7053 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7055 echo "$ac_t""no" 1>&6
7056 # We don't have Xv_pic, let's make xvideo.a as builtin
7057 BUILTINS="${BUILTINS} xvideo"
7058 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7059 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7062 CFLAGS="$save_CFLAGS"
7064 CPPFLAGS="$save_CPPFLAGS"
7066 echo "$ac_t""no" 1>&6
7072 # Check whether --enable-sdl or --disable-sdl was given.
7073 if test "${enable_sdl+set}" = set; then
7074 enableval="$enable_sdl"
7078 if test "x$enable_sdl" != "xno"
7081 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7082 if test "${with_sdl_config_path+set}" = set; then
7083 withval="$with_sdl_config_path"
7084 if test "x$with_sdl_config_path" != "xno"
7086 SDL_PATH="$with_sdl_config_path:$PATH"
7090 # Extract the first word of "sdl12-config", so it can be a program name with args.
7091 set dummy sdl12-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_SDL12_CONFIG'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 case "$SDL12_CONFIG" in
7099 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7102 ac_cv_path_SDL12_CONFIG="$SDL12_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_SDL12_CONFIG="$ac_dir/$ac_word"
7115 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7119 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7120 if test -n "$SDL12_CONFIG"; then
7121 echo "$ac_t""$SDL12_CONFIG" 1>&6
7123 echo "$ac_t""no" 1>&6
7126 SDL_CONFIG=${SDL12_CONFIG}
7127 SDL_HEADER="SDL12/SDL.h"
7128 if test x${SDL_CONFIG} = xno
7130 # Extract the first word of "sdl11-config", so it can be a program name with args.
7131 set dummy sdl11-config; ac_word=$2
7132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7133 echo "configure:7134: checking for $ac_word" >&5
7134 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7137 case "$SDL11_CONFIG" in
7139 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7142 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7146 ac_dummy="$SDL_PATH"
7147 for ac_dir in $ac_dummy; do
7148 test -z "$ac_dir" && ac_dir=.
7149 if test -f $ac_dir/$ac_word; then
7150 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7155 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7159 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7160 if test -n "$SDL11_CONFIG"; then
7161 echo "$ac_t""$SDL11_CONFIG" 1>&6
7163 echo "$ac_t""no" 1>&6
7166 SDL_CONFIG=${SDL11_CONFIG}
7167 SDL_HEADER="SDL11/SDL.h"
7169 if test x${SDL_CONFIG} = xno
7171 # Extract the first word of "sdl-config", so it can be a program name with args.
7172 set dummy sdl-config; ac_word=$2
7173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_word" >&5
7175 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 case "$SDL_CONFIG" in
7180 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7183 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7187 ac_dummy="$SDL_PATH"
7188 for ac_dir in $ac_dummy; do
7189 test -z "$ac_dir" && ac_dir=.
7190 if test -f $ac_dir/$ac_word; then
7191 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7196 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7200 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7201 if test -n "$SDL_CONFIG"; then
7202 echo "$ac_t""$SDL_CONFIG" 1>&6
7204 echo "$ac_t""no" 1>&6
7207 SDL_HEADER="SDL/SDL.h"
7209 if test x${SDL_CONFIG} != xno
7211 PLUGINS="${PLUGINS} sdl"
7212 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7213 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7214 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7215 for ac_hdr in ${SDL_HEADER}
7217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7219 echo "configure:7220: checking for $ac_hdr" >&5
7220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7221 echo $ac_n "(cached) $ac_c" 1>&6
7223 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7231 if test -z "$ac_err"; then
7233 eval "ac_cv_header_$ac_safe=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_header_$ac_safe=no"
7243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_hdr 1
7249 cat >> confdefs.h <<EOF
7250 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7254 echo "$ac_t""no" 1>&6
7255 { echo "configure: error: The development package for SDL is not installed.
7256 Please install it and try again. Alternatively you can also configure with
7257 --disable-sdl." 1>&2; exit 1; }
7262 CPPFLAGS="$save_CPPFLAGS"
7263 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7265 { echo "configure: error: The development package for SDL is not installed.
7266 Please install it and try again. Alternatively you can also configure with
7267 --disable-sdl." 1>&2; exit 1; }
7269 elif test "x$enable_sdl" = "xyes"
7271 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7272 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7277 # Check whether --enable-directx or --disable-directx was given.
7278 if test "${enable_directx+set}" = set; then
7279 enableval="$enable_directx"
7283 if test "x$enable_directx" != "xno"
7285 if test x$SYS = xmingw32
7287 # Check whether --with-directx or --without-directx was given.
7288 if test "${with_directx+set}" = set; then
7289 withval="$with_directx"
7293 if test "x$with_directx" = "x"
7295 for ac_hdr in ddraw.h
7297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7299 echo "configure:7300: checking for $ac_hdr" >&5
7300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7309 { (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7311 if test -z "$ac_err"; then
7313 eval "ac_cv_header_$ac_safe=yes"
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7319 eval "ac_cv_header_$ac_safe=no"
7323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7326 cat >> confdefs.h <<EOF
7327 #define $ac_tr_hdr 1
7329 PLUGINS="${PLUGINS} directx"
7330 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7332 echo "$ac_t""no" 1>&6
7337 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7338 echo "configure:7339: checking for directX headers in ${with_directx}" >&5
7339 if test -f ${with_directx}/ddraw.h
7341 PLUGINS="${PLUGINS} directx"
7342 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7343 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7344 echo "$ac_t""yes" 1>&6
7346 echo "$ac_t""no" 1>&6
7347 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7353 # Check whether --enable-fb or --disable-fb was given.
7354 if test "${enable_fb+set}" = set; then
7355 enableval="$enable_fb"
7359 if test x$enable_fb != xno
7361 for ac_hdr in linux/fb.h
7363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7365 echo "configure:7366: checking for $ac_hdr" >&5
7366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7375 { (eval echo configure:7376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7377 if test -z "$ac_err"; then
7379 eval "ac_cv_header_$ac_safe=yes"
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7385 eval "ac_cv_header_$ac_safe=no"
7389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7392 cat >> confdefs.h <<EOF
7393 #define $ac_tr_hdr 1
7396 PLUGINS="${PLUGINS} fb"
7399 echo "$ac_t""no" 1>&6
7405 # Check whether --enable-mga or --disable-mga was given.
7406 if test "${enable_mga+set}" = set; then
7407 enableval="$enable_mga"
7408 if test x$enable_mga = xyes
7410 PLUGINS="${PLUGINS} mga xmga"
7415 # Check whether --enable-ggi or --disable-ggi was given.
7416 if test "${enable_ggi+set}" = set; then
7417 enableval="$enable_ggi"
7421 if test x$enable_ggi = xyes
7423 PLUGINS="${PLUGINS} ggi"
7424 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7425 # Check whether --with-ggi or --without-ggi was given.
7426 if test "${with_ggi+set}" = set; then
7428 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7430 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7431 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7437 # Check whether --enable-glide or --disable-glide was given.
7438 if test "${enable_glide+set}" = set; then
7439 enableval="$enable_glide"
7443 if test x$enable_glide = xyes
7445 PLUGINS="${PLUGINS} glide"
7446 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7447 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7448 # Check whether --with-glide or --without-glide was given.
7449 if test "${with_glide+set}" = set; then
7450 withval="$with_glide"
7451 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7453 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7454 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7460 # Check whether --enable-aa or --disable-aa was given.
7461 if test "${enable_aa+set}" = set; then
7462 enableval="$enable_aa"
7466 if test x$enable_aa = xyes
7468 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7469 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7470 echo "configure:7471: checking for aalib.h" >&5
7471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7474 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7482 if test -z "$ac_err"; then
7484 eval "ac_cv_header_$ac_safe=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_header_$ac_safe=no"
7494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7495 echo "$ac_t""yes" 1>&6
7498 echo "$ac_t""no" 1>&6
7502 if test x$have_aa = xtrue
7504 PLUGINS="${PLUGINS} aa"
7505 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7510 # Check whether --with- or --without- was given.
7511 if test "${with_+set}" = set; then
7517 # Check whether --enable-dsp or --disable-dsp was given.
7518 if test "${enable_dsp+set}" = set; then
7519 enableval="$enable_dsp"
7524 if test x$enable_dsp != xno &&
7525 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7527 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7531 echo "configure:7532: checking for $ac_hdr" >&5
7532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7541 { (eval echo configure:7542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7543 if test -z "$ac_err"; then
7545 eval "ac_cv_header_$ac_safe=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_header_$ac_safe=no"
7555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7558 cat >> confdefs.h <<EOF
7559 #define $ac_tr_hdr 1
7562 PLUGINS="${PLUGINS} dsp"
7563 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7564 echo "configure:7565: checking for main in -lossaudio" >&5
7565 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 ac_save_LIBS="$LIBS"
7570 LIBS="-lossaudio $LIBS"
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_lib_$ac_lib_var=no"
7589 LIBS="$ac_save_LIBS"
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7596 echo "$ac_t""no" 1>&6
7601 echo "$ac_t""no" 1>&6
7607 # Check whether --enable-esd or --disable-esd was given.
7608 if test "${enable_esd+set}" = set; then
7609 enableval="$enable_esd"
7610 if test x$enable_esd = xyes
7612 # Extract the first word of "esd-config", so it can be a program name with args.
7613 set dummy esd-config; ac_word=$2
7614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7615 echo "configure:7616: checking for $ac_word" >&5
7616 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 case "$ESD_CONFIG" in
7621 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7624 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7629 for ac_dir in $ac_dummy; do
7630 test -z "$ac_dir" && ac_dir=.
7631 if test -f $ac_dir/$ac_word; then
7632 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7637 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7641 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7642 if test -n "$ESD_CONFIG"; then
7643 echo "$ac_t""$ESD_CONFIG" 1>&6
7645 echo "$ac_t""no" 1>&6
7648 if test x${ESD_CONFIG} != xno
7650 PLUGINS="${PLUGINS} esd"
7651 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7652 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7658 # Check whether --enable-arts or --disable-arts was given.
7659 if test "${enable_arts+set}" = set; then
7660 enableval="$enable_arts"
7661 if test x$enable_arts = xyes
7663 # Extract the first word of "artsc-config", so it can be a program name with args.
7664 set dummy artsc-config; ac_word=$2
7665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_word" >&5
7667 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 case "$ARTS_CONFIG" in
7672 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7675 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7680 for ac_dir in $ac_dummy; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7688 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7692 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7693 if test -n "$ARTS_CONFIG"; then
7694 echo "$ac_t""$ARTS_CONFIG" 1>&6
7696 echo "$ac_t""no" 1>&6
7699 if test x${ARTS_CONFIG} != xno
7701 PLUGINS="${PLUGINS} arts"
7702 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7703 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7709 # Check whether --enable-alsa or --disable-alsa was given.
7710 if test "${enable_alsa+set}" = set; then
7711 enableval="$enable_alsa"
7712 if test x$enable_alsa = xyes
7714 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7715 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7716 echo "configure:7717: checking for alsa/asoundlib.h" >&5
7717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 #include <alsa/asoundlib.h>
7725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7726 { (eval echo configure:7727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7728 if test -z "$ac_err"; then
7730 eval "ac_cv_header_$ac_safe=yes"
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 eval "ac_cv_header_$ac_safe=no"
7740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7741 echo "$ac_t""yes" 1>&6
7742 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7743 echo "configure:7744: checking for main in -lasound" >&5
7744 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 ac_save_LIBS="$LIBS"
7749 LIBS="-lasound $LIBS"
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 eval "ac_cv_lib_$ac_lib_var=yes"
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 eval "ac_cv_lib_$ac_lib_var=no"
7768 LIBS="$ac_save_LIBS"
7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7775 echo "$ac_t""no" 1>&6
7780 echo "$ac_t""no" 1>&6
7784 if test x$have_alsa = xtrue
7786 PLUGINS="${PLUGINS} alsa"
7787 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7793 # Check whether --enable-waveout or --disable-waveout was given.
7794 if test "${enable_waveout+set}" = set; then
7795 enableval="$enable_waveout"
7799 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7801 PLUGINS="${PLUGINS} waveout"
7802 waveout_LDFLAGS="-lwinmm"
7806 # Check whether --with- or --without- was given.
7807 if test "${with_+set}" = set; then
7813 # Check whether --enable-gtk or --disable-gtk was given.
7814 if test "${enable_gtk+set}" = set; then
7815 enableval="$enable_gtk"
7819 if test x$enable_gtk != xno
7822 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7823 if test "${with_gtk_config_path+set}" = set; then
7824 withval="$with_gtk_config_path"
7825 if test "x$with_gtk_config_path" != "xno"
7827 GTK_PATH="$with_gtk_config_path:$PATH"
7831 # look for gtk-config
7832 # Extract the first word of "gtk12-config", so it can be a program name with args.
7833 set dummy gtk12-config; ac_word=$2
7834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7835 echo "configure:7836: checking for $ac_word" >&5
7836 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 case "$GTK12_CONFIG" in
7841 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7844 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7848 ac_dummy="$GTK_PATH"
7849 for ac_dir in $ac_dummy; do
7850 test -z "$ac_dir" && ac_dir=.
7851 if test -f $ac_dir/$ac_word; then
7852 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7857 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7861 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7862 if test -n "$GTK12_CONFIG"; then
7863 echo "$ac_t""$GTK12_CONFIG" 1>&6
7865 echo "$ac_t""no" 1>&6
7868 GTK_CONFIG=${GTK12_CONFIG}
7869 if test x${GTK_CONFIG} = xno
7871 # Extract the first word of "gtk-config", so it can be a program name with args.
7872 set dummy gtk-config; ac_word=$2
7873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_word" >&5
7875 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 case "$GTK_CONFIG" in
7880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7887 ac_dummy="$GTK_PATH"
7888 for ac_dir in $ac_dummy; do
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/$ac_word; then
7891 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7896 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7900 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7901 if test -n "$GTK_CONFIG"; then
7902 echo "$ac_t""$GTK_CONFIG" 1>&6
7904 echo "$ac_t""no" 1>&6
7908 if test x${GTK_CONFIG} != xno
7910 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7912 { 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; }
7914 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7915 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7916 # now look for the gtk.h header
7917 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7918 ac_cv_gtk_headers=yes
7919 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_hdr" >&5
7924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7933 { (eval echo configure:7934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7935 if test -z "$ac_err"; then
7937 eval "ac_cv_header_$ac_safe=yes"
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 eval "ac_cv_header_$ac_safe=no"
7947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7950 cat >> confdefs.h <<EOF
7951 #define $ac_tr_hdr 1
7955 echo "$ac_t""no" 1>&6
7956 ac_cv_gtk_headers=no
7957 echo "Cannot find gtk development headers."
7962 if test "x$ac_cv_gtk_headers" = xyes
7964 PLUGINS="${PLUGINS} gtk"
7965 ALIASES="${ALIASES} gvlc"
7967 CPPFLAGS="$save_CPPFLAGS"
7971 # Check whether --enable-gnome or --disable-gnome was given.
7972 if test "${enable_gnome+set}" = set; then
7973 enableval="$enable_gnome"
7974 if test x$enable_gnome = xyes; then
7975 # look for gnome-config
7976 # Extract the first word of "gnome-config", so it can be a program name with args.
7977 set dummy gnome-config; ac_word=$2
7978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7979 echo "configure:7980: checking for $ac_word" >&5
7980 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 case "$GNOME_CONFIG" in
7985 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7988 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7993 for ac_dir in $ac_dummy; do
7994 test -z "$ac_dir" && ac_dir=.
7995 if test -f $ac_dir/$ac_word; then
7996 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8001 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8005 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8006 if test -n "$GNOME_CONFIG"; then
8007 echo "$ac_t""$GNOME_CONFIG" 1>&6
8009 echo "$ac_t""no" 1>&6
8012 if test -x ${GNOME_CONFIG}
8014 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8015 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8017 # now look for the gnome.h header
8018 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8019 for ac_hdr in gnome.h
8021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_hdr" >&5
8024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8033 { (eval echo configure:8034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8035 if test -z "$ac_err"; then
8037 eval "ac_cv_header_$ac_safe=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8043 eval "ac_cv_header_$ac_safe=no"
8047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8050 cat >> confdefs.h <<EOF
8051 #define $ac_tr_hdr 1
8054 PLUGINS="${PLUGINS} gnome"
8055 ALIASES="${ALIASES} gnome-vlc"
8058 echo "$ac_t""no" 1>&6
8059 { echo "configure: error: Can't find gnome headers. Please install the gnome
8060 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8065 CPPFLAGS="$save_CPPFLAGS"
8070 # Check whether --enable-qt or --disable-qt was given.
8071 if test "${enable_qt+set}" = set; then
8072 enableval="$enable_qt"
8073 if test x$enable_qt = xyes; then
8074 PLUGINS="${PLUGINS} qt"
8075 ALIASES="${ALIASES} qvlc"
8076 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8077 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8078 if test -x ${QTDIR}/bin/moc
8080 MOC=${QTDIR}/bin/moc
8088 # Check whether --enable-kde or --disable-kde was given.
8089 if test "${enable_kde+set}" = set; then
8090 enableval="$enable_kde"
8091 if test x$enable_kde = xyes; then
8092 PLUGINS="${PLUGINS} kde"
8093 ALIASES="${ALIASES} kvlc"
8094 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8095 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8096 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8097 if test -x ${QTDIR}/bin/moc
8099 MOC=${QTDIR}/bin/moc
8107 # Check whether --enable-macosx or --disable-macosx was given.
8108 if test "${enable_macosx+set}" = set; then
8109 enableval="$enable_macosx"
8110 if test x$enable_macosx = xyes
8112 BUILTINS="${BUILTINS} macosx"
8113 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8116 for ac_hdr in Cocoa/Cocoa.h
8118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8120 echo "configure:8121: checking for $ac_hdr" >&5
8121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
8124 cat > conftest.$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8130 { (eval echo configure:8131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8132 if test -z "$ac_err"; then
8134 eval "ac_cv_header_$ac_safe=yes"
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 eval "ac_cv_header_$ac_safe=no"
8144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8147 cat >> confdefs.h <<EOF
8148 #define $ac_tr_hdr 1
8150 BUILTINS="${BUILTINS} macosx"
8151 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8154 echo "$ac_t""no" 1>&6
8161 # Check whether --enable-qnx or --disable-qnx was given.
8162 if test "${enable_qnx+set}" = set; then
8163 enableval="$enable_qnx"
8167 if test x$enable_qnx != xno
8171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8173 echo "configure:8174: checking for $ac_hdr" >&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"
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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8200 cat >> confdefs.h <<EOF
8201 #define $ac_tr_hdr 1
8204 PLUGINS="${PLUGINS} qnx"
8205 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8208 echo "$ac_t""no" 1>&6
8214 # Check whether --enable-intfwin or --disable-intfwin was given.
8215 if test "${enable_intfwin+set}" = set; then
8216 enableval="$enable_intfwin"
8217 if test "x$enable_intfwin" != "xno"
8219 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8220 if test "${with_bcbuilder+set}" = set; then
8221 withval="$with_bcbuilder"
8225 if test "x$with_bcbuilder" != "x"
8227 BCBUILDER="$with_bcbuilder"
8229 PLUGINS="${PLUGINS} intfwin"
8234 # Check whether --enable-ncurses or --disable-ncurses was given.
8235 if test "${enable_ncurses+set}" = set; then
8236 enableval="$enable_ncurses"
8237 if test x$enable_ncurses = xyes; then
8238 PLUGINS="${PLUGINS} ncurses"
8239 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8244 # Check whether --enable-lirc or --disable-lirc was given.
8245 if test "${enable_lirc+set}" = set; then
8246 enableval="$enable_lirc"
8250 if test x$enable_lirc = xyes
8252 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8253 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8254 echo "configure:8255: checking for lirc/lirc_client.h" >&5
8255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8256 echo $ac_n "(cached) $ac_c" 1>&6
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 #include <lirc/lirc_client.h>
8263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8264 { (eval echo configure:8265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8266 if test -z "$ac_err"; then
8268 eval "ac_cv_header_$ac_safe=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_header_$ac_safe=no"
8278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8281 echo "configure:8282: checking for lirc_init in -llirc_client" >&5
8282 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8286 ac_save_LIBS="$LIBS"
8287 LIBS="-llirc_client $LIBS"
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8310 LIBS="$ac_save_LIBS"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8317 echo "$ac_t""no" 1>&6
8322 echo "$ac_t""no" 1>&6
8326 if test x$have_lirc = xtrue
8328 PLUGINS="${PLUGINS} lirc"
8329 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8333 # Check whether --with- or --without- was given.
8334 if test "${with_+set}" = set; then
8340 # Check whether --with-words or --without-words was given.
8341 if test "${with_words+set}" = set; then
8342 withval="$with_words"
8346 case "x$with_words" in
8348 ac_cv_c_bigendian=yes
8351 ac_cv_c_bigendian=no
8354 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8355 echo "configure:8356: checking whether the byte order is big-endian" >&5
8356 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8359 ac_cv_c_bigendian=unknown
8360 cat >conftest.c <<EOF
8361 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8362 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8363 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8364 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8365 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8366 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8367 int main(void) { _a(); _e(); return 0; }
8370 if test -f conftest.c
8372 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8373 && test -f conftest.o
8375 if test "`strings conftest.o | grep BIGenDianSyS`"
8377 ac_cv_c_bigendian=yes
8379 if test "`strings conftest.o | grep LiTTleEnDian`"
8381 ac_cv_c_bigendian=no
8388 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8389 if test x$ac_cv_c_bigendian = xunknown
8391 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8395 if test $ac_cv_c_bigendian = yes
8397 cat >> confdefs.h <<\EOF
8398 #define WORDS_BIGENDIAN 1
8404 # Check whether --enable-gprof or --disable-gprof was given.
8405 if test "${enable_gprof+set}" = set; then
8406 enableval="$enable_gprof"
8407 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8412 # Check whether --enable-cprof or --disable-cprof was given.
8413 if test "${enable_cprof+set}" = set; then
8414 enableval="$enable_cprof"
8415 if test "x$enable_cprof" = "xyes";
8417 LDFLAGS="${LDFLAGS} -lcprof"
8424 # Check whether --enable-pth or --disable-pth was given.
8425 if test "${enable_pth+set}" = set; then
8426 enableval="$enable_pth"
8427 if test "x$enable_pth" = "xyes"; then
8428 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8429 echo "configure:8430: checking for pth_init in -lpth" >&5
8430 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8434 ac_save_LIBS="$LIBS"
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 eval "ac_cv_lib_$ac_lib_var=no"
8458 LIBS="$ac_save_LIBS"
8461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8465 cat >> confdefs.h <<EOF
8466 #define $ac_tr_lib 1
8472 echo "$ac_t""no" 1>&6
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8481 egrep "pth_init" >/dev/null 2>&1; then
8484 cat >> confdefs.h <<\EOF
8485 #define PTH_INIT_IN_PTH_H 1
8497 # Check whether --enable-st or --disable-st was given.
8498 if test "${enable_st+set}" = set; then
8499 enableval="$enable_st"
8500 if test "x$enable_st" = "xyes"; then
8501 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8502 echo "configure:8503: checking for st_init in -lst" >&5
8503 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8505 echo $ac_n "(cached) $ac_c" 1>&6
8507 ac_save_LIBS="$LIBS"
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 /* Override any gcc2 internal prototype to avoid an error. */
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 eval "ac_cv_lib_$ac_lib_var=yes"
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 eval "ac_cv_lib_$ac_lib_var=no"
8531 LIBS="$ac_save_LIBS"
8534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8538 cat >> confdefs.h <<EOF
8539 #define $ac_tr_lib 1
8545 echo "$ac_t""no" 1>&6
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8554 egrep "st_init" >/dev/null 2>&1; then
8557 cat >> confdefs.h <<\EOF
8558 #define ST_INIT_IN_ST_H 1
8570 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8572 # Check whether --enable-plugins or --disable-plugins was given.
8573 if test "${enable_plugins+set}" = set; then
8574 enableval="$enable_plugins"
8575 if test x$enable_plugins = xno
8577 BUILTINS="${BUILTINS} ${PLUGINS}"
8583 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8585 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8587 BUILTINS="${BUILTINS} ${PLUGINS}"
8591 cat >> confdefs.h <<EOF
8592 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8595 cat >> confdefs.h <<EOF
8596 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8600 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8601 cat >> confdefs.h <<EOF
8602 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8605 cat >> confdefs.h <<EOF
8606 #define MODULE_SYMBOL $VLC_SYMBOL
8610 DATA_PATH="${ac_tool_prefix}/share/videolan"
8612 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8711 cat > confcache <<\EOF
8712 # This file is a shell script that caches the results of configure
8713 # tests run on this system so they can be shared between configure
8714 # scripts and configure runs. It is not useful on other systems.
8715 # If it contains results you don't want to keep, you may remove or edit it.
8717 # By default, configure uses ./config.cache as the cache file,
8718 # creating it if it does not exist already. You can give configure
8719 # the --cache-file=FILE option to use a different cache file; that is
8720 # what configure does when it calls configure scripts in
8721 # subdirectories, so they share the cache.
8722 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8723 # config.status only pays attention to the cache file if you give it the
8724 # --recheck option to rerun configure.
8727 # The following way of writing the cache mishandles newlines in values,
8728 # but we know of no workaround that is simple, portable, and efficient.
8729 # So, don't put newlines in cache variables' values.
8730 # Ultrix sh set writes to stderr and can't be redirected directly,
8731 # and sets the high bit in the cache file unless we assign to the vars.
8733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8735 # `set' does not quote correctly, so add quotes (double-quote substitution
8736 # turns \\\\ into \\, and sed turns \\ into \).
8738 -e "s/'/'\\\\''/g" \
8739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8742 # `set' quotes correctly as required by POSIX, so do not add quotes.
8743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8746 if cmp -s $cache_file confcache; then
8749 if test -w $cache_file; then
8750 echo "updating cache $cache_file"
8751 cat confcache > $cache_file
8753 echo "not updating unwritable cache $cache_file"
8758 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8761 # Let make expand exec_prefix.
8762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8764 # Any assignment to VPATH causes Sun make to only execute
8765 # the first set of double-colon rules, so remove it if not needed.
8766 # If there is a colon in the path, we need to keep it.
8767 if test "x$srcdir" = x.; then
8768 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8771 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8773 DEFS=-DHAVE_CONFIG_H
8775 # Without the "./", some shells look in PATH for config.status.
8776 : ${CONFIG_STATUS=./config.status}
8778 echo creating $CONFIG_STATUS
8779 rm -f $CONFIG_STATUS
8780 cat > $CONFIG_STATUS <<EOF
8782 # Generated automatically by configure.
8783 # Run this file to recreate the current configuration.
8784 # This directory was configured as follows,
8785 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8787 # $0 $ac_configure_args
8789 # Compiler output produced by configure, useful for debugging
8790 # configure, is in ./config.log if it exists.
8792 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8795 case "\$ac_option" in
8796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8797 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8798 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8799 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8800 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8802 -help | --help | --hel | --he | --h)
8803 echo "\$ac_cs_usage"; exit 0 ;;
8804 *) echo "\$ac_cs_usage"; exit 1 ;;
8808 ac_given_srcdir=$srcdir
8809 ac_given_INSTALL="$INSTALL"
8811 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8813 cat >> $CONFIG_STATUS <<EOF
8815 # Protect against being on the right side of a sed subst in config.status.
8816 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8817 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8821 s%@CFLAGS@%$CFLAGS%g
8822 s%@CPPFLAGS@%$CPPFLAGS%g
8823 s%@CXXFLAGS@%$CXXFLAGS%g
8824 s%@FFLAGS@%$FFLAGS%g
8826 s%@LDFLAGS@%$LDFLAGS%g
8828 s%@exec_prefix@%$exec_prefix%g
8829 s%@prefix@%$prefix%g
8830 s%@program_transform_name@%$program_transform_name%g
8831 s%@bindir@%$bindir%g
8832 s%@sbindir@%$sbindir%g
8833 s%@libexecdir@%$libexecdir%g
8834 s%@datadir@%$datadir%g
8835 s%@sysconfdir@%$sysconfdir%g
8836 s%@sharedstatedir@%$sharedstatedir%g
8837 s%@localstatedir@%$localstatedir%g
8838 s%@libdir@%$libdir%g
8839 s%@includedir@%$includedir%g
8840 s%@oldincludedir@%$oldincludedir%g
8841 s%@infodir@%$infodir%g
8842 s%@mandir@%$mandir%g
8844 s%@host_alias@%$host_alias%g
8845 s%@host_cpu@%$host_cpu%g
8846 s%@host_vendor@%$host_vendor%g
8847 s%@host_os@%$host_os%g
8848 s%@target@%$target%g
8849 s%@target_alias@%$target_alias%g
8850 s%@target_cpu@%$target_cpu%g
8851 s%@target_vendor@%$target_vendor%g
8852 s%@target_os@%$target_os%g
8854 s%@build_alias@%$build_alias%g
8855 s%@build_cpu@%$build_cpu%g
8856 s%@build_vendor@%$build_vendor%g
8857 s%@build_os@%$build_os%g
8858 s%@SET_MAKE@%$SET_MAKE%g
8861 s%@RANLIB@%$RANLIB%g
8864 s%@ALLOCA@%$ALLOCA%g
8865 s%@GLIBC21@%$GLIBC21%g
8866 s%@LIBICONV@%$LIBICONV%g
8867 s%@USE_NLS@%$USE_NLS%g
8868 s%@MSGFMT@%$MSGFMT%g
8869 s%@GMSGFMT@%$GMSGFMT%g
8870 s%@XGETTEXT@%$XGETTEXT%g
8871 s%@INTLBISON@%$INTLBISON%g
8872 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8873 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8874 s%@CATALOGS@%$CATALOGS%g
8875 s%@CATOBJEXT@%$CATOBJEXT%g
8876 s%@GMOFILES@%$GMOFILES%g
8877 s%@INTLLIBS@%$INTLLIBS%g
8878 s%@INTLOBJS@%$INTLOBJS%g
8879 s%@POFILES@%$POFILES%g
8881 s%@DATADIRNAME@%$DATADIRNAME%g
8882 s%@INSTOBJEXT@%$INSTOBJEXT%g
8883 s%@GENCAT@%$GENCAT%g
8884 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8885 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8886 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8887 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8888 s%@INSTALL_DATA@%$INSTALL_DATA%g
8889 s%@WINDRES@%$WINDRES%g
8890 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8891 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8892 s%@SDL_CONFIG@%$SDL_CONFIG%g
8893 s%@ESD_CONFIG@%$ESD_CONFIG%g
8894 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8895 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8896 s%@GTK_CONFIG@%$GTK_CONFIG%g
8897 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8898 s%@DATA_PATH@%$DATA_PATH%g
8899 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8902 s%@PLUGINS@%$PLUGINS%g
8903 s%@BUILTINS@%$BUILTINS%g
8904 s%@ALIASES@%$ALIASES%g
8909 s%@OPTIMS@%$OPTIMS%g
8910 s%@TUNING@%$TUNING%g
8911 s%@RELEASE@%$RELEASE%g
8913 s%@BCBUILDER@%$BCBUILDER%g
8914 s%@PACKAGE@%$PACKAGE%g
8915 s%@VERSION@%$VERSION%g
8916 s%@NEED_GETOPT@%$NEED_GETOPT%g
8917 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8918 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8919 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8920 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8921 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8922 s%@a52_CFLAGS@%$a52_CFLAGS%g
8923 s%@arts_CFLAGS@%$arts_CFLAGS%g
8924 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8925 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8926 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8927 s%@directx_CFLAGS@%$directx_CFLAGS%g
8928 s%@esd_CFLAGS@%$esd_CFLAGS%g
8929 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8930 s%@glide_CFLAGS@%$glide_CFLAGS%g
8931 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8932 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8933 s%@kde_CFLAGS@%$kde_CFLAGS%g
8934 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8935 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8936 s%@mad_CFLAGS@%$mad_CFLAGS%g
8937 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8938 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8939 s%@qt_CFLAGS@%$qt_CFLAGS%g
8940 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8941 s%@x11_CFLAGS@%$x11_CFLAGS%g
8942 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8943 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8944 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8945 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8946 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8947 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8948 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8949 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8950 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8951 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8952 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8953 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8954 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8955 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8956 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8957 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8958 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8959 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8960 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8961 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8962 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8963 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8964 s%@http_LDFLAGS@%$http_LDFLAGS%g
8965 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8966 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8967 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8968 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8969 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8970 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
8971 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8972 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8973 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8974 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8975 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8976 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8977 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8978 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8979 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8980 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8981 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8982 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8983 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8984 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8985 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8986 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8991 cat >> $CONFIG_STATUS <<\EOF
8993 # Split the substitutions into bite-sized pieces for seds with
8994 # small command number limits, like on Digital OSF/1 and HP-UX.
8995 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8996 ac_file=1 # Number of current file.
8997 ac_beg=1 # First line for current file.
8998 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9001 while $ac_more_lines; do
9002 if test $ac_beg -gt 1; then
9003 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9005 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9007 if test ! -s conftest.s$ac_file; then
9009 rm -f conftest.s$ac_file
9011 if test -z "$ac_sed_cmds"; then
9012 ac_sed_cmds="sed -f conftest.s$ac_file"
9014 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9016 ac_file=`expr $ac_file + 1`
9018 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9021 if test -z "$ac_sed_cmds"; then
9026 cat >> $CONFIG_STATUS <<EOF
9028 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9030 cat >> $CONFIG_STATUS <<\EOF
9031 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9036 *) ac_file_in="${ac_file}.in" ;;
9039 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9041 # Remove last slash and all that follows it. Not all systems have dirname.
9042 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9044 # The file is in a subdirectory.
9045 test ! -d "$ac_dir" && mkdir "$ac_dir"
9046 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9047 # A "../" for each directory in $ac_dir_suffix.
9048 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9050 ac_dir_suffix= ac_dots=
9053 case "$ac_given_srcdir" in
9055 if test -z "$ac_dots"; then top_srcdir=.
9056 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9057 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9059 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9060 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9063 case "$ac_given_INSTALL" in
9064 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9065 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9068 echo creating "$ac_file"
9070 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9072 *Makefile*) ac_comsub="1i\\
9073 # $configure_input" ;;
9077 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9079 s%@configure_input@%$configure_input%g
9080 s%@srcdir@%$srcdir%g
9081 s%@top_srcdir@%$top_srcdir%g
9082 s%@INSTALL@%$INSTALL%g
9083 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9090 # ac_d sets the value in "#define NAME VALUE" lines.
9091 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9092 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9095 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9096 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9097 ac_uB='\([ ]\)%\1#\2define\3'
9100 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9101 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9102 ac_eB='$%\1#\2define\3'
9106 if test "${CONFIG_HEADERS+set}" != set; then
9108 cat >> $CONFIG_STATUS <<EOF
9109 CONFIG_HEADERS="include/defs.h"
9111 cat >> $CONFIG_STATUS <<\EOF
9113 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9116 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9117 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9118 *) ac_file_in="${ac_file}.in" ;;
9121 echo creating $ac_file
9123 rm -f conftest.frag conftest.in conftest.out
9124 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9125 cat $ac_file_inputs > conftest.in
9129 # Transform confdefs.h into a sed script conftest.vals that substitutes
9130 # the proper values into config.h.in to produce config.h. And first:
9131 # Protect against being on the right side of a sed subst in config.status.
9132 # Protect against being in an unquoted here document in config.status.
9134 cat > conftest.hdr <<\EOF
9137 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9141 sed -n -f conftest.hdr confdefs.h > conftest.vals
9144 # This sed command replaces #undef with comments. This is necessary, for
9145 # example, in the case of _POSIX_SOURCE, which is predefined and required
9146 # on some systems where configure will not decide to define it.
9147 cat >> conftest.vals <<\EOF
9148 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9151 # Break up conftest.vals because some shells have a limit on
9152 # the size of here documents, and old seds have small limits too.
9157 ac_lines=`grep -c . conftest.vals`
9158 # grep -c gives empty output for an empty file on some AIX systems.
9159 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9160 # Write a limited-size here document to conftest.frag.
9161 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9162 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9164 sed -f conftest.frag conftest.in > conftest.out
9166 mv conftest.out conftest.in
9168 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9170 mv conftest.tail conftest.vals
9174 cat >> $CONFIG_STATUS <<\EOF
9175 rm -f conftest.frag conftest.h
9176 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9177 cat conftest.in >> conftest.h
9179 if cmp -s $ac_file conftest.h 2>/dev/null; then
9180 echo "$ac_file is unchanged"
9183 # Remove last slash and all that follows it. Not all systems have dirname.
9184 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9185 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9186 # The file is in a subdirectory.
9187 test ! -d "$ac_dir" && mkdir "$ac_dir"
9190 mv conftest.h $ac_file
9195 cat >> $CONFIG_STATUS <<EOF
9199 cat >> $CONFIG_STATUS <<\EOF
9200 for ac_file in $CONFIG_FILES; do
9201 # Support "outfile[:infile[:infile...]]"
9203 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9205 # PO directories have a Makefile.in generated from Makefile.in.in.
9206 case "$ac_file" in */Makefile.in)
9207 # Adjust a relative srcdir.
9208 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9209 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9210 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9211 # In autoconf-2.13 it is called $ac_given_srcdir.
9212 # In autoconf-2.50 it is called $srcdir.
9213 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9214 case "$ac_given_srcdir" in
9215 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9216 /*) top_srcdir="$ac_given_srcdir" ;;
9217 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9219 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9220 rm -f "$ac_dir/POTFILES"
9221 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9222 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9223 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9224 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9232 chmod +x $CONFIG_STATUS
9233 rm -fr confdefs* $ac_clean_files
9234 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9239 --------------------
9240 vlc version : ${VERSION}
9242 architecture : ${ARCH}
9243 optimizations : ${OPTIMS}
9245 debug mode : ${DEBUG}
9246 release : ${RELEASE}
9247 cprof/gprof support : ${CPROF}/${GPROF}
9248 need builtin getopt : ${NEED_GETOPT}
9249 built-in modules :${BUILTINS}
9250 plug-in modules :${PLUGINS}
9251 vlc aliases :${ALIASES}
9253 You may now tune Makefile.opts at your convenience, for instance to choose
9254 which modules get compiled as plugins.
9256 To build vlc and its plugins, type \`$VLC_MAKE'.