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-mp4 MP4 demux module (default disabled)"
76 --enable-a52 AC3 support with liba52 (default enabled)"
78 --with-a52-tree=PATH a52dec tree for static linking "
80 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
84 --enable-x11 X11 support (default enabled)"
86 --enable-xvideo XVideo support (default enabled)"
88 --enable-sdl SDL support (default enabled)"
90 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
92 --enable-directx Win32 DirectX support (default enabled on Win32)"
94 --with-directx=PATH Win32 DirectX headers"
96 --enable-fb Linux framebuffer support (default enabled on Linux)"
98 --enable-mga Linux kernel Matrox support (default disabled)"
100 --enable-ggi GGI support (default disabled)"
102 --with-ggi=PATH path to libggi"
104 --enable-glide Glide (3dfx) support (default disabled)"
106 --with-glide=PATH path to libglide"
108 --enable-aa aalib output (default disabled)"
112 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
114 --enable-esd Esound library support (default disabled)"
116 --enable-arts aRts sound server (default disabled)"
118 --enable-alsa ALSA sound support for Linux (default disabled)"
120 --enable-waveout Win32 waveOut module (default enabled on Win32)"
124 --enable-gtk Gtk+ support (default enabled)"
126 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
128 --enable-gnome Gnome interface support (default disabled)"
130 --enable-qt Qt interface support (default disabled)"
132 --enable-kde KDE interface support (default disabled)"
134 --enable-macosx MacOS X support (default enabled on MacOS X)"
136 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
138 --enable-intfwin Win32 interface support (default disabled)"
140 --with-bcbuilder=PATH Borland C++ Builder installation path"
142 --enable-ncurses ncurses interface support (default disabled)"
144 --enable-xosd xosd interface support (default disabled)"
146 --enable-lirc lirc support (default disabled)"
150 --with-words=endianness set endianness (big or little)"
152 --enable-gprof gprof profiling (default disabled)"
154 --enable-cprof cprof profiling (default disabled)"
156 --enable-pth GNU Pth support (default disabled)"
158 --enable-st State Threads (default disabled)"
160 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
162 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
164 # Initialize some variables set by options.
165 # The variables have the same names as the options, with
166 # dashes changed to underlines.
168 cache_file=./config.cache
177 program_transform_name=s,x,x,
185 bindir='${exec_prefix}/bin'
186 sbindir='${exec_prefix}/sbin'
187 libexecdir='${exec_prefix}/libexec'
188 datadir='${prefix}/share'
189 sysconfdir='${prefix}/etc'
190 sharedstatedir='${prefix}/com'
191 localstatedir='${prefix}/var'
192 libdir='${exec_prefix}/lib'
193 includedir='${prefix}/include'
194 oldincludedir='/usr/include'
195 infodir='${prefix}/info'
196 mandir='${prefix}/man'
198 # Initialize some other variables.
201 SHELL=${CONFIG_SHELL-/bin/sh}
202 # Maximum number of lines to put in a shell here document.
209 # If the previous option needs an argument, assign it.
210 if test -n "$ac_prev"; then
211 eval "$ac_prev=\$ac_option"
217 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
221 # Accept the important Cygnus configure options, so we can diagnose typos.
225 -bindir | --bindir | --bindi | --bind | --bin | --bi)
227 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
228 bindir="$ac_optarg" ;;
230 -build | --build | --buil | --bui | --bu)
232 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
233 build="$ac_optarg" ;;
235 -cache-file | --cache-file | --cache-fil | --cache-fi \
236 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
237 ac_prev=cache_file ;;
238 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
239 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
240 cache_file="$ac_optarg" ;;
242 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
244 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
246 datadir="$ac_optarg" ;;
248 -disable-* | --disable-*)
249 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
250 # Reject names that are not valid shell variable names.
251 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
252 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
254 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
255 eval "enable_${ac_feature}=no" ;;
257 -enable-* | --enable-*)
258 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
259 # Reject names that are not valid shell variable names.
260 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
261 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
263 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
268 eval "enable_${ac_feature}='$ac_optarg'" ;;
270 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
271 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
272 | --exec | --exe | --ex)
273 ac_prev=exec_prefix ;;
274 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
275 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
276 | --exec=* | --exe=* | --ex=*)
277 exec_prefix="$ac_optarg" ;;
279 -gas | --gas | --ga | --g)
280 # Obsolete; use --with-gas.
283 -help | --help | --hel | --he)
284 # Omit some internal or obsolete options to make the list less imposing.
285 # This message is too long to be a string in the A/UX 3.1 sh.
287 Usage: configure [options] [host]
288 Options: [defaults in brackets after descriptions]
290 --cache-file=FILE cache test results in FILE
291 --help print this message
292 --no-create do not create output files
293 --quiet, --silent do not print \`checking...' messages
294 --version print the version of autoconf that created configure
295 Directory and file names:
296 --prefix=PREFIX install architecture-independent files in PREFIX
298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
300 --bindir=DIR user executables in DIR [EPREFIX/bin]
301 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
302 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
303 --datadir=DIR read-only architecture-independent data in DIR
305 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
306 --sharedstatedir=DIR modifiable architecture-independent data in DIR
308 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
309 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
310 --includedir=DIR C header files in DIR [PREFIX/include]
311 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
312 --infodir=DIR info documentation in DIR [PREFIX/info]
313 --mandir=DIR man documentation in DIR [PREFIX/man]
314 --srcdir=DIR find the sources in DIR [configure dir or ..]
315 --program-prefix=PREFIX prepend PREFIX to installed program names
316 --program-suffix=SUFFIX append SUFFIX to installed program names
317 --program-transform-name=PROGRAM
318 run sed PROGRAM on installed program names
322 --build=BUILD configure for building on BUILD [BUILD=HOST]
323 --host=HOST configure for HOST [guessed]
324 --target=TARGET configure for TARGET [TARGET=HOST]
325 Features and packages:
326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
330 --x-includes=DIR X include files are in DIR
331 --x-libraries=DIR X library files are in DIR
333 if test -n "$ac_help"; then
334 echo "--enable and --with options recognized:$ac_help"
338 -host | --host | --hos | --ho)
340 -host=* | --host=* | --hos=* | --ho=*)
343 -includedir | --includedir | --includedi | --included | --include \
344 | --includ | --inclu | --incl | --inc)
345 ac_prev=includedir ;;
346 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
347 | --includ=* | --inclu=* | --incl=* | --inc=*)
348 includedir="$ac_optarg" ;;
350 -infodir | --infodir | --infodi | --infod | --info | --inf)
352 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
353 infodir="$ac_optarg" ;;
355 -libdir | --libdir | --libdi | --libd)
357 -libdir=* | --libdir=* | --libdi=* | --libd=*)
358 libdir="$ac_optarg" ;;
360 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
361 | --libexe | --libex | --libe)
362 ac_prev=libexecdir ;;
363 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
364 | --libexe=* | --libex=* | --libe=*)
365 libexecdir="$ac_optarg" ;;
367 -localstatedir | --localstatedir | --localstatedi | --localstated \
368 | --localstate | --localstat | --localsta | --localst \
369 | --locals | --local | --loca | --loc | --lo)
370 ac_prev=localstatedir ;;
371 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
372 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
373 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
374 localstatedir="$ac_optarg" ;;
376 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
378 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
379 mandir="$ac_optarg" ;;
382 # Obsolete; use --without-fp.
385 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
389 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
390 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
393 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
394 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
395 | --oldin | --oldi | --old | --ol | --o)
396 ac_prev=oldincludedir ;;
397 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
398 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
399 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
400 oldincludedir="$ac_optarg" ;;
402 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
404 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
405 prefix="$ac_optarg" ;;
407 -program-prefix | --program-prefix | --program-prefi | --program-pref \
408 | --program-pre | --program-pr | --program-p)
409 ac_prev=program_prefix ;;
410 -program-prefix=* | --program-prefix=* | --program-prefi=* \
411 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
412 program_prefix="$ac_optarg" ;;
414 -program-suffix | --program-suffix | --program-suffi | --program-suff \
415 | --program-suf | --program-su | --program-s)
416 ac_prev=program_suffix ;;
417 -program-suffix=* | --program-suffix=* | --program-suffi=* \
418 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
419 program_suffix="$ac_optarg" ;;
421 -program-transform-name | --program-transform-name \
422 | --program-transform-nam | --program-transform-na \
423 | --program-transform-n | --program-transform- \
424 | --program-transform | --program-transfor \
425 | --program-transfo | --program-transf \
426 | --program-trans | --program-tran \
427 | --progr-tra | --program-tr | --program-t)
428 ac_prev=program_transform_name ;;
429 -program-transform-name=* | --program-transform-name=* \
430 | --program-transform-nam=* | --program-transform-na=* \
431 | --program-transform-n=* | --program-transform-=* \
432 | --program-transform=* | --program-transfor=* \
433 | --program-transfo=* | --program-transf=* \
434 | --program-trans=* | --program-tran=* \
435 | --progr-tra=* | --program-tr=* | --program-t=*)
436 program_transform_name="$ac_optarg" ;;
438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
439 | -silent | --silent | --silen | --sile | --sil)
442 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
444 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
446 sbindir="$ac_optarg" ;;
448 -sharedstatedir | --sharedstatedir | --sharedstatedi \
449 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
450 | --sharedst | --shareds | --shared | --share | --shar \
452 ac_prev=sharedstatedir ;;
453 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
454 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
455 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
457 sharedstatedir="$ac_optarg" ;;
459 -site | --site | --sit)
461 -site=* | --site=* | --sit=*)
464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
467 srcdir="$ac_optarg" ;;
469 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
470 | --syscon | --sysco | --sysc | --sys | --sy)
471 ac_prev=sysconfdir ;;
472 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
473 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
474 sysconfdir="$ac_optarg" ;;
476 -target | --target | --targe | --targ | --tar | --ta | --t)
478 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
479 target="$ac_optarg" ;;
481 -v | -verbose | --verbose | --verbos | --verbo | --verb)
484 -version | --version | --versio | --versi | --vers)
485 echo "configure generated by autoconf version 2.13"
489 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
490 # Reject names that are not valid shell variable names.
491 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
492 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
494 ac_package=`echo $ac_package| sed 's/-/_/g'`
499 eval "with_${ac_package}='$ac_optarg'" ;;
501 -without-* | --without-*)
502 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
503 # Reject names that are not valid shell variable names.
504 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
505 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
507 ac_package=`echo $ac_package| sed 's/-/_/g'`
508 eval "with_${ac_package}=no" ;;
511 # Obsolete; use --with-x.
514 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
515 | --x-incl | --x-inc | --x-in | --x-i)
516 ac_prev=x_includes ;;
517 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
518 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
519 x_includes="$ac_optarg" ;;
521 -x-libraries | --x-libraries | --x-librarie | --x-librari \
522 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
523 ac_prev=x_libraries ;;
524 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
525 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
526 x_libraries="$ac_optarg" ;;
528 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
532 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
533 echo "configure: warning: $ac_option: invalid host type" 1>&2
535 if test "x$nonopt" != xNONE; then
536 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
544 if test -n "$ac_prev"; then
545 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
550 # File descriptor usage:
553 # 2 errors and warnings
554 # 3 some systems may open it to /dev/tty
555 # 4 used on the Kubota Titan
556 # 6 checking for... messages and results
557 # 5 compiler messages saved in config.log
558 if test "$silent" = yes; then
566 This file contains any messages produced by compilers while
567 running configure, to aid debugging if configure makes a mistake.
570 # Strip out --no-create and --no-recursion so they do not pile up.
571 # Also quote any args containing shell metacharacters.
576 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
577 | --no-cr | --no-c) ;;
578 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
579 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
580 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
581 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
582 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
587 # Only set these to C if already set. These must not be set unconditionally
588 # because not all systems understand e.g. LANG=C (notably SCO).
589 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
590 # Non-C LC_CTYPE values break the ctype check.
591 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
592 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
593 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
594 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
596 # confdefs.h avoids OS command line length limits that DEFS can exceed.
597 rm -rf conftest* confdefs.h
598 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
601 # A filename unique to this package, relative to the directory that
602 # configure is in, which we can look for to find out if srcdir is correct.
603 ac_unique_file=include/main.h
605 # Find the source files, if location was not specified.
606 if test -z "$srcdir"; then
607 ac_srcdir_defaulted=yes
608 # Try the directory containing this script, then its parent.
610 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
611 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
613 if test ! -r $srcdir/$ac_unique_file; then
617 ac_srcdir_defaulted=no
619 if test ! -r $srcdir/$ac_unique_file; then
620 if test "$ac_srcdir_defaulted" = yes; then
621 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
623 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
626 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
628 # Prefer explicitly selected file to automatically selected ones.
629 if test -z "$CONFIG_SITE"; then
630 if test "x$prefix" != xNONE; then
631 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
633 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
636 for ac_site_file in $CONFIG_SITE; do
637 if test -r "$ac_site_file"; then
638 echo "loading site script $ac_site_file"
643 if test -r "$cache_file"; then
644 echo "loading cache $cache_file"
647 echo "creating cache $cache_file"
652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653 ac_cpp='$CPP $CPPFLAGS'
654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656 cross_compiling=$ac_cv_prog_cc_cross
660 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
661 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
662 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
669 ac_n= ac_c='\c' ac_t=
675 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
676 if test -f $ac_dir/install-sh; then
678 ac_install_sh="$ac_aux_dir/install-sh -c"
680 elif test -f $ac_dir/install.sh; then
682 ac_install_sh="$ac_aux_dir/install.sh -c"
686 if test -z "$ac_aux_dir"; then
687 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
689 ac_config_guess=$ac_aux_dir/config.guess
690 ac_config_sub=$ac_aux_dir/config.sub
691 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
694 # Do some error checking and defaulting for the host and target type.
696 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
699 # 1. You are not allowed to specify --host, --target, and nonopt at the
701 # 2. Host defaults to nonopt.
702 # 3. If nonopt is not specified, then host defaults to the current host,
703 # as determined by config.guess.
704 # 4. Target and build default to nonopt.
705 # 5. If nonopt is not specified, then target and build default to host.
707 # The aliases save the names the user supplied, while $host etc.
708 # will get canonicalized.
709 case $host---$target---$nonopt in
710 NONE---*---* | *---NONE---* | *---*---NONE) ;;
711 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
715 # Make sure we can run config.sub.
716 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
717 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
720 echo $ac_n "checking host system type""... $ac_c" 1>&6
721 echo "configure:722: checking host system type" >&5
724 case "$host_alias" in
728 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
729 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
731 *) host_alias=$nonopt ;;
735 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
736 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo "$ac_t""$host" 1>&6
741 echo $ac_n "checking target system type""... $ac_c" 1>&6
742 echo "configure:743: checking target system type" >&5
745 case "$target_alias" in
748 NONE) target_alias=$host_alias ;;
749 *) target_alias=$nonopt ;;
753 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
754 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
757 echo "$ac_t""$target" 1>&6
759 echo $ac_n "checking build system type""... $ac_c" 1>&6
760 echo "configure:761: checking build system type" >&5
763 case "$build_alias" in
766 NONE) build_alias=$host_alias ;;
767 *) build_alias=$nonopt ;;
771 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
772 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
773 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
774 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
775 echo "$ac_t""$build" 1>&6
777 test "$host_alias" != "$target_alias" &&
778 test "$program_prefix$program_suffix$program_transform_name" = \
780 program_prefix=${target_alias}-
783 CONFIGURE_LINE="$0 $*"
789 save_CPPFLAGS="${CPPFLAGS}"
790 save_CFLAGS="${CFLAGS}"
791 save_LDFLAGS="${LDFLAGS}"
793 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
794 echo "configure:795: checking whether ${MAKE-make} sets \${MAKE}" >&5
795 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
796 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftestmake <<\EOF
801 @echo 'ac_maketemp="${MAKE}"'
803 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
804 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
805 if test -n "$ac_maketemp"; then
806 eval ac_cv_prog_make_${ac_make}_set=yes
808 eval ac_cv_prog_make_${ac_make}_set=no
812 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
813 echo "$ac_t""yes" 1>&6
816 echo "$ac_t""no" 1>&6
817 SET_MAKE="MAKE=${MAKE-make}"
820 # Extract the first word of "gcc", so it can be a program name with args.
821 set dummy gcc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
849 if test -z "$CC"; then
850 # Extract the first word of "cc", so it can be a program name with args.
851 set dummy cc; ac_word=$2
852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853 echo "configure:854: checking for $ac_word" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 if test -n "$CC"; then
858 ac_cv_prog_CC="$CC" # Let the user override the test.
860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863 for ac_dir in $ac_dummy; do
864 test -z "$ac_dir" && ac_dir=.
865 if test -f $ac_dir/$ac_word; then
866 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
875 if test $ac_prog_rejected = yes; then
876 # We found a bogon in the path, so make sure we never use it.
877 set dummy $ac_cv_prog_CC
879 if test $# -gt 0; then
880 # We chose a different compiler from the bogus one.
881 # However, it has the same basename, so the bogon will be chosen
882 # first if we set CC to just the basename; use the full file name.
884 set dummy "$ac_dir/$ac_word" "$@"
892 if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
895 echo "$ac_t""no" 1>&6
898 if test -z "$CC"; then
901 # Extract the first word of "cl", so it can be a program name with args.
902 set dummy cl; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp='$CPP $CPPFLAGS'
941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling=$ac_cv_prog_cc_cross
945 cat > conftest.$ac_ext << EOF
947 #line 948 "configure"
948 #include "confdefs.h"
952 if { (eval echo configure:953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
953 ac_cv_prog_cc_works=yes
954 # If we can't run a trivial program, we are probably using a cross compiler.
955 if (./conftest; exit) 2>/dev/null; then
956 ac_cv_prog_cc_cross=no
958 ac_cv_prog_cc_cross=yes
961 echo "configure: failed program was:" >&5
962 cat conftest.$ac_ext >&5
963 ac_cv_prog_cc_works=no
967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971 cross_compiling=$ac_cv_prog_cc_cross
973 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
974 if test $ac_cv_prog_cc_works = no; then
975 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
978 echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
979 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
980 cross_compiling=$ac_cv_prog_cc_cross
982 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
983 echo "configure:984: checking whether we are using GNU C" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 cat > conftest.c <<EOF
992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
999 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1001 if test $ac_cv_prog_gcc = yes; then
1007 ac_test_CFLAGS="${CFLAGS+set}"
1008 ac_save_CFLAGS="$CFLAGS"
1010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 echo 'void f(){}' > conftest.c
1016 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026 if test "$ac_test_CFLAGS" = set; then
1027 CFLAGS="$ac_save_CFLAGS"
1028 elif test $ac_cv_prog_cc_g = yes; then
1029 if test "$GCC" = yes; then
1035 if test "$GCC" = yes; then
1042 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1043 echo "configure:1044: checking how to run the C preprocessor" >&5
1044 # On Suns, sometimes $CPP names a directory.
1045 if test -n "$CPP" && test -d "$CPP"; then
1048 if test -z "$CPP"; then
1049 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 # This must be in double quotes, not single quotes, because CPP may get
1053 # substituted into the Makefile and "${CC-cc}" will confuse make.
1055 # On the NeXT, cc -E runs the code through the compiler's parser,
1056 # not just through cpp.
1057 cat > conftest.$ac_ext <<EOF
1058 #line 1059 "configure"
1059 #include "confdefs.h"
1063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1064 { (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1066 if test -z "$ac_err"; then
1070 echo "configure: failed program was:" >&5
1071 cat conftest.$ac_ext >&5
1073 CPP="${CC-cc} -E -traditional-cpp"
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081 { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1083 if test -z "$ac_err"; then
1087 echo "configure: failed program was:" >&5
1088 cat conftest.$ac_ext >&5
1090 CPP="${CC-cc} -nologo -E"
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1098 { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1100 if test -z "$ac_err"; then
1104 echo "configure: failed program was:" >&5
1105 cat conftest.$ac_ext >&5
1114 ac_cv_prog_CPP="$CPP"
1116 CPP="$ac_cv_prog_CPP"
1118 ac_cv_prog_CPP="$CPP"
1120 echo "$ac_t""$CPP" 1>&6
1123 if test $host != $build; then
1124 ac_tool_prefix=${host_alias}-
1129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1132 echo "configure:1133: checking for $ac_word" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 if test -n "$RANLIB"; then
1137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1141 for ac_dir in $ac_dummy; do
1142 test -z "$ac_dir" && ac_dir=.
1143 if test -f $ac_dir/$ac_word; then
1144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1151 RANLIB="$ac_cv_prog_RANLIB"
1152 if test -n "$RANLIB"; then
1153 echo "$ac_t""$RANLIB" 1>&6
1155 echo "$ac_t""no" 1>&6
1159 if test -z "$ac_cv_prog_RANLIB"; then
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "ranlib", so it can be a program name with args.
1162 set dummy ranlib; ac_word=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -n "$RANLIB"; then
1169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_RANLIB="ranlib"
1181 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1184 RANLIB="$ac_cv_prog_RANLIB"
1185 if test -n "$RANLIB"; then
1186 echo "$ac_t""$RANLIB" 1>&6
1188 echo "$ac_t""no" 1>&6
1196 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1197 set dummy ${ac_tool_prefix}strip; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 if test -n "$STRIP"; then
1204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1208 for ac_dir in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1218 STRIP="$ac_cv_prog_STRIP"
1219 if test -n "$STRIP"; then
1220 echo "$ac_t""$STRIP" 1>&6
1222 echo "$ac_t""no" 1>&6
1226 if test -z "$ac_cv_prog_STRIP"; then
1227 if test -n "$ac_tool_prefix"; then
1228 # Extract the first word of "strip", so it can be a program name with args.
1229 set dummy strip; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 if test -n "$STRIP"; then
1236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_STRIP="strip"
1248 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1251 STRIP="$ac_cv_prog_STRIP"
1252 if test -n "$STRIP"; then
1253 echo "$ac_t""$STRIP" 1>&6
1255 echo "$ac_t""no" 1>&6
1264 # Extract the first word of "gmake", so it can be a program name with args.
1265 set dummy gmake; ac_word=$2
1266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1267 echo "configure:1268: checking for $ac_word" >&5
1268 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1273 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1276 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1281 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 if test -f $ac_dir/$ac_word; then
1284 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1289 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1293 GMAKE="$ac_cv_path_GMAKE"
1294 if test -n "$GMAKE"; then
1295 echo "$ac_t""$GMAKE" 1>&6
1297 echo "$ac_t""no" 1>&6
1300 if test "x${GMAKE}" = "xno"; then
1301 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether GNU make is installed" >&5
1303 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if make --version | grep -q -i gnu; then
1309 echo "This software needs you to install GNU make to compile properly."
1310 echo "You can get it from http://www.gnu.org/."
1315 echo "$ac_t""$ac_cv_gmake" 1>&6
1321 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1323 cat >> confdefs.h <<EOF
1324 #define VLC_PACKAGE "${PACKAGE}"
1327 cat >> confdefs.h <<EOF
1328 #define VLC_VERSION "${VERSION}"
1331 # Extract the first word of "ranlib", so it can be a program name with args.
1332 set dummy ranlib; ac_word=$2
1333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1334 echo "configure:1335: checking for $ac_word" >&5
1335 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 if test -n "$RANLIB"; then
1339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1343 for ac_dir in $ac_dummy; do
1344 test -z "$ac_dir" && ac_dir=.
1345 if test -f $ac_dir/$ac_word; then
1346 ac_cv_prog_RANLIB="ranlib"
1351 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1354 RANLIB="$ac_cv_prog_RANLIB"
1355 if test -n "$RANLIB"; then
1356 echo "$ac_t""$RANLIB" 1>&6
1358 echo "$ac_t""no" 1>&6
1362 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1363 echo "configure:1364: checking for strerror in -lcposix" >&5
1364 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 ac_save_LIBS="$LIBS"
1369 LIBS="-lcposix $LIBS"
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 /* Override any gcc2 internal prototype to avoid an error. */
1374 /* We use char because int might match the return type of a gcc2
1375 builtin and then its argument prototype would still apply. */
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384 eval "ac_cv_lib_$ac_lib_var=yes"
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1389 eval "ac_cv_lib_$ac_lib_var=no"
1392 LIBS="$ac_save_LIBS"
1395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1396 echo "$ac_t""yes" 1>&6
1397 LIBS="$LIBS -lcposix"
1399 echo "$ac_t""no" 1>&6
1404 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1405 echo "configure:1406: checking for ANSI C header files" >&5
1406 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1420 if test -z "$ac_err"; then
1422 ac_cv_header_stdc=yes
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1428 ac_cv_header_stdc=no
1432 if test $ac_cv_header_stdc = yes; then
1433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1440 egrep "memchr" >/dev/null 2>&1; then
1444 ac_cv_header_stdc=no
1450 if test $ac_cv_header_stdc = yes; then
1451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1458 egrep "free" >/dev/null 2>&1; then
1462 ac_cv_header_stdc=no
1468 if test $ac_cv_header_stdc = yes; then
1469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1470 if test "$cross_compiling" = yes; then
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1477 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1478 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1480 int main () { int i; for (i = 0; i < 256; i++)
1481 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1489 echo "configure: failed program was:" >&5
1490 cat conftest.$ac_ext >&5
1492 ac_cv_header_stdc=no
1500 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1501 if test $ac_cv_header_stdc = yes; then
1502 cat >> confdefs.h <<\EOF
1503 #define STDC_HEADERS 1
1508 echo $ac_n "checking for working const""... $ac_c" 1>&6
1509 echo "configure:1510: checking for working const" >&5
1510 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1519 /* Ultrix mips cc rejects this. */
1520 typedef int charset[2]; const charset x;
1521 /* SunOS 4.1.1 cc rejects this. */
1522 char const *const *ccp;
1524 /* NEC SVR4.0.2 mips cc rejects this. */
1525 struct point {int x, y;};
1526 static struct point const zero = {0,0};
1527 /* AIX XL C 1.02.0.0 rejects this.
1528 It does not let you subtract one const X* pointer from another in an arm
1529 of an if-expression whose if-part is not a constant expression */
1530 const char *g = "string";
1531 ccp = &g + (g ? g-g : 0);
1532 /* HPUX 7.0 cc rejects these. */
1535 ccp = (char const *const *) p;
1536 { /* SCO 3.2v4 cc rejects this. */
1538 char const *s = 0 ? (char *) 0 : (char const *) 0;
1542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1544 const int *foo = &x[0];
1547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1548 typedef const int *iptr;
1552 { /* AIX XL C 1.02.0.0 rejects this saying
1553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1554 struct s { int j; const int *ap[3]; };
1555 struct s *b; b->j = 5;
1557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1563 if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1575 echo "$ac_t""$ac_cv_c_const" 1>&6
1576 if test $ac_cv_c_const = no; then
1577 cat >> confdefs.h <<\EOF
1583 echo $ac_n "checking for inline""... $ac_c" 1>&6
1584 echo "configure:1585: checking for inline" >&5
1585 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1589 for ac_kw in inline __inline__ __inline; do
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1598 if { (eval echo configure:1599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1600 ac_cv_c_inline=$ac_kw; break
1602 echo "configure: failed program was:" >&5
1603 cat conftest.$ac_ext >&5
1610 echo "$ac_t""$ac_cv_c_inline" 1>&6
1611 case "$ac_cv_c_inline" in
1613 no) cat >> confdefs.h <<\EOF
1617 *) cat >> confdefs.h <<EOF
1618 #define inline $ac_cv_c_inline
1623 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1624 echo "configure:1625: checking for off_t" >&5
1625 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 #include <sys/types.h>
1637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1638 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1640 ac_cv_type_off_t=yes
1648 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1649 if test $ac_cv_type_off_t = no; then
1650 cat >> confdefs.h <<\EOF
1656 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1657 echo "configure:1658: checking for size_t" >&5
1658 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include <sys/types.h>
1670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1671 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1673 ac_cv_type_size_t=yes
1676 ac_cv_type_size_t=no
1681 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1682 if test $ac_cv_type_size_t = no; then
1683 cat >> confdefs.h <<\EOF
1684 #define size_t unsigned
1689 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1690 # for constant arguments. Useless!
1691 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1692 echo "configure:1693: checking for working alloca.h" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1701 char *p = alloca(2 * sizeof(int));
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1706 ac_cv_header_alloca_h=yes
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 ac_cv_header_alloca_h=no
1716 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1717 if test $ac_cv_header_alloca_h = yes; then
1718 cat >> confdefs.h <<\EOF
1719 #define HAVE_ALLOCA_H 1
1724 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1725 echo "configure:1726: checking for alloca" >&5
1726 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1734 # define alloca __builtin_alloca
1737 # include <malloc.h>
1738 # define alloca _alloca
1741 # include <alloca.h>
1746 # ifndef alloca /* predefined by HP cc +Olibcalls */
1755 char *p = (char *) alloca(1);
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1760 ac_cv_func_alloca_works=yes
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 ac_cv_func_alloca_works=no
1770 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1771 if test $ac_cv_func_alloca_works = yes; then
1772 cat >> confdefs.h <<\EOF
1773 #define HAVE_ALLOCA 1
1778 if test $ac_cv_func_alloca_works = no; then
1779 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1780 # that cause trouble. Some versions do not even contain alloca or
1781 # contain a buggy version. If you still want to use their alloca,
1782 # use ar to extract alloca.o from them instead of compiling alloca.c.
1783 ALLOCA=alloca.${ac_objext}
1784 cat >> confdefs.h <<\EOF
1789 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1790 echo "configure:1791: checking whether alloca needs Cray hooks" >&5
1791 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 #if defined(CRAY) && ! defined(CRAY2)
1804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1805 egrep "webecray" >/dev/null 2>&1; then
1816 echo "$ac_t""$ac_cv_os_cray" 1>&6
1817 if test $ac_cv_os_cray = yes; then
1818 for ac_func in _getb67 GETB67 getb67; do
1819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_func" >&5
1821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $ac_func(); below. */
1830 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1837 /* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 eval "ac_cv_func_$ac_func=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_func_$ac_func=no"
1860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 cat >> confdefs.h <<EOF
1863 #define CRAY_STACKSEG_END $ac_func
1868 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1875 echo "configure:1876: checking stack direction for C alloca" >&5
1876 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test "$cross_compiling" = yes; then
1880 ac_cv_c_stack_direction=0
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 find_stack_direction ()
1887 static char *addr = 0;
1892 return find_stack_direction ();
1895 return (&dummy > addr) ? 1 : -1;
1899 exit (find_stack_direction() < 0);
1902 if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1904 ac_cv_c_stack_direction=1
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 ac_cv_c_stack_direction=-1
1916 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1917 cat >> confdefs.h <<EOF
1918 #define STACK_DIRECTION $ac_cv_c_stack_direction
1923 for ac_hdr in unistd.h
1925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_hdr" >&5
1928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937 { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939 if test -z "$ac_err"; then
1941 eval "ac_cv_header_$ac_safe=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 eval "ac_cv_header_$ac_safe=no"
1951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1952 echo "$ac_t""yes" 1>&6
1953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1954 cat >> confdefs.h <<EOF
1955 #define $ac_tr_hdr 1
1959 echo "$ac_t""no" 1>&6
1963 for ac_func in getpagesize
1965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_func" >&5
1967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $ac_func(); below. */
1976 /* Override any gcc2 internal prototype to avoid an error. */
1977 /* We use char because int might match the return type of a gcc2
1978 builtin and then its argument prototype would still apply. */
1983 /* The GNU C library defines this for functions which it implements
1984 to always fail with ENOSYS. Some functions are actually named
1985 something starting with __ and the normal name is an alias. */
1986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 eval "ac_cv_func_$ac_func=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_func_$ac_func=no"
2006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2007 echo "$ac_t""yes" 1>&6
2008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2009 cat >> confdefs.h <<EOF
2010 #define $ac_tr_func 1
2014 echo "$ac_t""no" 1>&6
2018 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2019 echo "configure:2020: checking for working mmap" >&5
2020 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if test "$cross_compiling" = yes; then
2024 ac_cv_func_mmap_fixed_mapped=no
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2030 /* Thanks to Mike Haertel and Jim Avera for this test.
2031 Here is a matrix of mmap possibilities:
2032 mmap private not fixed
2033 mmap private fixed at somewhere currently unmapped
2034 mmap private fixed at somewhere already mapped
2035 mmap shared not fixed
2036 mmap shared fixed at somewhere currently unmapped
2037 mmap shared fixed at somewhere already mapped
2038 For private mappings, we should verify that changes cannot be read()
2039 back from the file, nor mmap's back from the file at a different
2040 address. (There have been systems where private was not correctly
2041 implemented like the infamous i386 svr4.0, and systems where the
2042 VM page cache was not coherent with the filesystem buffer cache
2043 like early versions of FreeBSD and possibly contemporary NetBSD.)
2044 For shared mappings, we should conversely verify that changes get
2045 propogated back to all the places they're supposed to be.
2047 Grep wants private fixed already mapped.
2048 The main things grep needs to know about mmap are:
2049 * does it exist and is it safe to write into the mmap'd area
2050 * how to use it (BSD variants) */
2051 #include <sys/types.h>
2053 #include <sys/mman.h>
2055 /* This mess was copied from the GNU getpagesize.h. */
2056 #ifndef HAVE_GETPAGESIZE
2057 # ifdef HAVE_UNISTD_H
2058 # include <unistd.h>
2061 /* Assume that all systems that can run configure have sys/param.h. */
2062 # ifndef HAVE_SYS_PARAM_H
2063 # define HAVE_SYS_PARAM_H 1
2066 # ifdef _SC_PAGESIZE
2067 # define getpagesize() sysconf(_SC_PAGESIZE)
2068 # else /* no _SC_PAGESIZE */
2069 # ifdef HAVE_SYS_PARAM_H
2070 # include <sys/param.h>
2071 # ifdef EXEC_PAGESIZE
2072 # define getpagesize() EXEC_PAGESIZE
2073 # else /* no EXEC_PAGESIZE */
2075 # define getpagesize() NBPG * CLSIZE
2078 # endif /* no CLSIZE */
2079 # else /* no NBPG */
2081 # define getpagesize() NBPC
2082 # else /* no NBPC */
2084 # define getpagesize() PAGESIZE
2085 # endif /* PAGESIZE */
2086 # endif /* no NBPC */
2087 # endif /* no NBPG */
2088 # endif /* no EXEC_PAGESIZE */
2089 # else /* no HAVE_SYS_PARAM_H */
2090 # define getpagesize() 8192 /* punt totally */
2091 # endif /* no HAVE_SYS_PARAM_H */
2092 # endif /* no _SC_PAGESIZE */
2094 #endif /* no HAVE_GETPAGESIZE */
2097 extern "C" { void *malloc(unsigned); }
2105 char *data, *data2, *data3;
2109 pagesize = getpagesize();
2112 * First, make a file with some known garbage in it.
2114 data = malloc(pagesize);
2117 for (i = 0; i < pagesize; ++i)
2118 *(data + i) = rand();
2120 fd = creat("conftestmmap", 0600);
2123 if (write(fd, data, pagesize) != pagesize)
2128 * Next, try to mmap the file at a fixed address which
2129 * already has something else allocated at it. If we can,
2130 * also make sure that we see the same garbage.
2132 fd = open("conftestmmap", O_RDWR);
2135 data2 = malloc(2 * pagesize);
2138 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2139 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2140 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2142 for (i = 0; i < pagesize; ++i)
2143 if (*(data + i) != *(data2 + i))
2147 * Finally, make sure that changes to the mapped area
2148 * do not percolate back to the file as seen by read().
2149 * (This is a bug on some variants of i386 svr4.0.)
2151 for (i = 0; i < pagesize; ++i)
2152 *(data2 + i) = *(data2 + i) + 1;
2153 data3 = malloc(pagesize);
2156 if (read(fd, data3, pagesize) != pagesize)
2158 for (i = 0; i < pagesize; ++i)
2159 if (*(data + i) != *(data3 + i))
2162 unlink("conftestmmap");
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2169 ac_cv_func_mmap_fixed_mapped=yes
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 ac_cv_func_mmap_fixed_mapped=no
2181 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2183 cat >> confdefs.h <<\EOF
2190 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2191 echo "configure:2192: checking whether we are using the GNU C Library 2.1 or newer" >&5
2192 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2199 #include <features.h>
2200 #ifdef __GNU_LIBRARY__
2201 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2208 egrep "Lucky GNU user" >/dev/null 2>&1; then
2210 ac_cv_gnu_library_2_1=yes
2213 ac_cv_gnu_library_2_1=no
2221 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2223 GLIBC21="$ac_cv_gnu_library_2_1"
2227 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2228 stdlib.h string.h unistd.h sys/param.h
2230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_hdr" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2242 { (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2244 if test -z "$ac_err"; then
2246 eval "ac_cv_header_$ac_safe=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 eval "ac_cv_header_$ac_safe=no"
2256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2259 cat >> confdefs.h <<EOF
2260 #define $ac_tr_hdr 1
2264 echo "$ac_t""no" 1>&6
2268 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2269 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2270 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_func" >&5
2274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 /* System header to define __stub macros and hopefully few prototypes,
2281 which can conflict with char $ac_func(); below. */
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2301 if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 eval "ac_cv_func_$ac_func=yes"
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2308 eval "ac_cv_func_$ac_func=no"
2313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2316 cat >> confdefs.h <<EOF
2317 #define $ac_tr_func 1
2321 echo "$ac_t""no" 1>&6
2328 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2329 if test "${with_libiconv_prefix+set}" = set; then
2330 withval="$with_libiconv_prefix"
2332 for dir in `echo "$withval" | tr : ' '`; do
2333 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2334 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2340 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2341 echo "configure:2342: checking for iconv" >&5
2342 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2346 am_cv_func_iconv="no, consider installing GNU libiconv"
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2354 iconv_t cd = iconv_open("","");
2355 iconv(cd,NULL,NULL,NULL,NULL);
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361 am_cv_func_iconv=yes
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2367 if test "$am_cv_func_iconv" != yes; then
2368 am_save_LIBS="$LIBS"
2369 LIBS="$LIBS -liconv"
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2376 iconv_t cd = iconv_open("","");
2377 iconv(cd,NULL,NULL,NULL,NULL);
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384 am_cv_func_iconv=yes
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2390 LIBS="$am_save_LIBS"
2395 echo "$ac_t""$am_cv_func_iconv" 1>&6
2396 if test "$am_cv_func_iconv" = yes; then
2397 cat >> confdefs.h <<\EOF
2398 #define HAVE_ICONV 1
2401 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2402 echo "configure:2403: checking for iconv declaration" >&5
2403 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2417 #if defined(__STDC__) || defined(__cplusplus)
2418 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2429 am_cv_proto_iconv_arg1=""
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 am_cv_proto_iconv_arg1="const"
2437 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);"
2440 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2441 echo "$ac_t""${ac_t:-
2442 }$am_cv_proto_iconv" 1>&6
2443 cat >> confdefs.h <<EOF
2444 #define ICONV_CONST $am_cv_proto_iconv_arg1
2449 if test "$am_cv_lib_iconv" = yes; then
2455 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2456 echo "configure:2457: checking for nl_langinfo and CODESET" >&5
2457 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <langinfo.h>
2465 char* cs = nl_langinfo(CODESET);
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 am_cv_langinfo_codeset=yes
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 am_cv_langinfo_codeset=no
2481 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2482 if test $am_cv_langinfo_codeset = yes; then
2483 cat >> confdefs.h <<\EOF
2484 #define HAVE_LANGINFO_CODESET 1
2489 if test $ac_cv_header_locale_h = yes; then
2490 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2491 echo "configure:2492: checking for LC_MESSAGES" >&5
2492 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2505 am_cv_val_LC_MESSAGES=yes
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 am_cv_val_LC_MESSAGES=no
2515 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2516 if test $am_cv_val_LC_MESSAGES = yes; then
2517 cat >> confdefs.h <<\EOF
2518 #define HAVE_LC_MESSAGES 1
2523 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2524 echo "configure:2525: checking whether NLS is requested" >&5
2525 # Check whether --enable-nls or --disable-nls was given.
2526 if test "${enable_nls+set}" = set; then
2527 enableval="$enable_nls"
2533 echo "$ac_t""$USE_NLS" 1>&6
2536 BUILD_INCLUDED_LIBINTL=no
2537 USE_INCLUDED_LIBINTL=no
2540 if test "$USE_NLS" = "yes"; then
2541 cat >> confdefs.h <<\EOF
2542 #define ENABLE_NLS 1
2545 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2546 echo "configure:2547: checking whether included gettext is requested" >&5
2547 # Check whether --with-included-gettext or --without-included-gettext was given.
2548 if test "${with_included_gettext+set}" = set; then
2549 withval="$with_included_gettext"
2550 nls_cv_force_use_gnu_gettext=$withval
2552 nls_cv_force_use_gnu_gettext=no
2555 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2557 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2558 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2564 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2565 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2566 echo "configure:2567: checking for libintl.h" >&5
2567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <libintl.h>
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2578 if test -z "$ac_err"; then
2580 eval "ac_cv_header_$ac_safe=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2586 eval "ac_cv_header_$ac_safe=no"
2590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2593 echo "configure:2594: checking for GNU gettext in libc" >&5
2594 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <libintl.h>
2601 extern int _nl_msg_cat_cntr;
2603 bindtextdomain ("", "");
2604 return (int) gettext ("") + _nl_msg_cat_cntr
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2609 gt_cv_func_gnugettext1_libc=yes
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 gt_cv_func_gnugettext1_libc=no
2619 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2621 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2622 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2623 echo "configure:2624: checking for GNU gettext in libintl" >&5
2624 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 gt_save_LIBS="$LIBS"
2628 LIBS="$LIBS -lintl $LIBICONV"
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <libintl.h>
2633 extern int _nl_msg_cat_cntr;
2635 bindtextdomain ("", "");
2636 return (int) gettext ("") + _nl_msg_cat_cntr
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2641 gt_cv_func_gnugettext1_libintl=yes
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 gt_cv_func_gnugettext1_libintl=no
2649 LIBS="$gt_save_LIBS"
2652 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2655 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2656 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2657 && test "$PACKAGE" != gettext; }; then
2658 cat >> confdefs.h <<\EOF
2659 #define HAVE_GETTEXT 1
2663 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2664 INTLLIBS="-lintl $LIBICONV"
2667 gt_save_LIBS="$LIBS"
2668 LIBS="$LIBS $INTLLIBS"
2669 for ac_func in dcgettext
2671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_func" >&5
2673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 /* System header to define __stub macros and hopefully few prototypes,
2680 which can conflict with char $ac_func(); below. */
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2689 /* The GNU C library defines this for functions which it implements
2690 to always fail with ENOSYS. Some functions are actually named
2691 something starting with __ and the normal name is an alias. */
2692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2702 eval "ac_cv_func_$ac_func=yes"
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2707 eval "ac_cv_func_$ac_func=no"
2712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2713 echo "$ac_t""yes" 1>&6
2714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2715 cat >> confdefs.h <<EOF
2716 #define $ac_tr_func 1
2720 echo "$ac_t""no" 1>&6
2724 LIBS="$gt_save_LIBS"
2726 # Extract the first word of "msgfmt", so it can be a program name with args.
2727 set dummy msgfmt; ac_word=$2
2728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_word" >&5
2730 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2739 for ac_dir in $PATH; do
2740 test -z "$ac_dir" && ac_dir=.
2741 if test -f $ac_dir/$ac_word; then
2742 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2743 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2749 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2753 MSGFMT="$ac_cv_path_MSGFMT"
2754 if test "$MSGFMT" != ":"; then
2755 echo "$ac_t""$MSGFMT" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2761 set dummy gmsgfmt; ac_word=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2769 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2772 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2777 for ac_dir in $ac_dummy; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2780 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2789 GMSGFMT="$ac_cv_path_GMSGFMT"
2790 if test -n "$GMSGFMT"; then
2791 echo "$ac_t""$GMSGFMT" 1>&6
2793 echo "$ac_t""no" 1>&6
2797 # Extract the first word of "xgettext", so it can be a program name with args.
2798 set dummy xgettext; ac_word=$2
2799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_word" >&5
2801 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2806 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2810 for ac_dir in $PATH; do
2811 test -z "$ac_dir" && ac_dir=.
2812 if test -f $ac_dir/$ac_word; then
2813 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2814 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2820 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2824 XGETTEXT="$ac_cv_path_XGETTEXT"
2825 if test "$XGETTEXT" != ":"; then
2826 echo "$ac_t""$XGETTEXT" 1>&6
2828 echo "$ac_t""no" 1>&6
2836 echo "$ac_t""no" 1>&6
2840 if test "$CATOBJEXT" = "NONE"; then
2841 nls_cv_use_gnu_gettext=yes
2845 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2846 INTLOBJS="\$(GETTOBJS)"
2847 # Extract the first word of "msgfmt", so it can be a program name with args.
2848 set dummy msgfmt; ac_word=$2
2849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_word" >&5
2851 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2860 for ac_dir in $PATH; do
2861 test -z "$ac_dir" && ac_dir=.
2862 if test -f $ac_dir/$ac_word; then
2863 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2864 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2874 MSGFMT="$ac_cv_path_MSGFMT"
2875 if test "$MSGFMT" != ":"; then
2876 echo "$ac_t""$MSGFMT" 1>&6
2878 echo "$ac_t""no" 1>&6
2881 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2882 set dummy gmsgfmt; ac_word=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2890 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2893 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2910 GMSGFMT="$ac_cv_path_GMSGFMT"
2911 if test -n "$GMSGFMT"; then
2912 echo "$ac_t""$GMSGFMT" 1>&6
2914 echo "$ac_t""no" 1>&6
2917 # Extract the first word of "xgettext", so it can be a program name with args.
2918 set dummy xgettext; ac_word=$2
2919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_word" >&5
2921 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2926 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2930 for ac_dir in $PATH; do
2931 test -z "$ac_dir" && ac_dir=.
2932 if test -f $ac_dir/$ac_word; then
2933 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2934 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2940 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2944 XGETTEXT="$ac_cv_path_XGETTEXT"
2945 if test "$XGETTEXT" != ":"; then
2946 echo "$ac_t""$XGETTEXT" 1>&6
2948 echo "$ac_t""no" 1>&6
2952 BUILD_INCLUDED_LIBINTL=yes
2953 USE_INCLUDED_LIBINTL=yes
2955 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2956 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2959 if test "$GMSGFMT" != ":"; then
2960 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2963 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2968 if test "$XGETTEXT" != ":"; then
2969 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2972 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2982 if test "$PACKAGE" = gettext; then
2983 BUILD_INCLUDED_LIBINTL=yes
2986 for ac_prog in bison
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 if test -n "$INTLBISON"; then
2996 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3000 for ac_dir in $ac_dummy; do
3001 test -z "$ac_dir" && ac_dir=.
3002 if test -f $ac_dir/$ac_word; then
3003 ac_cv_prog_INTLBISON="$ac_prog"
3010 INTLBISON="$ac_cv_prog_INTLBISON"
3011 if test -n "$INTLBISON"; then
3012 echo "$ac_t""$INTLBISON" 1>&6
3014 echo "$ac_t""no" 1>&6
3017 test -n "$INTLBISON" && break
3020 if test -z "$INTLBISON"; then
3023 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3024 echo "configure:3025: checking version of bison" >&5
3025 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3026 case $ac_prog_version in
3027 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3028 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3029 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3030 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3032 echo "$ac_t""$ac_prog_version" 1>&6
3034 if test $ac_verc_fail = yes; then
3038 for lang in $ALL_LINGUAS; do
3039 GMOFILES="$GMOFILES $lang.gmo"
3040 POFILES="$POFILES $lang.po"
3054 nls_cv_header_libgt=
3066 if test "x$CATOBJEXT" != "x"; then
3067 if test "x$ALL_LINGUAS" = "x"; then
3070 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3071 echo "configure:3072: checking for catalogs to be installed" >&5
3073 for presentlang in $ALL_LINGUAS; do
3075 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3076 # Use the presentlang catalog if desiredlang is
3077 # a. equal to presentlang, or
3078 # b. a variant of presentlang (because in this case,
3079 # presentlang can be used as a fallback for messages
3080 # which are not translated in the desiredlang catalog).
3081 case "$desiredlang" in
3082 "$presentlang"*) useit=yes;;
3085 if test $useit = yes; then
3086 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3089 LINGUAS=$NEW_LINGUAS
3090 echo "$ac_t""$LINGUAS" 1>&6
3093 if test -n "$LINGUAS"; then
3094 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3099 if test -n "$ac_aux_dir"; then
3100 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3102 if test -z "$MKINSTALLDIRS"; then
3103 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3107 INTL_LIBTOOL_SUFFIX_PREFIX=
3111 # Find a good install program. We prefer a C program (faster),
3112 # so one script is as good as another. But avoid the broken or
3113 # incompatible versions:
3114 # SysV /etc/install, /usr/sbin/install
3115 # SunOS /usr/etc/install
3116 # IRIX /sbin/install
3118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3121 # ./install, which can be erroneously created by make from ./install.sh.
3122 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3123 echo "configure:3124: checking for a BSD compatible install" >&5
3124 if test -z "$INSTALL"; then
3125 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3129 for ac_dir in $PATH; do
3130 # Account for people who put trailing slashes in PATH elements.
3132 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3134 # OSF1 and SCO ODT 3.0 have their own names for install.
3135 # Don't use installbsd from OSF since it installs stuff as root
3137 for ac_prog in ginstall scoinst install; do
3138 if test -f $ac_dir/$ac_prog; then
3139 if test $ac_prog = install &&
3140 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3141 # AIX install. It has an incompatible calling convention.
3144 ac_cv_path_install="$ac_dir/$ac_prog -c"
3155 if test "${ac_cv_path_install+set}" = set; then
3156 INSTALL="$ac_cv_path_install"
3158 # As a last resort, use the slow shell script. We don't cache a
3159 # path for INSTALL within a source directory, because that will
3160 # break other packages using the cache if that directory is
3161 # removed, or if the path is relative.
3162 INSTALL="$ac_install_sh"
3165 echo "$ac_t""$INSTALL" 1>&6
3167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3168 # It thinks the first close brace ends the variable substitution.
3169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3176 vlc_LDFLAGS="${LDFLAGS}"
3178 case "x${target_os}" in
3187 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3188 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3189 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3193 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3197 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3198 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3202 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}windres; ac_word=$2
3204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3205 echo "configure:3206: checking for $ac_word" >&5
3206 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 if test -n "$WINDRES"; then
3210 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3214 for ac_dir in $ac_dummy; do
3215 test -z "$ac_dir" && ac_dir=.
3216 if test -f $ac_dir/$ac_word; then
3217 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3224 WINDRES="$ac_cv_prog_WINDRES"
3225 if test -n "$WINDRES"; then
3226 echo "$ac_t""$WINDRES" 1>&6
3228 echo "$ac_t""no" 1>&6
3232 if test -z "$ac_cv_prog_WINDRES"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "windres", so it can be a program name with args.
3235 set dummy windres; ac_word=$2
3236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3237 echo "configure:3238: checking for $ac_word" >&5
3238 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 if test -n "$WINDRES"; then
3242 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3246 for ac_dir in $ac_dummy; do
3247 test -z "$ac_dir" && ac_dir=.
3248 if test -f $ac_dir/$ac_word; then
3249 ac_cv_prog_WINDRES="windres"
3254 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3257 WINDRES="$ac_cv_prog_WINDRES"
3258 if test -n "$WINDRES"; then
3259 echo "$ac_t""$WINDRES" 1>&6
3261 echo "$ac_t""no" 1>&6
3269 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3270 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3271 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3272 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3273 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3274 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3275 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3279 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3280 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3284 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3285 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3286 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3287 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3288 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3295 if test "x${SYS}" = "xmingw32"
3297 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3299 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3300 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3303 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3305 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3308 echo "configure:3309: checking for $ac_func" >&5
3309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* System header to define __stub macros and hopefully few prototypes,
3316 which can conflict with char $ac_func(); below. */
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3325 /* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 eval "ac_cv_func_$ac_func=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_func_$ac_func=no"
3348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_func 1
3356 echo "$ac_t""no" 1>&6
3361 echo $ac_n "checking for connect""... $ac_c" 1>&6
3362 echo "configure:3363: checking for connect" >&5
3363 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* System header to define __stub macros and hopefully few prototypes,
3370 which can conflict with char connect(); below. */
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_connect) || defined (__stub___connect)
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392 eval "ac_cv_func_connect=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_func_connect=no"
3402 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3406 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3409 echo "configure:3410: checking for connect in -lsocket" >&5
3410 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3415 LIBS="-lsocket $LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3444 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3447 echo "$ac_t""no" 1>&6
3452 echo $ac_n "checking for send""... $ac_c" 1>&6
3453 echo "configure:3454: checking for send" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char send(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_send) || defined (__stub___send)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_send=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_send=no"
3493 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3500 echo "configure:3501: checking for send in -lsocket" >&5
3501 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3506 LIBS="-lsocket $LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 eval "ac_cv_lib_$ac_lib_var=yes"
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3526 eval "ac_cv_lib_$ac_lib_var=no"
3529 LIBS="$ac_save_LIBS"
3532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3537 echo "$ac_t""no" 1>&6
3542 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3543 echo "configure:3544: checking for gethostbyname" >&5
3544 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 /* System header to define __stub macros and hopefully few prototypes,
3551 which can conflict with char gethostbyname(); below. */
3553 /* Override any gcc2 internal prototype to avoid an error. */
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3556 char gethostbyname();
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_gethostbyname=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_gethostbyname=no"
3583 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3590 echo "configure:3591: checking for gethostbyname in -lnsl" >&5
3591 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS="$LIBS"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 /* Override any gcc2 internal prototype to avoid an error. */
3601 /* We use char because int might match the return type of a gcc2
3602 builtin and then its argument prototype would still apply. */
3603 char gethostbyname();
3609 if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3611 eval "ac_cv_lib_$ac_lib_var=yes"
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3616 eval "ac_cv_lib_$ac_lib_var=no"
3619 LIBS="$ac_save_LIBS"
3622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3626 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3633 echo "configure:3634: checking for gethostbyname" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char gethostbyname(); below. */
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char gethostbyname();
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_func_gethostbyname=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_func_gethostbyname=no"
3673 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3677 echo "$ac_t""no" 1>&6
3679 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3680 echo "configure:3681: checking for gethostbyname in -lbind" >&5
3681 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 ac_save_LIBS="$LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3693 char gethostbyname();
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "ac_cv_lib_$ac_lib_var=no"
3709 LIBS="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3716 echo "$ac_t""no" 1>&6
3723 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3724 echo "configure:3725: checking for nanosleep" >&5
3725 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* System header to define __stub macros and hopefully few prototypes,
3732 which can conflict with char nanosleep(); below. */
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3741 /* The GNU C library defines this for functions which it implements
3742 to always fail with ENOSYS. Some functions are actually named
3743 something starting with __ and the normal name is an alias. */
3744 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3754 eval "ac_cv_func_nanosleep=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_func_nanosleep=no"
3764 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3768 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"; have_nanosleep=1
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"; have_nanosleep=1
3845 echo "$ac_t""no" 1>&6
3854 if test x$have_nanosleep = x1; then
3855 cat >> confdefs.h <<\EOF
3856 #define HAVE_NANOSLEEP 1
3860 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3861 echo "configure:3862: checking for inet_aton" >&5
3862 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* System header to define __stub macros and hopefully few prototypes,
3869 which can conflict with char inet_aton(); below. */
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3878 /* The GNU C library defines this for functions which it implements
3879 to always fail with ENOSYS. Some functions are actually named
3880 something starting with __ and the normal name is an alias. */
3881 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891 eval "ac_cv_func_inet_aton=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 eval "ac_cv_func_inet_aton=no"
3901 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3905 echo "$ac_t""no" 1>&6
3907 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3908 echo "configure:3909: checking for inet_aton in -lresolv" >&5
3909 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 ac_save_LIBS="$LIBS"
3914 LIBS="-lresolv $LIBS"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_lib_$ac_lib_var=no"
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3944 echo "$ac_t""no" 1>&6
3950 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3951 echo "configure:3952: checking for textdomain" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char textdomain(); below. */
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_func_textdomain=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_func_textdomain=no"
3991 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3995 echo "$ac_t""no" 1>&6
3997 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3998 echo "configure:3999: checking for textdomain in -lintl" >&5
3999 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 ac_save_LIBS="$LIBS"
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4017 if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4019 eval "ac_cv_lib_$ac_lib_var=yes"
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4024 eval "ac_cv_lib_$ac_lib_var=no"
4027 LIBS="$ac_save_LIBS"
4030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4033 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4036 echo "$ac_t""no" 1>&6
4044 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4045 echo "configure:4046: checking for getopt_long" >&5
4046 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* System header to define __stub macros and hopefully few prototypes,
4053 which can conflict with char getopt_long(); below. */
4055 /* Override any gcc2 internal prototype to avoid an error. */
4056 /* We use char because int might match the return type of a gcc2
4057 builtin and then its argument prototype would still apply. */
4062 /* The GNU C library defines this for functions which it implements
4063 to always fail with ENOSYS. Some functions are actually named
4064 something starting with __ and the normal name is an alias. */
4065 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4075 eval "ac_cv_func_getopt_long=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 eval "ac_cv_func_getopt_long=no"
4085 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 cat >> confdefs.h <<\EOF
4088 #define HAVE_GETOPT_LONG 1
4092 echo "$ac_t""no" 1>&6
4093 # FreeBSD has a gnugetopt library for this:
4094 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4095 echo "configure:4096: checking for getopt_long in -lgnugetopt" >&5
4096 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 ac_save_LIBS="$LIBS"
4101 LIBS="-lgnugetopt $LIBS"
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 eval "ac_cv_lib_$ac_lib_var=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4121 eval "ac_cv_lib_$ac_lib_var=no"
4124 LIBS="$ac_save_LIBS"
4127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 cat >> confdefs.h <<\EOF
4130 #define HAVE_GETOPT_LONG 1
4132 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4134 echo "$ac_t""no" 1>&6
4141 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4142 echo "configure:4143: checking return type of signal handlers" >&5
4143 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4155 extern "C" void (*signal (int, void (*)(int)))(int);
4157 void (*signal ()) ();
4164 if { (eval echo configure:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4166 ac_cv_type_signal=void
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 ac_cv_type_signal=int
4176 echo "$ac_t""$ac_cv_type_signal" 1>&6
4177 cat >> confdefs.h <<EOF
4178 #define RETSIGTYPE $ac_cv_type_signal
4182 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4183 echo "configure:4184: checking for dlopen in -ldl" >&5
4184 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_save_LIBS="$LIBS"
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4204 eval "ac_cv_lib_$ac_lib_var=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 eval "ac_cv_lib_$ac_lib_var=no"
4212 LIBS="$ac_save_LIBS"
4215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4219 echo "$ac_t""no" 1>&6
4222 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4223 echo "configure:4224: checking for cos in -lm" >&5
4224 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_save_LIBS="$LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 eval "ac_cv_lib_$ac_lib_var=no"
4252 LIBS="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4258 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4260 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4264 echo "configure:4265: checking for pow in -lm" >&5
4265 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS="$LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4299 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4300 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4301 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4302 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4305 echo "$ac_t""no" 1>&6
4310 if test "x${THREAD_LIB}" = "xerror"; then
4311 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4312 echo "configure:4313: checking for main in -lpthread" >&5
4313 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 ac_save_LIBS="$LIBS"
4318 LIBS="-lpthread $LIBS"
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 eval "ac_cv_lib_$ac_lib_var=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 eval "ac_cv_lib_$ac_lib_var=no"
4337 LIBS="$ac_save_LIBS"
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 THREAD_LIB="-lpthread"
4344 echo "$ac_t""no" 1>&6
4348 if test "x${THREAD_LIB}" = "xerror"; then
4349 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4350 echo "configure:4351: checking for main in -lpthreads" >&5
4351 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 ac_save_LIBS="$LIBS"
4356 LIBS="-lpthreads $LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 THREAD_LIB="-lpthreads"
4382 echo "$ac_t""no" 1>&6
4386 if test "x${THREAD_LIB}" = "xerror"; then
4387 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4388 echo "configure:4389: checking for main in -lc_r" >&5
4389 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4405 eval "ac_cv_lib_$ac_lib_var=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_lib_$ac_lib_var=no"
4413 LIBS="$ac_save_LIBS"
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4420 echo "$ac_t""no" 1>&6
4424 if test "x${THREAD_LIB}" = "xerror"; then
4425 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4426 echo "configure:4427: checking for pthread_mutex_lock" >&5
4427 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* System header to define __stub macros and hopefully few prototypes,
4434 which can conflict with char pthread_mutex_lock(); below. */
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 /* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4439 char pthread_mutex_lock();
4443 /* The GNU C library defines this for functions which it implements
4444 to always fail with ENOSYS. Some functions are actually named
4445 something starting with __ and the normal name is an alias. */
4446 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4449 pthread_mutex_lock();
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 eval "ac_cv_func_pthread_mutex_lock=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_func_pthread_mutex_lock=no"
4466 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4470 echo "$ac_t""no" 1>&6
4476 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4477 echo "configure:4478: checking for cthread_fork in -lthreads" >&5
4478 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 ac_save_LIBS="$LIBS"
4483 LIBS="-lthreads $LIBS"
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4490 char cthread_fork();
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 eval "ac_cv_lib_$ac_lib_var=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 eval "ac_cv_lib_$ac_lib_var=no"
4506 LIBS="$ac_save_LIBS"
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 THREAD_LIB="-lthreads"
4513 echo "$ac_t""no" 1>&6
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 #include <pthread.h>
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 egrep "pthread_cond_t" >/dev/null 2>&1; then
4526 cat >> confdefs.h <<\EOF
4527 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4536 #include <pthread.h>
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 egrep "pthread_once" >/dev/null 2>&1; then
4542 cat >> confdefs.h <<\EOF
4543 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 #include <strings.h>
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 egrep "strncasecmp" >/dev/null 2>&1; then
4558 cat >> confdefs.h <<\EOF
4559 #define STRNCASECMP_IN_STRINGS_H 1
4566 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4569 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4570 echo "configure:4571: checking for $ac_hdr" >&5
4571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4580 { (eval echo configure:4581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4582 if test -z "$ac_err"; then
4584 eval "ac_cv_header_$ac_safe=yes"
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 eval "ac_cv_header_$ac_safe=no"
4594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4597 cat >> confdefs.h <<EOF
4598 #define $ac_tr_hdr 1
4602 echo "$ac_t""no" 1>&6
4606 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_hdr" >&5
4611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4620 { (eval echo configure:4621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4622 if test -z "$ac_err"; then
4624 eval "ac_cv_header_$ac_safe=yes"
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 eval "ac_cv_header_$ac_safe=no"
4634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4637 cat >> confdefs.h <<EOF
4638 #define $ac_tr_hdr 1
4642 echo "$ac_t""no" 1>&6
4646 for ac_hdr in dlfcn.h image.h
4648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_hdr" >&5
4651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4660 { (eval echo configure:4661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4662 if test -z "$ac_err"; then
4664 eval "ac_cv_header_$ac_safe=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 eval "ac_cv_header_$ac_safe=no"
4674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4677 cat >> confdefs.h <<EOF
4678 #define $ac_tr_hdr 1
4682 echo "$ac_t""no" 1>&6
4686 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4690 echo "configure:4691: checking for $ac_hdr" >&5
4691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4700 { (eval echo configure:4701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4702 if test -z "$ac_err"; then
4704 eval "ac_cv_header_$ac_safe=yes"
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 eval "ac_cv_header_$ac_safe=no"
4714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_hdr 1
4722 echo "$ac_t""no" 1>&6
4726 for ac_hdr in machine/param.h sys/shm.h
4728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4730 echo "configure:4731: checking for $ac_hdr" >&5
4731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4740 { (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4742 if test -z "$ac_err"; then
4744 eval "ac_cv_header_$ac_safe=yes"
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 eval "ac_cv_header_$ac_safe=no"
4754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4757 cat >> confdefs.h <<EOF
4758 #define $ac_tr_hdr 1
4762 echo "$ac_t""no" 1>&6
4766 for ac_hdr in linux/version.h
4768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_hdr" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4784 eval "ac_cv_header_$ac_safe=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_header_$ac_safe=no"
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_hdr 1
4802 echo "$ac_t""no" 1>&6
4807 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4808 echo "configure:4809: checking whether time.h and sys/time.h may both be included" >&5
4809 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 #include <sys/types.h>
4816 #include <sys/time.h>
4822 if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824 ac_cv_header_time=yes
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 ac_cv_header_time=no
4834 echo "$ac_t""$ac_cv_header_time" 1>&6
4835 if test $ac_cv_header_time = yes; then
4836 cat >> confdefs.h <<\EOF
4837 #define TIME_WITH_SYS_TIME 1
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 egrep "nanosleep" >/dev/null 2>&1; then
4852 cat >> confdefs.h <<\EOF
4853 #define HAVE_DECL_NANOSLEEP 1
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/time.h>
4866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867 egrep "timespec" >/dev/null 2>&1; then
4870 cat >> confdefs.h <<\EOF
4871 #define HAVE_STRUCT_TIMESPEC 1
4879 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4883 echo "configure:4884: checking for $ac_hdr" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4893 { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4895 if test -z "$ac_err"; then
4897 eval "ac_cv_header_$ac_safe=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_header_$ac_safe=no"
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4910 cat >> confdefs.h <<EOF
4911 #define $ac_tr_hdr 1
4915 echo "$ac_t""no" 1>&6
4920 if test "x${x_includes}" = "xNONE"; then
4921 x_includes="/usr/X11R6/include"
4923 if test "x${x_libraries}" = "xNONE"; then
4924 x_libraries="/usr/X11R6/lib"
4927 if test "x${SYS}" != "xmingw32"
4929 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4930 for ac_hdr in X11/extensions/dpms.h
4932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h <<EOF
4962 #define $ac_tr_hdr 1
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 #include <X11/extensions/dpms.h>
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 egrep "DPMSInfo" >/dev/null 2>&1; then
4974 cat >> confdefs.h <<\EOF
4975 #define DPMSINFO_IN_DPMS_H 1
4984 echo "$ac_t""no" 1>&6
4988 CPPFLAGS="${save_CPPFLAGS}"
4991 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4992 echo "configure:4993: checking for ntohl in sys/param.h" >&5
4993 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 CFLAGS="${save_CFLAGS} -Wall -Werror"
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #include <sys/param.h>
5002 void foo() { int meuh; ntohl(meuh); }
5005 if { (eval echo configure:5006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5007 ac_cv_c_ntohl_sys_param_h=yes
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5012 ac_cv_c_ntohl_sys_param_h=no
5017 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5018 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5019 cat >> confdefs.h <<\EOF
5020 #define NTOHL_IN_SYS_PARAM_H 1
5025 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5026 echo "configure:5027: checking if \$CC accepts -finline-limit" >&5
5027 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5039 if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5041 ac_cv_c_inline_limit=yes
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 ac_cv_c_inline_limit=no
5051 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5052 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5053 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5056 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5057 echo "configure:5058: checking if \$CC accepts -Wall -Winline" >&5
5058 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5070 if { (eval echo configure:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5072 ac_cv_c_Wall_Winline=yes
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 ac_cv_c_Wall_Winline=no
5082 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5083 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5084 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5086 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5087 echo "configure:5088: checking if \$CC accepts -wall -winline" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 CFLAGS="-wall -winline ${save_CFLAGS}"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5100 if { (eval echo configure:5101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5102 ac_cv_c_wall_winline=yes
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 ac_cv_c_wall_winline=no
5112 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5113 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5114 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5118 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5119 echo "configure:5120: checking if \$CC accepts -pipe" >&5
5120 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 CFLAGS="${save_CFLAGS} -pipe"
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5132 if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5144 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5145 if test "x${ac_cv_c_pipe}" != "xno"; then
5146 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5149 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5150 echo "configure:5151: checking if \$CC accepts -O3" >&5
5151 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 CFLAGS="${save_CFLAGS} -O3"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5163 if { (eval echo configure:5164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5175 echo "$ac_t""$ac_cv_c_o3" 1>&6
5176 if test "x${ac_cv_c_o3}" != "xno"; then
5177 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5179 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5180 echo "configure:5181: checking if \$CC accepts -O2" >&5
5181 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 CFLAGS="${save_CFLAGS} -O2"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5205 echo "$ac_t""$ac_cv_c_o2" 1>&6
5206 if test "x${ac_cv_c_o2}" != "xno"; then
5207 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5209 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5210 echo "configure:5211: checking if \$CC accepts -O" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 CFLAGS="${save_CFLAGS} -O"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5235 echo "$ac_t""$ac_cv_c_o" 1>&6
5236 if test "x${ac_cv_c_o}" != "xno"; then
5237 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5242 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5243 echo "configure:5244: checking if \$CC accepts -ffast-math" >&5
5244 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 CFLAGS="${save_CFLAGS} -ffast-math"
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 ac_cv_c_fast_math=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 ac_cv_c_fast_math=no
5268 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5269 if test "x${ac_cv_c_fast_math}" != "xno"; then
5270 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5273 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5274 echo "configure:5275: checking if \$CC accepts -funroll-loops" >&5
5275 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 CFLAGS="${save_CFLAGS} -funroll-loops"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 ac_cv_c_unroll_loops=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ac_cv_c_unroll_loops=no
5299 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5300 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5301 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5304 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5305 echo "configure:5306: checking if \$CC accepts -fomit-frame-pointer" >&5
5306 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 ac_cv_c_omit_frame_pointer=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 ac_cv_c_omit_frame_pointer=no
5330 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5331 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5332 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5333 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5334 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5337 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5338 echo "configure:5339: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5339 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5351 if { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5363 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5364 if test "x${ac_cv_ld_darwin}" != "xno"; then
5365 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5368 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5369 echo "configure:5370: checking if \$CC accepts -shared" >&5
5370 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 CFLAGS="${save_CFLAGS} -shared"
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5382 if { (eval echo configure:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 ac_cv_ld_plugins=yes
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5394 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5395 if test "x${ac_cv_ld_plugins}" != "xno"; then
5396 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5399 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5400 echo "configure:5401: checking for variadic cpp macros" >&5
5401 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 CFLAGS="${save_CFLAGS}"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5409 #define a(b,c...) printf(b,##c)
5411 a("foo");a("%s","bar");a("%s%s","baz","quux");
5414 if { (eval echo configure:5415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416 ac_cv_cpp_variadic_macros=yes
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 ac_cv_cpp_variadic_macros=no
5426 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5427 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_VARIADIC_MACROS 1
5434 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5435 echo "configure:5436: checking __attribute__ ((aligned ())) support" >&5
5436 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 ac_cv_c_attribute_aligned=0
5440 CFLAGS="${save_CFLAGS} -Werror"
5441 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5447 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5450 if { (eval echo configure:5451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5452 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5459 CFLAGS="${save_CFLAGS}"
5462 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5463 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5464 cat >> confdefs.h <<EOF
5465 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5470 case "x${target_cpu}" in
5475 ARCH="${target_cpu}"
5479 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5480 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"
5482 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5483 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5484 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5485 SSE_MODULES="imdctsse downmixsse"
5486 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5488 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5489 echo "configure:5490: checking if \$CC groks MMX inline assembly" >&5
5490 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 CFLAGS="${save_CFLAGS}"
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5499 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5502 if { (eval echo configure:5503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5504 ac_cv_mmx_inline=yes
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5514 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5515 if test "x${ac_cv_mmx_inline}" != "xno"; then
5516 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5519 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5520 echo "configure:5521: checking if \$CC groks MMX EXT inline assembly" >&5
5521 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 CFLAGS="${save_CFLAGS}"
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5533 if { (eval echo configure:5534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5535 ac_cv_mmxext_inline=yes
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 ac_cv_mmxext_inline=no
5545 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5546 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5547 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5550 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5551 echo "configure:5552: checking if \$CC groks 3D Now! inline assembly" >&5
5552 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 CFLAGS="${save_CFLAGS}"
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5561 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5564 if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5566 ac_cv_3dnow_inline=yes
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 ac_cv_3dnow_inline=no
5576 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5577 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5578 cat >> confdefs.h <<\EOF
5579 #define CAN_COMPILE_3DNOW 1
5582 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5585 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5586 echo "configure:5587: checking if \$CC groks SSE inline assembly" >&5
5587 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 CFLAGS="${save_CFLAGS}"
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5596 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_sse_inline=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5611 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5612 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5613 cat >> confdefs.h <<\EOF
5614 #define CAN_COMPILE_SSE 1
5617 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5620 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5621 # we should be able to remove this test with future versions of mingw32
5622 if test "x${SYS}" != "xmingw32"; then
5623 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5624 echo "configure:5625: checking if \$CC groks AltiVec inline assembly" >&5
5625 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 CFLAGS="${save_CFLAGS}"
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5634 asm volatile("vperm 0,1,2,3");
5637 if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639 ac_cv_altivec_inline=yes
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5650 asm volatile("vperm 0,1,2,3");
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655 ac_cv_altivec_inline="-Wa,-m7400"
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 ac_cv_altivec_inline=no
5668 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5669 if test "x${ac_cv_altivec_inline}" != "xno"; then
5670 cat >> confdefs.h <<\EOF
5671 #define CAN_COMPILE_ALTIVEC 1
5674 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5675 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5676 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5677 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5678 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5680 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5683 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5684 echo "configure:5685: checking if \$CC groks AltiVec C extensions" >&5
5685 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 CFLAGS="${save_CFLAGS} -faltivec"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 vec_mtvscr((vector unsigned int)(0));
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 ac_cv_c_altivec=-faltivec
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5707 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5713 vec_mtvscr((vector unsigned int)(0));
5716 if { (eval echo configure:5717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5718 ac_cv_c_altivec="-fvec"
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5729 CFLAGS="${save_CFLAGS}"
5732 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5733 if test "x${ac_cv_c_altivec}" != "xno"; then
5734 cat >> confdefs.h <<\EOF
5735 #define CAN_COMPILE_C_ALTIVEC 1
5738 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5739 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5740 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5741 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5742 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5745 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5746 echo "configure:5747: checking if linker needs -framework vecLib" >&5
5747 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5759 if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761 ac_cv_ld_altivec=yes
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5769 LDFLAGS="${save_LDFLAGS}"
5773 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5774 if test "x${ac_cv_ld_altivec}" != "xno"; then
5775 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5776 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5777 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5778 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5783 # Check whether --with- or --without- was given.
5784 if test "${with_+set}" = set; then
5789 # Check whether --with- or --without- was given.
5790 if test "${with_+set}" = set; then
5796 # Check whether --with-tuning or --without-tuning was given.
5797 if test "${with_tuning+set}" = set; then
5798 withval="$with_tuning"
5802 if test "x${with_tuning}" != "x"; then
5803 TUNING="${with_tuning}"
5805 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5807 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5811 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5814 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5817 # Check whether --enable-optimizations or --disable-optimizations was given.
5818 if test "${enable_optimizations+set}" = set; then
5819 enableval="$enable_optimizations"
5820 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5826 # Check whether --enable-altivec or --disable-altivec was given.
5827 if test "${enable_altivec+set}" = set; then
5828 enableval="$enable_altivec"
5829 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5830 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5832 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5833 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5838 # Check whether --enable-debug or --disable-debug was given.
5839 if test "${enable_debug+set}" = set; then
5840 enableval="$enable_debug"
5841 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5846 # Check whether --enable-release or --disable-release was given.
5847 if test "${enable_release+set}" = set; then
5848 enableval="$enable_release"
5849 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5851 VERSION="${VERSION}_`date +%Y-%m-%d`"
5856 # Check whether --with- or --without- was given.
5857 if test "${with_+set}" = set; then
5863 # Check whether --enable-dvd or --disable-dvd was given.
5864 if test "${enable_dvd+set}" = set; then
5865 enableval="$enable_dvd"
5869 if test "x${enable_dvd}" != "xno"
5871 # Check whether --with-dvdcss or --without-dvdcss was given.
5872 if test "${with_dvdcss+set}" = set; then
5873 withval="$with_dvdcss"
5877 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5878 if test "${with_dvdcss_tree+set}" = set; then
5879 withval="$with_dvdcss_tree"
5883 case "x${with_dvdcss}" in
5885 if test "x${with_dvdcss_tree}" = x
5887 for ac_hdr in dvdcss/dvdcss.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5921 PLUGINS="${PLUGINS} dvd"
5922 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5924 echo "$ac_t""no" 1>&6
5925 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5926 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5931 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5932 echo "configure:5933: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5933 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5934 if test "x${real_dvdcss_tree}" = "x"
5936 echo "$ac_t""no" 1>&6
5937 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5939 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5941 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5942 BUILTINS="${BUILTINS} dvd"
5943 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5944 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5946 echo "$ac_t""no" 1>&6
5947 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5952 PLUGINS="${PLUGINS} dvd"
5953 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5954 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5957 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5958 echo "configure:5959: checking for dvdcss headers in ${with_dvdcss}" >&5
5959 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5961 echo "$ac_t""yes" 1>&6
5962 PLUGINS="${PLUGINS} dvd"
5963 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5964 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5966 echo "$ac_t""no" 1>&6
5967 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5973 # Check whether --enable-dvdread or --disable-dvdread was given.
5974 if test "${enable_dvdread+set}" = set; then
5975 enableval="$enable_dvdread"
5979 if test "x${enable_dvdread}" != "xno"
5981 # Check whether --with-dvdread or --without-dvdread was given.
5982 if test "${with_dvdread+set}" = set; then
5983 withval="$with_dvdread"
5987 if test "x${with_dvdread}" = "x"
5992 test_LDFLAGS="-L${with_dvdread}/lib"
5993 test_CFLAGS="-I${with_dvdread}/include"
5995 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
5996 for ac_hdr in dvdread/dvd_reader.h
5998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_hdr" >&5
6001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6010 { (eval echo configure:6011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6012 if test -z "$ac_err"; then
6014 eval "ac_cv_header_$ac_safe=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_header_$ac_safe=no"
6024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_hdr 1
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 #include <dvdread/dvd_reader.h>
6036 void foo() { int i=DVD_VIDEO_LB_LEN; }
6039 if { (eval echo configure:6040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6042 PLUGINS="${PLUGINS} dvdread"
6043 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6044 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6051 if test "x${enable_dvdread}" != "x"
6053 { 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; }
6060 echo "$ac_t""no" 1>&6
6061 if test "x${enable_dvdread}" != "x"
6063 if test "x${with_dvdread}" != "x"
6065 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6067 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6074 CPPFLAGS="${save_CPPFLAGS}"
6077 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6078 if test "${enable_dvbpsi+set}" = set; then
6079 enableval="$enable_dvbpsi"
6083 if test "x${enable_dvbpsi}" != "xno"
6085 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6086 if test "${with_dvbpsi+set}" = set; then
6087 withval="$with_dvbpsi"
6091 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6092 if test "${with_dvbpsi+set}" = set; then
6093 withval="$with_dvbpsi"
6097 case "x${with_dvbpsi}" in
6099 if test "x${with_dvbpsi_tree}" = "x"
6101 for ac_hdr in dvbpsi/dr.h
6103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_hdr" >&5
6106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6117 if test -z "$ac_err"; then
6119 eval "ac_cv_header_$ac_safe=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_header_$ac_safe=no"
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_hdr 1
6135 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6136 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6138 echo "$ac_t""no" 1>&6
6143 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6144 echo "configure:6145: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6145 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6146 if test "x${real_dvbpsi_tree}" = "x"
6148 echo "$ac_t""no" 1>&6
6149 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6151 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6153 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6154 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6155 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6156 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6158 echo "$ac_t""no" 1>&6
6159 { 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; }
6166 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6167 echo "configure:6168: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6168 if test "x${with_dvbpsi}" = "x"
6173 test_LDFLAGS="-L${with_dvbpsi}/lib"
6174 test_CFLAGS="-I${with_dvbpsi}/include"
6176 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6177 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6178 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6179 echo "configure:6180: checking for dvbpsi/dr.h" >&5
6180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 #include <dvbpsi/dr.h>
6188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6189 { (eval echo configure:6190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6191 if test -z "$ac_err"; then
6193 eval "ac_cv_header_$ac_safe=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_header_$ac_safe=no"
6203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6204 echo "$ac_t""yes" 1>&6
6206 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6207 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6208 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6211 echo "$ac_t""no" 1>&6
6213 if test "x${enable_dvbpsi}" != "x"
6215 { 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; }
6220 CPPFLAGS="${save_CPPFLAGS}"
6225 # Check whether --enable-vcd or --disable-vcd was given.
6226 if test "${enable_vcd+set}" = set; then
6227 enableval="$enable_vcd"
6232 if test "x${enable_vcd}" != "xno"
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <linux/cdrom.h>
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 egrep "cdrom_msf0" >/dev/null 2>&1; then
6243 PLUGINS="${PLUGINS} vcd"
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 #include <sys/cdio.h>
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 egrep "ioc_toc_header " >/dev/null 2>&1; then
6258 PLUGINS="${PLUGINS} vcd"
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6268 if test "x${SYS}" = "xbsdi"
6270 PLUGINS="${PLUGINS} vcd"
6273 if test "x${SYS}" = "xdarwin"
6275 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6276 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6280 # Check whether --enable-satellite or --disable-satellite was given.
6281 if test "${enable_satellite+set}" = set; then
6282 enableval="$enable_satellite"
6283 if test "x${enable_satellite}" = "xyes"
6285 PLUGINS="${PLUGINS} satellite"
6290 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6292 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6293 echo "configure:6294: checking for inet_pton" >&5
6294 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 /* System header to define __stub macros and hopefully few prototypes,
6301 which can conflict with char inet_pton(); below. */
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6310 /* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 eval "ac_cv_func_inet_pton=yes"
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 eval "ac_cv_func_inet_pton=no"
6333 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6335 PLUGINS="${PLUGINS} ipv6"
6337 echo "$ac_t""no" 1>&6
6339 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6340 echo "configure:6341: checking for inet_pton in -lresolv" >&5
6341 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6345 ac_save_LIBS="$LIBS"
6346 LIBS="-lresolv $LIBS"
6347 cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6361 eval "ac_cv_lib_$ac_lib_var=yes"
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6366 eval "ac_cv_lib_$ac_lib_var=no"
6369 LIBS="$ac_save_LIBS"
6372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6373 echo "$ac_t""yes" 1>&6
6374 PLUGINS="${PLUGINS} ipv6"
6375 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6377 echo "$ac_t""no" 1>&6
6384 if test "x${SYS}" = "xmingw32"
6386 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6387 echo "configure:6388: checking for getaddrinfo in ws2tcpip.h" >&5
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 #include <ws2tcpip.h>
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 egrep "addrinfo" >/dev/null 2>&1; then
6396 echo "$ac_t""yes" 1>&6
6397 PLUGINS="${PLUGINS} ipv6"
6400 echo "$ac_t""no" 1>&6
6406 # Check whether --enable-avi or --disable-avi was given.
6407 if test "${enable_avi+set}" = set; then
6408 enableval="$enable_avi"
6412 if test "x${enable_avi}" != "xno"
6414 PLUGINS="${PLUGINS} avi"
6418 # Check whether --with- or --without- was given.
6419 if test "${with_+set}" = set; then
6425 # Check whether --enable-mad or --disable-mad was given.
6426 if test "${enable_mad+set}" = set; then
6427 enableval="$enable_mad"
6431 if test "x${enable_mad}" = "xyes"
6433 # Check whether --with-mad or --without-mad was given.
6434 if test "${with_mad+set}" = set; then
6439 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6441 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6442 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6445 # Check whether --with-mad-tree or --without-mad-tree was given.
6446 if test "${with_mad_tree+set}" = set; then
6447 withval="$with_mad_tree"
6451 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6453 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6454 if test "x${real_mad_tree}" = "x"
6456 echo "$ac_t""no" 1>&6
6457 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6459 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6460 echo "configure:6461: checking for mad.h in ${real_mad_tree}/libmad" >&5
6461 if test -f ${real_mad_tree}/libmad/mad.h
6463 echo "$ac_t""yes" 1>&6
6464 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6465 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6466 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6467 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6468 echo "configure:6469: checking for mad_bit_init in -lmad" >&5
6469 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 ac_save_LIBS="$LIBS"
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* Override any gcc2 internal prototype to avoid an error. */
6479 /* We use char because int might match the return type of a gcc2
6480 builtin and then its argument prototype would still apply. */
6481 char mad_bit_init();
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 eval "ac_cv_lib_$ac_lib_var=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 eval "ac_cv_lib_$ac_lib_var=no"
6497 LIBS="$ac_save_LIBS"
6500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6503 BUILTINS="${BUILTINS} mad"
6504 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6507 echo "$ac_t""no" 1>&6
6508 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6512 LDFLAGS="${save_LDFLAGS}"
6514 echo "$ac_t""no" 1>&6
6515 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6518 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6519 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6524 echo "configure:6525: checking for $ac_hdr" >&5
6525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6534 { (eval echo configure:6535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6536 if test -z "$ac_err"; then
6538 eval "ac_cv_header_$ac_safe=yes"
6541 echo "configure: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6544 eval "ac_cv_header_$ac_safe=no"
6548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6551 cat >> confdefs.h <<EOF
6552 #define $ac_tr_hdr 1
6556 echo "$ac_t""no" 1>&6
6557 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6561 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6562 echo "configure:6563: checking for mad_bit_init in -lmad" >&5
6563 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 ac_save_LIBS="$LIBS"
6569 cat > conftest.$ac_ext <<EOF
6570 #line 6571 "configure"
6571 #include "confdefs.h"
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575 char mad_bit_init();
6581 if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6583 eval "ac_cv_lib_$ac_lib_var=yes"
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6588 eval "ac_cv_lib_$ac_lib_var=no"
6591 LIBS="$ac_save_LIBS"
6594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6595 echo "$ac_t""yes" 1>&6
6597 PLUGINS="${PLUGINS} mad"
6598 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6600 echo "$ac_t""no" 1>&6
6601 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6604 CFLAGS="${save_CFLAGS}"
6605 LDFLAGS="${save_LDFLAGS}"
6609 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6610 if test "${enable_ffmpeg+set}" = set; then
6611 enableval="$enable_ffmpeg"
6615 if test "x${enable_ffmpeg}" = "xyes"
6617 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6618 if test "${with_ffmpeg+set}" = set; then
6619 withval="$with_ffmpeg"
6623 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6625 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6626 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6629 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6630 if test "${with_ffmpeg_tree+set}" = set; then
6631 withval="$with_ffmpeg_tree"
6635 if test "x${with_ffmpeg_tree}" != "x"
6637 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6638 echo "configure:6639: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6639 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6640 if test "x${real_ffmpeg_tree}" = x
6642 echo "$ac_t""no" 1>&6
6643 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6645 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6647 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6648 BUILTINS="${BUILTINS} ffmpeg"
6649 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6650 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6652 echo "$ac_t""no" 1>&6
6653 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6656 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6657 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6658 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6659 echo "configure:6660: checking for avcodec_init in -lavcodec" >&5
6660 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 ac_save_LIBS="$LIBS"
6665 LIBS="-lavcodec $LIBS"
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char avcodec_init();
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6680 eval "ac_cv_lib_$ac_lib_var=yes"
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 eval "ac_cv_lib_$ac_lib_var=no"
6688 LIBS="$ac_save_LIBS"
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6694 BUILTINS="${BUILTINS} ffmpeg"
6695 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6697 echo "$ac_t""no" 1>&6
6698 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6701 LDFLAGS="${save_LDFLAGS}"
6702 CFLAGS="${save_CFLAGS}"
6706 # Check whether --enable-mp4 or --disable-mp4 was given.
6707 if test "${enable_mp4+set}" = set; then
6708 enableval="$enable_mp4"
6712 if test "x${enable_mp4}" = "xyes"
6714 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6715 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6716 echo "configure:6717: checking for zlib.h" >&5
6717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6726 { (eval echo configure:6727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6728 if test -z "$ac_err"; then
6730 eval "ac_cv_header_$ac_safe=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_header_$ac_safe=no"
6740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6742 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6743 echo "configure:6744: checking for inflateEnd in -lz" >&5
6744 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 ac_save_LIBS="$LIBS"
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 eval "ac_cv_lib_$ac_lib_var=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 eval "ac_cv_lib_$ac_lib_var=no"
6772 LIBS="$ac_save_LIBS"
6775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 PLUGINS="${PLUGINS} mp4"
6778 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
6780 echo "$ac_t""no" 1>&6
6781 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
6785 echo "$ac_t""no" 1>&6
6786 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
6791 if test "x${SYS}" = "xbeos"
6793 PLUGINS="${PLUGINS} beos"
6796 # Check whether --enable-a52 or --disable-a52 was given.
6797 if test "${enable_a52+set}" = set; then
6798 enableval="$enable_a52"
6802 if test "x${enable_a52}" != "xno"
6804 # Check whether --with-a52-tree or --without-a52-tree was given.
6805 if test "${with_a52_tree+set}" = set; then
6806 withval="$with_a52_tree"
6810 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6812 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6813 if test "x${real_a52_tree}" = "x"
6815 echo "$ac_t""no" 1>&6
6816 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6818 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6819 echo "configure:6820: checking for a52.h in ${real_a52_tree}/include" >&5
6820 if test -f ${real_a52_tree}/include/a52.h
6822 echo "$ac_t""yes" 1>&6
6823 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6824 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6825 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
6826 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6827 echo "configure:6828: checking for a52_free in -la52" >&5
6828 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 ac_save_LIBS="$LIBS"
6833 LIBS="-la52 -lm $LIBS"
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848 eval "ac_cv_lib_$ac_lib_var=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 eval "ac_cv_lib_$ac_lib_var=no"
6856 LIBS="$ac_save_LIBS"
6859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6862 BUILTINS="${BUILTINS} a52"
6863 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6864 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6867 echo "$ac_t""no" 1>&6
6869 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6871 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6873 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6878 LDFLAGS="${save_LDFLAGS}"
6880 echo "$ac_t""no" 1>&6
6881 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6883 else for ac_hdr in a52dec/a52.h
6885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_hdr" >&5
6888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6899 if test -z "$ac_err"; then
6901 eval "ac_cv_header_$ac_safe=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_header_$ac_safe=no"
6911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6914 cat >> confdefs.h <<EOF
6915 #define $ac_tr_hdr 1
6918 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6919 echo "configure:6920: checking for a52_free in -la52" >&5
6920 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 ac_save_LIBS="$LIBS"
6925 LIBS="-la52 -lm $LIBS"
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 eval "ac_cv_lib_$ac_lib_var=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_lib_$ac_lib_var=no"
6948 LIBS="$ac_save_LIBS"
6951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6954 BUILTINS="${BUILTINS} a52"
6955 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6956 a52_CFLAGS="${a52_CFLAGS}"
6959 echo "$ac_t""no" 1>&6
6964 echo "$ac_t""no" 1>&6
6971 # Check whether --enable-vorbis or --disable-vorbis was given.
6972 if test "${enable_vorbis+set}" = set; then
6973 enableval="$enable_vorbis"
6977 if test "x${enable_vorbis}" != "xno"
6979 for ac_hdr in ogg/ogg.h
6981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6983 echo "configure:6984: checking for $ac_hdr" >&5
6984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6985 echo $ac_n "(cached) $ac_c" 1>&6
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6993 { (eval echo configure:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6995 if test -z "$ac_err"; then
6997 eval "ac_cv_header_$ac_safe=yes"
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 eval "ac_cv_header_$ac_safe=no"
7007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_hdr 1
7014 #PLUGINS="${PLUGINS} vorbis"
7015 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7018 echo "$ac_t""no" 1>&6
7025 # Check whether --with- or --without- was given.
7026 if test "${with_+set}" = set; then
7032 # Check whether --enable-x11 or --disable-x11 was given.
7033 if test "${enable_x11+set}" = set; then
7034 enableval="$enable_x11"
7038 if test "x${enable_x11}" != "xno" &&
7039 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7040 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7041 for ac_hdr in X11/Xlib.h
7043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_hdr" >&5
7046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7055 { (eval echo configure:7056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7057 if test -z "$ac_err"; then
7059 eval "ac_cv_header_$ac_safe=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_header_$ac_safe=no"
7069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7070 echo "$ac_t""yes" 1>&6
7071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7072 cat >> confdefs.h <<EOF
7073 #define $ac_tr_hdr 1
7076 PLUGINS="${PLUGINS} x11"
7077 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7078 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7081 echo "$ac_t""no" 1>&6
7085 CPPFLAGS="${save_CPPFLAGS}"
7088 # Check whether --enable-xvideo or --disable-xvideo was given.
7089 if test "${enable_xvideo+set}" = set; then
7090 enableval="$enable_xvideo"
7094 if test "x${enable_xvideo}" != "xno" &&
7095 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7096 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7097 for ac_hdr in X11/extensions/Xv.h
7099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7101 echo "configure:7102: checking for $ac_hdr" >&5
7102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7105 cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7111 { (eval echo configure:7112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7113 if test -z "$ac_err"; then
7115 eval "ac_cv_header_$ac_safe=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_header_$ac_safe=no"
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_hdr 1
7132 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7133 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7134 echo "configure:7135: checking for XvPutImage in -lXv_pic" >&5
7135 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 ac_save_LIBS="$LIBS"
7140 LIBS="-lXv_pic $LIBS"
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 eval "ac_cv_lib_$ac_lib_var=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 eval "ac_cv_lib_$ac_lib_var=no"
7163 LIBS="$ac_save_LIBS"
7166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7167 echo "$ac_t""yes" 1>&6
7168 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7169 PLUGINS="${PLUGINS} xvideo"
7170 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7171 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7173 echo "$ac_t""no" 1>&6
7174 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7175 echo "configure:7176: checking for XvPutImage in -lXv" >&5
7176 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 ac_save_LIBS="$LIBS"
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_lib_$ac_lib_var=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_lib_$ac_lib_var=no"
7204 LIBS="$ac_save_LIBS"
7207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7208 echo "$ac_t""yes" 1>&6
7209 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7210 PLUGINS="${PLUGINS} xvideo"
7211 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7212 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7214 echo "$ac_t""no" 1>&6
7215 # Otherwise... well, do nothing.
7222 CFLAGS="${save_CFLAGS}"
7224 CPPFLAGS="${save_CPPFLAGS}"
7226 echo "$ac_t""no" 1>&6
7232 # Check whether --enable-sdl or --disable-sdl was given.
7233 if test "${enable_sdl+set}" = set; then
7234 enableval="$enable_sdl"
7238 if test "x${enable_sdl}" != "xno"
7241 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7242 if test "${with_sdl_config_path+set}" = set; then
7243 withval="$with_sdl_config_path"
7244 if test "x${with_sdl_config_path}" != "xno"
7246 SDL_PATH="${with_sdl_config_path}:${PATH}"
7250 # Extract the first word of "sdl12-config", so it can be a program name with args.
7251 set dummy sdl12-config; ac_word=$2
7252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_word" >&5
7254 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 case "$SDL12_CONFIG" in
7259 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7262 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7266 ac_dummy="${SDL_PATH}"
7267 for ac_dir in $ac_dummy; do
7268 test -z "$ac_dir" && ac_dir=.
7269 if test -f $ac_dir/$ac_word; then
7270 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7275 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7279 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7280 if test -n "$SDL12_CONFIG"; then
7281 echo "$ac_t""$SDL12_CONFIG" 1>&6
7283 echo "$ac_t""no" 1>&6
7286 SDL_CONFIG="${SDL12_CONFIG}"
7287 SDL_HEADER="SDL12/SDL.h"
7288 if test "x${SDL_CONFIG}" = "xno"
7290 # Extract the first word of "sdl11-config", so it can be a program name with args.
7291 set dummy sdl11-config; ac_word=$2
7292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7293 echo "configure:7294: checking for $ac_word" >&5
7294 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 case "$SDL11_CONFIG" in
7299 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7302 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7306 ac_dummy="${SDL_PATH}"
7307 for ac_dir in $ac_dummy; do
7308 test -z "$ac_dir" && ac_dir=.
7309 if test -f $ac_dir/$ac_word; then
7310 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7315 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7319 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7320 if test -n "$SDL11_CONFIG"; then
7321 echo "$ac_t""$SDL11_CONFIG" 1>&6
7323 echo "$ac_t""no" 1>&6
7326 SDL_CONFIG=${SDL11_CONFIG}
7327 SDL_HEADER="SDL11/SDL.h"
7329 if test "x${SDL_CONFIG}" = "xno"
7331 # Extract the first word of "sdl-config", so it can be a program name with args.
7332 set dummy sdl-config; ac_word=$2
7333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_word" >&5
7335 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 case "$SDL_CONFIG" in
7340 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7343 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7347 ac_dummy="${SDL_PATH}"
7348 for ac_dir in $ac_dummy; do
7349 test -z "$ac_dir" && ac_dir=.
7350 if test -f $ac_dir/$ac_word; then
7351 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7356 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7360 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7361 if test -n "$SDL_CONFIG"; then
7362 echo "$ac_t""$SDL_CONFIG" 1>&6
7364 echo "$ac_t""no" 1>&6
7367 SDL_HEADER="SDL/SDL.h"
7369 if test "x${SDL_CONFIG}" != "xno"
7371 PLUGINS="${PLUGINS} sdl"
7372 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7373 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7374 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7375 for ac_hdr in ${SDL_HEADER}
7377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7379 echo "configure:7380: checking for $ac_hdr" >&5
7380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7389 { (eval echo configure:7390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7391 if test -z "$ac_err"; then
7393 eval "ac_cv_header_$ac_safe=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_header_$ac_safe=no"
7403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7406 cat >> confdefs.h <<EOF
7407 #define $ac_tr_hdr 1
7409 cat >> confdefs.h <<EOF
7410 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7414 echo "$ac_t""no" 1>&6
7415 { echo "configure: error: The development package for SDL is not installed.
7416 Please install it and try again. Alternatively you can also configure with
7417 --disable-sdl." 1>&2; exit 1; }
7422 CPPFLAGS="${save_CPPFLAGS}"
7423 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7425 { echo "configure: error: The development package for SDL is not installed.
7426 Please install it and try again. Alternatively you can also configure with
7427 --disable-sdl." 1>&2; exit 1; }
7429 elif test "x${enable_sdl}" = "xyes"
7431 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7432 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7437 # Check whether --enable-directx or --disable-directx was given.
7438 if test "${enable_directx+set}" = set; then
7439 enableval="$enable_directx"
7443 if test "x${enable_directx}" != "xno"
7445 if test "x${SYS}" = "xmingw32"
7447 # Check whether --with-directx or --without-directx was given.
7448 if test "${with_directx+set}" = set; then
7449 withval="$with_directx"
7453 if test "x${with_directx}" = "x"
7455 for ac_hdr in ddraw.h
7457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7459 echo "configure:7460: checking for $ac_hdr" >&5
7460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7469 { (eval echo configure:7470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7471 if test -z "$ac_err"; then
7473 eval "ac_cv_header_$ac_safe=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_header_$ac_safe=no"
7483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7486 cat >> confdefs.h <<EOF
7487 #define $ac_tr_hdr 1
7489 PLUGINS="${PLUGINS} directx"
7490 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7492 echo "$ac_t""no" 1>&6
7497 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7498 echo "configure:7499: checking for directX headers in ${with_directx}" >&5
7499 if test -f ${with_directx}/ddraw.h
7501 PLUGINS="${PLUGINS} directx"
7502 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7503 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7504 echo "$ac_t""yes" 1>&6
7506 echo "$ac_t""no" 1>&6
7507 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7513 # Check whether --enable-fb or --disable-fb was given.
7514 if test "${enable_fb+set}" = set; then
7515 enableval="$enable_fb"
7519 if test "x${enable_fb}" != "xno"
7521 for ac_hdr in linux/fb.h
7523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_hdr" >&5
7526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7535 { (eval echo configure:7536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7537 if test -z "$ac_err"; then
7539 eval "ac_cv_header_$ac_safe=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7545 eval "ac_cv_header_$ac_safe=no"
7549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_hdr 1
7556 PLUGINS="${PLUGINS} fb"
7559 echo "$ac_t""no" 1>&6
7565 # Check whether --enable-mga or --disable-mga was given.
7566 if test "${enable_mga+set}" = set; then
7567 enableval="$enable_mga"
7568 if test "x${enable_mga}" = "xyes"
7570 PLUGINS="${PLUGINS} mga xmga"
7575 # Check whether --enable-ggi or --disable-ggi was given.
7576 if test "${enable_ggi+set}" = set; then
7577 enableval="$enable_ggi"
7581 if test "x${enable_ggi}" = "xyes"
7583 PLUGINS="${PLUGINS} ggi"
7584 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7585 # Check whether --with-ggi or --without-ggi was given.
7586 if test "${with_ggi+set}" = set; then
7588 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7590 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7591 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7597 # Check whether --enable-glide or --disable-glide was given.
7598 if test "${enable_glide+set}" = set; then
7599 enableval="$enable_glide"
7603 if test "x${enable_glide}" = "xyes"
7605 PLUGINS="${PLUGINS} glide"
7606 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7607 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7608 # Check whether --with-glide or --without-glide was given.
7609 if test "${with_glide+set}" = set; then
7610 withval="$with_glide"
7611 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7613 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7614 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7620 # Check whether --enable-aa or --disable-aa was given.
7621 if test "${enable_aa+set}" = set; then
7622 enableval="$enable_aa"
7626 if test "x${enable_aa}" = "xyes"
7628 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7629 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7630 echo "configure:7631: checking for aalib.h" >&5
7631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7642 if test -z "$ac_err"; then
7644 eval "ac_cv_header_$ac_safe=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_header_$ac_safe=no"
7654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7658 echo "$ac_t""no" 1>&6
7662 if test "x${have_aa}" = "xtrue"
7664 PLUGINS="${PLUGINS} aa"
7665 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7670 # Check whether --with- or --without- was given.
7671 if test "${with_+set}" = set; then
7677 # Check whether --enable-dsp or --disable-dsp was given.
7678 if test "${enable_dsp+set}" = set; then
7679 enableval="$enable_dsp"
7684 if test "x${enable_dsp}" != "xno" &&
7685 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7687 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_hdr" >&5
7692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7701 { (eval echo configure:7702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7703 if test -z "$ac_err"; then
7705 eval "ac_cv_header_$ac_safe=yes"
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7711 eval "ac_cv_header_$ac_safe=no"
7715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7716 echo "$ac_t""yes" 1>&6
7717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7718 cat >> confdefs.h <<EOF
7719 #define $ac_tr_hdr 1
7722 PLUGINS="${PLUGINS} dsp"
7723 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7724 echo "configure:7725: checking for main in -lossaudio" >&5
7725 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_save_LIBS="$LIBS"
7730 LIBS="-lossaudio $LIBS"
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 eval "ac_cv_lib_$ac_lib_var=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 eval "ac_cv_lib_$ac_lib_var=no"
7749 LIBS="$ac_save_LIBS"
7752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7753 echo "$ac_t""yes" 1>&6
7754 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7756 echo "$ac_t""no" 1>&6
7761 echo "$ac_t""no" 1>&6
7767 # Check whether --enable-esd or --disable-esd was given.
7768 if test "${enable_esd+set}" = set; then
7769 enableval="$enable_esd"
7770 if test "x${enable_esd}" = "xyes"
7772 # Extract the first word of "esd-config", so it can be a program name with args.
7773 set dummy esd-config; ac_word=$2
7774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_word" >&5
7776 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 case "$ESD_CONFIG" in
7781 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7784 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7789 for ac_dir in $ac_dummy; do
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f $ac_dir/$ac_word; then
7792 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7797 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7801 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7802 if test -n "$ESD_CONFIG"; then
7803 echo "$ac_t""$ESD_CONFIG" 1>&6
7805 echo "$ac_t""no" 1>&6
7808 if test "x${ESD_CONFIG}" != "xno"
7810 PLUGINS="${PLUGINS} esd"
7811 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7812 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7818 # Check whether --enable-arts or --disable-arts was given.
7819 if test "${enable_arts+set}" = set; then
7820 enableval="$enable_arts"
7821 if test "x${enable_arts}" = "xyes"
7823 # Extract the first word of "artsc-config", so it can be a program name with args.
7824 set dummy artsc-config; ac_word=$2
7825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7826 echo "configure:7827: checking for $ac_word" >&5
7827 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7828 echo $ac_n "(cached) $ac_c" 1>&6
7830 case "$ARTS_CONFIG" in
7832 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7835 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7840 for ac_dir in $ac_dummy; do
7841 test -z "$ac_dir" && ac_dir=.
7842 if test -f $ac_dir/$ac_word; then
7843 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7848 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7852 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7853 if test -n "$ARTS_CONFIG"; then
7854 echo "$ac_t""$ARTS_CONFIG" 1>&6
7856 echo "$ac_t""no" 1>&6
7859 if test "x${ARTS_CONFIG}" != "xno"
7861 PLUGINS="${PLUGINS} arts"
7862 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7863 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7869 # Check whether --enable-alsa or --disable-alsa was given.
7870 if test "${enable_alsa+set}" = set; then
7871 enableval="$enable_alsa"
7872 if test "x${enable_alsa}" = "xyes"
7874 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7875 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7876 echo "configure:7877: checking for alsa/asoundlib.h" >&5
7877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7880 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 #include <alsa/asoundlib.h>
7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7888 if test -z "$ac_err"; then
7890 eval "ac_cv_header_$ac_safe=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_header_$ac_safe=no"
7900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7901 echo "$ac_t""yes" 1>&6
7902 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7903 echo "configure:7904: checking for main in -lasound" >&5
7904 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 ac_save_LIBS="$LIBS"
7909 LIBS="-lasound $LIBS"
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7920 eval "ac_cv_lib_$ac_lib_var=yes"
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7925 eval "ac_cv_lib_$ac_lib_var=no"
7928 LIBS="$ac_save_LIBS"
7931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7935 echo "$ac_t""no" 1>&6
7940 echo "$ac_t""no" 1>&6
7944 if test "x${have_alsa}" = "xtrue"
7946 PLUGINS="${PLUGINS} alsa"
7947 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7953 # Check whether --enable-waveout or --disable-waveout was given.
7954 if test "${enable_waveout+set}" = set; then
7955 enableval="$enable_waveout"
7959 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
7961 PLUGINS="${PLUGINS} waveout"
7962 waveout_LDFLAGS="-lwinmm"
7966 # Check whether --with- or --without- was given.
7967 if test "${with_+set}" = set; then
7973 # Check whether --enable-gtk or --disable-gtk was given.
7974 if test "${enable_gtk+set}" = set; then
7975 enableval="$enable_gtk"
7979 if test "x${enable_gtk}" != "xno"
7982 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7983 if test "${with_gtk_config_path+set}" = set; then
7984 withval="$with_gtk_config_path"
7985 if test "x${with_gtk_config_path}" != "xno"
7987 GTK_PATH="${with_gtk_config_path}:${PATH}"
7991 # look for gtk-config
7992 # Extract the first word of "gtk12-config", so it can be a program name with args.
7993 set dummy gtk12-config; ac_word=$2
7994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7995 echo "configure:7996: checking for $ac_word" >&5
7996 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
7999 case "$GTK12_CONFIG" in
8001 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8004 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8008 ac_dummy="${GTK_PATH}"
8009 for ac_dir in $ac_dummy; do
8010 test -z "$ac_dir" && ac_dir=.
8011 if test -f $ac_dir/$ac_word; then
8012 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8017 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8021 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8022 if test -n "$GTK12_CONFIG"; then
8023 echo "$ac_t""$GTK12_CONFIG" 1>&6
8025 echo "$ac_t""no" 1>&6
8028 GTK_CONFIG=${GTK12_CONFIG}
8029 if test "x${GTK_CONFIG}" = "xno"
8031 # Extract the first word of "gtk-config", so it can be a program name with args.
8032 set dummy gtk-config; ac_word=$2
8033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_word" >&5
8035 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 case "$GTK_CONFIG" in
8040 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8043 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8047 ac_dummy="${GTK_PATH}"
8048 for ac_dir in $ac_dummy; do
8049 test -z "$ac_dir" && ac_dir=.
8050 if test -f $ac_dir/$ac_word; then
8051 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8056 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8060 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8061 if test -n "$GTK_CONFIG"; then
8062 echo "$ac_t""$GTK_CONFIG" 1>&6
8064 echo "$ac_t""no" 1>&6
8068 if test "x${GTK_CONFIG}" != "xno"
8070 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8072 { 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; }
8074 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8075 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8076 # now look for the gtk.h header
8077 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8078 ac_cv_gtk_headers=yes
8079 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8083 echo "configure:8084: checking for $ac_hdr" >&5
8084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8085 echo $ac_n "(cached) $ac_c" 1>&6
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8093 { (eval echo configure:8094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8095 if test -z "$ac_err"; then
8097 eval "ac_cv_header_$ac_safe=yes"
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 eval "ac_cv_header_$ac_safe=no"
8107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8108 echo "$ac_t""yes" 1>&6
8109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8110 cat >> confdefs.h <<EOF
8111 #define $ac_tr_hdr 1
8115 echo "$ac_t""no" 1>&6
8116 ac_cv_gtk_headers=no
8117 echo "Cannot find gtk development headers."
8122 if test "x${ac_cv_gtk_headers}" = "xyes"
8124 PLUGINS="${PLUGINS} gtk"
8125 ALIASES="${ALIASES} gvlc"
8127 CPPFLAGS="${save_CPPFLAGS}"
8131 # Check whether --enable-gnome or --disable-gnome was given.
8132 if test "${enable_gnome+set}" = set; then
8133 enableval="$enable_gnome"
8134 if test "x${enable_gnome}" = "xyes"; then
8135 # look for gnome-config
8136 # Extract the first word of "gnome-config", so it can be a program name with args.
8137 set dummy gnome-config; ac_word=$2
8138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8139 echo "configure:8140: checking for $ac_word" >&5
8140 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 case "$GNOME_CONFIG" in
8145 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8148 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8153 for ac_dir in $ac_dummy; do
8154 test -z "$ac_dir" && ac_dir=.
8155 if test -f $ac_dir/$ac_word; then
8156 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8161 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8165 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8166 if test -n "$GNOME_CONFIG"; then
8167 echo "$ac_t""$GNOME_CONFIG" 1>&6
8169 echo "$ac_t""no" 1>&6
8172 if test -x ${GNOME_CONFIG}
8174 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8175 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8177 # now look for the gnome.h header
8178 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8179 for ac_hdr in gnome.h
8181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8183 echo "configure:8184: checking for $ac_hdr" >&5
8184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193 { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8195 if test -z "$ac_err"; then
8197 eval "ac_cv_header_$ac_safe=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8203 eval "ac_cv_header_$ac_safe=no"
8207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8208 echo "$ac_t""yes" 1>&6
8209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8210 cat >> confdefs.h <<EOF
8211 #define $ac_tr_hdr 1
8214 PLUGINS="${PLUGINS} gnome"
8215 ALIASES="${ALIASES} gnome-vlc"
8218 echo "$ac_t""no" 1>&6
8219 { echo "configure: error: Can't find gnome headers. Please install the gnome
8220 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8225 CPPFLAGS="${save_CPPFLAGS}"
8230 # Check whether --enable-qt or --disable-qt was given.
8231 if test "${enable_qt+set}" = set; then
8232 enableval="$enable_qt"
8233 if test "x${enable_qt}" = "xyes"; then
8234 PLUGINS="${PLUGINS} qt"
8235 ALIASES="${ALIASES} qvlc"
8236 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8237 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8238 if test -x ${QTDIR}/bin/moc
8240 MOC=${QTDIR}/bin/moc
8248 # Check whether --enable-kde or --disable-kde was given.
8249 if test "${enable_kde+set}" = set; then
8250 enableval="$enable_kde"
8251 if test "x${enable_kde}" = "xyes"; then
8252 PLUGINS="${PLUGINS} kde"
8253 ALIASES="${ALIASES} kvlc"
8254 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8255 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8256 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8257 if test -x ${QTDIR}/bin/moc
8259 MOC=${QTDIR}/bin/moc
8267 # Check whether --enable-macosx or --disable-macosx was given.
8268 if test "${enable_macosx+set}" = set; then
8269 enableval="$enable_macosx"
8270 if test "x${enable_macosx}" = "xyes"
8272 BUILTINS="${BUILTINS} macosx"
8273 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8276 for ac_hdr in Cocoa/Cocoa.h
8278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8280 echo "configure:8281: checking for $ac_hdr" >&5
8281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8290 { (eval echo configure:8291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8292 if test -z "$ac_err"; then
8294 eval "ac_cv_header_$ac_safe=yes"
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8300 eval "ac_cv_header_$ac_safe=no"
8304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8305 echo "$ac_t""yes" 1>&6
8306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8307 cat >> confdefs.h <<EOF
8308 #define $ac_tr_hdr 1
8310 BUILTINS="${BUILTINS} macosx"
8311 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8314 echo "$ac_t""no" 1>&6
8321 # Check whether --enable-qnx or --disable-qnx was given.
8322 if test "${enable_qnx+set}" = set; then
8323 enableval="$enable_qnx"
8327 if test "x${enable_qnx}" != "xno"
8331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_hdr" >&5
8334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8343 { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8345 if test -z "$ac_err"; then
8347 eval "ac_cv_header_$ac_safe=yes"
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8353 eval "ac_cv_header_$ac_safe=no"
8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8360 cat >> confdefs.h <<EOF
8361 #define $ac_tr_hdr 1
8364 PLUGINS="${PLUGINS} qnx"
8365 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8368 echo "$ac_t""no" 1>&6
8374 # Check whether --enable-intfwin or --disable-intfwin was given.
8375 if test "${enable_intfwin+set}" = set; then
8376 enableval="$enable_intfwin"
8377 if test "x${enable_intfwin}" != "xno"
8379 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8380 if test "${with_bcbuilder+set}" = set; then
8381 withval="$with_bcbuilder"
8385 if test "x${with_bcbuilder}" != "x"
8387 BCBUILDER="${with_bcbuilder}"
8389 PLUGINS="${PLUGINS} intfwin"
8394 # Check whether --enable-ncurses or --disable-ncurses was given.
8395 if test "${enable_ncurses+set}" = set; then
8396 enableval="$enable_ncurses"
8397 if test "x${enable_ncurses}" = "xyes"; then
8398 PLUGINS="${PLUGINS} ncurses"
8399 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8404 # Check whether --enable-xosd or --disable-xosd was given.
8405 if test "${enable_xosd+set}" = set; then
8406 enableval="$enable_xosd"
8410 if test "x${enable_xosd}" = "xyes"
8412 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8413 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8414 echo "configure:8415: checking for xosd.h" >&5
8415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8424 { (eval echo configure:8425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8426 if test -z "$ac_err"; then
8428 eval "ac_cv_header_$ac_safe=yes"
8431 echo "configure: failed program was:" >&5
8432 cat conftest.$ac_ext >&5
8434 eval "ac_cv_header_$ac_safe=no"
8438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8439 echo "$ac_t""yes" 1>&6
8442 echo "$ac_t""no" 1>&6
8446 if test "x${have_xosd}" = "xtrue"
8448 PLUGINS="${PLUGINS} xosd"
8449 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8453 # Check whether --enable-lirc or --disable-lirc was given.
8454 if test "${enable_lirc+set}" = set; then
8455 enableval="$enable_lirc"
8459 if test "x${enable_lirc}" = "xyes"
8461 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8462 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8463 echo "configure:8464: checking for lirc/lirc_client.h" >&5
8464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8469 "configure"
8469 #include "confdefs.h"
8470 #include <lirc/lirc_client.h>
8472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8473 { (eval echo configure:8474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8475 if test -z "$ac_err"; then
8477 eval "ac_cv_header_$ac_safe=yes"
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8483 eval "ac_cv_header_$ac_safe=no"
8487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8488 echo "$ac_t""yes" 1>&6
8489 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8490 echo "configure:8491: checking for lirc_init in -llirc_client" >&5
8491 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 ac_save_LIBS="$LIBS"
8496 LIBS="-llirc_client $LIBS"
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511 eval "ac_cv_lib_$ac_lib_var=yes"
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 eval "ac_cv_lib_$ac_lib_var=no"
8519 LIBS="$ac_save_LIBS"
8522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8523 echo "$ac_t""yes" 1>&6
8526 echo "$ac_t""no" 1>&6
8531 echo "$ac_t""no" 1>&6
8535 if test "x${have_lirc}" = "xtrue"
8537 PLUGINS="${PLUGINS} lirc"
8538 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8542 # Check whether --with- or --without- was given.
8543 if test "${with_+set}" = set; then
8549 # Check whether --with-words or --without-words was given.
8550 if test "${with_words+set}" = set; then
8551 withval="$with_words"
8555 case "x${with_words}" in
8557 ac_cv_c_bigendian=yes
8560 ac_cv_c_bigendian=no
8563 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8564 echo "configure:8565: checking whether the byte order is big-endian" >&5
8565 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8568 ac_cv_c_bigendian="unknown"
8569 cat >conftest.c <<EOF
8570 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8571 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8572 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8573 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8574 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8575 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8576 int main(void) { _a(); _e(); return 0; }
8579 if test -f conftest.c
8581 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8582 && test -f conftest.o
8584 if test "`strings conftest.o | grep BIGenDianSyS`"
8586 ac_cv_c_bigendian="yes"
8588 if test "`strings conftest.o | grep LiTTleEnDian`"
8590 ac_cv_c_bigendian="no"
8597 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8598 if test "x${ac_cv_c_bigendian}" = "xunknown"
8600 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8604 if test "${ac_cv_c_bigendian}" = "yes"
8606 cat >> confdefs.h <<\EOF
8607 #define WORDS_BIGENDIAN 1
8615 # Check whether --enable-gprof or --disable-gprof was given.
8616 if test "${enable_gprof+set}" = set; then
8617 enableval="$enable_gprof"
8618 if test "x${enable_gprof}" = "xyes"
8628 # Check whether --enable-cprof or --disable-cprof was given.
8629 if test "${enable_cprof+set}" = set; then
8630 enableval="$enable_cprof"
8631 if test "x${enable_cprof}" = "xyes"
8633 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
8641 # Check whether --enable-pth or --disable-pth was given.
8642 if test "${enable_pth+set}" = set; then
8643 enableval="$enable_pth"
8644 if test "x${enable_pth}" = "xyes"; then
8645 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8646 echo "configure:8647: checking for pth_init in -lpth" >&5
8647 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 ac_save_LIBS="$LIBS"
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667 eval "ac_cv_lib_$ac_lib_var=yes"
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 eval "ac_cv_lib_$ac_lib_var=no"
8675 LIBS="$ac_save_LIBS"
8678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8679 echo "$ac_t""yes" 1>&6
8680 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8682 cat >> confdefs.h <<EOF
8683 #define $ac_tr_lib 1
8689 echo "$ac_t""no" 1>&6
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8698 egrep "pth_init" >/dev/null 2>&1; then
8701 cat >> confdefs.h <<\EOF
8702 #define PTH_INIT_IN_PTH_H 1
8714 # Check whether --enable-st or --disable-st was given.
8715 if test "${enable_st+set}" = set; then
8716 enableval="$enable_st"
8717 if test "x${enable_st}" = "xyes"; then
8718 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8719 echo "configure:8720: checking for st_init in -lst" >&5
8720 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 ac_save_LIBS="$LIBS"
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8738 if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8740 eval "ac_cv_lib_$ac_lib_var=yes"
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 eval "ac_cv_lib_$ac_lib_var=no"
8748 LIBS="$ac_save_LIBS"
8751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8752 echo "$ac_t""yes" 1>&6
8753 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8755 cat >> confdefs.h <<EOF
8756 #define $ac_tr_lib 1
8762 echo "$ac_t""no" 1>&6
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8771 egrep "st_init" >/dev/null 2>&1; then
8774 cat >> confdefs.h <<\EOF
8775 #define ST_INIT_IN_ST_H 1
8787 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8788 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8791 # Check whether --enable-mozilla or --disable-mozilla was given.
8792 if test "${enable_mozilla+set}" = set; then
8793 enableval="$enable_mozilla"
8797 if test "x${enable_mozilla}" = "xyes"
8799 # Extract the first word of "mozilla-config", so it can be a program name with args.
8800 set dummy mozilla-config; ac_word=$2
8801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8802 echo "configure:8803: checking for $ac_word" >&5
8803 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 case "$MOZILLA_CONFIG" in
8808 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
8811 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
8814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8816 for ac_dir in $ac_dummy; do
8817 test -z "$ac_dir" && ac_dir=.
8818 if test -f $ac_dir/$ac_word; then
8819 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
8824 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
8828 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
8829 if test -n "$MOZILLA_CONFIG"; then
8830 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
8832 echo "$ac_t""no" 1>&6
8835 if test "x${MOZILLA_CONFIG}" != "xno"
8838 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
8839 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `"
8843 # Check whether --enable-plugins or --disable-plugins was given.
8844 if test "${enable_plugins+set}" = set; then
8845 enableval="$enable_plugins"
8846 if test "x${enable_plugins}" = "xno"
8848 BUILTINS="${BUILTINS} ${PLUGINS}"
8854 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
8856 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8858 BUILTINS="${BUILTINS} ${PLUGINS}"
8862 cat >> confdefs.h <<EOF
8863 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
8866 cat >> confdefs.h <<EOF
8867 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
8870 cat >> confdefs.h <<EOF
8871 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
8875 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8876 cat >> confdefs.h <<EOF
8877 #define MODULE_SUFFIX "__MODULE_${VLC_SYMBOL}"
8880 cat >> confdefs.h <<EOF
8881 #define MODULE_SYMBOL ${VLC_SYMBOL}
8885 DATA_PATH="${ac_tool_prefix}/share/videolan"
8887 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8890 CPPFLAGS="${save_CPPFLAGS}"
8891 CFLAGS="${save_CFLAGS}"
8892 LDFLAGS="${save_LDFLAGS}"
8996 cat > confcache <<\EOF
8997 # This file is a shell script that caches the results of configure
8998 # tests run on this system so they can be shared between configure
8999 # scripts and configure runs. It is not useful on other systems.
9000 # If it contains results you don't want to keep, you may remove or edit it.
9002 # By default, configure uses ./config.cache as the cache file,
9003 # creating it if it does not exist already. You can give configure
9004 # the --cache-file=FILE option to use a different cache file; that is
9005 # what configure does when it calls configure scripts in
9006 # subdirectories, so they share the cache.
9007 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9008 # config.status only pays attention to the cache file if you give it the
9009 # --recheck option to rerun configure.
9012 # The following way of writing the cache mishandles newlines in values,
9013 # but we know of no workaround that is simple, portable, and efficient.
9014 # So, don't put newlines in cache variables' values.
9015 # Ultrix sh set writes to stderr and can't be redirected directly,
9016 # and sets the high bit in the cache file unless we assign to the vars.
9018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9020 # `set' does not quote correctly, so add quotes (double-quote substitution
9021 # turns \\\\ into \\, and sed turns \\ into \).
9023 -e "s/'/'\\\\''/g" \
9024 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9027 # `set' quotes correctly as required by POSIX, so do not add quotes.
9028 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9031 if cmp -s $cache_file confcache; then
9034 if test -w $cache_file; then
9035 echo "updating cache $cache_file"
9036 cat confcache > $cache_file
9038 echo "not updating unwritable cache $cache_file"
9043 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9046 # Let make expand exec_prefix.
9047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9049 # Any assignment to VPATH causes Sun make to only execute
9050 # the first set of double-colon rules, so remove it if not needed.
9051 # If there is a colon in the path, we need to keep it.
9052 if test "x$srcdir" = x.; then
9053 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9056 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9058 DEFS=-DHAVE_CONFIG_H
9060 # Without the "./", some shells look in PATH for config.status.
9061 : ${CONFIG_STATUS=./config.status}
9063 echo creating $CONFIG_STATUS
9064 rm -f $CONFIG_STATUS
9065 cat > $CONFIG_STATUS <<EOF
9067 # Generated automatically by configure.
9068 # Run this file to recreate the current configuration.
9069 # This directory was configured as follows,
9070 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9072 # $0 $ac_configure_args
9074 # Compiler output produced by configure, useful for debugging
9075 # configure, is in ./config.log if it exists.
9077 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9080 case "\$ac_option" in
9081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9082 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9083 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9084 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9085 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9087 -help | --help | --hel | --he | --h)
9088 echo "\$ac_cs_usage"; exit 0 ;;
9089 *) echo "\$ac_cs_usage"; exit 1 ;;
9093 ac_given_srcdir=$srcdir
9094 ac_given_INSTALL="$INSTALL"
9096 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9098 cat >> $CONFIG_STATUS <<EOF
9100 # Protect against being on the right side of a sed subst in config.status.
9101 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9102 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9106 s%@CFLAGS@%$CFLAGS%g
9107 s%@CPPFLAGS@%$CPPFLAGS%g
9108 s%@CXXFLAGS@%$CXXFLAGS%g
9109 s%@FFLAGS@%$FFLAGS%g
9111 s%@LDFLAGS@%$LDFLAGS%g
9113 s%@exec_prefix@%$exec_prefix%g
9114 s%@prefix@%$prefix%g
9115 s%@program_transform_name@%$program_transform_name%g
9116 s%@bindir@%$bindir%g
9117 s%@sbindir@%$sbindir%g
9118 s%@libexecdir@%$libexecdir%g
9119 s%@datadir@%$datadir%g
9120 s%@sysconfdir@%$sysconfdir%g
9121 s%@sharedstatedir@%$sharedstatedir%g
9122 s%@localstatedir@%$localstatedir%g
9123 s%@libdir@%$libdir%g
9124 s%@includedir@%$includedir%g
9125 s%@oldincludedir@%$oldincludedir%g
9126 s%@infodir@%$infodir%g
9127 s%@mandir@%$mandir%g
9129 s%@host_alias@%$host_alias%g
9130 s%@host_cpu@%$host_cpu%g
9131 s%@host_vendor@%$host_vendor%g
9132 s%@host_os@%$host_os%g
9133 s%@target@%$target%g
9134 s%@target_alias@%$target_alias%g
9135 s%@target_cpu@%$target_cpu%g
9136 s%@target_vendor@%$target_vendor%g
9137 s%@target_os@%$target_os%g
9139 s%@build_alias@%$build_alias%g
9140 s%@build_cpu@%$build_cpu%g
9141 s%@build_vendor@%$build_vendor%g
9142 s%@build_os@%$build_os%g
9143 s%@SET_MAKE@%$SET_MAKE%g
9146 s%@RANLIB@%$RANLIB%g
9149 s%@ALLOCA@%$ALLOCA%g
9150 s%@GLIBC21@%$GLIBC21%g
9151 s%@LIBICONV@%$LIBICONV%g
9152 s%@USE_NLS@%$USE_NLS%g
9153 s%@MSGFMT@%$MSGFMT%g
9154 s%@GMSGFMT@%$GMSGFMT%g
9155 s%@XGETTEXT@%$XGETTEXT%g
9156 s%@INTLBISON@%$INTLBISON%g
9157 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9158 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9159 s%@CATALOGS@%$CATALOGS%g
9160 s%@CATOBJEXT@%$CATOBJEXT%g
9161 s%@GMOFILES@%$GMOFILES%g
9162 s%@INTLLIBS@%$INTLLIBS%g
9163 s%@INTLOBJS@%$INTLOBJS%g
9164 s%@POFILES@%$POFILES%g
9166 s%@DATADIRNAME@%$DATADIRNAME%g
9167 s%@INSTOBJEXT@%$INSTOBJEXT%g
9168 s%@GENCAT@%$GENCAT%g
9169 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9170 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9171 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9172 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9173 s%@INSTALL_DATA@%$INSTALL_DATA%g
9174 s%@WINDRES@%$WINDRES%g
9175 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9176 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9177 s%@SDL_CONFIG@%$SDL_CONFIG%g
9178 s%@ESD_CONFIG@%$ESD_CONFIG%g
9179 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9180 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9181 s%@GTK_CONFIG@%$GTK_CONFIG%g
9182 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9183 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9184 s%@DATA_PATH@%$DATA_PATH%g
9185 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9188 s%@PLUGINS@%$PLUGINS%g
9189 s%@BUILTINS@%$BUILTINS%g
9190 s%@ALIASES@%$ALIASES%g
9195 s%@OPTIMS@%$OPTIMS%g
9196 s%@TUNING@%$TUNING%g
9197 s%@RELEASE@%$RELEASE%g
9199 s%@BCBUILDER@%$BCBUILDER%g
9200 s%@PACKAGE@%$PACKAGE%g
9201 s%@VERSION@%$VERSION%g
9202 s%@NEED_GETOPT@%$NEED_GETOPT%g
9203 s%@MOZILLA@%$MOZILLA%g
9204 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9205 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9206 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9207 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9208 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9209 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9210 s%@a52_CFLAGS@%$a52_CFLAGS%g
9211 s%@arts_CFLAGS@%$arts_CFLAGS%g
9212 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9213 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9214 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9215 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9216 s%@directx_CFLAGS@%$directx_CFLAGS%g
9217 s%@esd_CFLAGS@%$esd_CFLAGS%g
9218 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9219 s%@glide_CFLAGS@%$glide_CFLAGS%g
9220 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9221 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9222 s%@kde_CFLAGS@%$kde_CFLAGS%g
9223 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9224 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9225 s%@mad_CFLAGS@%$mad_CFLAGS%g
9226 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9227 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9228 s%@qt_CFLAGS@%$qt_CFLAGS%g
9229 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9230 s%@x11_CFLAGS@%$x11_CFLAGS%g
9231 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9232 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9233 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9234 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9235 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9236 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9237 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9238 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9239 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9240 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9241 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9242 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9243 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9244 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9245 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9246 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9247 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9248 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9249 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9250 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9251 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9252 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9253 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9254 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9255 s%@http_LDFLAGS@%$http_LDFLAGS%g
9256 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9257 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9258 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9259 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9260 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9261 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9262 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9263 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9264 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9265 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9266 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9267 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9268 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9269 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9270 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9271 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9272 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9273 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9274 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9275 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9276 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9277 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9278 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9283 cat >> $CONFIG_STATUS <<\EOF
9285 # Split the substitutions into bite-sized pieces for seds with
9286 # small command number limits, like on Digital OSF/1 and HP-UX.
9287 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9288 ac_file=1 # Number of current file.
9289 ac_beg=1 # First line for current file.
9290 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9293 while $ac_more_lines; do
9294 if test $ac_beg -gt 1; then
9295 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9297 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9299 if test ! -s conftest.s$ac_file; then
9301 rm -f conftest.s$ac_file
9303 if test -z "$ac_sed_cmds"; then
9304 ac_sed_cmds="sed -f conftest.s$ac_file"
9306 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9308 ac_file=`expr $ac_file + 1`
9310 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9313 if test -z "$ac_sed_cmds"; then
9318 cat >> $CONFIG_STATUS <<EOF
9320 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9322 cat >> $CONFIG_STATUS <<\EOF
9323 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9326 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9327 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9328 *) ac_file_in="${ac_file}.in" ;;
9331 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9333 # Remove last slash and all that follows it. Not all systems have dirname.
9334 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9335 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9336 # The file is in a subdirectory.
9337 test ! -d "$ac_dir" && mkdir "$ac_dir"
9338 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9339 # A "../" for each directory in $ac_dir_suffix.
9340 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9342 ac_dir_suffix= ac_dots=
9345 case "$ac_given_srcdir" in
9347 if test -z "$ac_dots"; then top_srcdir=.
9348 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9349 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9351 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9352 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9355 case "$ac_given_INSTALL" in
9356 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9357 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9360 echo creating "$ac_file"
9362 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9364 *Makefile*) ac_comsub="1i\\
9365 # $configure_input" ;;
9369 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9371 s%@configure_input@%$configure_input%g
9372 s%@srcdir@%$srcdir%g
9373 s%@top_srcdir@%$top_srcdir%g
9374 s%@INSTALL@%$INSTALL%g
9375 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9379 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9380 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9382 # ac_d sets the value in "#define NAME VALUE" lines.
9383 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9384 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9387 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9388 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9389 ac_uB='\([ ]\)%\1#\2define\3'
9392 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9393 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9394 ac_eB='$%\1#\2define\3'
9398 if test "${CONFIG_HEADERS+set}" != set; then
9400 cat >> $CONFIG_STATUS <<EOF
9401 CONFIG_HEADERS="include/defs.h"
9403 cat >> $CONFIG_STATUS <<\EOF
9405 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9406 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9408 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9409 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9410 *) ac_file_in="${ac_file}.in" ;;
9413 echo creating $ac_file
9415 rm -f conftest.frag conftest.in conftest.out
9416 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9417 cat $ac_file_inputs > conftest.in
9421 # Transform confdefs.h into a sed script conftest.vals that substitutes
9422 # the proper values into config.h.in to produce config.h. And first:
9423 # Protect against being on the right side of a sed subst in config.status.
9424 # Protect against being in an unquoted here document in config.status.
9426 cat > conftest.hdr <<\EOF
9429 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9433 sed -n -f conftest.hdr confdefs.h > conftest.vals
9436 # This sed command replaces #undef with comments. This is necessary, for
9437 # example, in the case of _POSIX_SOURCE, which is predefined and required
9438 # on some systems where configure will not decide to define it.
9439 cat >> conftest.vals <<\EOF
9440 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9443 # Break up conftest.vals because some shells have a limit on
9444 # the size of here documents, and old seds have small limits too.
9449 ac_lines=`grep -c . conftest.vals`
9450 # grep -c gives empty output for an empty file on some AIX systems.
9451 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9452 # Write a limited-size here document to conftest.frag.
9453 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9454 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9456 sed -f conftest.frag conftest.in > conftest.out
9458 mv conftest.out conftest.in
9460 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9462 mv conftest.tail conftest.vals
9466 cat >> $CONFIG_STATUS <<\EOF
9467 rm -f conftest.frag conftest.h
9468 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9469 cat conftest.in >> conftest.h
9471 if cmp -s $ac_file conftest.h 2>/dev/null; then
9472 echo "$ac_file is unchanged"
9475 # Remove last slash and all that follows it. Not all systems have dirname.
9476 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9478 # The file is in a subdirectory.
9479 test ! -d "$ac_dir" && mkdir "$ac_dir"
9482 mv conftest.h $ac_file
9487 cat >> $CONFIG_STATUS <<EOF
9491 cat >> $CONFIG_STATUS <<\EOF
9492 for ac_file in $CONFIG_FILES; do
9493 # Support "outfile[:infile[:infile...]]"
9495 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9497 # PO directories have a Makefile.in generated from Makefile.in.in.
9498 case "$ac_file" in */Makefile.in)
9499 # Adjust a relative srcdir.
9500 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9501 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9502 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9503 # In autoconf-2.13 it is called $ac_given_srcdir.
9504 # In autoconf-2.50 it is called $srcdir.
9505 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9506 case "$ac_given_srcdir" in
9507 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9508 /*) top_srcdir="$ac_given_srcdir" ;;
9509 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9511 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9512 rm -f "$ac_dir/POTFILES"
9513 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9514 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9515 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9516 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9524 chmod +x $CONFIG_STATUS
9525 rm -fr confdefs* $ac_clean_files
9526 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9531 --------------------
9532 vlc version : ${VERSION}
9534 architecture : ${ARCH}
9535 optimizations : ${OPTIMS}
9537 debug mode : ${DEBUG}
9538 release : ${RELEASE}
9539 profiling : ${PROFILING}
9540 need builtin getopt : ${NEED_GETOPT}
9541 built-in modules :${BUILTINS}
9542 plug-in modules :${PLUGINS}
9543 mozilla plugin : ${MOZILLA}
9544 vlc aliases :${ALIASES}
9546 You may now tune Makefile.opts at your convenience, for instance to choose
9547 which modules get compiled as plugins.
9549 To build vlc and its plugins, type \`${VLC_MAKE}'.