3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
54 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
56 --enable-satellite satellite card support (default disabled)"
58 --enable-avi AVI demux module (default enabled)"
62 --enable-mad libmad module (default disabled)"
64 --with-mad=PATH path to libmad"
66 --with-mad-tree=PATH mad tree for static linking"
68 --enable-ffmpeg ffmpeg codec (default disabled)"
70 --with-ffmpeg=PATH path to ffmpeg installation"
72 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
74 --enable-a52 AC3 support with liba52 (default enabled)"
76 --with-a52-tree=PATH a52dec tree for static linking "
78 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
82 --enable-x11 X11 support (default enabled)"
84 --enable-xvideo XVideo support (default enabled)"
86 --enable-sdl SDL support (default enabled)"
88 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
90 --enable-directx Win32 DirectX support (default enabled on Win32)"
92 --with-directx=PATH Win32 DirectX headers"
94 --enable-fb Linux framebuffer support (default enabled on Linux)"
96 --enable-mga Linux kernel Matrox support (default disabled)"
98 --enable-ggi GGI support (default disabled)"
100 --with-ggi=PATH path to libggi"
102 --enable-glide Glide (3dfx) support (default disabled)"
104 --with-glide=PATH path to libglide"
106 --enable-aa aalib output (default disabled)"
110 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
112 --enable-esd Esound library support (default disabled)"
114 --enable-arts aRts sound server (default disabled)"
116 --enable-alsa ALSA sound support for Linux (default disabled)"
118 --enable-waveout Win32 waveOut module (default enabled on Win32)"
122 --enable-gtk Gtk+ support (default enabled)"
124 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
126 --enable-gnome Gnome interface support (default disabled)"
128 --enable-qt Qt interface support (default disabled)"
130 --enable-kde KDE interface support (default disabled)"
132 --enable-macosx MacOS X support (default enabled on MacOS X)"
134 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
136 --enable-intfwin Win32 interface support (default disabled)"
138 --with-bcbuilder=PATH Borland C++ Builder installation path"
140 --enable-ncurses ncurses interface support (default disabled)"
142 --enable-xosd xosd interface support (default disabled)"
144 --enable-lirc lirc support (default disabled)"
148 --with-words=endianness set endianness (big or little)"
150 --enable-gprof gprof profiling (default disabled)"
152 --enable-cprof cprof profiling (default disabled)"
154 --enable-pth GNU Pth support (default disabled)"
156 --enable-st State Threads (default disabled)"
158 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
160 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
162 # Initialize some variables set by options.
163 # The variables have the same names as the options, with
164 # dashes changed to underlines.
166 cache_file=./config.cache
175 program_transform_name=s,x,x,
183 bindir='${exec_prefix}/bin'
184 sbindir='${exec_prefix}/sbin'
185 libexecdir='${exec_prefix}/libexec'
186 datadir='${prefix}/share'
187 sysconfdir='${prefix}/etc'
188 sharedstatedir='${prefix}/com'
189 localstatedir='${prefix}/var'
190 libdir='${exec_prefix}/lib'
191 includedir='${prefix}/include'
192 oldincludedir='/usr/include'
193 infodir='${prefix}/info'
194 mandir='${prefix}/man'
196 # Initialize some other variables.
199 SHELL=${CONFIG_SHELL-/bin/sh}
200 # Maximum number of lines to put in a shell here document.
207 # If the previous option needs an argument, assign it.
208 if test -n "$ac_prev"; then
209 eval "$ac_prev=\$ac_option"
215 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
219 # Accept the important Cygnus configure options, so we can diagnose typos.
223 -bindir | --bindir | --bindi | --bind | --bin | --bi)
225 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
226 bindir="$ac_optarg" ;;
228 -build | --build | --buil | --bui | --bu)
230 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
231 build="$ac_optarg" ;;
233 -cache-file | --cache-file | --cache-fil | --cache-fi \
234 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
235 ac_prev=cache_file ;;
236 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
237 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
238 cache_file="$ac_optarg" ;;
240 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
242 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
244 datadir="$ac_optarg" ;;
246 -disable-* | --disable-*)
247 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
248 # Reject names that are not valid shell variable names.
249 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
250 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
252 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
253 eval "enable_${ac_feature}=no" ;;
255 -enable-* | --enable-*)
256 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
257 # Reject names that are not valid shell variable names.
258 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
259 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
261 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
266 eval "enable_${ac_feature}='$ac_optarg'" ;;
268 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
269 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
270 | --exec | --exe | --ex)
271 ac_prev=exec_prefix ;;
272 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
273 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
274 | --exec=* | --exe=* | --ex=*)
275 exec_prefix="$ac_optarg" ;;
277 -gas | --gas | --ga | --g)
278 # Obsolete; use --with-gas.
281 -help | --help | --hel | --he)
282 # Omit some internal or obsolete options to make the list less imposing.
283 # This message is too long to be a string in the A/UX 3.1 sh.
285 Usage: configure [options] [host]
286 Options: [defaults in brackets after descriptions]
288 --cache-file=FILE cache test results in FILE
289 --help print this message
290 --no-create do not create output files
291 --quiet, --silent do not print \`checking...' messages
292 --version print the version of autoconf that created configure
293 Directory and file names:
294 --prefix=PREFIX install architecture-independent files in PREFIX
296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
298 --bindir=DIR user executables in DIR [EPREFIX/bin]
299 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
300 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
301 --datadir=DIR read-only architecture-independent data in DIR
303 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
304 --sharedstatedir=DIR modifiable architecture-independent data in DIR
306 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
307 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
308 --includedir=DIR C header files in DIR [PREFIX/include]
309 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
310 --infodir=DIR info documentation in DIR [PREFIX/info]
311 --mandir=DIR man documentation in DIR [PREFIX/man]
312 --srcdir=DIR find the sources in DIR [configure dir or ..]
313 --program-prefix=PREFIX prepend PREFIX to installed program names
314 --program-suffix=SUFFIX append SUFFIX to installed program names
315 --program-transform-name=PROGRAM
316 run sed PROGRAM on installed program names
320 --build=BUILD configure for building on BUILD [BUILD=HOST]
321 --host=HOST configure for HOST [guessed]
322 --target=TARGET configure for TARGET [TARGET=HOST]
323 Features and packages:
324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
328 --x-includes=DIR X include files are in DIR
329 --x-libraries=DIR X library files are in DIR
331 if test -n "$ac_help"; then
332 echo "--enable and --with options recognized:$ac_help"
336 -host | --host | --hos | --ho)
338 -host=* | --host=* | --hos=* | --ho=*)
341 -includedir | --includedir | --includedi | --included | --include \
342 | --includ | --inclu | --incl | --inc)
343 ac_prev=includedir ;;
344 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
345 | --includ=* | --inclu=* | --incl=* | --inc=*)
346 includedir="$ac_optarg" ;;
348 -infodir | --infodir | --infodi | --infod | --info | --inf)
350 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
351 infodir="$ac_optarg" ;;
353 -libdir | --libdir | --libdi | --libd)
355 -libdir=* | --libdir=* | --libdi=* | --libd=*)
356 libdir="$ac_optarg" ;;
358 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
359 | --libexe | --libex | --libe)
360 ac_prev=libexecdir ;;
361 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
362 | --libexe=* | --libex=* | --libe=*)
363 libexecdir="$ac_optarg" ;;
365 -localstatedir | --localstatedir | --localstatedi | --localstated \
366 | --localstate | --localstat | --localsta | --localst \
367 | --locals | --local | --loca | --loc | --lo)
368 ac_prev=localstatedir ;;
369 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
370 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
371 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
372 localstatedir="$ac_optarg" ;;
374 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
376 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
377 mandir="$ac_optarg" ;;
380 # Obsolete; use --without-fp.
383 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
387 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
388 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
391 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
392 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
393 | --oldin | --oldi | --old | --ol | --o)
394 ac_prev=oldincludedir ;;
395 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
396 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
397 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
398 oldincludedir="$ac_optarg" ;;
400 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
402 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
403 prefix="$ac_optarg" ;;
405 -program-prefix | --program-prefix | --program-prefi | --program-pref \
406 | --program-pre | --program-pr | --program-p)
407 ac_prev=program_prefix ;;
408 -program-prefix=* | --program-prefix=* | --program-prefi=* \
409 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
410 program_prefix="$ac_optarg" ;;
412 -program-suffix | --program-suffix | --program-suffi | --program-suff \
413 | --program-suf | --program-su | --program-s)
414 ac_prev=program_suffix ;;
415 -program-suffix=* | --program-suffix=* | --program-suffi=* \
416 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
417 program_suffix="$ac_optarg" ;;
419 -program-transform-name | --program-transform-name \
420 | --program-transform-nam | --program-transform-na \
421 | --program-transform-n | --program-transform- \
422 | --program-transform | --program-transfor \
423 | --program-transfo | --program-transf \
424 | --program-trans | --program-tran \
425 | --progr-tra | --program-tr | --program-t)
426 ac_prev=program_transform_name ;;
427 -program-transform-name=* | --program-transform-name=* \
428 | --program-transform-nam=* | --program-transform-na=* \
429 | --program-transform-n=* | --program-transform-=* \
430 | --program-transform=* | --program-transfor=* \
431 | --program-transfo=* | --program-transf=* \
432 | --program-trans=* | --program-tran=* \
433 | --progr-tra=* | --program-tr=* | --program-t=*)
434 program_transform_name="$ac_optarg" ;;
436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
437 | -silent | --silent | --silen | --sile | --sil)
440 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
442 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
444 sbindir="$ac_optarg" ;;
446 -sharedstatedir | --sharedstatedir | --sharedstatedi \
447 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
448 | --sharedst | --shareds | --shared | --share | --shar \
450 ac_prev=sharedstatedir ;;
451 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
452 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
453 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
455 sharedstatedir="$ac_optarg" ;;
457 -site | --site | --sit)
459 -site=* | --site=* | --sit=*)
462 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
464 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
465 srcdir="$ac_optarg" ;;
467 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
468 | --syscon | --sysco | --sysc | --sys | --sy)
469 ac_prev=sysconfdir ;;
470 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
471 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
472 sysconfdir="$ac_optarg" ;;
474 -target | --target | --targe | --targ | --tar | --ta | --t)
476 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
477 target="$ac_optarg" ;;
479 -v | -verbose | --verbose | --verbos | --verbo | --verb)
482 -version | --version | --versio | --versi | --vers)
483 echo "configure generated by autoconf version 2.13"
487 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
488 # Reject names that are not valid shell variable names.
489 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
490 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
492 ac_package=`echo $ac_package| sed 's/-/_/g'`
497 eval "with_${ac_package}='$ac_optarg'" ;;
499 -without-* | --without-*)
500 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
501 # Reject names that are not valid shell variable names.
502 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
503 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
505 ac_package=`echo $ac_package| sed 's/-/_/g'`
506 eval "with_${ac_package}=no" ;;
509 # Obsolete; use --with-x.
512 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
513 | --x-incl | --x-inc | --x-in | --x-i)
514 ac_prev=x_includes ;;
515 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
516 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
517 x_includes="$ac_optarg" ;;
519 -x-libraries | --x-libraries | --x-librarie | --x-librari \
520 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
521 ac_prev=x_libraries ;;
522 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
523 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
524 x_libraries="$ac_optarg" ;;
526 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
530 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
531 echo "configure: warning: $ac_option: invalid host type" 1>&2
533 if test "x$nonopt" != xNONE; then
534 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
542 if test -n "$ac_prev"; then
543 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
546 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
548 # File descriptor usage:
551 # 2 errors and warnings
552 # 3 some systems may open it to /dev/tty
553 # 4 used on the Kubota Titan
554 # 6 checking for... messages and results
555 # 5 compiler messages saved in config.log
556 if test "$silent" = yes; then
564 This file contains any messages produced by compilers while
565 running configure, to aid debugging if configure makes a mistake.
568 # Strip out --no-create and --no-recursion so they do not pile up.
569 # Also quote any args containing shell metacharacters.
574 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
575 | --no-cr | --no-c) ;;
576 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
577 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
578 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
579 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
580 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
585 # Only set these to C if already set. These must not be set unconditionally
586 # because not all systems understand e.g. LANG=C (notably SCO).
587 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
588 # Non-C LC_CTYPE values break the ctype check.
589 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
590 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
591 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
592 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
594 # confdefs.h avoids OS command line length limits that DEFS can exceed.
595 rm -rf conftest* confdefs.h
596 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
599 # A filename unique to this package, relative to the directory that
600 # configure is in, which we can look for to find out if srcdir is correct.
601 ac_unique_file=include/main.h
603 # Find the source files, if location was not specified.
604 if test -z "$srcdir"; then
605 ac_srcdir_defaulted=yes
606 # Try the directory containing this script, then its parent.
608 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
609 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
611 if test ! -r $srcdir/$ac_unique_file; then
615 ac_srcdir_defaulted=no
617 if test ! -r $srcdir/$ac_unique_file; then
618 if test "$ac_srcdir_defaulted" = yes; then
619 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
621 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
624 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
626 # Prefer explicitly selected file to automatically selected ones.
627 if test -z "$CONFIG_SITE"; then
628 if test "x$prefix" != xNONE; then
629 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
631 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
634 for ac_site_file in $CONFIG_SITE; do
635 if test -r "$ac_site_file"; then
636 echo "loading site script $ac_site_file"
641 if test -r "$cache_file"; then
642 echo "loading cache $cache_file"
645 echo "creating cache $cache_file"
650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
651 ac_cpp='$CPP $CPPFLAGS'
652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
654 cross_compiling=$ac_cv_prog_cc_cross
658 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
659 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
660 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
667 ac_n= ac_c='\c' ac_t=
673 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
674 if test -f $ac_dir/install-sh; then
676 ac_install_sh="$ac_aux_dir/install-sh -c"
678 elif test -f $ac_dir/install.sh; then
680 ac_install_sh="$ac_aux_dir/install.sh -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
687 ac_config_guess=$ac_aux_dir/config.guess
688 ac_config_sub=$ac_aux_dir/config.sub
689 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
692 # Do some error checking and defaulting for the host and target type.
694 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
697 # 1. You are not allowed to specify --host, --target, and nonopt at the
699 # 2. Host defaults to nonopt.
700 # 3. If nonopt is not specified, then host defaults to the current host,
701 # as determined by config.guess.
702 # 4. Target and build default to nonopt.
703 # 5. If nonopt is not specified, then target and build default to host.
705 # The aliases save the names the user supplied, while $host etc.
706 # will get canonicalized.
707 case $host---$target---$nonopt in
708 NONE---*---* | *---NONE---* | *---*---NONE) ;;
709 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
713 # Make sure we can run config.sub.
714 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
715 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
718 echo $ac_n "checking host system type""... $ac_c" 1>&6
719 echo "configure:720: checking host system type" >&5
722 case "$host_alias" in
726 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
727 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
729 *) host_alias=$nonopt ;;
733 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
734 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$host" 1>&6
739 echo $ac_n "checking target system type""... $ac_c" 1>&6
740 echo "configure:741: checking target system type" >&5
743 case "$target_alias" in
746 NONE) target_alias=$host_alias ;;
747 *) target_alias=$nonopt ;;
751 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
752 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$target" 1>&6
757 echo $ac_n "checking build system type""... $ac_c" 1>&6
758 echo "configure:759: checking build system type" >&5
761 case "$build_alias" in
764 NONE) build_alias=$host_alias ;;
765 *) build_alias=$nonopt ;;
769 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
770 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$build" 1>&6
775 test "$host_alias" != "$target_alias" &&
776 test "$program_prefix$program_suffix$program_transform_name" = \
778 program_prefix=${target_alias}-
781 CONFIGURE_LINE="$0 $*"
787 save_CPPFLAGS="${CPPFLAGS}"
788 save_CFLAGS="${CFLAGS}"
789 save_LDFLAGS="${LDFLAGS}"
791 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
792 echo "configure:793: checking whether ${MAKE-make} sets \${MAKE}" >&5
793 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
794 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 cat > conftestmake <<\EOF
799 @echo 'ac_maketemp="${MAKE}"'
801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
802 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
803 if test -n "$ac_maketemp"; then
804 eval ac_cv_prog_make_${ac_make}_set=yes
806 eval ac_cv_prog_make_${ac_make}_set=no
810 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
811 echo "$ac_t""yes" 1>&6
814 echo "$ac_t""no" 1>&6
815 SET_MAKE="MAKE=${MAKE-make}"
818 # Extract the first word of "gcc", so it can be a program name with args.
819 set dummy gcc; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
847 if test -z "$CC"; then
848 # Extract the first word of "cc", so it can be a program name with args.
849 set dummy cc; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC="$CC" # Let the user override the test.
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
861 for ac_dir in $ac_dummy; do
862 test -z "$ac_dir" && ac_dir=.
863 if test -f $ac_dir/$ac_word; then
864 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
873 if test $ac_prog_rejected = yes; then
874 # We found a bogon in the path, so make sure we never use it.
875 set dummy $ac_cv_prog_CC
877 if test $# -gt 0; then
878 # We chose a different compiler from the bogus one.
879 # However, it has the same basename, so the bogon will be chosen
880 # first if we set CC to just the basename; use the full file name.
882 set dummy "$ac_dir/$ac_word" "$@"
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 if test -z "$CC"; then
899 # Extract the first word of "cl", so it can be a program name with args.
900 set dummy cl; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 for ac_dir in $ac_dummy; do
912 test -z "$ac_dir" && ac_dir=.
913 if test -f $ac_dir/$ac_word; then
922 if test -n "$CC"; then
923 echo "$ac_t""$CC" 1>&6
925 echo "$ac_t""no" 1>&6
930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
943 cat > conftest.$ac_ext << EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
951 ac_cv_prog_cc_works=yes
952 # If we can't run a trivial program, we are probably using a cross compiler.
953 if (./conftest; exit) 2>/dev/null; then
954 ac_cv_prog_cc_cross=no
956 ac_cv_prog_cc_cross=yes
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
961 ac_cv_prog_cc_works=no
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
972 if test $ac_cv_prog_cc_works = no; then
973 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
976 echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
977 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
978 cross_compiling=$ac_cv_prog_cc_cross
980 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
981 echo "configure:982: checking whether we are using GNU C" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftest.c <<EOF
990 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
997 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
999 if test $ac_cv_prog_gcc = yes; then
1005 ac_test_CFLAGS="${CFLAGS+set}"
1006 ac_save_CFLAGS="$CFLAGS"
1008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether ${CC-cc} accepts -g" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 echo 'void f(){}' > conftest.c
1014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1024 if test "$ac_test_CFLAGS" = set; then
1025 CFLAGS="$ac_save_CFLAGS"
1026 elif test $ac_cv_prog_cc_g = yes; then
1027 if test "$GCC" = yes; then
1033 if test "$GCC" = yes; then
1040 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1041 echo "configure:1042: checking how to run the C preprocessor" >&5
1042 # On Suns, sometimes $CPP names a directory.
1043 if test -n "$CPP" && test -d "$CPP"; then
1046 if test -z "$CPP"; then
1047 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 # This must be in double quotes, not single quotes, because CPP may get
1051 # substituted into the Makefile and "${CC-cc}" will confuse make.
1053 # On the NeXT, cc -E runs the code through the compiler's parser,
1054 # not just through cpp.
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1062 { (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1064 if test -z "$ac_err"; then
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1071 CPP="${CC-cc} -E -traditional-cpp"
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1079 { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1081 if test -z "$ac_err"; then
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1088 CPP="${CC-cc} -nologo -E"
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1096 { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1098 if test -z "$ac_err"; then
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1112 ac_cv_prog_CPP="$CPP"
1114 CPP="$ac_cv_prog_CPP"
1116 ac_cv_prog_CPP="$CPP"
1118 echo "$ac_t""$CPP" 1>&6
1121 if test $host != $build; then
1122 ac_tool_prefix=${host_alias}-
1127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$RANLIB"; then
1135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1149 RANLIB="$ac_cv_prog_RANLIB"
1150 if test -n "$RANLIB"; then
1151 echo "$ac_t""$RANLIB" 1>&6
1153 echo "$ac_t""no" 1>&6
1157 if test -z "$ac_cv_prog_RANLIB"; then
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "ranlib", so it can be a program name with args.
1160 set dummy ranlib; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1171 for ac_dir in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir=.
1173 if test -f $ac_dir/$ac_word; then
1174 ac_cv_prog_RANLIB="ranlib"
1179 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1182 RANLIB="$ac_cv_prog_RANLIB"
1183 if test -n "$RANLIB"; then
1184 echo "$ac_t""$RANLIB" 1>&6
1186 echo "$ac_t""no" 1>&6
1194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1195 set dummy ${ac_tool_prefix}strip; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$STRIP"; then
1202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1216 STRIP="$ac_cv_prog_STRIP"
1217 if test -n "$STRIP"; then
1218 echo "$ac_t""$STRIP" 1>&6
1220 echo "$ac_t""no" 1>&6
1224 if test -z "$ac_cv_prog_STRIP"; then
1225 if test -n "$ac_tool_prefix"; then
1226 # Extract the first word of "strip", so it can be a program name with args.
1227 set dummy strip; ac_word=$2
1228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1229 echo "configure:1230: checking for $ac_word" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 if test -n "$STRIP"; then
1234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1238 for ac_dir in $ac_dummy; do
1239 test -z "$ac_dir" && ac_dir=.
1240 if test -f $ac_dir/$ac_word; then
1241 ac_cv_prog_STRIP="strip"
1246 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1249 STRIP="$ac_cv_prog_STRIP"
1250 if test -n "$STRIP"; then
1251 echo "$ac_t""$STRIP" 1>&6
1253 echo "$ac_t""no" 1>&6
1262 # Extract the first word of "gmake", so it can be a program name with args.
1263 set dummy gmake; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1271 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1274 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1287 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1291 GMAKE="$ac_cv_path_GMAKE"
1292 if test -n "$GMAKE"; then
1293 echo "$ac_t""$GMAKE" 1>&6
1295 echo "$ac_t""no" 1>&6
1298 if test "x$GMAKE" = "xno"; then
1299 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether GNU make is installed" >&5
1301 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if make --version | grep -q -i gnu; then
1307 echo "This software needs you to install GNU make to compile properly."
1308 echo "You can get it from http://www.gnu.org/."
1313 echo "$ac_t""$ac_cv_gmake" 1>&6
1319 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1321 cat >> confdefs.h <<EOF
1322 #define VLC_PACKAGE "$PACKAGE"
1325 cat >> confdefs.h <<EOF
1326 #define VLC_VERSION "$VERSION"
1329 # Extract the first word of "ranlib", so it can be a program name with args.
1330 set dummy ranlib; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$RANLIB"; then
1337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_RANLIB="ranlib"
1349 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1352 RANLIB="$ac_cv_prog_RANLIB"
1353 if test -n "$RANLIB"; then
1354 echo "$ac_t""$RANLIB" 1>&6
1356 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1361 echo "configure:1362: checking for strerror in -lcposix" >&5
1362 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_save_LIBS="$LIBS"
1367 LIBS="-lcposix $LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1382 eval "ac_cv_lib_$ac_lib_var=yes"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1387 eval "ac_cv_lib_$ac_lib_var=no"
1390 LIBS="$ac_save_LIBS"
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1394 echo "$ac_t""yes" 1>&6
1395 LIBS="$LIBS -lcposix"
1397 echo "$ac_t""no" 1>&6
1402 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1403 echo "configure:1404: checking for ANSI C header files" >&5
1404 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1416 { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1418 if test -z "$ac_err"; then
1420 ac_cv_header_stdc=yes
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 ac_cv_header_stdc=no
1430 if test $ac_cv_header_stdc = yes; then
1431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "memchr" >/dev/null 2>&1; then
1442 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456 egrep "free" >/dev/null 2>&1; then
1460 ac_cv_header_stdc=no
1466 if test $ac_cv_header_stdc = yes; then
1467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1468 if test "$cross_compiling" = yes; then
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1475 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1476 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1478 int main () { int i; for (i = 0; i < 256; i++)
1479 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1490 ac_cv_header_stdc=no
1498 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1499 if test $ac_cv_header_stdc = yes; then
1500 cat >> confdefs.h <<\EOF
1501 #define STDC_HEADERS 1
1506 echo $ac_n "checking for working const""... $ac_c" 1>&6
1507 echo "configure:1508: checking for working const" >&5
1508 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 /* Ultrix mips cc rejects this. */
1518 typedef int charset[2]; const charset x;
1519 /* SunOS 4.1.1 cc rejects this. */
1520 char const *const *ccp;
1522 /* NEC SVR4.0.2 mips cc rejects this. */
1523 struct point {int x, y;};
1524 static struct point const zero = {0,0};
1525 /* AIX XL C 1.02.0.0 rejects this.
1526 It does not let you subtract one const X* pointer from another in an arm
1527 of an if-expression whose if-part is not a constant expression */
1528 const char *g = "string";
1529 ccp = &g + (g ? g-g : 0);
1530 /* HPUX 7.0 cc rejects these. */
1533 ccp = (char const *const *) p;
1534 { /* SCO 3.2v4 cc rejects this. */
1536 char const *s = 0 ? (char *) 0 : (char const *) 0;
1540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1542 const int *foo = &x[0];
1545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1546 typedef const int *iptr;
1550 { /* AIX XL C 1.02.0.0 rejects this saying
1551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1552 struct s { int j; const int *ap[3]; };
1553 struct s *b; b->j = 5;
1555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1561 if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1573 echo "$ac_t""$ac_cv_c_const" 1>&6
1574 if test $ac_cv_c_const = no; then
1575 cat >> confdefs.h <<\EOF
1581 echo $ac_n "checking for inline""... $ac_c" 1>&6
1582 echo "configure:1583: checking for inline" >&5
1583 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1587 for ac_kw in inline __inline__ __inline; do
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1596 if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1598 ac_cv_c_inline=$ac_kw; break
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1608 echo "$ac_t""$ac_cv_c_inline" 1>&6
1609 case "$ac_cv_c_inline" in
1611 no) cat >> confdefs.h <<\EOF
1615 *) cat >> confdefs.h <<EOF
1616 #define inline $ac_cv_c_inline
1621 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1622 echo "configure:1623: checking for off_t" >&5
1623 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 #include <sys/types.h>
1635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1636 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1638 ac_cv_type_off_t=yes
1646 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1647 if test $ac_cv_type_off_t = no; then
1648 cat >> confdefs.h <<\EOF
1654 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1655 echo "configure:1656: checking for size_t" >&5
1656 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 #include <sys/types.h>
1668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1669 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1671 ac_cv_type_size_t=yes
1674 ac_cv_type_size_t=no
1679 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1680 if test $ac_cv_type_size_t = no; then
1681 cat >> confdefs.h <<\EOF
1682 #define size_t unsigned
1687 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1688 # for constant arguments. Useless!
1689 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1690 echo "configure:1691: checking for working alloca.h" >&5
1691 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1699 char *p = alloca(2 * sizeof(int));
1702 if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1704 ac_cv_header_alloca_h=yes
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1709 ac_cv_header_alloca_h=no
1714 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1715 if test $ac_cv_header_alloca_h = yes; then
1716 cat >> confdefs.h <<\EOF
1717 #define HAVE_ALLOCA_H 1
1722 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1723 echo "configure:1724: checking for alloca" >&5
1724 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 # define alloca __builtin_alloca
1735 # include <malloc.h>
1736 # define alloca _alloca
1739 # include <alloca.h>
1744 # ifndef alloca /* predefined by HP cc +Olibcalls */
1753 char *p = (char *) alloca(1);
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 ac_cv_func_alloca_works=yes
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 ac_cv_func_alloca_works=no
1768 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1769 if test $ac_cv_func_alloca_works = yes; then
1770 cat >> confdefs.h <<\EOF
1771 #define HAVE_ALLOCA 1
1776 if test $ac_cv_func_alloca_works = no; then
1777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1778 # that cause trouble. Some versions do not even contain alloca or
1779 # contain a buggy version. If you still want to use their alloca,
1780 # use ar to extract alloca.o from them instead of compiling alloca.c.
1781 ALLOCA=alloca.${ac_objext}
1782 cat >> confdefs.h <<\EOF
1787 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether alloca needs Cray hooks" >&5
1789 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #if defined(CRAY) && ! defined(CRAY2)
1802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1803 egrep "webecray" >/dev/null 2>&1; then
1814 echo "$ac_t""$ac_cv_os_cray" 1>&6
1815 if test $ac_cv_os_cray = yes; then
1816 for ac_func in _getb67 GETB67 getb67; do
1817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_func" >&5
1819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $ac_func(); below. */
1828 /* Override any gcc2 internal prototype to avoid an error. */
1829 /* We use char because int might match the return type of a gcc2
1830 builtin and then its argument prototype would still apply. */
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848 eval "ac_cv_func_$ac_func=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_func_$ac_func=no"
1858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 cat >> confdefs.h <<EOF
1861 #define CRAY_STACKSEG_END $ac_func
1866 echo "$ac_t""no" 1>&6
1872 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1873 echo "configure:1874: checking stack direction for C alloca" >&5
1874 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test "$cross_compiling" = yes; then
1878 ac_cv_c_stack_direction=0
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 find_stack_direction ()
1885 static char *addr = 0;
1890 return find_stack_direction ();
1893 return (&dummy > addr) ? 1 : -1;
1897 exit (find_stack_direction() < 0);
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1902 ac_cv_c_stack_direction=1
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 ac_cv_c_stack_direction=-1
1914 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1915 cat >> confdefs.h <<EOF
1916 #define STACK_DIRECTION $ac_cv_c_stack_direction
1921 for ac_hdr in unistd.h
1923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1925 echo "configure:1926: checking for $ac_hdr" >&5
1926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1935 { (eval echo configure:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1937 if test -z "$ac_err"; then
1939 eval "ac_cv_header_$ac_safe=yes"
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 eval "ac_cv_header_$ac_safe=no"
1949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1950 echo "$ac_t""yes" 1>&6
1951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1952 cat >> confdefs.h <<EOF
1953 #define $ac_tr_hdr 1
1957 echo "$ac_t""no" 1>&6
1961 for ac_func in getpagesize
1963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_func" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $ac_func(); below. */
1974 /* Override any gcc2 internal prototype to avoid an error. */
1975 /* We use char because int might match the return type of a gcc2
1976 builtin and then its argument prototype would still apply. */
1981 /* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1994 eval "ac_cv_func_$ac_func=yes"
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1999 eval "ac_cv_func_$ac_func=no"
2004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2007 cat >> confdefs.h <<EOF
2008 #define $ac_tr_func 1
2012 echo "$ac_t""no" 1>&6
2016 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2017 echo "configure:2018: checking for working mmap" >&5
2018 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 if test "$cross_compiling" = yes; then
2022 ac_cv_func_mmap_fixed_mapped=no
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2028 /* Thanks to Mike Haertel and Jim Avera for this test.
2029 Here is a matrix of mmap possibilities:
2030 mmap private not fixed
2031 mmap private fixed at somewhere currently unmapped
2032 mmap private fixed at somewhere already mapped
2033 mmap shared not fixed
2034 mmap shared fixed at somewhere currently unmapped
2035 mmap shared fixed at somewhere already mapped
2036 For private mappings, we should verify that changes cannot be read()
2037 back from the file, nor mmap's back from the file at a different
2038 address. (There have been systems where private was not correctly
2039 implemented like the infamous i386 svr4.0, and systems where the
2040 VM page cache was not coherent with the filesystem buffer cache
2041 like early versions of FreeBSD and possibly contemporary NetBSD.)
2042 For shared mappings, we should conversely verify that changes get
2043 propogated back to all the places they're supposed to be.
2045 Grep wants private fixed already mapped.
2046 The main things grep needs to know about mmap are:
2047 * does it exist and is it safe to write into the mmap'd area
2048 * how to use it (BSD variants) */
2049 #include <sys/types.h>
2051 #include <sys/mman.h>
2053 /* This mess was copied from the GNU getpagesize.h. */
2054 #ifndef HAVE_GETPAGESIZE
2055 # ifdef HAVE_UNISTD_H
2056 # include <unistd.h>
2059 /* Assume that all systems that can run configure have sys/param.h. */
2060 # ifndef HAVE_SYS_PARAM_H
2061 # define HAVE_SYS_PARAM_H 1
2064 # ifdef _SC_PAGESIZE
2065 # define getpagesize() sysconf(_SC_PAGESIZE)
2066 # else /* no _SC_PAGESIZE */
2067 # ifdef HAVE_SYS_PARAM_H
2068 # include <sys/param.h>
2069 # ifdef EXEC_PAGESIZE
2070 # define getpagesize() EXEC_PAGESIZE
2071 # else /* no EXEC_PAGESIZE */
2073 # define getpagesize() NBPG * CLSIZE
2076 # endif /* no CLSIZE */
2077 # else /* no NBPG */
2079 # define getpagesize() NBPC
2080 # else /* no NBPC */
2082 # define getpagesize() PAGESIZE
2083 # endif /* PAGESIZE */
2084 # endif /* no NBPC */
2085 # endif /* no NBPG */
2086 # endif /* no EXEC_PAGESIZE */
2087 # else /* no HAVE_SYS_PARAM_H */
2088 # define getpagesize() 8192 /* punt totally */
2089 # endif /* no HAVE_SYS_PARAM_H */
2090 # endif /* no _SC_PAGESIZE */
2092 #endif /* no HAVE_GETPAGESIZE */
2095 extern "C" { void *malloc(unsigned); }
2103 char *data, *data2, *data3;
2107 pagesize = getpagesize();
2110 * First, make a file with some known garbage in it.
2112 data = malloc(pagesize);
2115 for (i = 0; i < pagesize; ++i)
2116 *(data + i) = rand();
2118 fd = creat("conftestmmap", 0600);
2121 if (write(fd, data, pagesize) != pagesize)
2126 * Next, try to mmap the file at a fixed address which
2127 * already has something else allocated at it. If we can,
2128 * also make sure that we see the same garbage.
2130 fd = open("conftestmmap", O_RDWR);
2133 data2 = malloc(2 * pagesize);
2136 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2137 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2138 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2140 for (i = 0; i < pagesize; ++i)
2141 if (*(data + i) != *(data2 + i))
2145 * Finally, make sure that changes to the mapped area
2146 * do not percolate back to the file as seen by read().
2147 * (This is a bug on some variants of i386 svr4.0.)
2149 for (i = 0; i < pagesize; ++i)
2150 *(data2 + i) = *(data2 + i) + 1;
2151 data3 = malloc(pagesize);
2154 if (read(fd, data3, pagesize) != pagesize)
2156 for (i = 0; i < pagesize; ++i)
2157 if (*(data + i) != *(data3 + i))
2160 unlink("conftestmmap");
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2167 ac_cv_func_mmap_fixed_mapped=yes
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 ac_cv_func_mmap_fixed_mapped=no
2179 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2180 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2181 cat >> confdefs.h <<\EOF
2188 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2189 echo "configure:2190: checking whether we are using the GNU C Library 2.1 or newer" >&5
2190 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2197 #include <features.h>
2198 #ifdef __GNU_LIBRARY__
2199 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2206 egrep "Lucky GNU user" >/dev/null 2>&1; then
2208 ac_cv_gnu_library_2_1=yes
2211 ac_cv_gnu_library_2_1=no
2219 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2221 GLIBC21="$ac_cv_gnu_library_2_1"
2225 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2226 stdlib.h string.h unistd.h sys/param.h
2228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_hdr" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2240 { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2242 if test -z "$ac_err"; then
2244 eval "ac_cv_header_$ac_safe=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 eval "ac_cv_header_$ac_safe=no"
2254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2257 cat >> confdefs.h <<EOF
2258 #define $ac_tr_hdr 1
2262 echo "$ac_t""no" 1>&6
2266 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2267 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2268 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2271 echo "configure:2272: checking for $ac_func" >&5
2272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* System header to define __stub macros and hopefully few prototypes,
2279 which can conflict with char $ac_func(); below. */
2281 /* Override any gcc2 internal prototype to avoid an error. */
2282 /* We use char because int might match the return type of a gcc2
2283 builtin and then its argument prototype would still apply. */
2288 /* The GNU C library defines this for functions which it implements
2289 to always fail with ENOSYS. Some functions are actually named
2290 something starting with __ and the normal name is an alias. */
2291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 eval "ac_cv_func_$ac_func=yes"
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 eval "ac_cv_func_$ac_func=no"
2311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2314 cat >> confdefs.h <<EOF
2315 #define $ac_tr_func 1
2319 echo "$ac_t""no" 1>&6
2326 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2327 if test "${with_libiconv_prefix+set}" = set; then
2328 withval="$with_libiconv_prefix"
2330 for dir in `echo "$withval" | tr : ' '`; do
2331 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2332 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2338 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2339 echo "configure:2340: checking for iconv" >&5
2340 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2344 am_cv_func_iconv="no, consider installing GNU libiconv"
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2352 iconv_t cd = iconv_open("","");
2353 iconv(cd,NULL,NULL,NULL,NULL);
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359 am_cv_func_iconv=yes
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2365 if test "$am_cv_func_iconv" != yes; then
2366 am_save_LIBS="$LIBS"
2367 LIBS="$LIBS -liconv"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2374 iconv_t cd = iconv_open("","");
2375 iconv(cd,NULL,NULL,NULL,NULL);
2379 if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382 am_cv_func_iconv=yes
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2388 LIBS="$am_save_LIBS"
2393 echo "$ac_t""$am_cv_func_iconv" 1>&6
2394 if test "$am_cv_func_iconv" = yes; then
2395 cat >> confdefs.h <<\EOF
2396 #define HAVE_ICONV 1
2399 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2400 echo "configure:2401: checking for iconv declaration" >&5
2401 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2415 #if defined(__STDC__) || defined(__cplusplus)
2416 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2425 if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2427 am_cv_proto_iconv_arg1=""
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 am_cv_proto_iconv_arg1="const"
2435 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);"
2438 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2439 echo "$ac_t""${ac_t:-
2440 }$am_cv_proto_iconv" 1>&6
2441 cat >> confdefs.h <<EOF
2442 #define ICONV_CONST $am_cv_proto_iconv_arg1
2447 if test "$am_cv_lib_iconv" = yes; then
2453 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2454 echo "configure:2455: checking for nl_langinfo and CODESET" >&5
2455 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 #include <langinfo.h>
2463 char* cs = nl_langinfo(CODESET);
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 am_cv_langinfo_codeset=yes
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 am_cv_langinfo_codeset=no
2479 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2480 if test $am_cv_langinfo_codeset = yes; then
2481 cat >> confdefs.h <<\EOF
2482 #define HAVE_LANGINFO_CODESET 1
2487 if test $ac_cv_header_locale_h = yes; then
2488 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2489 echo "configure:2490: checking for LC_MESSAGES" >&5
2490 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2503 am_cv_val_LC_MESSAGES=yes
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 am_cv_val_LC_MESSAGES=no
2513 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2514 if test $am_cv_val_LC_MESSAGES = yes; then
2515 cat >> confdefs.h <<\EOF
2516 #define HAVE_LC_MESSAGES 1
2521 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2522 echo "configure:2523: checking whether NLS is requested" >&5
2523 # Check whether --enable-nls or --disable-nls was given.
2524 if test "${enable_nls+set}" = set; then
2525 enableval="$enable_nls"
2531 echo "$ac_t""$USE_NLS" 1>&6
2534 BUILD_INCLUDED_LIBINTL=no
2535 USE_INCLUDED_LIBINTL=no
2538 if test "$USE_NLS" = "yes"; then
2539 cat >> confdefs.h <<\EOF
2540 #define ENABLE_NLS 1
2543 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2544 echo "configure:2545: checking whether included gettext is requested" >&5
2545 # Check whether --with-included-gettext or --without-included-gettext was given.
2546 if test "${with_included_gettext+set}" = set; then
2547 withval="$with_included_gettext"
2548 nls_cv_force_use_gnu_gettext=$withval
2550 nls_cv_force_use_gnu_gettext=no
2553 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2555 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2556 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2562 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2563 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2564 echo "configure:2565: checking for libintl.h" >&5
2565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <libintl.h>
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2578 eval "ac_cv_header_$ac_safe=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_header_$ac_safe=no"
2588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2591 echo "configure:2592: checking for GNU gettext in libc" >&5
2592 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <libintl.h>
2599 extern int _nl_msg_cat_cntr;
2601 bindtextdomain ("", "");
2602 return (int) gettext ("") + _nl_msg_cat_cntr
2605 if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2607 gt_cv_func_gnugettext1_libc=yes
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 gt_cv_func_gnugettext1_libc=no
2617 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2619 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2620 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2621 echo "configure:2622: checking for GNU gettext in libintl" >&5
2622 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 gt_save_LIBS="$LIBS"
2626 LIBS="$LIBS -lintl $LIBICONV"
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <libintl.h>
2631 extern int _nl_msg_cat_cntr;
2633 bindtextdomain ("", "");
2634 return (int) gettext ("") + _nl_msg_cat_cntr
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2639 gt_cv_func_gnugettext1_libintl=yes
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 gt_cv_func_gnugettext1_libintl=no
2647 LIBS="$gt_save_LIBS"
2650 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2653 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2654 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2655 && test "$PACKAGE" != gettext; }; then
2656 cat >> confdefs.h <<\EOF
2657 #define HAVE_GETTEXT 1
2661 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2662 INTLLIBS="-lintl $LIBICONV"
2665 gt_save_LIBS="$LIBS"
2666 LIBS="$LIBS $INTLLIBS"
2667 for ac_func in dcgettext
2669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_func" >&5
2671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* System header to define __stub macros and hopefully few prototypes,
2678 which can conflict with char $ac_func(); below. */
2680 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2687 /* The GNU C library defines this for functions which it implements
2688 to always fail with ENOSYS. Some functions are actually named
2689 something starting with __ and the normal name is an alias. */
2690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2700 eval "ac_cv_func_$ac_func=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_func_$ac_func=no"
2710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2713 cat >> confdefs.h <<EOF
2714 #define $ac_tr_func 1
2718 echo "$ac_t""no" 1>&6
2722 LIBS="$gt_save_LIBS"
2724 # Extract the first word of "msgfmt", so it can be a program name with args.
2725 set dummy msgfmt; ac_word=$2
2726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_word" >&5
2728 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2733 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2737 for ac_dir in $PATH; do
2738 test -z "$ac_dir" && ac_dir=.
2739 if test -f $ac_dir/$ac_word; then
2740 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2741 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2747 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2751 MSGFMT="$ac_cv_path_MSGFMT"
2752 if test "$MSGFMT" != ":"; then
2753 echo "$ac_t""$MSGFMT" 1>&6
2755 echo "$ac_t""no" 1>&6
2758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2759 set dummy gmsgfmt; ac_word=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2770 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2775 for ac_dir in $ac_dummy; do
2776 test -z "$ac_dir" && ac_dir=.
2777 if test -f $ac_dir/$ac_word; then
2778 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2783 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2787 GMSGFMT="$ac_cv_path_GMSGFMT"
2788 if test -n "$GMSGFMT"; then
2789 echo "$ac_t""$GMSGFMT" 1>&6
2791 echo "$ac_t""no" 1>&6
2795 # Extract the first word of "xgettext", so it can be a program name with args.
2796 set dummy xgettext; ac_word=$2
2797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_word" >&5
2799 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2804 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2808 for ac_dir in $PATH; do
2809 test -z "$ac_dir" && ac_dir=.
2810 if test -f $ac_dir/$ac_word; then
2811 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2812 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2818 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2822 XGETTEXT="$ac_cv_path_XGETTEXT"
2823 if test "$XGETTEXT" != ":"; then
2824 echo "$ac_t""$XGETTEXT" 1>&6
2826 echo "$ac_t""no" 1>&6
2834 echo "$ac_t""no" 1>&6
2838 if test "$CATOBJEXT" = "NONE"; then
2839 nls_cv_use_gnu_gettext=yes
2843 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2844 INTLOBJS="\$(GETTOBJS)"
2845 # Extract the first word of "msgfmt", so it can be a program name with args.
2846 set dummy msgfmt; ac_word=$2
2847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_word" >&5
2849 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2854 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2858 for ac_dir in $PATH; do
2859 test -z "$ac_dir" && ac_dir=.
2860 if test -f $ac_dir/$ac_word; then
2861 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2862 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2868 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2872 MSGFMT="$ac_cv_path_MSGFMT"
2873 if test "$MSGFMT" != ":"; then
2874 echo "$ac_t""$MSGFMT" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2880 set dummy gmsgfmt; ac_word=$2
2881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_word" >&5
2883 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2891 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2896 for ac_dir in $ac_dummy; do
2897 test -z "$ac_dir" && ac_dir=.
2898 if test -f $ac_dir/$ac_word; then
2899 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2908 GMSGFMT="$ac_cv_path_GMSGFMT"
2909 if test -n "$GMSGFMT"; then
2910 echo "$ac_t""$GMSGFMT" 1>&6
2912 echo "$ac_t""no" 1>&6
2915 # Extract the first word of "xgettext", so it can be a program name with args.
2916 set dummy xgettext; ac_word=$2
2917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_word" >&5
2919 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2924 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2928 for ac_dir in $PATH; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2931 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2932 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2938 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2942 XGETTEXT="$ac_cv_path_XGETTEXT"
2943 if test "$XGETTEXT" != ":"; then
2944 echo "$ac_t""$XGETTEXT" 1>&6
2946 echo "$ac_t""no" 1>&6
2950 BUILD_INCLUDED_LIBINTL=yes
2951 USE_INCLUDED_LIBINTL=yes
2953 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2954 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2957 if test "$GMSGFMT" != ":"; then
2958 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2961 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2966 if test "$XGETTEXT" != ":"; then
2967 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2970 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2980 if test "$PACKAGE" = gettext; then
2981 BUILD_INCLUDED_LIBINTL=yes
2984 for ac_prog in bison
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_word" >&5
2990 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 if test -n "$INTLBISON"; then
2994 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2998 for ac_dir in $ac_dummy; do
2999 test -z "$ac_dir" && ac_dir=.
3000 if test -f $ac_dir/$ac_word; then
3001 ac_cv_prog_INTLBISON="$ac_prog"
3008 INTLBISON="$ac_cv_prog_INTLBISON"
3009 if test -n "$INTLBISON"; then
3010 echo "$ac_t""$INTLBISON" 1>&6
3012 echo "$ac_t""no" 1>&6
3015 test -n "$INTLBISON" && break
3018 if test -z "$INTLBISON"; then
3021 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3022 echo "configure:3023: checking version of bison" >&5
3023 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3024 case $ac_prog_version in
3025 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3026 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3027 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3028 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3030 echo "$ac_t""$ac_prog_version" 1>&6
3032 if test $ac_verc_fail = yes; then
3036 for lang in $ALL_LINGUAS; do
3037 GMOFILES="$GMOFILES $lang.gmo"
3038 POFILES="$POFILES $lang.po"
3052 nls_cv_header_libgt=
3064 if test "x$CATOBJEXT" != "x"; then
3065 if test "x$ALL_LINGUAS" = "x"; then
3068 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3069 echo "configure:3070: checking for catalogs to be installed" >&5
3071 for presentlang in $ALL_LINGUAS; do
3073 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3074 # Use the presentlang catalog if desiredlang is
3075 # a. equal to presentlang, or
3076 # b. a variant of presentlang (because in this case,
3077 # presentlang can be used as a fallback for messages
3078 # which are not translated in the desiredlang catalog).
3079 case "$desiredlang" in
3080 "$presentlang"*) useit=yes;;
3083 if test $useit = yes; then
3084 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3087 LINGUAS=$NEW_LINGUAS
3088 echo "$ac_t""$LINGUAS" 1>&6
3091 if test -n "$LINGUAS"; then
3092 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3097 if test -n "$ac_aux_dir"; then
3098 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3100 if test -z "$MKINSTALLDIRS"; then
3101 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3105 INTL_LIBTOOL_SUFFIX_PREFIX=
3109 # Find a good install program. We prefer a C program (faster),
3110 # so one script is as good as another. But avoid the broken or
3111 # incompatible versions:
3112 # SysV /etc/install, /usr/sbin/install
3113 # SunOS /usr/etc/install
3114 # IRIX /sbin/install
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3121 echo "configure:3122: checking for a BSD compatible install" >&5
3122 if test -z "$INSTALL"; then
3123 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3127 for ac_dir in $PATH; do
3128 # Account for people who put trailing slashes in PATH elements.
3130 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3132 # OSF1 and SCO ODT 3.0 have their own names for install.
3133 # Don't use installbsd from OSF since it installs stuff as root
3135 for ac_prog in ginstall scoinst install; do
3136 if test -f $ac_dir/$ac_prog; then
3137 if test $ac_prog = install &&
3138 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3139 # AIX install. It has an incompatible calling convention.
3142 ac_cv_path_install="$ac_dir/$ac_prog -c"
3153 if test "${ac_cv_path_install+set}" = set; then
3154 INSTALL="$ac_cv_path_install"
3156 # As a last resort, use the slow shell script. We don't cache a
3157 # path for INSTALL within a source directory, because that will
3158 # break other packages using the cache if that directory is
3159 # removed, or if the path is relative.
3160 INSTALL="$ac_install_sh"
3163 echo "$ac_t""$INSTALL" 1>&6
3165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3166 # It thinks the first close brace ends the variable substitution.
3167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3174 vlc_LDFLAGS="${LDFLAGS}"
3176 case x"${target_os}" in
3185 save_CFLAGS="${save_CFLAGS} -pthread"
3186 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3187 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3191 save_CFLAGS="${save_CFLAGS} -pthread"
3195 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3199 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}windres; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$WINDRES"; then
3207 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3211 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3221 WINDRES="$ac_cv_prog_WINDRES"
3222 if test -n "$WINDRES"; then
3223 echo "$ac_t""$WINDRES" 1>&6
3225 echo "$ac_t""no" 1>&6
3229 if test -z "$ac_cv_prog_WINDRES"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "windres", so it can be a program name with args.
3232 set dummy windres; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$WINDRES"; then
3239 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_WINDRES="windres"
3251 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3254 WINDRES="$ac_cv_prog_WINDRES"
3255 if test -n "$WINDRES"; then
3256 echo "$ac_t""$WINDRES" 1>&6
3258 echo "$ac_t""no" 1>&6
3266 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3267 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3268 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3269 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3270 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3271 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3272 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3276 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3277 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3281 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3282 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3283 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3284 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3285 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3292 if test x"${SYS}" = xmingw32
3294 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3296 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3299 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3301 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_func" >&5
3305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* System header to define __stub macros and hopefully few prototypes,
3312 which can conflict with char $ac_func(); below. */
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3321 /* The GNU C library defines this for functions which it implements
3322 to always fail with ENOSYS. Some functions are actually named
3323 something starting with __ and the normal name is an alias. */
3324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 eval "ac_cv_func_$ac_func=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 eval "ac_cv_func_$ac_func=no"
3344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3347 cat >> confdefs.h <<EOF
3348 #define $ac_tr_func 1
3352 echo "$ac_t""no" 1>&6
3357 echo $ac_n "checking for connect""... $ac_c" 1>&6
3358 echo "configure:3359: checking for connect" >&5
3359 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 /* System header to define __stub macros and hopefully few prototypes,
3366 which can conflict with char connect(); below. */
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3375 /* The GNU C library defines this for functions which it implements
3376 to always fail with ENOSYS. Some functions are actually named
3377 something starting with __ and the normal name is an alias. */
3378 #if defined (__stub_connect) || defined (__stub___connect)
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3388 eval "ac_cv_func_connect=yes"
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3393 eval "ac_cv_func_connect=no"
3398 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3402 echo "$ac_t""no" 1>&6
3404 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3405 echo "configure:3406: checking for connect in -lsocket" >&5
3406 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 ac_save_LIBS="$LIBS"
3411 LIBS="-lsocket $LIBS"
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426 eval "ac_cv_lib_$ac_lib_var=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 eval "ac_cv_lib_$ac_lib_var=no"
3434 LIBS="$ac_save_LIBS"
3437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3440 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3443 echo "$ac_t""no" 1>&6
3448 echo $ac_n "checking for send""... $ac_c" 1>&6
3449 echo "configure:3450: checking for send" >&5
3450 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* System header to define __stub macros and hopefully few prototypes,
3457 which can conflict with char send(); below. */
3459 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3466 /* The GNU C library defines this for functions which it implements
3467 to always fail with ENOSYS. Some functions are actually named
3468 something starting with __ and the normal name is an alias. */
3469 #if defined (__stub_send) || defined (__stub___send)
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3479 eval "ac_cv_func_send=yes"
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3484 eval "ac_cv_func_send=no"
3489 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3493 echo "$ac_t""no" 1>&6
3495 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3496 echo "configure:3497: checking for send in -lsocket" >&5
3497 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 ac_save_LIBS="$LIBS"
3502 LIBS="-lsocket $LIBS"
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3517 eval "ac_cv_lib_$ac_lib_var=yes"
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 eval "ac_cv_lib_$ac_lib_var=no"
3525 LIBS="$ac_save_LIBS"
3528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3533 echo "$ac_t""no" 1>&6
3538 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3539 echo "configure:3540: checking for gethostbyname" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char gethostbyname(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char gethostbyname();
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_func_gethostbyname=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_func_gethostbyname=no"
3579 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3583 echo "$ac_t""no" 1>&6
3585 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3586 echo "configure:3587: checking for gethostbyname in -lnsl" >&5
3587 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 ac_save_LIBS="$LIBS"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* Override any gcc2 internal prototype to avoid an error. */
3597 /* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
3599 char gethostbyname();
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 eval "ac_cv_lib_$ac_lib_var=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 eval "ac_cv_lib_$ac_lib_var=no"
3615 LIBS="$ac_save_LIBS"
3618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3622 echo "$ac_t""no" 1>&6
3628 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3629 echo "configure:3630: checking for gethostbyname" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637 which can conflict with char gethostbyname(); below. */
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642 char gethostbyname();
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3659 eval "ac_cv_func_gethostbyname=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 eval "ac_cv_func_gethostbyname=no"
3669 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3673 echo "$ac_t""no" 1>&6
3675 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3676 echo "configure:3677: checking for gethostbyname in -lbind" >&5
3677 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_save_LIBS="$LIBS"
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689 char gethostbyname();
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 eval "ac_cv_lib_$ac_lib_var=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_lib_$ac_lib_var=no"
3705 LIBS="$ac_save_LIBS"
3708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3712 echo "$ac_t""no" 1>&6
3718 for ac_func in nanosleep
3720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_func" >&5
3722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 /* System header to define __stub macros and hopefully few prototypes,
3729 which can conflict with char $ac_func(); below. */
3731 /* Override any gcc2 internal prototype to avoid an error. */
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3738 /* The GNU C library defines this for functions which it implements
3739 to always fail with ENOSYS. Some functions are actually named
3740 something starting with __ and the normal name is an alias. */
3741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 eval "ac_cv_func_$ac_func=yes"
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_func_$ac_func=no"
3761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_func 1
3769 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3771 echo "configure:3772: checking for nanosleep in -lrt" >&5
3772 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS="$LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3807 echo "$ac_t""no" 1>&6
3808 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3809 echo "configure:3810: checking for nanosleep in -lposix4" >&5
3810 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 ac_save_LIBS="$LIBS"
3815 LIBS="-lposix4 $LIBS"
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 eval "ac_cv_lib_$ac_lib_var=no"
3838 LIBS="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3845 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3856 echo "configure:3857: checking for inet_aton" >&5
3857 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* System header to define __stub macros and hopefully few prototypes,
3864 which can conflict with char inet_aton(); below. */
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3873 /* The GNU C library defines this for functions which it implements
3874 to always fail with ENOSYS. Some functions are actually named
3875 something starting with __ and the normal name is an alias. */
3876 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_func_inet_aton=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_func_inet_aton=no"
3896 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3903 echo "configure:3904: checking for inet_aton in -lresolv" >&5
3904 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_save_LIBS="$LIBS"
3909 LIBS="-lresolv $LIBS"
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 eval "ac_cv_lib_$ac_lib_var=no"
3932 LIBS="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3939 echo "$ac_t""no" 1>&6
3945 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3946 echo "configure:3947: checking for textdomain" >&5
3947 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char textdomain(); below. */
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3963 /* The GNU C library defines this for functions which it implements
3964 to always fail with ENOSYS. Some functions are actually named
3965 something starting with __ and the normal name is an alias. */
3966 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 eval "ac_cv_func_textdomain=yes"
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 eval "ac_cv_func_textdomain=no"
3986 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3990 echo "$ac_t""no" 1>&6
3992 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3993 echo "configure:3994: checking for textdomain in -lintl" >&5
3994 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 ac_save_LIBS="$LIBS"
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 eval "ac_cv_lib_$ac_lib_var=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4019 eval "ac_cv_lib_$ac_lib_var=no"
4022 LIBS="$ac_save_LIBS"
4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4028 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4031 echo "$ac_t""no" 1>&6
4039 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4040 echo "configure:4041: checking for getopt_long" >&5
4041 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* System header to define __stub macros and hopefully few prototypes,
4048 which can conflict with char getopt_long(); below. */
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4057 /* The GNU C library defines this for functions which it implements
4058 to always fail with ENOSYS. Some functions are actually named
4059 something starting with __ and the normal name is an alias. */
4060 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4070 eval "ac_cv_func_getopt_long=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_func_getopt_long=no"
4080 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 cat >> confdefs.h <<\EOF
4083 #define HAVE_GETOPT_LONG 1
4087 echo "$ac_t""no" 1>&6
4088 # FreeBSD has a gnugetopt library for this:
4089 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4090 echo "configure:4091: checking for getopt_long in -lgnugetopt" >&5
4091 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 ac_save_LIBS="$LIBS"
4096 LIBS="-lgnugetopt $LIBS"
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* Override any gcc2 internal prototype to avoid an error. */
4101 /* We use char because int might match the return type of a gcc2
4102 builtin and then its argument prototype would still apply. */
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4111 eval "ac_cv_lib_$ac_lib_var=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4116 eval "ac_cv_lib_$ac_lib_var=no"
4119 LIBS="$ac_save_LIBS"
4122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4123 echo "$ac_t""yes" 1>&6
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_GETOPT_LONG 1
4127 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4129 echo "$ac_t""no" 1>&6
4136 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4137 echo "configure:4138: checking return type of signal handlers" >&5
4138 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 #include <sys/types.h>
4150 extern "C" void (*signal (int, void (*)(int)))(int);
4152 void (*signal ()) ();
4159 if { (eval echo configure:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4161 ac_cv_type_signal=void
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 ac_cv_type_signal=int
4171 echo "$ac_t""$ac_cv_type_signal" 1>&6
4172 cat >> confdefs.h <<EOF
4173 #define RETSIGTYPE $ac_cv_type_signal
4177 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4178 echo "configure:4179: checking for dlopen in -ldl" >&5
4179 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 ac_save_LIBS="$LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_lib_$ac_lib_var=no"
4207 LIBS="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4214 echo "$ac_t""no" 1>&6
4217 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4218 echo "configure:4219: checking for cos in -lm" >&5
4219 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_save_LIBS="$LIBS"
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_lib_$ac_lib_var=no"
4247 LIBS="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4253 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4255 echo "$ac_t""no" 1>&6
4258 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4259 echo "configure:4260: checking for pow in -lm" >&5
4260 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 ac_save_LIBS="$LIBS"
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4278 if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4280 eval "ac_cv_lib_$ac_lib_var=yes"
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4285 eval "ac_cv_lib_$ac_lib_var=no"
4288 LIBS="$ac_save_LIBS"
4291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4294 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4295 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4296 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4297 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4300 echo "$ac_t""no" 1>&6
4305 if test "x${THREAD_LIB}" = xerror; then
4306 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4307 echo "configure:4308: checking for pthread_attr_init in -lpthread" >&5
4308 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 ac_save_LIBS="$LIBS"
4313 LIBS="-lpthread $LIBS"
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char pthread_attr_init();
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4333 eval "ac_cv_lib_$ac_lib_var=no"
4336 LIBS="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 THREAD_LIB="-lpthread"
4343 echo "$ac_t""no" 1>&6
4347 if test "x${THREAD_LIB}" = xerror; then
4348 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4349 echo "configure:4350: checking for pthread_attr_init in -lpthreads" >&5
4350 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 ac_save_LIBS="$LIBS"
4355 LIBS="-lpthreads $LIBS"
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char pthread_attr_init();
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 eval "ac_cv_lib_$ac_lib_var=yes"
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 eval "ac_cv_lib_$ac_lib_var=no"
4378 LIBS="$ac_save_LIBS"
4381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 THREAD_LIB="-lpthreads"
4385 echo "$ac_t""no" 1>&6
4389 if test "x${THREAD_LIB}" = xerror; then
4390 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4391 echo "configure:4392: checking for pthread_attr_init in -lc_r" >&5
4392 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 ac_save_LIBS="$LIBS"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char pthread_attr_init();
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 eval "ac_cv_lib_$ac_lib_var=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_lib_$ac_lib_var=no"
4420 LIBS="$ac_save_LIBS"
4423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4427 echo "$ac_t""no" 1>&6
4431 if test "x${THREAD_LIB}" = xerror; then
4432 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4433 echo "configure:4434: checking for pthread_attr_init" >&5
4434 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 /* System header to define __stub macros and hopefully few prototypes,
4441 which can conflict with char pthread_attr_init(); below. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4446 char pthread_attr_init();
4450 /* The GNU C library defines this for functions which it implements
4451 to always fail with ENOSYS. Some functions are actually named
4452 something starting with __ and the normal name is an alias. */
4453 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4456 pthread_attr_init();
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 eval "ac_cv_func_pthread_attr_init=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_func_pthread_attr_init=no"
4473 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4477 echo "$ac_t""no" 1>&6
4483 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4484 echo "configure:4485: checking for cthread_fork in -lthreads" >&5
4485 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 ac_save_LIBS="$LIBS"
4490 LIBS="-lthreads $LIBS"
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 /* Override any gcc2 internal prototype to avoid an error. */
4495 /* We use char because int might match the return type of a gcc2
4496 builtin and then its argument prototype would still apply. */
4497 char cthread_fork();
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_lib_$ac_lib_var=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_lib_$ac_lib_var=no"
4513 LIBS="$ac_save_LIBS"
4516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 THREAD_LIB="-lthreads"
4520 echo "$ac_t""no" 1>&6
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 #include <pthread.h>
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 egrep "pthread_cond_t" >/dev/null 2>&1; then
4533 cat >> confdefs.h <<\EOF
4534 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include <pthread.h>
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 egrep "pthread_once" >/dev/null 2>&1; then
4549 cat >> confdefs.h <<\EOF
4550 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 #include <strings.h>
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 egrep "strncasecmp" >/dev/null 2>&1; then
4565 cat >> confdefs.h <<\EOF
4566 #define STRNCASECMP_IN_STRINGS_H 1
4573 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_hdr" >&5
4578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4587 { (eval echo configure:4588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4589 if test -z "$ac_err"; then
4591 eval "ac_cv_header_$ac_safe=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_header_$ac_safe=no"
4601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4604 cat >> confdefs.h <<EOF
4605 #define $ac_tr_hdr 1
4609 echo "$ac_t""no" 1>&6
4613 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_hdr" >&5
4618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4627 { (eval echo configure:4628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4629 if test -z "$ac_err"; then
4631 eval "ac_cv_header_$ac_safe=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 eval "ac_cv_header_$ac_safe=no"
4641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4644 cat >> confdefs.h <<EOF
4645 #define $ac_tr_hdr 1
4649 echo "$ac_t""no" 1>&6
4653 for ac_hdr in dlfcn.h image.h
4655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4657 echo "configure:4658: checking for $ac_hdr" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667 { (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669 if test -z "$ac_err"; then
4671 eval "ac_cv_header_$ac_safe=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4677 eval "ac_cv_header_$ac_safe=no"
4681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4684 cat >> confdefs.h <<EOF
4685 #define $ac_tr_hdr 1
4689 echo "$ac_t""no" 1>&6
4693 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_hdr" >&5
4698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4707 { (eval echo configure:4708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4709 if test -z "$ac_err"; then
4711 eval "ac_cv_header_$ac_safe=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 eval "ac_cv_header_$ac_safe=no"
4721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4724 cat >> confdefs.h <<EOF
4725 #define $ac_tr_hdr 1
4729 echo "$ac_t""no" 1>&6
4733 for ac_hdr in machine/param.h sys/shm.h
4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4773 for ac_hdr in linux/version.h
4775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_hdr" >&5
4778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4787 { (eval echo configure:4788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4789 if test -z "$ac_err"; then
4791 eval "ac_cv_header_$ac_safe=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_header_$ac_safe=no"
4801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4804 cat >> confdefs.h <<EOF
4805 #define $ac_tr_hdr 1
4809 echo "$ac_t""no" 1>&6
4814 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4815 echo "configure:4816: checking whether time.h and sys/time.h may both be included" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <sys/types.h>
4823 #include <sys/time.h>
4829 if { (eval echo configure:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 ac_cv_header_time=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 ac_cv_header_time=no
4841 echo "$ac_t""$ac_cv_header_time" 1>&6
4842 if test $ac_cv_header_time = yes; then
4843 cat >> confdefs.h <<\EOF
4844 #define TIME_WITH_SYS_TIME 1
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "nanosleep" >/dev/null 2>&1; then
4859 cat >> confdefs.h <<\EOF
4860 #define HAVE_DECL_NANOSLEEP 1
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 #include <sys/time.h>
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 egrep "timespec" >/dev/null 2>&1; then
4877 cat >> confdefs.h <<\EOF
4878 #define HAVE_STRUCT_TIMESPEC 1
4886 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_hdr" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_hdr 1
4922 echo "$ac_t""no" 1>&6
4927 if test x$SYS != xmingw32
4929 if test x$x_includes = xNONE; then
4930 x_includes=/usr/X11R6/include
4932 if test x$x_libraries = xNONE; then
4933 x_libraries=/usr/X11R6/lib
4935 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4936 for ac_hdr in X11/extensions/dpms.h
4938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_hdr" >&5
4941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4950 { (eval echo configure:4951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4952 if test -z "$ac_err"; then
4954 eval "ac_cv_header_$ac_safe=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 eval "ac_cv_header_$ac_safe=no"
4964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4967 cat >> confdefs.h <<EOF
4968 #define $ac_tr_hdr 1
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 #include <X11/extensions/dpms.h>
4976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977 egrep "DPMSInfo" >/dev/null 2>&1; then
4980 cat >> confdefs.h <<\EOF
4981 #define DPMSINFO_IN_DPMS_H 1
4990 echo "$ac_t""no" 1>&6
4994 CPPFLAGS="$save_CPPFLAGS"
4997 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4998 echo "configure:4999: checking for ntohl in sys/param.h" >&5
4999 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 CFLAGS="${save_CFLAGS} -Wall -Werror"
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 #include <sys/param.h>
5008 void foo() { int meuh; ntohl(meuh); }
5011 if { (eval echo configure:5012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5013 ac_cv_c_ntohl_sys_param_h=yes
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 ac_cv_c_ntohl_sys_param_h=no
5023 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5024 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5025 cat >> confdefs.h <<\EOF
5026 #define NTOHL_IN_SYS_PARAM_H 1
5031 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5032 echo "configure:5033: checking if \$CC accepts -finline-limit" >&5
5033 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 ac_cv_c_inline_limit=yes
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 ac_cv_c_inline_limit=no
5057 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5058 if test x"$ac_cv_c_inline_limit" != x"no"; then
5059 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5062 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5063 echo "configure:5064: checking if \$CC accepts -Wall -Winline" >&5
5064 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5076 if { (eval echo configure:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5078 ac_cv_c_Wall_Winline=yes
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 ac_cv_c_Wall_Winline=no
5088 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5089 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5090 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5092 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5093 echo "configure:5094: checking if \$CC accepts -wall -winline" >&5
5094 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 CFLAGS="-wall -winline ${save_CFLAGS}"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5108 ac_cv_c_wall_winline=yes
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 ac_cv_c_wall_winline=no
5118 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5119 if test x"$ac_cv_c_wall_winline" != x"no"; then
5120 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5124 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5125 echo "configure:5126: checking if \$CC accepts -pipe" >&5
5126 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5129 CFLAGS="${save_CFLAGS} -pipe"
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5150 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5151 if test x"$ac_cv_c_pipe" != x"no"; then
5152 save_CFLAGS="${save_CFLAGS} -pipe"
5155 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5156 echo "configure:5157: checking if \$CC accepts -O3" >&5
5157 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 CFLAGS="${save_CFLAGS} -O3"
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5169 if { (eval echo configure:5170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5181 echo "$ac_t""$ac_cv_c_o3" 1>&6
5182 if test x"$ac_cv_c_o3" != x"no"; then
5183 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5185 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5186 echo "configure:5187: checking if \$CC accepts -O2" >&5
5187 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 CFLAGS="${save_CFLAGS} -O2"
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5199 if { (eval echo configure:5200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 echo "configure: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5211 echo "$ac_t""$ac_cv_c_o2" 1>&6
5212 if test x"$ac_cv_c_o2" != x"no"; then
5213 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5215 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5216 echo "configure:5217: checking if \$CC accepts -O" >&5
5217 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 CFLAGS="${save_CFLAGS} -O"
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5229 if { (eval echo configure:5230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5241 echo "$ac_t""$ac_cv_c_o" 1>&6
5242 if test x"$ac_cv_c_o" != x"no"; then
5243 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5248 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5249 echo "configure:5250: checking if \$CC accepts -ffast-math" >&5
5250 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 CFLAGS="${save_CFLAGS} -ffast-math"
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5262 if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5264 ac_cv_c_fast_math=yes
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 ac_cv_c_fast_math=no
5274 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5275 if test x"$ac_cv_c_fast_math" != x"no"; then
5276 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5279 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5280 echo "configure:5281: checking if \$CC accepts -funroll-loops" >&5
5281 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 CFLAGS="${save_CFLAGS} -funroll-loops"
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5293 if { (eval echo configure:5294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5295 ac_cv_c_unroll_loops=yes
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5300 ac_cv_c_unroll_loops=no
5305 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5306 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5307 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5310 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5311 echo "configure:5312: checking if \$CC accepts -fomit-frame-pointer" >&5
5312 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5324 if { (eval echo configure:5325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5326 ac_cv_c_omit_frame_pointer=yes
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 ac_cv_c_omit_frame_pointer=no
5336 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5337 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5338 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5339 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5340 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5343 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5344 echo "configure:5345: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5345 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5357 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5369 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5370 if test x"$ac_cv_ld_darwin" != x"no"; then
5371 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5374 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5375 echo "configure:5376: checking if \$CC accepts -shared" >&5
5376 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 CFLAGS="${save_CFLAGS} -shared"
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5388 if { (eval echo configure:5389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5390 ac_cv_ld_plugins=yes
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5400 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5401 if test x"$ac_cv_ld_plugins" != x"no"; then
5402 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5405 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5406 echo "configure:5407: checking for variadic cpp macros" >&5
5407 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 CFLAGS="${save_CFLAGS}"
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5415 #define a(b,c...) printf(b,##c)
5417 a("foo");a("%s","bar");a("%s%s","baz","quux");
5420 if { (eval echo configure:5421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5422 ac_cv_cpp_variadic_macros=yes
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5427 ac_cv_cpp_variadic_macros=no
5432 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5433 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5434 cat >> confdefs.h <<\EOF
5435 #define HAVE_VARIADIC_MACROS 1
5440 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5441 echo "configure:5442: checking __attribute__ ((aligned ())) support" >&5
5442 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 ac_cv_c_attribute_aligned=0
5446 CFLAGS="${save_CFLAGS} -Werror"
5447 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5453 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5456 if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5458 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5467 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5468 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5469 cat >> confdefs.h <<EOF
5470 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5475 case x"${target_cpu}" in
5480 ARCH="${target_cpu}"
5484 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5485 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
5487 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5488 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5489 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5490 SSE_MODULES="imdctsse downmixsse"
5491 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5493 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5494 echo "configure:5495: checking if \$CC groks MMX inline assembly" >&5
5495 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 CFLAGS="${save_CFLAGS}"
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5504 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5507 if { (eval echo configure:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5509 ac_cv_mmx_inline=yes
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5519 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5520 if test x"$ac_cv_mmx_inline" != x"no"; then
5521 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5524 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5525 echo "configure:5526: checking if \$CC groks MMX EXT inline assembly" >&5
5526 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 CFLAGS="${save_CFLAGS}"
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5535 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5538 if { (eval echo configure:5539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5540 ac_cv_mmxext_inline=yes
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5545 ac_cv_mmxext_inline=no
5550 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5551 if test x"$ac_cv_mmxext_inline" != x"no"; then
5552 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5555 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5556 echo "configure:5557: checking if \$CC groks 3D Now! inline assembly" >&5
5557 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 CFLAGS="${save_CFLAGS}"
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5569 if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5571 ac_cv_3dnow_inline=yes
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 ac_cv_3dnow_inline=no
5581 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5582 if test x"$ac_cv_3dnow_inline" != x"no"; then
5583 cat >> confdefs.h <<\EOF
5584 #define CAN_COMPILE_3DNOW 1
5587 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5590 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5591 echo "configure:5592: checking if \$CC groks SSE inline assembly" >&5
5592 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 CFLAGS="${save_CFLAGS}"
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5601 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5604 if { (eval echo configure:5605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5606 ac_cv_sse_inline=yes
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5616 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5617 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5618 cat >> confdefs.h <<\EOF
5619 #define CAN_COMPILE_SSE 1
5622 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5625 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5626 # we should be able to remove this test with future versions of mingw32
5627 if test x$SYS != xmingw32; then
5628 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5629 echo "configure:5630: checking if \$CC groks AltiVec inline assembly" >&5
5630 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 CFLAGS="${save_CFLAGS}"
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5639 asm volatile("vperm 0,1,2,3");
5642 if { (eval echo configure:5643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5644 ac_cv_altivec_inline=yes
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5649 CFLAGS="$save_CFLAGS -Wa,-m7400"
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5655 asm volatile("vperm 0,1,2,3");
5658 if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5660 ac_cv_altivec_inline="-Wa,-m7400"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 ac_cv_altivec_inline=no
5673 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5674 if test x"$ac_cv_altivec_inline" != x"no"; then
5675 cat >> confdefs.h <<\EOF
5676 #define CAN_COMPILE_ALTIVEC 1
5679 if test x"$ac_cv_altivec_inline" != x"yes"; then
5680 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5681 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5682 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5683 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5685 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5688 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5689 echo "configure:5690: checking if \$CC groks AltiVec C extensions" >&5
5690 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 CFLAGS="$save_CFLAGS -faltivec"
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=-faltivec
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5712 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5718 vec_mtvscr((vector unsigned int)(0));
5721 if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5723 ac_cv_c_altivec="-fvec"
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5737 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5738 if test x"$ac_cv_c_altivec" != x"no"; then
5739 cat >> confdefs.h <<\EOF
5740 #define CAN_COMPILE_C_ALTIVEC 1
5743 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5744 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5745 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5746 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5747 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5750 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5751 echo "configure:5752: checking if linker needs -framework vecLib" >&5
5752 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 ac_cv_ld_altivec=yes
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5777 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5778 if test x"$ac_cv_ld_altivec" != x"no"; then
5779 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5780 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5781 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5782 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5787 # Check whether --with- or --without- was given.
5788 if test "${with_+set}" = set; then
5793 # Check whether --with- or --without- was given.
5794 if test "${with_+set}" = set; then
5800 # Check whether --with-tuning or --without-tuning was given.
5801 if test "${with_tuning+set}" = set; then
5802 withval="$with_tuning"
5806 if test "x$with_tuning" != "x"; then
5807 TUNING="$with_tuning"
5809 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5811 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5815 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5818 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5821 # Check whether --enable-optimizations or --disable-optimizations was given.
5822 if test "${enable_optimizations+set}" = set; then
5823 enableval="$enable_optimizations"
5824 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5830 # Check whether --enable-altivec or --disable-altivec was given.
5831 if test "${enable_altivec+set}" = set; then
5832 enableval="$enable_altivec"
5833 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5834 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5836 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5837 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5842 # Check whether --enable-debug or --disable-debug was given.
5843 if test "${enable_debug+set}" = set; then
5844 enableval="$enable_debug"
5845 if test x$enable_debug = xyes; then DEBUG=1; fi
5850 # Check whether --enable-release or --disable-release was given.
5851 if test "${enable_release+set}" = set; then
5852 enableval="$enable_release"
5853 if test x$enable_release = xyes; then RELEASE=1; fi
5855 VERSION="${VERSION}_`date +%Y-%m-%d`"
5860 # Check whether --with- or --without- was given.
5861 if test "${with_+set}" = set; then
5867 # Check whether --enable-dvd or --disable-dvd was given.
5868 if test "${enable_dvd+set}" = set; then
5869 enableval="$enable_dvd"
5873 if test "x$enable_dvd" != "xno"
5875 # Check whether --with-dvdcss or --without-dvdcss was given.
5876 if test "${with_dvdcss+set}" = set; then
5877 withval="$with_dvdcss"
5881 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5882 if test "${with_dvdcss_tree+set}" = set; then
5883 withval="$with_dvdcss_tree"
5887 case "x$with_dvdcss" in
5889 if test "x$with_dvdcss_tree" = x
5891 for ac_hdr in dvdcss/dvdcss.h
5893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_hdr" >&5
5896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5905 { (eval echo configure:5906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5907 if test -z "$ac_err"; then
5909 eval "ac_cv_header_$ac_safe=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 eval "ac_cv_header_$ac_safe=no"
5919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5922 cat >> confdefs.h <<EOF
5923 #define $ac_tr_hdr 1
5925 PLUGINS="${PLUGINS} dvd"
5926 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5928 echo "$ac_t""no" 1>&6
5929 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
5930 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5935 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5936 echo "configure:5937: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5937 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5938 if test "x$real_dvdcss_tree" = x
5940 echo "$ac_t""no" 1>&6
5941 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5943 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5945 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5946 BUILTINS="${BUILTINS} dvd"
5947 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5948 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5950 echo "$ac_t""no" 1>&6
5951 { 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; }
5956 PLUGINS="${PLUGINS} dvd"
5957 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5958 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5961 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5962 echo "configure:5963: checking for dvdcss headers in ${with_dvdcss}" >&5
5963 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5965 echo "$ac_t""yes" 1>&6
5966 PLUGINS="${PLUGINS} dvd"
5967 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5968 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5970 echo "$ac_t""no" 1>&6
5971 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5977 # Check whether --enable-dvdread or --disable-dvdread was given.
5978 if test "${enable_dvdread+set}" = set; then
5979 enableval="$enable_dvdread"
5983 if test "x$enable_dvdread" != "xno"
5985 # Check whether --with-dvdread or --without-dvdread was given.
5986 if test "${with_dvdread+set}" = set; then
5987 withval="$with_dvdread"
5991 if test "x$with_dvdread" = x
5996 test_LDFLAGS="-L${with_dvdread}/lib"
5997 test_CFLAGS="-I${with_dvdread}/include"
5999 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6000 for ac_hdr in dvdread/dvd_reader.h
6002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6004 echo "configure:6005: checking for $ac_hdr" >&5
6005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6014 { (eval echo configure:6015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6016 if test -z "$ac_err"; then
6018 eval "ac_cv_header_$ac_safe=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 eval "ac_cv_header_$ac_safe=no"
6028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6031 cat >> confdefs.h <<EOF
6032 #define $ac_tr_hdr 1
6035 CFLAGS="${save_CFLAGS}"
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 #include <dvdread/dvd_reader.h>
6041 void foo() { int i=DVD_VIDEO_LB_LEN; }
6044 if { (eval echo configure:6045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6047 PLUGINS="${PLUGINS} dvdread"
6048 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6049 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6056 if test "x$enable_dvdread" != x
6058 { 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; }
6065 echo "$ac_t""no" 1>&6
6066 if test "x$enable_dvdread" != x
6068 if test "x$with_dvdread" != x
6070 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6072 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6079 CPPFLAGS="$save_CPPFLAGS"
6082 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6083 if test "${enable_dvbpsi+set}" = set; then
6084 enableval="$enable_dvbpsi"
6088 if test "x$enable_dvbpsi" != "xno"
6090 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6091 if test "${with_dvbpsi+set}" = set; then
6092 withval="$with_dvbpsi"
6096 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6097 if test "${with_dvbpsi+set}" = set; then
6098 withval="$with_dvbpsi"
6102 case "x$with_dvbpsi" in
6104 if test "x$with_dvbpsi_tree" = x
6106 for ac_hdr in dvbpsi/dr.h
6108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_hdr" >&5
6111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6122 if test -z "$ac_err"; then
6124 eval "ac_cv_header_$ac_safe=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 eval "ac_cv_header_$ac_safe=no"
6134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6137 cat >> confdefs.h <<EOF
6138 #define $ac_tr_hdr 1
6140 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6141 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6143 echo "$ac_t""no" 1>&6
6148 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6149 echo "configure:6150: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6150 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6151 if test "x$real_dvbpsi_tree" = x
6153 echo "$ac_t""no" 1>&6
6154 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6156 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6158 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6159 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6160 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6161 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6163 echo "$ac_t""no" 1>&6
6164 { 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; }
6171 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6172 echo "configure:6173: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6173 if test "x$with_dvbpsi" = x
6178 test_LDFLAGS="-L${with_dvbpsi}/lib"
6179 test_CFLAGS="-I${with_dvbpsi}/include"
6181 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6182 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6183 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6184 echo "configure:6185: checking for dvbpsi/dr.h" >&5
6185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6186 echo $ac_n "(cached) $ac_c" 1>&6
6188 cat > conftest.$ac_ext <<EOF
6189 #line 6190 "configure"
6190 #include "confdefs.h"
6191 #include <dvbpsi/dr.h>
6193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6194 { (eval echo configure:6195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6196 if test -z "$ac_err"; then
6198 eval "ac_cv_header_$ac_safe=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_header_$ac_safe=no"
6208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6209 echo "$ac_t""yes" 1>&6
6211 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6212 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6213 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6216 echo "$ac_t""no" 1>&6
6218 if test "x$enable_dvbpsi" != x
6220 { 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; }
6225 CPPFLAGS="$save_CPPFLAGS"
6230 # Check whether --enable-vcd or --disable-vcd was given.
6231 if test "${enable_vcd+set}" = set; then
6232 enableval="$enable_vcd"
6237 if test x$enable_vcd != xno
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 #include <linux/cdrom.h>
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245 egrep "cdrom_msf0" >/dev/null 2>&1; then
6248 PLUGINS="${PLUGINS} vcd"
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 #include <sys/cdio.h>
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 egrep "ioc_toc_header " >/dev/null 2>&1; then
6263 PLUGINS="${PLUGINS} vcd"
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6273 if test "x${SYS}" = "xbsdi"
6275 PLUGINS="${PLUGINS} vcd"
6278 if test "x${SYS}" = "xdarwin"
6280 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6281 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6285 # Check whether --enable-satellite or --disable-satellite was given.
6286 if test "${enable_satellite+set}" = set; then
6287 enableval="$enable_satellite"
6288 if test x$enable_satellite = xyes
6290 PLUGINS="${PLUGINS} satellite"
6295 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6297 CFLAGS="$save_CFLAGS"
6298 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6299 echo "configure:6300: checking for inet_pton" >&5
6300 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307 which can conflict with char inet_pton(); below. */
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 eval "ac_cv_func_inet_pton=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_func_inet_pton=no"
6339 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 PLUGINS="${PLUGINS} ipv6"
6343 echo "$ac_t""no" 1>&6
6345 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6346 echo "configure:6347: checking for inet_pton in -lresolv" >&5
6347 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 ac_save_LIBS="$LIBS"
6352 LIBS="-lresolv $LIBS"
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6365 if { (eval echo configure:6366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6367 eval "ac_cv_lib_$ac_lib_var=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_lib_$ac_lib_var=no"
6375 LIBS="$ac_save_LIBS"
6378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 PLUGINS="${PLUGINS} ipv6"
6381 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6383 echo "$ac_t""no" 1>&6
6390 if test "x$SYS" = "xmingw32"
6392 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6393 echo "configure:6394: checking for getaddrinfo in ws2tcpip.h" >&5
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 #include <ws2tcpip.h>
6399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6400 egrep "addrinfo" >/dev/null 2>&1; then
6402 echo "$ac_t""yes" 1>&6
6403 PLUGINS="${PLUGINS} ipv6"
6406 echo "$ac_t""no" 1>&6
6412 # Check whether --enable-avi or --disable-avi was given.
6413 if test "${enable_avi+set}" = set; then
6414 enableval="$enable_avi"
6418 if test x$enable_avi != xno
6420 PLUGINS="${PLUGINS} avi"
6424 # Check whether --with- or --without- was given.
6425 if test "${with_+set}" = set; then
6431 # Check whether --enable-mad or --disable-mad was given.
6432 if test "${enable_mad+set}" = set; then
6433 enableval="$enable_mad"
6437 if test x$enable_mad = xyes
6439 # Check whether --with-mad or --without-mad was given.
6440 if test "${with_mad+set}" = set; then
6445 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6447 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6448 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6451 # Check whether --with-mad-tree or --without-mad-tree was given.
6452 if test "${with_mad_tree+set}" = set; then
6453 withval="$with_mad_tree"
6457 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6459 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6460 if test "x$real_mad_tree" = x
6462 echo "$ac_t""no" 1>&6
6463 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6465 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6466 echo "configure:6467: checking for mad.h in ${real_mad_tree}/libmad" >&5
6467 if test -f ${real_mad_tree}/libmad/mad.h
6469 echo "$ac_t""yes" 1>&6
6470 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6471 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6472 save_LDFLAGS=$LDFLAGS
6473 LDFLAGS=$mad_LDFLAGS
6474 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6475 echo "configure:6476: checking for mad_bit_init in -lmad" >&5
6476 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 ac_save_LIBS="$LIBS"
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char mad_bit_init();
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_lib_$ac_lib_var=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_lib_$ac_lib_var=no"
6504 LIBS="$ac_save_LIBS"
6507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6510 BUILTINS="${BUILTINS} mad"
6511 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6514 echo "$ac_t""no" 1>&6
6515 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6519 LDFLAGS=$save_LDFLAGS
6521 echo "$ac_t""no" 1>&6
6522 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6525 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6526 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_hdr" >&5
6532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6543 if test -z "$ac_err"; then
6545 eval "ac_cv_header_$ac_safe=yes"
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 eval "ac_cv_header_$ac_safe=no"
6555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6558 cat >> confdefs.h <<EOF
6559 #define $ac_tr_hdr 1
6563 echo "$ac_t""no" 1>&6
6564 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6568 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6569 echo "configure:6570: checking for mad_bit_init in -lmad" >&5
6570 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS="$LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char mad_bit_init();
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6598 LIBS="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6604 PLUGINS="${PLUGINS} mad"
6605 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6607 echo "$ac_t""no" 1>&6
6608 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6614 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6615 if test "${enable_ffmpeg+set}" = set; then
6616 enableval="$enable_ffmpeg"
6620 if test "x$enable_ffmpeg" = "xyes"
6622 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6623 if test "${with_ffmpeg+set}" = set; then
6624 withval="$with_ffmpeg"
6628 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6630 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6631 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6634 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6635 if test "${with_ffmpeg_tree+set}" = set; then
6636 withval="$with_ffmpeg_tree"
6640 if test "x$with_ffmpeg_tree" != "x"
6642 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6643 echo "configure:6644: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6644 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6645 if test "x$real_ffmpeg_tree" = x
6647 echo "$ac_t""no" 1>&6
6648 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6650 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6652 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6653 BUILTINS="${BUILTINS} ffmpeg"
6654 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6655 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6657 echo "$ac_t""no" 1>&6
6658 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6662 save_LDFLAGS=$LDFLAGS
6663 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6664 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6665 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6666 echo "configure:6667: checking for avcodec_init in -lavcodec" >&5
6667 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6669 echo $ac_n "(cached) $ac_c" 1>&6
6671 ac_save_LIBS="$LIBS"
6672 LIBS="-lavcodec $LIBS"
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char avcodec_init();
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687 eval "ac_cv_lib_$ac_lib_var=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 eval "ac_cv_lib_$ac_lib_var=no"
6695 LIBS="$ac_save_LIBS"
6698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6699 echo "$ac_t""yes" 1>&6
6701 BUILTINS="${BUILTINS} ffmpeg"
6702 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6704 echo "$ac_t""no" 1>&6
6705 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6709 LDFLAGS=$save_LDFLAGS
6714 if test x$SYS = xbeos
6716 PLUGINS="${PLUGINS} beos"
6719 # Check whether --enable-a52 or --disable-a52 was given.
6720 if test "${enable_a52+set}" = set; then
6721 enableval="$enable_a52"
6725 if test "x$enable_a52" != "xno"
6727 # Check whether --with-a52-tree or --without-a52-tree was given.
6728 if test "${with_a52_tree+set}" = set; then
6729 withval="$with_a52_tree"
6733 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6735 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6736 if test "x$real_a52_tree" = x
6738 echo "$ac_t""no" 1>&6
6739 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6741 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6742 echo "configure:6743: checking for a52.h in ${real_a52_tree}/include" >&5
6743 if test -f ${real_a52_tree}/include/a52.h
6745 echo "$ac_t""yes" 1>&6
6746 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6747 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6748 save_LDFLAGS=$LDFLAGS
6749 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6750 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6751 echo "configure:6752: checking for a52_free in -la52" >&5
6752 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6756 ac_save_LIBS="$LIBS"
6757 LIBS="-la52 -lm $LIBS"
6758 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 eval "ac_cv_lib_$ac_lib_var=yes"
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 eval "ac_cv_lib_$ac_lib_var=no"
6780 LIBS="$ac_save_LIBS"
6783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6784 echo "$ac_t""yes" 1>&6
6786 BUILTINS="${BUILTINS} a52"
6787 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6788 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6791 echo "$ac_t""no" 1>&6
6793 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6795 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6797 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6802 LDFLAGS=$save_LDFLAGS
6804 echo "$ac_t""no" 1>&6
6805 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6807 else for ac_hdr in a52dec/a52.h
6809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6811 echo "configure:6812: checking for $ac_hdr" >&5
6812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6821 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6823 if test -z "$ac_err"; then
6825 eval "ac_cv_header_$ac_safe=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_header_$ac_safe=no"
6835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_hdr 1
6842 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6843 echo "configure:6844: checking for a52_free in -la52" >&5
6844 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 ac_save_LIBS="$LIBS"
6849 LIBS="-la52 -lm $LIBS"
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6864 eval "ac_cv_lib_$ac_lib_var=yes"
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6869 eval "ac_cv_lib_$ac_lib_var=no"
6872 LIBS="$ac_save_LIBS"
6875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6876 echo "$ac_t""yes" 1>&6
6878 BUILTINS="${BUILTINS} a52"
6879 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6880 a52_CFLAGS="${a52_CFLAGS}"
6883 echo "$ac_t""no" 1>&6
6888 echo "$ac_t""no" 1>&6
6895 # Check whether --enable-vorbis or --disable-vorbis was given.
6896 if test "${enable_vorbis+set}" = set; then
6897 enableval="$enable_vorbis"
6901 if test "x$enable_vorbis" != "xno"
6903 for ac_hdr in ogg/ogg.h
6905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_hdr" >&5
6908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6917 { (eval echo configure:6918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6919 if test -z "$ac_err"; then
6921 eval "ac_cv_header_$ac_safe=yes"
6924 echo "configure: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6927 eval "ac_cv_header_$ac_safe=no"
6931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6932 echo "$ac_t""yes" 1>&6
6933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6934 cat >> confdefs.h <<EOF
6935 #define $ac_tr_hdr 1
6938 #PLUGINS="${PLUGINS} vorbis"
6939 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6942 echo "$ac_t""no" 1>&6
6949 # Check whether --with- or --without- was given.
6950 if test "${with_+set}" = set; then
6956 # Check whether --enable-x11 or --disable-x11 was given.
6957 if test "${enable_x11+set}" = set; then
6958 enableval="$enable_x11"
6962 if test x$enable_x11 != xno &&
6963 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6964 if test x$x_includes = xNONE; then
6965 x_includes=/usr/X11R6/include
6967 if test x$x_libraries = xNONE; then
6968 x_libraries=/usr/X11R6/lib
6970 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6971 for ac_hdr in X11/Xlib.h
6973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6975 echo "configure:6976: checking for $ac_hdr" >&5
6976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6985 { (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6987 if test -z "$ac_err"; then
6989 eval "ac_cv_header_$ac_safe=yes"
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 eval "ac_cv_header_$ac_safe=no"
6999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7002 cat >> confdefs.h <<EOF
7003 #define $ac_tr_hdr 1
7006 PLUGINS="${PLUGINS} x11"
7007 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
7008 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
7011 echo "$ac_t""no" 1>&6
7015 CPPFLAGS="$save_CPPFLAGS"
7018 # Check whether --enable-xvideo or --disable-xvideo was given.
7019 if test "${enable_xvideo+set}" = set; then
7020 enableval="$enable_xvideo"
7024 if test x$enable_xvideo != xno &&
7025 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7026 if test x$x_includes = xNONE; then
7027 x_includes=/usr/X11R6/include
7029 if test x$x_libraries = xNONE; then
7030 x_libraries=/usr/X11R6/lib
7032 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7033 for ac_hdr in X11/extensions/Xv.h
7035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7037 echo "configure:7038: checking for $ac_hdr" >&5
7038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7047 { (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7049 if test -z "$ac_err"; then
7051 eval "ac_cv_header_$ac_safe=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_header_$ac_safe=no"
7061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7064 cat >> confdefs.h <<EOF
7065 #define $ac_tr_hdr 1
7068 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7069 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7070 echo "configure:7071: checking for XvSetPortAttribute in -lXv_pic" >&5
7071 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7075 ac_save_LIBS="$LIBS"
7076 LIBS="-lXv_pic $LIBS"
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083 char XvSetPortAttribute();
7086 XvSetPortAttribute()
7089 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7091 eval "ac_cv_lib_$ac_lib_var=yes"
7093 echo "configure: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7096 eval "ac_cv_lib_$ac_lib_var=no"
7099 LIBS="$ac_save_LIBS"
7102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7105 PLUGINS="${PLUGINS} xvideo"
7106 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7107 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7109 echo "$ac_t""no" 1>&6
7110 # We don't have Xv_pic, let's make xvideo.a as builtin
7111 BUILTINS="${BUILTINS} xvideo"
7112 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7113 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7117 CPPFLAGS="$save_CPPFLAGS"
7119 echo "$ac_t""no" 1>&6
7125 # Check whether --enable-sdl or --disable-sdl was given.
7126 if test "${enable_sdl+set}" = set; then
7127 enableval="$enable_sdl"
7131 if test "x$enable_sdl" != "xno"
7134 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7135 if test "${with_sdl_config_path+set}" = set; then
7136 withval="$with_sdl_config_path"
7137 if test "x$with_sdl_config_path" != "xno"
7139 SDL_PATH="$with_sdl_config_path:$PATH"
7143 # Extract the first word of "sdl12-config", so it can be a program name with args.
7144 set dummy sdl12-config; ac_word=$2
7145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7146 echo "configure:7147: checking for $ac_word" >&5
7147 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 case "$SDL12_CONFIG" in
7152 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7155 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7159 ac_dummy="$SDL_PATH"
7160 for ac_dir in $ac_dummy; do
7161 test -z "$ac_dir" && ac_dir=.
7162 if test -f $ac_dir/$ac_word; then
7163 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7168 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7172 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7173 if test -n "$SDL12_CONFIG"; then
7174 echo "$ac_t""$SDL12_CONFIG" 1>&6
7176 echo "$ac_t""no" 1>&6
7179 SDL_CONFIG=${SDL12_CONFIG}
7180 SDL_HEADER="SDL12/SDL.h"
7181 if test x${SDL_CONFIG} = xno
7183 # Extract the first word of "sdl11-config", so it can be a program name with args.
7184 set dummy sdl11-config; ac_word=$2
7185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7186 echo "configure:7187: checking for $ac_word" >&5
7187 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 case "$SDL11_CONFIG" in
7192 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7195 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7199 ac_dummy="$SDL_PATH"
7200 for ac_dir in $ac_dummy; do
7201 test -z "$ac_dir" && ac_dir=.
7202 if test -f $ac_dir/$ac_word; then
7203 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7208 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7212 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7213 if test -n "$SDL11_CONFIG"; then
7214 echo "$ac_t""$SDL11_CONFIG" 1>&6
7216 echo "$ac_t""no" 1>&6
7219 SDL_CONFIG=${SDL11_CONFIG}
7220 SDL_HEADER="SDL11/SDL.h"
7222 if test x${SDL_CONFIG} = xno
7224 # Extract the first word of "sdl-config", so it can be a program name with args.
7225 set dummy sdl-config; ac_word=$2
7226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7227 echo "configure:7228: checking for $ac_word" >&5
7228 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7229 echo $ac_n "(cached) $ac_c" 1>&6
7231 case "$SDL_CONFIG" in
7233 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7236 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7240 ac_dummy="$SDL_PATH"
7241 for ac_dir in $ac_dummy; do
7242 test -z "$ac_dir" && ac_dir=.
7243 if test -f $ac_dir/$ac_word; then
7244 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7249 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7253 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7254 if test -n "$SDL_CONFIG"; then
7255 echo "$ac_t""$SDL_CONFIG" 1>&6
7257 echo "$ac_t""no" 1>&6
7260 SDL_HEADER="SDL/SDL.h"
7262 if test x${SDL_CONFIG} != xno
7264 PLUGINS="${PLUGINS} sdl"
7265 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7266 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7267 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7268 for ac_hdr in ${SDL_HEADER}
7270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_hdr" >&5
7273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7282 { (eval echo configure:7283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7284 if test -z "$ac_err"; then
7286 eval "ac_cv_header_$ac_safe=yes"
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7292 eval "ac_cv_header_$ac_safe=no"
7296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7297 echo "$ac_t""yes" 1>&6
7298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7299 cat >> confdefs.h <<EOF
7300 #define $ac_tr_hdr 1
7302 cat >> confdefs.h <<EOF
7303 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7307 echo "$ac_t""no" 1>&6
7308 { echo "configure: error: The development package for SDL is not installed.
7309 Please install it and try again. Alternatively you can also configure with
7310 --disable-sdl." 1>&2; exit 1; }
7315 CPPFLAGS="$save_CPPFLAGS"
7316 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7318 { echo "configure: error: The development package for SDL is not installed.
7319 Please install it and try again. Alternatively you can also configure with
7320 --disable-sdl." 1>&2; exit 1; }
7322 elif test "x$enable_sdl" = "xyes"
7324 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7325 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7330 # Check whether --enable-directx or --disable-directx was given.
7331 if test "${enable_directx+set}" = set; then
7332 enableval="$enable_directx"
7336 if test "x$enable_directx" != "xno"
7338 if test x$SYS = xmingw32
7340 # Check whether --with-directx or --without-directx was given.
7341 if test "${with_directx+set}" = set; then
7342 withval="$with_directx"
7346 if test "x$with_directx" = "x"
7348 for ac_hdr in ddraw.h
7350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7352 echo "configure:7353: checking for $ac_hdr" >&5
7353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7362 { (eval echo configure:7363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7364 if test -z "$ac_err"; then
7366 eval "ac_cv_header_$ac_safe=yes"
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 eval "ac_cv_header_$ac_safe=no"
7376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7379 cat >> confdefs.h <<EOF
7380 #define $ac_tr_hdr 1
7382 PLUGINS="${PLUGINS} directx"
7383 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7385 echo "$ac_t""no" 1>&6
7390 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7391 echo "configure:7392: checking for directX headers in ${with_directx}" >&5
7392 if test -f ${with_directx}/ddraw.h
7394 PLUGINS="${PLUGINS} directx"
7395 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7396 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7397 echo "$ac_t""yes" 1>&6
7399 echo "$ac_t""no" 1>&6
7400 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7406 # Check whether --enable-fb or --disable-fb was given.
7407 if test "${enable_fb+set}" = set; then
7408 enableval="$enable_fb"
7412 if test x$enable_fb != xno
7414 for ac_hdr in linux/fb.h
7416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7418 echo "configure:7419: checking for $ac_hdr" >&5
7419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7428 { (eval echo configure:7429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7430 if test -z "$ac_err"; then
7432 eval "ac_cv_header_$ac_safe=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 eval "ac_cv_header_$ac_safe=no"
7442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7445 cat >> confdefs.h <<EOF
7446 #define $ac_tr_hdr 1
7449 PLUGINS="${PLUGINS} fb"
7452 echo "$ac_t""no" 1>&6
7458 # Check whether --enable-mga or --disable-mga was given.
7459 if test "${enable_mga+set}" = set; then
7460 enableval="$enable_mga"
7461 if test x$enable_mga = xyes
7463 PLUGINS="${PLUGINS} mga xmga"
7468 # Check whether --enable-ggi or --disable-ggi was given.
7469 if test "${enable_ggi+set}" = set; then
7470 enableval="$enable_ggi"
7474 if test x$enable_ggi = xyes
7476 PLUGINS="${PLUGINS} ggi"
7477 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7478 # Check whether --with-ggi or --without-ggi was given.
7479 if test "${with_ggi+set}" = set; then
7481 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7483 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7484 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7490 # Check whether --enable-glide or --disable-glide was given.
7491 if test "${enable_glide+set}" = set; then
7492 enableval="$enable_glide"
7496 if test x$enable_glide = xyes
7498 PLUGINS="${PLUGINS} glide"
7499 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7500 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7501 # Check whether --with-glide or --without-glide was given.
7502 if test "${with_glide+set}" = set; then
7503 withval="$with_glide"
7504 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7506 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7507 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7513 # Check whether --enable-aa or --disable-aa was given.
7514 if test "${enable_aa+set}" = set; then
7515 enableval="$enable_aa"
7519 if test x$enable_aa = xyes
7521 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7522 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7523 echo "configure:7524: checking for aalib.h" >&5
7524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7533 { (eval echo configure:7534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7535 if test -z "$ac_err"; then
7537 eval "ac_cv_header_$ac_safe=yes"
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 eval "ac_cv_header_$ac_safe=no"
7547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7548 echo "$ac_t""yes" 1>&6
7551 echo "$ac_t""no" 1>&6
7555 if test x$have_aa = xtrue
7557 PLUGINS="${PLUGINS} aa"
7558 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7563 # Check whether --with- or --without- was given.
7564 if test "${with_+set}" = set; then
7570 # Check whether --enable-dsp or --disable-dsp was given.
7571 if test "${enable_dsp+set}" = set; then
7572 enableval="$enable_dsp"
7577 if test x$enable_dsp != xno &&
7578 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7580 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_hdr" >&5
7585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7596 if test -z "$ac_err"; then
7598 eval "ac_cv_header_$ac_safe=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_header_$ac_safe=no"
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_hdr 1
7615 PLUGINS="${PLUGINS} dsp"
7616 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7617 echo "configure:7618: checking for main in -lossaudio" >&5
7618 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7620 echo $ac_n "(cached) $ac_c" 1>&6
7622 ac_save_LIBS="$LIBS"
7623 LIBS="-lossaudio $LIBS"
7624 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7634 eval "ac_cv_lib_$ac_lib_var=yes"
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 eval "ac_cv_lib_$ac_lib_var=no"
7642 LIBS="$ac_save_LIBS"
7645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7646 echo "$ac_t""yes" 1>&6
7647 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7649 echo "$ac_t""no" 1>&6
7654 echo "$ac_t""no" 1>&6
7660 # Check whether --enable-esd or --disable-esd was given.
7661 if test "${enable_esd+set}" = set; then
7662 enableval="$enable_esd"
7663 if test x$enable_esd = xyes
7665 # Extract the first word of "esd-config", so it can be a program name with args.
7666 set dummy esd-config; ac_word=$2
7667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7668 echo "configure:7669: checking for $ac_word" >&5
7669 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 case "$ESD_CONFIG" in
7674 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7677 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7682 for ac_dir in $ac_dummy; do
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/$ac_word; then
7685 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7690 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7694 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7695 if test -n "$ESD_CONFIG"; then
7696 echo "$ac_t""$ESD_CONFIG" 1>&6
7698 echo "$ac_t""no" 1>&6
7701 if test x${ESD_CONFIG} != xno
7703 PLUGINS="${PLUGINS} esd"
7704 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7705 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7711 # Check whether --enable-arts or --disable-arts was given.
7712 if test "${enable_arts+set}" = set; then
7713 enableval="$enable_arts"
7714 if test x$enable_arts = xyes
7716 # Extract the first word of "artsc-config", so it can be a program name with args.
7717 set dummy artsc-config; ac_word=$2
7718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_word" >&5
7720 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 case "$ARTS_CONFIG" in
7725 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7728 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7733 for ac_dir in $ac_dummy; do
7734 test -z "$ac_dir" && ac_dir=.
7735 if test -f $ac_dir/$ac_word; then
7736 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7741 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7745 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7746 if test -n "$ARTS_CONFIG"; then
7747 echo "$ac_t""$ARTS_CONFIG" 1>&6
7749 echo "$ac_t""no" 1>&6
7752 if test x${ARTS_CONFIG} != xno
7754 PLUGINS="${PLUGINS} arts"
7755 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7756 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7762 # Check whether --enable-alsa or --disable-alsa was given.
7763 if test "${enable_alsa+set}" = set; then
7764 enableval="$enable_alsa"
7765 if test x$enable_alsa = xyes
7767 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7768 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7769 echo "configure:7770: checking for alsa/asoundlib.h" >&5
7770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 #include <alsa/asoundlib.h>
7778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7779 { (eval echo configure:7780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7781 if test -z "$ac_err"; then
7783 eval "ac_cv_header_$ac_safe=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7789 eval "ac_cv_header_$ac_safe=no"
7793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7796 echo "configure:7797: checking for main in -lasound" >&5
7797 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7801 ac_save_LIBS="$LIBS"
7802 LIBS="-lasound $LIBS"
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 eval "ac_cv_lib_$ac_lib_var=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 eval "ac_cv_lib_$ac_lib_var=no"
7821 LIBS="$ac_save_LIBS"
7824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7828 echo "$ac_t""no" 1>&6
7833 echo "$ac_t""no" 1>&6
7837 if test x$have_alsa = xtrue
7839 PLUGINS="${PLUGINS} alsa"
7840 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7846 # Check whether --enable-waveout or --disable-waveout was given.
7847 if test "${enable_waveout+set}" = set; then
7848 enableval="$enable_waveout"
7852 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7854 PLUGINS="${PLUGINS} waveout"
7855 waveout_LDFLAGS="-lwinmm"
7859 # Check whether --with- or --without- was given.
7860 if test "${with_+set}" = set; then
7866 # Check whether --enable-gtk or --disable-gtk was given.
7867 if test "${enable_gtk+set}" = set; then
7868 enableval="$enable_gtk"
7872 if test x$enable_gtk != xno
7875 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7876 if test "${with_gtk_config_path+set}" = set; then
7877 withval="$with_gtk_config_path"
7878 if test "x$with_gtk_config_path" != "xno"
7880 GTK_PATH="$with_gtk_config_path:$PATH"
7884 # look for gtk-config
7885 # Extract the first word of "gtk12-config", so it can be a program name with args.
7886 set dummy gtk12-config; ac_word=$2
7887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_word" >&5
7889 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7892 case "$GTK12_CONFIG" in
7894 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7897 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7901 ac_dummy="$GTK_PATH"
7902 for ac_dir in $ac_dummy; do
7903 test -z "$ac_dir" && ac_dir=.
7904 if test -f $ac_dir/$ac_word; then
7905 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7910 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7914 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7915 if test -n "$GTK12_CONFIG"; then
7916 echo "$ac_t""$GTK12_CONFIG" 1>&6
7918 echo "$ac_t""no" 1>&6
7921 GTK_CONFIG=${GTK12_CONFIG}
7922 if test x${GTK_CONFIG} = xno
7924 # Extract the first word of "gtk-config", so it can be a program name with args.
7925 set dummy gtk-config; ac_word=$2
7926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_word" >&5
7928 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7931 case "$GTK_CONFIG" in
7933 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7936 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7940 ac_dummy="$GTK_PATH"
7941 for ac_dir in $ac_dummy; do
7942 test -z "$ac_dir" && ac_dir=.
7943 if test -f $ac_dir/$ac_word; then
7944 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7949 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7953 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7954 if test -n "$GTK_CONFIG"; then
7955 echo "$ac_t""$GTK_CONFIG" 1>&6
7957 echo "$ac_t""no" 1>&6
7961 if test x${GTK_CONFIG} != xno
7963 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7965 { 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; }
7967 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7968 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7969 # now look for the gtk.h header
7970 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7971 ac_cv_gtk_headers=yes
7972 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7976 echo "configure:7977: checking for $ac_hdr" >&5
7977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7986 { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7988 if test -z "$ac_err"; then
7990 eval "ac_cv_header_$ac_safe=yes"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7996 eval "ac_cv_header_$ac_safe=no"
8000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8001 echo "$ac_t""yes" 1>&6
8002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8003 cat >> confdefs.h <<EOF
8004 #define $ac_tr_hdr 1
8008 echo "$ac_t""no" 1>&6
8009 ac_cv_gtk_headers=no
8010 echo "Cannot find gtk development headers."
8015 if test "x$ac_cv_gtk_headers" = xyes
8017 PLUGINS="${PLUGINS} gtk"
8018 ALIASES="${ALIASES} gvlc"
8020 CPPFLAGS="$save_CPPFLAGS"
8024 # Check whether --enable-gnome or --disable-gnome was given.
8025 if test "${enable_gnome+set}" = set; then
8026 enableval="$enable_gnome"
8027 if test x$enable_gnome = xyes; then
8028 # look for gnome-config
8029 # Extract the first word of "gnome-config", so it can be a program name with args.
8030 set dummy gnome-config; ac_word=$2
8031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8032 echo "configure:8033: checking for $ac_word" >&5
8033 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 case "$GNOME_CONFIG" in
8038 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8041 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8046 for ac_dir in $ac_dummy; do
8047 test -z "$ac_dir" && ac_dir=.
8048 if test -f $ac_dir/$ac_word; then
8049 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8054 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8058 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8059 if test -n "$GNOME_CONFIG"; then
8060 echo "$ac_t""$GNOME_CONFIG" 1>&6
8062 echo "$ac_t""no" 1>&6
8065 if test -x ${GNOME_CONFIG}
8067 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8068 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8070 # now look for the gnome.h header
8071 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8072 for ac_hdr in gnome.h
8074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8076 echo "configure:8077: checking for $ac_hdr" >&5
8077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8088 if test -z "$ac_err"; then
8090 eval "ac_cv_header_$ac_safe=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_header_$ac_safe=no"
8100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8103 cat >> confdefs.h <<EOF
8104 #define $ac_tr_hdr 1
8107 PLUGINS="${PLUGINS} gnome"
8108 ALIASES="${ALIASES} gnome-vlc"
8111 echo "$ac_t""no" 1>&6
8112 { echo "configure: error: Can't find gnome headers. Please install the gnome
8113 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8118 CPPFLAGS="$save_CPPFLAGS"
8123 # Check whether --enable-qt or --disable-qt was given.
8124 if test "${enable_qt+set}" = set; then
8125 enableval="$enable_qt"
8126 if test x$enable_qt = xyes; then
8127 PLUGINS="${PLUGINS} qt"
8128 ALIASES="${ALIASES} qvlc"
8129 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8130 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8131 if test -x ${QTDIR}/bin/moc
8133 MOC=${QTDIR}/bin/moc
8141 # Check whether --enable-kde or --disable-kde was given.
8142 if test "${enable_kde+set}" = set; then
8143 enableval="$enable_kde"
8144 if test x$enable_kde = xyes; then
8145 PLUGINS="${PLUGINS} kde"
8146 ALIASES="${ALIASES} kvlc"
8147 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8148 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8149 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8150 if test -x ${QTDIR}/bin/moc
8152 MOC=${QTDIR}/bin/moc
8160 # Check whether --enable-macosx or --disable-macosx was given.
8161 if test "${enable_macosx+set}" = set; then
8162 enableval="$enable_macosx"
8163 if test x$enable_macosx = xyes
8165 BUILTINS="${BUILTINS} macosx"
8166 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8169 for ac_hdr in Cocoa/Cocoa.h
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
8203 BUILTINS="${BUILTINS} macosx"
8204 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8207 echo "$ac_t""no" 1>&6
8214 # Check whether --enable-qnx or --disable-qnx was given.
8215 if test "${enable_qnx+set}" = set; then
8216 enableval="$enable_qnx"
8220 if test x$enable_qnx != xno
8224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8226 echo "configure:8227: checking for $ac_hdr" >&5
8227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8228 echo $ac_n "(cached) $ac_c" 1>&6
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8236 { (eval echo configure:8237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8238 if test -z "$ac_err"; then
8240 eval "ac_cv_header_$ac_safe=yes"
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8246 eval "ac_cv_header_$ac_safe=no"
8250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8251 echo "$ac_t""yes" 1>&6
8252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8253 cat >> confdefs.h <<EOF
8254 #define $ac_tr_hdr 1
8257 PLUGINS="${PLUGINS} qnx"
8258 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8261 echo "$ac_t""no" 1>&6
8267 # Check whether --enable-intfwin or --disable-intfwin was given.
8268 if test "${enable_intfwin+set}" = set; then
8269 enableval="$enable_intfwin"
8270 if test "x$enable_intfwin" != "xno"
8272 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8273 if test "${with_bcbuilder+set}" = set; then
8274 withval="$with_bcbuilder"
8278 if test "x$with_bcbuilder" != "x"
8280 BCBUILDER="$with_bcbuilder"
8282 PLUGINS="${PLUGINS} intfwin"
8287 # Check whether --enable-ncurses or --disable-ncurses was given.
8288 if test "${enable_ncurses+set}" = set; then
8289 enableval="$enable_ncurses"
8290 if test x$enable_ncurses = xyes; then
8291 PLUGINS="${PLUGINS} ncurses"
8292 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8297 # Check whether --enable-xosd or --disable-xosd was given.
8298 if test "${enable_xosd+set}" = set; then
8299 enableval="$enable_xosd"
8303 if test x$enable_xosd = xyes
8305 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8306 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8307 echo "configure:8308: checking for xosd.h" >&5
8308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8317 { (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8319 if test -z "$ac_err"; then
8321 eval "ac_cv_header_$ac_safe=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 eval "ac_cv_header_$ac_safe=no"
8331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6
8335 echo "$ac_t""no" 1>&6
8339 if test x$have_xosd = xtrue
8341 PLUGINS="${PLUGINS} xosd"
8342 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8346 # Check whether --enable-lirc or --disable-lirc was given.
8347 if test "${enable_lirc+set}" = set; then
8348 enableval="$enable_lirc"
8352 if test x$enable_lirc = xyes
8354 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8355 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8356 echo "configure:8357: checking for lirc/lirc_client.h" >&5
8357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 #include <lirc/lirc_client.h>
8365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8366 { (eval echo configure:8367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8368 if test -z "$ac_err"; then
8370 eval "ac_cv_header_$ac_safe=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 eval "ac_cv_header_$ac_safe=no"
8380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8383 echo "configure:8384: checking for lirc_init in -llirc_client" >&5
8384 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8388 ac_save_LIBS="$LIBS"
8389 LIBS="-llirc_client $LIBS"
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 /* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8402 if { (eval echo configure:8403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8404 eval "ac_cv_lib_$ac_lib_var=yes"
8406 echo "configure: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8409 eval "ac_cv_lib_$ac_lib_var=no"
8412 LIBS="$ac_save_LIBS"
8415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8416 echo "$ac_t""yes" 1>&6
8419 echo "$ac_t""no" 1>&6
8424 echo "$ac_t""no" 1>&6
8428 if test x$have_lirc = xtrue
8430 PLUGINS="${PLUGINS} lirc"
8431 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8435 # Check whether --with- or --without- was given.
8436 if test "${with_+set}" = set; then
8442 # Check whether --with-words or --without-words was given.
8443 if test "${with_words+set}" = set; then
8444 withval="$with_words"
8448 case "x$with_words" in
8450 ac_cv_c_bigendian=yes
8453 ac_cv_c_bigendian=no
8456 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8457 echo "configure:8458: checking whether the byte order is big-endian" >&5
8458 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8461 ac_cv_c_bigendian=unknown
8462 cat >conftest.c <<EOF
8463 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8464 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8465 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8466 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8467 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8468 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8469 int main(void) { _a(); _e(); return 0; }
8472 if test -f conftest.c
8474 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8475 && test -f conftest.o
8477 if test "`strings conftest.o | grep BIGenDianSyS`"
8479 ac_cv_c_bigendian=yes
8481 if test "`strings conftest.o | grep LiTTleEnDian`"
8483 ac_cv_c_bigendian=no
8490 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8491 if test x$ac_cv_c_bigendian = xunknown
8493 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8497 if test $ac_cv_c_bigendian = yes
8499 cat >> confdefs.h <<\EOF
8500 #define WORDS_BIGENDIAN 1
8508 # Check whether --enable-gprof or --disable-gprof was given.
8509 if test "${enable_gprof+set}" = set; then
8510 enableval="$enable_gprof"
8511 if test "x$enable_gprof" = "xyes"
8521 # Check whether --enable-cprof or --disable-cprof was given.
8522 if test "${enable_cprof+set}" = set; then
8523 enableval="$enable_cprof"
8524 if test "x$enable_cprof" = "xyes"
8526 LDFLAGS="${LDFLAGS} -lcprof"
8534 # Check whether --enable-pth or --disable-pth was given.
8535 if test "${enable_pth+set}" = set; then
8536 enableval="$enable_pth"
8537 if test "x$enable_pth" = "xyes"; then
8538 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8539 echo "configure:8540: checking for pth_init in -lpth" >&5
8540 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 ac_save_LIBS="$LIBS"
8546 cat > conftest.$ac_ext <<EOF
8547 #line 8548 "configure"
8548 #include "confdefs.h"
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 /* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8560 eval "ac_cv_lib_$ac_lib_var=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8565 eval "ac_cv_lib_$ac_lib_var=no"
8568 LIBS="$ac_save_LIBS"
8571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8573 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8574 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8575 cat >> confdefs.h <<EOF
8576 #define $ac_tr_lib 1
8582 echo "$ac_t""no" 1>&6
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8591 egrep "pth_init" >/dev/null 2>&1; then
8594 cat >> confdefs.h <<\EOF
8595 #define PTH_INIT_IN_PTH_H 1
8607 # Check whether --enable-st or --disable-st was given.
8608 if test "${enable_st+set}" = set; then
8609 enableval="$enable_st"
8610 if test "x$enable_st" = "xyes"; then
8611 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8612 echo "configure:8613: checking for st_init in -lst" >&5
8613 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8617 ac_save_LIBS="$LIBS"
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8631 if { (eval echo configure:8632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8633 eval "ac_cv_lib_$ac_lib_var=yes"
8635 echo "configure: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8638 eval "ac_cv_lib_$ac_lib_var=no"
8641 LIBS="$ac_save_LIBS"
8644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8646 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8648 cat >> confdefs.h <<EOF
8649 #define $ac_tr_lib 1
8655 echo "$ac_t""no" 1>&6
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8664 egrep "st_init" >/dev/null 2>&1; then
8667 cat >> confdefs.h <<\EOF
8668 #define ST_INIT_IN_ST_H 1
8680 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8681 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8684 # Check whether --enable-mozilla or --disable-mozilla was given.
8685 if test "${enable_mozilla+set}" = set; then
8686 enableval="$enable_mozilla"
8690 if test x$enable_mozilla = xyes
8692 # Extract the first word of "mozilla-config", so it can be a program name with args.
8693 set dummy mozilla-config; ac_word=$2
8694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8695 echo "configure:8696: checking for $ac_word" >&5
8696 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8699 case "$MOZILLA_CONFIG" in
8701 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
8704 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
8707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8709 for ac_dir in $ac_dummy; do
8710 test -z "$ac_dir" && ac_dir=.
8711 if test -f $ac_dir/$ac_word; then
8712 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
8717 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
8721 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
8722 if test -n "$MOZILLA_CONFIG"; then
8723 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
8725 echo "$ac_t""no" 1>&6
8728 if test x${MOZILLA_CONFIG} != xno
8731 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
8732 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `"
8736 # Check whether --enable-plugins or --disable-plugins was given.
8737 if test "${enable_plugins+set}" = set; then
8738 enableval="$enable_plugins"
8739 if test x$enable_plugins = xno
8741 BUILTINS="${BUILTINS} ${PLUGINS}"
8747 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8749 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8751 BUILTINS="${BUILTINS} ${PLUGINS}"
8755 cat >> confdefs.h <<EOF
8756 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8759 cat >> confdefs.h <<EOF
8760 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8763 cat >> confdefs.h <<EOF
8764 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8768 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8769 cat >> confdefs.h <<EOF
8770 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8773 cat >> confdefs.h <<EOF
8774 #define MODULE_SYMBOL $VLC_SYMBOL
8778 DATA_PATH="${ac_tool_prefix}/share/videolan"
8780 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8783 CPPFLAGS="${save_CPPFLAGS}"
8784 CFLAGS="${save_CFLAGS}"
8785 LDFLAGS="${save_LDFLAGS}"
8888 cat > confcache <<\EOF
8889 # This file is a shell script that caches the results of configure
8890 # tests run on this system so they can be shared between configure
8891 # scripts and configure runs. It is not useful on other systems.
8892 # If it contains results you don't want to keep, you may remove or edit it.
8894 # By default, configure uses ./config.cache as the cache file,
8895 # creating it if it does not exist already. You can give configure
8896 # the --cache-file=FILE option to use a different cache file; that is
8897 # what configure does when it calls configure scripts in
8898 # subdirectories, so they share the cache.
8899 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8900 # config.status only pays attention to the cache file if you give it the
8901 # --recheck option to rerun configure.
8904 # The following way of writing the cache mishandles newlines in values,
8905 # but we know of no workaround that is simple, portable, and efficient.
8906 # So, don't put newlines in cache variables' values.
8907 # Ultrix sh set writes to stderr and can't be redirected directly,
8908 # and sets the high bit in the cache file unless we assign to the vars.
8910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8912 # `set' does not quote correctly, so add quotes (double-quote substitution
8913 # turns \\\\ into \\, and sed turns \\ into \).
8915 -e "s/'/'\\\\''/g" \
8916 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8919 # `set' quotes correctly as required by POSIX, so do not add quotes.
8920 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8923 if cmp -s $cache_file confcache; then
8926 if test -w $cache_file; then
8927 echo "updating cache $cache_file"
8928 cat confcache > $cache_file
8930 echo "not updating unwritable cache $cache_file"
8935 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8938 # Let make expand exec_prefix.
8939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8941 # Any assignment to VPATH causes Sun make to only execute
8942 # the first set of double-colon rules, so remove it if not needed.
8943 # If there is a colon in the path, we need to keep it.
8944 if test "x$srcdir" = x.; then
8945 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8948 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8950 DEFS=-DHAVE_CONFIG_H
8952 # Without the "./", some shells look in PATH for config.status.
8953 : ${CONFIG_STATUS=./config.status}
8955 echo creating $CONFIG_STATUS
8956 rm -f $CONFIG_STATUS
8957 cat > $CONFIG_STATUS <<EOF
8959 # Generated automatically by configure.
8960 # Run this file to recreate the current configuration.
8961 # This directory was configured as follows,
8962 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8964 # $0 $ac_configure_args
8966 # Compiler output produced by configure, useful for debugging
8967 # configure, is in ./config.log if it exists.
8969 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8972 case "\$ac_option" in
8973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8974 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8975 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8976 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8977 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8979 -help | --help | --hel | --he | --h)
8980 echo "\$ac_cs_usage"; exit 0 ;;
8981 *) echo "\$ac_cs_usage"; exit 1 ;;
8985 ac_given_srcdir=$srcdir
8986 ac_given_INSTALL="$INSTALL"
8988 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8990 cat >> $CONFIG_STATUS <<EOF
8992 # Protect against being on the right side of a sed subst in config.status.
8993 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8994 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8998 s%@CFLAGS@%$CFLAGS%g
8999 s%@CPPFLAGS@%$CPPFLAGS%g
9000 s%@CXXFLAGS@%$CXXFLAGS%g
9001 s%@FFLAGS@%$FFLAGS%g
9003 s%@LDFLAGS@%$LDFLAGS%g
9005 s%@exec_prefix@%$exec_prefix%g
9006 s%@prefix@%$prefix%g
9007 s%@program_transform_name@%$program_transform_name%g
9008 s%@bindir@%$bindir%g
9009 s%@sbindir@%$sbindir%g
9010 s%@libexecdir@%$libexecdir%g
9011 s%@datadir@%$datadir%g
9012 s%@sysconfdir@%$sysconfdir%g
9013 s%@sharedstatedir@%$sharedstatedir%g
9014 s%@localstatedir@%$localstatedir%g
9015 s%@libdir@%$libdir%g
9016 s%@includedir@%$includedir%g
9017 s%@oldincludedir@%$oldincludedir%g
9018 s%@infodir@%$infodir%g
9019 s%@mandir@%$mandir%g
9021 s%@host_alias@%$host_alias%g
9022 s%@host_cpu@%$host_cpu%g
9023 s%@host_vendor@%$host_vendor%g
9024 s%@host_os@%$host_os%g
9025 s%@target@%$target%g
9026 s%@target_alias@%$target_alias%g
9027 s%@target_cpu@%$target_cpu%g
9028 s%@target_vendor@%$target_vendor%g
9029 s%@target_os@%$target_os%g
9031 s%@build_alias@%$build_alias%g
9032 s%@build_cpu@%$build_cpu%g
9033 s%@build_vendor@%$build_vendor%g
9034 s%@build_os@%$build_os%g
9035 s%@SET_MAKE@%$SET_MAKE%g
9038 s%@RANLIB@%$RANLIB%g
9041 s%@ALLOCA@%$ALLOCA%g
9042 s%@GLIBC21@%$GLIBC21%g
9043 s%@LIBICONV@%$LIBICONV%g
9044 s%@USE_NLS@%$USE_NLS%g
9045 s%@MSGFMT@%$MSGFMT%g
9046 s%@GMSGFMT@%$GMSGFMT%g
9047 s%@XGETTEXT@%$XGETTEXT%g
9048 s%@INTLBISON@%$INTLBISON%g
9049 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9050 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9051 s%@CATALOGS@%$CATALOGS%g
9052 s%@CATOBJEXT@%$CATOBJEXT%g
9053 s%@GMOFILES@%$GMOFILES%g
9054 s%@INTLLIBS@%$INTLLIBS%g
9055 s%@INTLOBJS@%$INTLOBJS%g
9056 s%@POFILES@%$POFILES%g
9058 s%@DATADIRNAME@%$DATADIRNAME%g
9059 s%@INSTOBJEXT@%$INSTOBJEXT%g
9060 s%@GENCAT@%$GENCAT%g
9061 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9062 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9063 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9064 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9065 s%@INSTALL_DATA@%$INSTALL_DATA%g
9066 s%@WINDRES@%$WINDRES%g
9067 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9068 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9069 s%@SDL_CONFIG@%$SDL_CONFIG%g
9070 s%@ESD_CONFIG@%$ESD_CONFIG%g
9071 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9072 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9073 s%@GTK_CONFIG@%$GTK_CONFIG%g
9074 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9075 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9076 s%@DATA_PATH@%$DATA_PATH%g
9077 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9080 s%@PLUGINS@%$PLUGINS%g
9081 s%@BUILTINS@%$BUILTINS%g
9082 s%@ALIASES@%$ALIASES%g
9087 s%@OPTIMS@%$OPTIMS%g
9088 s%@TUNING@%$TUNING%g
9089 s%@RELEASE@%$RELEASE%g
9091 s%@BCBUILDER@%$BCBUILDER%g
9092 s%@PACKAGE@%$PACKAGE%g
9093 s%@VERSION@%$VERSION%g
9094 s%@NEED_GETOPT@%$NEED_GETOPT%g
9095 s%@MOZILLA@%$MOZILLA%g
9096 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9097 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9098 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9099 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9100 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9101 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9102 s%@a52_CFLAGS@%$a52_CFLAGS%g
9103 s%@arts_CFLAGS@%$arts_CFLAGS%g
9104 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9105 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9106 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9107 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9108 s%@directx_CFLAGS@%$directx_CFLAGS%g
9109 s%@esd_CFLAGS@%$esd_CFLAGS%g
9110 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9111 s%@glide_CFLAGS@%$glide_CFLAGS%g
9112 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9113 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9114 s%@kde_CFLAGS@%$kde_CFLAGS%g
9115 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9116 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9117 s%@mad_CFLAGS@%$mad_CFLAGS%g
9118 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9119 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9120 s%@qt_CFLAGS@%$qt_CFLAGS%g
9121 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9122 s%@x11_CFLAGS@%$x11_CFLAGS%g
9123 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9124 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9125 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9126 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9127 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9128 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9129 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9130 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9131 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9132 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9133 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9134 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9135 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9136 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9137 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9138 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9139 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9140 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9141 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9142 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9143 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9144 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9145 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9146 s%@http_LDFLAGS@%$http_LDFLAGS%g
9147 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9148 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9149 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9150 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9151 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9152 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9153 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9154 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9155 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9156 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9157 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9158 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9159 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9160 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9161 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9162 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9163 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9164 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9165 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9166 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9167 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9168 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9169 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9174 cat >> $CONFIG_STATUS <<\EOF
9176 # Split the substitutions into bite-sized pieces for seds with
9177 # small command number limits, like on Digital OSF/1 and HP-UX.
9178 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9179 ac_file=1 # Number of current file.
9180 ac_beg=1 # First line for current file.
9181 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9184 while $ac_more_lines; do
9185 if test $ac_beg -gt 1; then
9186 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9188 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9190 if test ! -s conftest.s$ac_file; then
9192 rm -f conftest.s$ac_file
9194 if test -z "$ac_sed_cmds"; then
9195 ac_sed_cmds="sed -f conftest.s$ac_file"
9197 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9199 ac_file=`expr $ac_file + 1`
9201 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9204 if test -z "$ac_sed_cmds"; then
9209 cat >> $CONFIG_STATUS <<EOF
9211 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9213 cat >> $CONFIG_STATUS <<\EOF
9214 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9217 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9218 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9219 *) ac_file_in="${ac_file}.in" ;;
9222 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9224 # Remove last slash and all that follows it. Not all systems have dirname.
9225 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9226 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9227 # The file is in a subdirectory.
9228 test ! -d "$ac_dir" && mkdir "$ac_dir"
9229 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9230 # A "../" for each directory in $ac_dir_suffix.
9231 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9233 ac_dir_suffix= ac_dots=
9236 case "$ac_given_srcdir" in
9238 if test -z "$ac_dots"; then top_srcdir=.
9239 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9240 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9242 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9243 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9246 case "$ac_given_INSTALL" in
9247 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9248 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9251 echo creating "$ac_file"
9253 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9255 *Makefile*) ac_comsub="1i\\
9256 # $configure_input" ;;
9260 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9262 s%@configure_input@%$configure_input%g
9263 s%@srcdir@%$srcdir%g
9264 s%@top_srcdir@%$top_srcdir%g
9265 s%@INSTALL@%$INSTALL%g
9266 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9270 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9271 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9273 # ac_d sets the value in "#define NAME VALUE" lines.
9274 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9275 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9278 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9279 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9280 ac_uB='\([ ]\)%\1#\2define\3'
9283 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9284 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9285 ac_eB='$%\1#\2define\3'
9289 if test "${CONFIG_HEADERS+set}" != set; then
9291 cat >> $CONFIG_STATUS <<EOF
9292 CONFIG_HEADERS="include/defs.h"
9294 cat >> $CONFIG_STATUS <<\EOF
9296 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9299 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9300 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9301 *) ac_file_in="${ac_file}.in" ;;
9304 echo creating $ac_file
9306 rm -f conftest.frag conftest.in conftest.out
9307 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9308 cat $ac_file_inputs > conftest.in
9312 # Transform confdefs.h into a sed script conftest.vals that substitutes
9313 # the proper values into config.h.in to produce config.h. And first:
9314 # Protect against being on the right side of a sed subst in config.status.
9315 # Protect against being in an unquoted here document in config.status.
9317 cat > conftest.hdr <<\EOF
9320 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9324 sed -n -f conftest.hdr confdefs.h > conftest.vals
9327 # This sed command replaces #undef with comments. This is necessary, for
9328 # example, in the case of _POSIX_SOURCE, which is predefined and required
9329 # on some systems where configure will not decide to define it.
9330 cat >> conftest.vals <<\EOF
9331 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9334 # Break up conftest.vals because some shells have a limit on
9335 # the size of here documents, and old seds have small limits too.
9340 ac_lines=`grep -c . conftest.vals`
9341 # grep -c gives empty output for an empty file on some AIX systems.
9342 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9343 # Write a limited-size here document to conftest.frag.
9344 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9345 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9347 sed -f conftest.frag conftest.in > conftest.out
9349 mv conftest.out conftest.in
9351 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9353 mv conftest.tail conftest.vals
9357 cat >> $CONFIG_STATUS <<\EOF
9358 rm -f conftest.frag conftest.h
9359 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9360 cat conftest.in >> conftest.h
9362 if cmp -s $ac_file conftest.h 2>/dev/null; then
9363 echo "$ac_file is unchanged"
9366 # Remove last slash and all that follows it. Not all systems have dirname.
9367 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9368 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9369 # The file is in a subdirectory.
9370 test ! -d "$ac_dir" && mkdir "$ac_dir"
9373 mv conftest.h $ac_file
9378 cat >> $CONFIG_STATUS <<EOF
9382 cat >> $CONFIG_STATUS <<\EOF
9383 for ac_file in $CONFIG_FILES; do
9384 # Support "outfile[:infile[:infile...]]"
9386 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9388 # PO directories have a Makefile.in generated from Makefile.in.in.
9389 case "$ac_file" in */Makefile.in)
9390 # Adjust a relative srcdir.
9391 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9392 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9393 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9394 # In autoconf-2.13 it is called $ac_given_srcdir.
9395 # In autoconf-2.50 it is called $srcdir.
9396 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9397 case "$ac_given_srcdir" in
9398 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9399 /*) top_srcdir="$ac_given_srcdir" ;;
9400 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9402 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9403 rm -f "$ac_dir/POTFILES"
9404 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9405 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9406 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9407 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9415 chmod +x $CONFIG_STATUS
9416 rm -fr confdefs* $ac_clean_files
9417 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9422 --------------------
9423 vlc version : ${VERSION}
9425 architecture : ${ARCH}
9426 optimizations : ${OPTIMS}
9428 debug mode : ${DEBUG}
9429 release : ${RELEASE}
9430 profiling : ${PROFILING}
9431 need builtin getopt : ${NEED_GETOPT}
9432 built-in modules :${BUILTINS}
9433 plug-in modules :${PLUGINS}
9434 mozilla plugin : ${MOZILLA}
9435 vlc aliases :${ALIASES}
9437 You may now tune Makefile.opts at your convenience, for instance to choose
9438 which modules get compiled as plugins.
9440 To build vlc and its plugins, type \`$VLC_MAKE'.