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 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
48 --enable-mad libmad module (default disabled)"
50 --with-mad=PATH path to libmad"
52 --disable-a52 AC3 support with liba52 (default enabled)"
56 --disable-x11 X11 support (default enabled)"
58 --disable-xvideo XVideo support (default enabled)"
60 --disable-sdl SDL support (default enabled)"
62 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
64 --enable-directx Win32 DirectX support (default enabled on Win32)"
66 --with-directx=PATH Win32 DirectX headers and libraries"
68 --enable-fb Linux framebuffer support (default enabled on Linux)"
70 --enable-mga Linux kernel Matrox support (default disabled)"
72 --enable-ggi GGI support (default disabled)"
74 --with-ggi=PATH path to libggi"
76 --enable-glide Glide (3dfx) support (default disabled)"
78 --with-glide=PATH path to libglide"
80 --enable-aa aalib output (default disabled)"
84 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
86 --enable-esd Esound library support (default disabled)"
88 --enable-arts aRts sound server (default disabled)"
90 --enable-alsa ALSA sound support for Linux (default disabled)"
92 --enable-waveout Win32 waveOut module (default enabled on Win32)"
96 --disable-gtk Gtk+ support (default enabled)"
98 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
100 --enable-gnome Gnome interface support (default disabled)"
102 --enable-qt Qt interface support (default disabled)"
104 --enable-kde KDE interface support (default disabled)"
106 --enable-macosx MacOS X support (default enabled on MacOS X)"
108 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
110 --enable-win32 Win32 interface support (default disabled)"
112 --enable-ncurses ncurses interface support (default disabled)"
114 --enable-lirc lirc support (default disabled)"
118 --with-words=endianness set endianness (big or little)"
120 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
122 --enable-gprof gprof profiling (default disabled)"
124 --enable-cprof cprof profiling (default disabled)"
126 --enable-pth GNU Pth support (default disabled)"
128 --enable-st State Threads (default disabled)"
130 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
132 # Initialize some variables set by options.
133 # The variables have the same names as the options, with
134 # dashes changed to underlines.
136 cache_file=./config.cache
145 program_transform_name=s,x,x,
153 bindir='${exec_prefix}/bin'
154 sbindir='${exec_prefix}/sbin'
155 libexecdir='${exec_prefix}/libexec'
156 datadir='${prefix}/share'
157 sysconfdir='${prefix}/etc'
158 sharedstatedir='${prefix}/com'
159 localstatedir='${prefix}/var'
160 libdir='${exec_prefix}/lib'
161 includedir='${prefix}/include'
162 oldincludedir='/usr/include'
163 infodir='${prefix}/info'
164 mandir='${prefix}/man'
166 # Initialize some other variables.
169 SHELL=${CONFIG_SHELL-/bin/sh}
170 # Maximum number of lines to put in a shell here document.
177 # If the previous option needs an argument, assign it.
178 if test -n "$ac_prev"; then
179 eval "$ac_prev=\$ac_option"
185 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
189 # Accept the important Cygnus configure options, so we can diagnose typos.
193 -bindir | --bindir | --bindi | --bind | --bin | --bi)
195 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
196 bindir="$ac_optarg" ;;
198 -build | --build | --buil | --bui | --bu)
200 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
201 build="$ac_optarg" ;;
203 -cache-file | --cache-file | --cache-fil | --cache-fi \
204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
205 ac_prev=cache_file ;;
206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
208 cache_file="$ac_optarg" ;;
210 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
212 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
214 datadir="$ac_optarg" ;;
216 -disable-* | --disable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 eval "enable_${ac_feature}=no" ;;
225 -enable-* | --enable-*)
226 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
236 eval "enable_${ac_feature}='$ac_optarg'" ;;
238 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
239 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
240 | --exec | --exe | --ex)
241 ac_prev=exec_prefix ;;
242 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
243 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
244 | --exec=* | --exe=* | --ex=*)
245 exec_prefix="$ac_optarg" ;;
247 -gas | --gas | --ga | --g)
248 # Obsolete; use --with-gas.
251 -help | --help | --hel | --he)
252 # Omit some internal or obsolete options to make the list less imposing.
253 # This message is too long to be a string in the A/UX 3.1 sh.
255 Usage: configure [options] [host]
256 Options: [defaults in brackets after descriptions]
258 --cache-file=FILE cache test results in FILE
259 --help print this message
260 --no-create do not create output files
261 --quiet, --silent do not print \`checking...' messages
262 --version print the version of autoconf that created configure
263 Directory and file names:
264 --prefix=PREFIX install architecture-independent files in PREFIX
266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
268 --bindir=DIR user executables in DIR [EPREFIX/bin]
269 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
270 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
271 --datadir=DIR read-only architecture-independent data in DIR
273 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
274 --sharedstatedir=DIR modifiable architecture-independent data in DIR
276 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
277 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
278 --includedir=DIR C header files in DIR [PREFIX/include]
279 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
280 --infodir=DIR info documentation in DIR [PREFIX/info]
281 --mandir=DIR man documentation in DIR [PREFIX/man]
282 --srcdir=DIR find the sources in DIR [configure dir or ..]
283 --program-prefix=PREFIX prepend PREFIX to installed program names
284 --program-suffix=SUFFIX append SUFFIX to installed program names
285 --program-transform-name=PROGRAM
286 run sed PROGRAM on installed program names
290 --build=BUILD configure for building on BUILD [BUILD=HOST]
291 --host=HOST configure for HOST [guessed]
292 --target=TARGET configure for TARGET [TARGET=HOST]
293 Features and packages:
294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
298 --x-includes=DIR X include files are in DIR
299 --x-libraries=DIR X library files are in DIR
301 if test -n "$ac_help"; then
302 echo "--enable and --with options recognized:$ac_help"
306 -host | --host | --hos | --ho)
308 -host=* | --host=* | --hos=* | --ho=*)
311 -includedir | --includedir | --includedi | --included | --include \
312 | --includ | --inclu | --incl | --inc)
313 ac_prev=includedir ;;
314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
315 | --includ=* | --inclu=* | --incl=* | --inc=*)
316 includedir="$ac_optarg" ;;
318 -infodir | --infodir | --infodi | --infod | --info | --inf)
320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
321 infodir="$ac_optarg" ;;
323 -libdir | --libdir | --libdi | --libd)
325 -libdir=* | --libdir=* | --libdi=* | --libd=*)
326 libdir="$ac_optarg" ;;
328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
329 | --libexe | --libex | --libe)
330 ac_prev=libexecdir ;;
331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
332 | --libexe=* | --libex=* | --libe=*)
333 libexecdir="$ac_optarg" ;;
335 -localstatedir | --localstatedir | --localstatedi | --localstated \
336 | --localstate | --localstat | --localsta | --localst \
337 | --locals | --local | --loca | --loc | --lo)
338 ac_prev=localstatedir ;;
339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
340 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
341 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
342 localstatedir="$ac_optarg" ;;
344 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
346 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
347 mandir="$ac_optarg" ;;
350 # Obsolete; use --without-fp.
353 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
357 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
361 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
362 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
363 | --oldin | --oldi | --old | --ol | --o)
364 ac_prev=oldincludedir ;;
365 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
366 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
367 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
368 oldincludedir="$ac_optarg" ;;
370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
373 prefix="$ac_optarg" ;;
375 -program-prefix | --program-prefix | --program-prefi | --program-pref \
376 | --program-pre | --program-pr | --program-p)
377 ac_prev=program_prefix ;;
378 -program-prefix=* | --program-prefix=* | --program-prefi=* \
379 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
380 program_prefix="$ac_optarg" ;;
382 -program-suffix | --program-suffix | --program-suffi | --program-suff \
383 | --program-suf | --program-su | --program-s)
384 ac_prev=program_suffix ;;
385 -program-suffix=* | --program-suffix=* | --program-suffi=* \
386 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
387 program_suffix="$ac_optarg" ;;
389 -program-transform-name | --program-transform-name \
390 | --program-transform-nam | --program-transform-na \
391 | --program-transform-n | --program-transform- \
392 | --program-transform | --program-transfor \
393 | --program-transfo | --program-transf \
394 | --program-trans | --program-tran \
395 | --progr-tra | --program-tr | --program-t)
396 ac_prev=program_transform_name ;;
397 -program-transform-name=* | --program-transform-name=* \
398 | --program-transform-nam=* | --program-transform-na=* \
399 | --program-transform-n=* | --program-transform-=* \
400 | --program-transform=* | --program-transfor=* \
401 | --program-transfo=* | --program-transf=* \
402 | --program-trans=* | --program-tran=* \
403 | --progr-tra=* | --program-tr=* | --program-t=*)
404 program_transform_name="$ac_optarg" ;;
406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
407 | -silent | --silent | --silen | --sile | --sil)
410 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
412 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
414 sbindir="$ac_optarg" ;;
416 -sharedstatedir | --sharedstatedir | --sharedstatedi \
417 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
418 | --sharedst | --shareds | --shared | --share | --shar \
420 ac_prev=sharedstatedir ;;
421 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
422 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
423 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
425 sharedstatedir="$ac_optarg" ;;
427 -site | --site | --sit)
429 -site=* | --site=* | --sit=*)
432 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
434 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
435 srcdir="$ac_optarg" ;;
437 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
438 | --syscon | --sysco | --sysc | --sys | --sy)
439 ac_prev=sysconfdir ;;
440 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
441 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
442 sysconfdir="$ac_optarg" ;;
444 -target | --target | --targe | --targ | --tar | --ta | --t)
446 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
447 target="$ac_optarg" ;;
449 -v | -verbose | --verbose | --verbos | --verbo | --verb)
452 -version | --version | --versio | --versi | --vers)
453 echo "configure generated by autoconf version 2.13"
457 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
458 # Reject names that are not valid shell variable names.
459 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
460 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}='$ac_optarg'" ;;
469 -without-* | --without-*)
470 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
471 # Reject names that are not valid shell variable names.
472 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
475 ac_package=`echo $ac_package| sed 's/-/_/g'`
476 eval "with_${ac_package}=no" ;;
479 # Obsolete; use --with-x.
482 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
483 | --x-incl | --x-inc | --x-in | --x-i)
484 ac_prev=x_includes ;;
485 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
486 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
487 x_includes="$ac_optarg" ;;
489 -x-libraries | --x-libraries | --x-librarie | --x-librari \
490 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
491 ac_prev=x_libraries ;;
492 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
493 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
494 x_libraries="$ac_optarg" ;;
496 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
500 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
501 echo "configure: warning: $ac_option: invalid host type" 1>&2
503 if test "x$nonopt" != xNONE; then
504 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
512 if test -n "$ac_prev"; then
513 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
518 # File descriptor usage:
521 # 2 errors and warnings
522 # 3 some systems may open it to /dev/tty
523 # 4 used on the Kubota Titan
524 # 6 checking for... messages and results
525 # 5 compiler messages saved in config.log
526 if test "$silent" = yes; then
534 This file contains any messages produced by compilers while
535 running configure, to aid debugging if configure makes a mistake.
538 # Strip out --no-create and --no-recursion so they do not pile up.
539 # Also quote any args containing shell metacharacters.
544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
545 | --no-cr | --no-c) ;;
546 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
547 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
549 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
550 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
565 rm -rf conftest* confdefs.h
566 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
569 # A filename unique to this package, relative to the directory that
570 # configure is in, which we can look for to find out if srcdir is correct.
571 ac_unique_file=include/main.h
573 # Find the source files, if location was not specified.
574 if test -z "$srcdir"; then
575 ac_srcdir_defaulted=yes
576 # Try the directory containing this script, then its parent.
578 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
579 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
581 if test ! -r $srcdir/$ac_unique_file; then
585 ac_srcdir_defaulted=no
587 if test ! -r $srcdir/$ac_unique_file; then
588 if test "$ac_srcdir_defaulted" = yes; then
589 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
591 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
594 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
596 # Prefer explicitly selected file to automatically selected ones.
597 if test -z "$CONFIG_SITE"; then
598 if test "x$prefix" != xNONE; then
599 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
601 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
604 for ac_site_file in $CONFIG_SITE; do
605 if test -r "$ac_site_file"; then
606 echo "loading site script $ac_site_file"
611 if test -r "$cache_file"; then
612 echo "loading cache $cache_file"
615 echo "creating cache $cache_file"
620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
621 ac_cpp='$CPP $CPPFLAGS'
622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
624 cross_compiling=$ac_cv_prog_cc_cross
628 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
629 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
630 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
637 ac_n= ac_c='\c' ac_t=
644 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
663 # Do some error checking and defaulting for the host and target type.
665 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # 2. Host defaults to nonopt.
671 # 3. If nonopt is not specified, then host defaults to the current host,
672 # as determined by config.guess.
673 # 4. Target and build default to nonopt.
674 # 5. If nonopt is not specified, then target and build default to host.
676 # The aliases save the names the user supplied, while $host etc.
677 # will get canonicalized.
678 case $host---$target---$nonopt in
679 NONE---*---* | *---NONE---* | *---*---NONE) ;;
680 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
684 # Make sure we can run config.sub.
685 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
689 echo $ac_n "checking host system type""... $ac_c" 1>&6
690 echo "configure:691: checking host system type" >&5
693 case "$host_alias" in
697 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
698 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 *) host_alias=$nonopt ;;
704 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
705 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$host" 1>&6
710 echo $ac_n "checking target system type""... $ac_c" 1>&6
711 echo "configure:712: checking target system type" >&5
714 case "$target_alias" in
717 NONE) target_alias=$host_alias ;;
718 *) target_alias=$nonopt ;;
722 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
723 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$target" 1>&6
728 echo $ac_n "checking build system type""... $ac_c" 1>&6
729 echo "configure:730: checking build system type" >&5
732 case "$build_alias" in
735 NONE) build_alias=$host_alias ;;
736 *) build_alias=$nonopt ;;
740 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
741 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
742 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
743 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo "$ac_t""$build" 1>&6
746 test "$host_alias" != "$target_alias" &&
747 test "$program_prefix$program_suffix$program_transform_name" = \
749 program_prefix=${target_alias}-
753 if test -r src/interface/main.c; then
755 VLC_VERSION="0.2.92-dev"
760 if test -r extras/libdvdcss/libdvdcss.c; then
762 LIBDVDCSS_VERSION="1.0.1-dev"
764 if test -r extras/libdvdcss/csskeys.h; then
765 cat >> confdefs.h <<\EOF
766 #define HAVE_CSSKEYS 1
772 save_CFLAGS="${CFLAGS}"
773 save_LDFLAGS="${LDFLAGS}"
775 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5
777 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
778 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 cat > conftestmake <<\EOF
783 @echo 'ac_maketemp="${MAKE}"'
785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
786 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
787 if test -n "$ac_maketemp"; then
788 eval ac_cv_prog_make_${ac_make}_set=yes
790 eval ac_cv_prog_make_${ac_make}_set=no
794 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
795 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
799 SET_MAKE="MAKE=${MAKE-make}"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy $ac_cv_prog_CC
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
866 set dummy "$ac_dir/$ac_word" "$@"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$CC"; then
891 ac_cv_prog_CC="$CC" # Let the user override the test.
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
909 echo "$ac_t""no" 1>&6
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 cat > conftest.$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935 ac_cv_prog_cc_works=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (./conftest; exit) 2>/dev/null; then
938 ac_cv_prog_cc_cross=no
940 ac_cv_prog_cc_cross=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 ac_cv_prog_cc_works=no
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c <<EOF
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
989 ac_test_CFLAGS="${CFLAGS+set}"
990 ac_save_CFLAGS="$CFLAGS"
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1017 if test "$GCC" = yes; then
1024 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1025 echo "configure:1026: checking how to run the C preprocessor" >&5
1026 # On Suns, sometimes $CPP names a directory.
1027 if test -n "$CPP" && test -d "$CPP"; then
1030 if test -z "$CPP"; then
1031 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 # This must be in double quotes, not single quotes, because CPP may get
1035 # substituted into the Makefile and "${CC-cc}" will confuse make.
1037 # On the NeXT, cc -E runs the code through the compiler's parser,
1038 # not just through cpp.
1039 cat > conftest.$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1046 { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1048 if test -z "$ac_err"; then
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1055 CPP="${CC-cc} -E -traditional-cpp"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063 { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1065 if test -z "$ac_err"; then
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1072 CPP="${CC-cc} -nologo -E"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1096 ac_cv_prog_CPP="$CPP"
1098 CPP="$ac_cv_prog_CPP"
1100 ac_cv_prog_CPP="$CPP"
1102 echo "$ac_t""$CPP" 1>&6
1105 if test $host != $build; then
1106 ac_tool_prefix=${host_alias}-
1111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$RANLIB"; then
1119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1133 RANLIB="$ac_cv_prog_RANLIB"
1134 if test -n "$RANLIB"; then
1135 echo "$ac_t""$RANLIB" 1>&6
1137 echo "$ac_t""no" 1>&6
1141 if test -z "$ac_cv_prog_RANLIB"; then
1142 if test -n "$ac_tool_prefix"; then
1143 # Extract the first word of "ranlib", so it can be a program name with args.
1144 set dummy ranlib; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$RANLIB"; then
1151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_RANLIB="ranlib"
1163 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1166 RANLIB="$ac_cv_prog_RANLIB"
1167 if test -n "$RANLIB"; then
1168 echo "$ac_t""$RANLIB" 1>&6
1170 echo "$ac_t""no" 1>&6
1179 ALL_LINGUAS="de fr no ru"
1181 cat >> confdefs.h <<EOF
1182 #define PACKAGE "vlc"
1185 cat >> confdefs.h <<EOF
1186 #define VERSION "$VLC_VERSION"
1189 # Extract the first word of "ranlib", so it can be a program name with args.
1190 set dummy ranlib; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$RANLIB"; then
1197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212 RANLIB="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1221 echo "configure:1222: checking for strerror in -lcposix" >&5
1222 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 ac_save_LIBS="$LIBS"
1227 LIBS="-lcposix $LIBS"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1231 /* Override any gcc2 internal prototype to avoid an error. */
1232 /* We use char because int might match the return type of a gcc2
1233 builtin and then its argument prototype would still apply. */
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1242 eval "ac_cv_lib_$ac_lib_var=yes"
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 eval "ac_cv_lib_$ac_lib_var=no"
1250 LIBS="$ac_save_LIBS"
1253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1254 echo "$ac_t""yes" 1>&6
1255 LIBS="$LIBS -lcposix"
1257 echo "$ac_t""no" 1>&6
1262 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1263 echo "configure:1264: checking for ANSI C header files" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1280 ac_cv_header_stdc=yes
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 ac_cv_header_stdc=no
1290 if test $ac_cv_header_stdc = yes; then
1291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1292 cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298 egrep "memchr" >/dev/null 2>&1; then
1302 ac_cv_header_stdc=no
1308 if test $ac_cv_header_stdc = yes; then
1309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "free" >/dev/null 2>&1; then
1320 ac_cv_header_stdc=no
1326 if test $ac_cv_header_stdc = yes; then
1327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1328 if test "$cross_compiling" = yes; then
1331 cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1335 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1336 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1338 int main () { int i; for (i = 0; i < 256; i++)
1339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 ac_cv_header_stdc=no
1358 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1359 if test $ac_cv_header_stdc = yes; then
1360 cat >> confdefs.h <<\EOF
1361 #define STDC_HEADERS 1
1366 echo $ac_n "checking for working const""... $ac_c" 1>&6
1367 echo "configure:1368: checking for working const" >&5
1368 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1377 /* Ultrix mips cc rejects this. */
1378 typedef int charset[2]; const charset x;
1379 /* SunOS 4.1.1 cc rejects this. */
1380 char const *const *ccp;
1382 /* NEC SVR4.0.2 mips cc rejects this. */
1383 struct point {int x, y;};
1384 static struct point const zero = {0,0};
1385 /* AIX XL C 1.02.0.0 rejects this.
1386 It does not let you subtract one const X* pointer from another in an arm
1387 of an if-expression whose if-part is not a constant expression */
1388 const char *g = "string";
1389 ccp = &g + (g ? g-g : 0);
1390 /* HPUX 7.0 cc rejects these. */
1393 ccp = (char const *const *) p;
1394 { /* SCO 3.2v4 cc rejects this. */
1396 char const *s = 0 ? (char *) 0 : (char const *) 0;
1400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1402 const int *foo = &x[0];
1405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1406 typedef const int *iptr;
1410 { /* AIX XL C 1.02.0.0 rejects this saying
1411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1412 struct s { int j; const int *ap[3]; };
1413 struct s *b; b->j = 5;
1415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1433 echo "$ac_t""$ac_cv_c_const" 1>&6
1434 if test $ac_cv_c_const = no; then
1435 cat >> confdefs.h <<\EOF
1441 echo $ac_n "checking for inline""... $ac_c" 1>&6
1442 echo "configure:1443: checking for inline" >&5
1443 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1447 for ac_kw in inline __inline__ __inline; do
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1456 if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 ac_cv_c_inline=$ac_kw; break
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1468 echo "$ac_t""$ac_cv_c_inline" 1>&6
1469 case "$ac_cv_c_inline" in
1471 no) cat >> confdefs.h <<\EOF
1475 *) cat >> confdefs.h <<EOF
1476 #define inline $ac_cv_c_inline
1481 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1482 echo "configure:1483: checking for off_t" >&5
1483 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <sys/types.h>
1495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1496 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1498 ac_cv_type_off_t=yes
1506 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1507 if test $ac_cv_type_off_t = no; then
1508 cat >> confdefs.h <<\EOF
1514 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1515 echo "configure:1516: checking for size_t" >&5
1516 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <sys/types.h>
1528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1529 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1531 ac_cv_type_size_t=yes
1534 ac_cv_type_size_t=no
1539 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1540 if test $ac_cv_type_size_t = no; then
1541 cat >> confdefs.h <<\EOF
1542 #define size_t unsigned
1547 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1548 # for constant arguments. Useless!
1549 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1550 echo "configure:1551: checking for working alloca.h" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1559 char *p = alloca(2 * sizeof(int));
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1564 ac_cv_header_alloca_h=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 ac_cv_header_alloca_h=no
1574 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1575 if test $ac_cv_header_alloca_h = yes; then
1576 cat >> confdefs.h <<\EOF
1577 #define HAVE_ALLOCA_H 1
1582 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1583 echo "configure:1584: checking for alloca" >&5
1584 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1592 # define alloca __builtin_alloca
1595 # include <malloc.h>
1596 # define alloca _alloca
1599 # include <alloca.h>
1604 # ifndef alloca /* predefined by HP cc +Olibcalls */
1613 char *p = (char *) alloca(1);
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1618 ac_cv_func_alloca_works=yes
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1623 ac_cv_func_alloca_works=no
1628 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1629 if test $ac_cv_func_alloca_works = yes; then
1630 cat >> confdefs.h <<\EOF
1631 #define HAVE_ALLOCA 1
1636 if test $ac_cv_func_alloca_works = no; then
1637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1638 # that cause trouble. Some versions do not even contain alloca or
1639 # contain a buggy version. If you still want to use their alloca,
1640 # use ar to extract alloca.o from them instead of compiling alloca.c.
1641 ALLOCA=alloca.${ac_objext}
1642 cat >> confdefs.h <<\EOF
1647 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether alloca needs Cray hooks" >&5
1649 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #if defined(CRAY) && ! defined(CRAY2)
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "webecray" >/dev/null 2>&1; then
1674 echo "$ac_t""$ac_cv_os_cray" 1>&6
1675 if test $ac_cv_os_cray = yes; then
1676 for ac_func in _getb67 GETB67 getb67; do
1677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_func" >&5
1679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 /* System header to define __stub macros and hopefully few prototypes,
1686 which can conflict with char $ac_func(); below. */
1688 /* Override any gcc2 internal prototype to avoid an error. */
1689 /* We use char because int might match the return type of a gcc2
1690 builtin and then its argument prototype would still apply. */
1695 /* The GNU C library defines this for functions which it implements
1696 to always fail with ENOSYS. Some functions are actually named
1697 something starting with __ and the normal name is an alias. */
1698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 eval "ac_cv_func_$ac_func=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1713 eval "ac_cv_func_$ac_func=no"
1718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 cat >> confdefs.h <<EOF
1721 #define CRAY_STACKSEG_END $ac_func
1726 echo "$ac_t""no" 1>&6
1732 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1733 echo "configure:1734: checking stack direction for C alloca" >&5
1734 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test "$cross_compiling" = yes; then
1738 ac_cv_c_stack_direction=0
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 find_stack_direction ()
1745 static char *addr = 0;
1750 return find_stack_direction ();
1753 return (&dummy > addr) ? 1 : -1;
1757 exit (find_stack_direction() < 0);
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1762 ac_cv_c_stack_direction=1
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 ac_cv_c_stack_direction=-1
1774 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1775 cat >> confdefs.h <<EOF
1776 #define STACK_DIRECTION $ac_cv_c_stack_direction
1781 for ac_hdr in unistd.h
1783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1785 echo "configure:1786: checking for $ac_hdr" >&5
1786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1795 { (eval echo configure:1796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1797 if test -z "$ac_err"; then
1799 eval "ac_cv_header_$ac_safe=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_header_$ac_safe=no"
1809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1812 cat >> confdefs.h <<EOF
1813 #define $ac_tr_hdr 1
1817 echo "$ac_t""no" 1>&6
1821 for ac_func in getpagesize
1823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_func" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $ac_func(); below. */
1834 /* Override any gcc2 internal prototype to avoid an error. */
1835 /* We use char because int might match the return type of a gcc2
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1854 eval "ac_cv_func_$ac_func=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_func_$ac_func=no"
1864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1867 cat >> confdefs.h <<EOF
1868 #define $ac_tr_func 1
1872 echo "$ac_t""no" 1>&6
1876 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1877 echo "configure:1878: checking for working mmap" >&5
1878 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test "$cross_compiling" = yes; then
1882 ac_cv_func_mmap_fixed_mapped=no
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1888 /* Thanks to Mike Haertel and Jim Avera for this test.
1889 Here is a matrix of mmap possibilities:
1890 mmap private not fixed
1891 mmap private fixed at somewhere currently unmapped
1892 mmap private fixed at somewhere already mapped
1893 mmap shared not fixed
1894 mmap shared fixed at somewhere currently unmapped
1895 mmap shared fixed at somewhere already mapped
1896 For private mappings, we should verify that changes cannot be read()
1897 back from the file, nor mmap's back from the file at a different
1898 address. (There have been systems where private was not correctly
1899 implemented like the infamous i386 svr4.0, and systems where the
1900 VM page cache was not coherent with the filesystem buffer cache
1901 like early versions of FreeBSD and possibly contemporary NetBSD.)
1902 For shared mappings, we should conversely verify that changes get
1903 propogated back to all the places they're supposed to be.
1905 Grep wants private fixed already mapped.
1906 The main things grep needs to know about mmap are:
1907 * does it exist and is it safe to write into the mmap'd area
1908 * how to use it (BSD variants) */
1909 #include <sys/types.h>
1911 #include <sys/mman.h>
1913 /* This mess was copied from the GNU getpagesize.h. */
1914 #ifndef HAVE_GETPAGESIZE
1915 # ifdef HAVE_UNISTD_H
1916 # include <unistd.h>
1919 /* Assume that all systems that can run configure have sys/param.h. */
1920 # ifndef HAVE_SYS_PARAM_H
1921 # define HAVE_SYS_PARAM_H 1
1924 # ifdef _SC_PAGESIZE
1925 # define getpagesize() sysconf(_SC_PAGESIZE)
1926 # else /* no _SC_PAGESIZE */
1927 # ifdef HAVE_SYS_PARAM_H
1928 # include <sys/param.h>
1929 # ifdef EXEC_PAGESIZE
1930 # define getpagesize() EXEC_PAGESIZE
1931 # else /* no EXEC_PAGESIZE */
1933 # define getpagesize() NBPG * CLSIZE
1936 # endif /* no CLSIZE */
1937 # else /* no NBPG */
1939 # define getpagesize() NBPC
1940 # else /* no NBPC */
1942 # define getpagesize() PAGESIZE
1943 # endif /* PAGESIZE */
1944 # endif /* no NBPC */
1945 # endif /* no NBPG */
1946 # endif /* no EXEC_PAGESIZE */
1947 # else /* no HAVE_SYS_PARAM_H */
1948 # define getpagesize() 8192 /* punt totally */
1949 # endif /* no HAVE_SYS_PARAM_H */
1950 # endif /* no _SC_PAGESIZE */
1952 #endif /* no HAVE_GETPAGESIZE */
1955 extern "C" { void *malloc(unsigned); }
1963 char *data, *data2, *data3;
1967 pagesize = getpagesize();
1970 * First, make a file with some known garbage in it.
1972 data = malloc(pagesize);
1975 for (i = 0; i < pagesize; ++i)
1976 *(data + i) = rand();
1978 fd = creat("conftestmmap", 0600);
1981 if (write(fd, data, pagesize) != pagesize)
1986 * Next, try to mmap the file at a fixed address which
1987 * already has something else allocated at it. If we can,
1988 * also make sure that we see the same garbage.
1990 fd = open("conftestmmap", O_RDWR);
1993 data2 = malloc(2 * pagesize);
1996 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1997 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1998 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2000 for (i = 0; i < pagesize; ++i)
2001 if (*(data + i) != *(data2 + i))
2005 * Finally, make sure that changes to the mapped area
2006 * do not percolate back to the file as seen by read().
2007 * (This is a bug on some variants of i386 svr4.0.)
2009 for (i = 0; i < pagesize; ++i)
2010 *(data2 + i) = *(data2 + i) + 1;
2011 data3 = malloc(pagesize);
2014 if (read(fd, data3, pagesize) != pagesize)
2016 for (i = 0; i < pagesize; ++i)
2017 if (*(data + i) != *(data3 + i))
2020 unlink("conftestmmap");
2025 if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2027 ac_cv_func_mmap_fixed_mapped=yes
2029 echo "configure: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2032 ac_cv_func_mmap_fixed_mapped=no
2039 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2040 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2041 cat >> confdefs.h <<\EOF
2048 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether we are using the GNU C Library 2.1 or newer" >&5
2050 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2057 #include <features.h>
2058 #ifdef __GNU_LIBRARY__
2059 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2066 egrep "Lucky GNU user" >/dev/null 2>&1; then
2068 ac_cv_gnu_library_2_1=yes
2071 ac_cv_gnu_library_2_1=no
2079 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2081 GLIBC21="$ac_cv_gnu_library_2_1"
2085 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2086 stdlib.h string.h unistd.h sys/param.h
2088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_hdr" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2104 eval "ac_cv_header_$ac_safe=yes"
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 eval "ac_cv_header_$ac_safe=no"
2114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2117 cat >> confdefs.h <<EOF
2118 #define $ac_tr_hdr 1
2122 echo "$ac_t""no" 1>&6
2126 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2127 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2128 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_func" >&5
2132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $ac_func(); below. */
2141 /* Override any gcc2 internal prototype to avoid an error. */
2142 /* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2148 /* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 eval "ac_cv_func_$ac_func=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_func_$ac_func=no"
2171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_func 1
2179 echo "$ac_t""no" 1>&6
2186 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2187 if test "${with_libiconv_prefix+set}" = set; then
2188 withval="$with_libiconv_prefix"
2190 for dir in `echo "$withval" | tr : ' '`; do
2191 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2192 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2198 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2199 echo "configure:2200: checking for iconv" >&5
2200 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2204 am_cv_func_iconv="no, consider installing GNU libiconv"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 iconv_t cd = iconv_open("","");
2213 iconv(cd,NULL,NULL,NULL,NULL);
2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2219 am_cv_func_iconv=yes
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2225 if test "$am_cv_func_iconv" != yes; then
2226 am_save_LIBS="$LIBS"
2227 LIBS="$LIBS -liconv"
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2234 iconv_t cd = iconv_open("","");
2235 iconv(cd,NULL,NULL,NULL,NULL);
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2242 am_cv_func_iconv=yes
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2248 LIBS="$am_save_LIBS"
2253 echo "$ac_t""$am_cv_func_iconv" 1>&6
2254 if test "$am_cv_func_iconv" = yes; then
2255 cat >> confdefs.h <<\EOF
2256 #define HAVE_ICONV 1
2259 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2260 echo "configure:2261: checking for iconv declaration" >&5
2261 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2275 #if defined(__STDC__) || defined(__cplusplus)
2276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2285 if { (eval echo configure:2286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2287 am_cv_proto_iconv_arg1=""
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 am_cv_proto_iconv_arg1="const"
2295 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);"
2298 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2299 echo "$ac_t""${ac_t:-
2300 }$am_cv_proto_iconv" 1>&6
2301 cat >> confdefs.h <<EOF
2302 #define ICONV_CONST $am_cv_proto_iconv_arg1
2307 if test "$am_cv_lib_iconv" = yes; then
2313 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2314 echo "configure:2315: checking for nl_langinfo and CODESET" >&5
2315 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <langinfo.h>
2323 char* cs = nl_langinfo(CODESET);
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328 am_cv_langinfo_codeset=yes
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 am_cv_langinfo_codeset=no
2339 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2340 if test $am_cv_langinfo_codeset = yes; then
2341 cat >> confdefs.h <<\EOF
2342 #define HAVE_LANGINFO_CODESET 1
2347 if test $ac_cv_header_locale_h = yes; then
2348 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2349 echo "configure:2350: checking for LC_MESSAGES" >&5
2350 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 am_cv_val_LC_MESSAGES=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 am_cv_val_LC_MESSAGES=no
2373 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2374 if test $am_cv_val_LC_MESSAGES = yes; then
2375 cat >> confdefs.h <<\EOF
2376 #define HAVE_LC_MESSAGES 1
2381 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether NLS is requested" >&5
2383 # Check whether --enable-nls or --disable-nls was given.
2384 if test "${enable_nls+set}" = set; then
2385 enableval="$enable_nls"
2391 echo "$ac_t""$USE_NLS" 1>&6
2394 BUILD_INCLUDED_LIBINTL=no
2395 USE_INCLUDED_LIBINTL=no
2398 if test "$USE_NLS" = "yes"; then
2399 cat >> confdefs.h <<\EOF
2400 #define ENABLE_NLS 1
2403 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2404 echo "configure:2405: checking whether included gettext is requested" >&5
2405 # Check whether --with-included-gettext or --without-included-gettext was given.
2406 if test "${with_included_gettext+set}" = set; then
2407 withval="$with_included_gettext"
2408 nls_cv_force_use_gnu_gettext=$withval
2410 nls_cv_force_use_gnu_gettext=no
2413 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2415 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2416 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2422 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2424 echo "configure:2425: checking for libintl.h" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <libintl.h>
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2451 echo "configure:2452: checking for GNU gettext in libc" >&5
2452 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 #include <libintl.h>
2459 extern int _nl_msg_cat_cntr;
2461 bindtextdomain ("", "");
2462 return (int) gettext ("") + _nl_msg_cat_cntr
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2467 gt_cv_func_gnugettext1_libc=yes
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 gt_cv_func_gnugettext1_libc=no
2477 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2479 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2480 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2481 echo "configure:2482: checking for GNU gettext in libintl" >&5
2482 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 gt_save_LIBS="$LIBS"
2486 LIBS="$LIBS -lintl $LIBICONV"
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <libintl.h>
2491 extern int _nl_msg_cat_cntr;
2493 bindtextdomain ("", "");
2494 return (int) gettext ("") + _nl_msg_cat_cntr
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 gt_cv_func_gnugettext1_libintl=yes
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 gt_cv_func_gnugettext1_libintl=no
2507 LIBS="$gt_save_LIBS"
2510 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2513 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2514 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2515 && test "$PACKAGE" != gettext; }; then
2516 cat >> confdefs.h <<\EOF
2517 #define HAVE_GETTEXT 1
2521 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2522 INTLLIBS="-lintl $LIBICONV"
2525 gt_save_LIBS="$LIBS"
2526 LIBS="$LIBS $INTLLIBS"
2527 for ac_func in dcgettext
2529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_func" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char $ac_func(); below. */
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 eval "ac_cv_func_$ac_func=yes"
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 eval "ac_cv_func_$ac_func=no"
2570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2573 cat >> confdefs.h <<EOF
2574 #define $ac_tr_func 1
2578 echo "$ac_t""no" 1>&6
2582 LIBS="$gt_save_LIBS"
2584 # Extract the first word of "msgfmt", so it can be a program name with args.
2585 set dummy msgfmt; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2597 for ac_dir in $PATH; do
2598 test -z "$ac_dir" && ac_dir=.
2599 if test -f $ac_dir/$ac_word; then
2600 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2601 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2607 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2611 MSGFMT="$ac_cv_path_MSGFMT"
2612 if test "$MSGFMT" != ":"; then
2613 echo "$ac_t""$MSGFMT" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2619 set dummy gmsgfmt; ac_word=$2
2620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_word" >&5
2622 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2627 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2630 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2635 for ac_dir in $ac_dummy; do
2636 test -z "$ac_dir" && ac_dir=.
2637 if test -f $ac_dir/$ac_word; then
2638 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2643 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2647 GMSGFMT="$ac_cv_path_GMSGFMT"
2648 if test -n "$GMSGFMT"; then
2649 echo "$ac_t""$GMSGFMT" 1>&6
2651 echo "$ac_t""no" 1>&6
2655 # Extract the first word of "xgettext", so it can be a program name with args.
2656 set dummy xgettext; ac_word=$2
2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_word" >&5
2659 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2664 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2668 for ac_dir in $PATH; do
2669 test -z "$ac_dir" && ac_dir=.
2670 if test -f $ac_dir/$ac_word; then
2671 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2672 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2678 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2682 XGETTEXT="$ac_cv_path_XGETTEXT"
2683 if test "$XGETTEXT" != ":"; then
2684 echo "$ac_t""$XGETTEXT" 1>&6
2686 echo "$ac_t""no" 1>&6
2694 echo "$ac_t""no" 1>&6
2698 if test "$CATOBJEXT" = "NONE"; then
2699 nls_cv_use_gnu_gettext=yes
2703 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2704 INTLOBJS="\$(GETTOBJS)"
2705 # Extract the first word of "msgfmt", so it can be a program name with args.
2706 set dummy msgfmt; ac_word=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2714 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2718 for ac_dir in $PATH; do
2719 test -z "$ac_dir" && ac_dir=.
2720 if test -f $ac_dir/$ac_word; then
2721 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2722 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2728 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2732 MSGFMT="$ac_cv_path_MSGFMT"
2733 if test "$MSGFMT" != ":"; then
2734 echo "$ac_t""$MSGFMT" 1>&6
2736 echo "$ac_t""no" 1>&6
2739 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2740 set dummy gmsgfmt; ac_word=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2748 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2751 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2756 for ac_dir in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir=.
2758 if test -f $ac_dir/$ac_word; then
2759 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2764 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2768 GMSGFMT="$ac_cv_path_GMSGFMT"
2769 if test -n "$GMSGFMT"; then
2770 echo "$ac_t""$GMSGFMT" 1>&6
2772 echo "$ac_t""no" 1>&6
2775 # Extract the first word of "xgettext", so it can be a program name with args.
2776 set dummy xgettext; ac_word=$2
2777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_word" >&5
2779 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2784 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2788 for ac_dir in $PATH; do
2789 test -z "$ac_dir" && ac_dir=.
2790 if test -f $ac_dir/$ac_word; then
2791 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2792 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2798 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2802 XGETTEXT="$ac_cv_path_XGETTEXT"
2803 if test "$XGETTEXT" != ":"; then
2804 echo "$ac_t""$XGETTEXT" 1>&6
2806 echo "$ac_t""no" 1>&6
2810 BUILD_INCLUDED_LIBINTL=yes
2811 USE_INCLUDED_LIBINTL=yes
2813 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2814 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2817 if test "$GMSGFMT" != ":"; then
2818 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2821 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2826 if test "$XGETTEXT" != ":"; then
2827 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2830 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2840 if test "$PACKAGE" = gettext; then
2841 BUILD_INCLUDED_LIBINTL=yes
2844 for ac_prog in bison
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 if test -n "$INTLBISON"; then
2854 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2858 for ac_dir in $ac_dummy; do
2859 test -z "$ac_dir" && ac_dir=.
2860 if test -f $ac_dir/$ac_word; then
2861 ac_cv_prog_INTLBISON="$ac_prog"
2868 INTLBISON="$ac_cv_prog_INTLBISON"
2869 if test -n "$INTLBISON"; then
2870 echo "$ac_t""$INTLBISON" 1>&6
2872 echo "$ac_t""no" 1>&6
2875 test -n "$INTLBISON" && break
2878 if test -z "$INTLBISON"; then
2881 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2882 echo "configure:2883: checking version of bison" >&5
2883 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2884 case $ac_prog_version in
2885 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2886 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2887 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2888 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2890 echo "$ac_t""$ac_prog_version" 1>&6
2892 if test $ac_verc_fail = yes; then
2896 for lang in $ALL_LINGUAS; do
2897 GMOFILES="$GMOFILES $lang.gmo"
2898 POFILES="$POFILES $lang.po"
2912 nls_cv_header_libgt=
2924 if test "x$CATOBJEXT" != "x"; then
2925 if test "x$ALL_LINGUAS" = "x"; then
2928 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2929 echo "configure:2930: checking for catalogs to be installed" >&5
2931 for presentlang in $ALL_LINGUAS; do
2933 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2934 # Use the presentlang catalog if desiredlang is
2935 # a. equal to presentlang, or
2936 # b. a variant of presentlang (because in this case,
2937 # presentlang can be used as a fallback for messages
2938 # which are not translated in the desiredlang catalog).
2939 case "$desiredlang" in
2940 "$presentlang"*) useit=yes;;
2943 if test $useit = yes; then
2944 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2947 LINGUAS=$NEW_LINGUAS
2948 echo "$ac_t""$LINGUAS" 1>&6
2951 if test -n "$LINGUAS"; then
2952 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2957 if test -n "$ac_aux_dir"; then
2958 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2960 if test -z "$MKINSTALLDIRS"; then
2961 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2965 INTL_LIBTOOL_SUFFIX_PREFIX=
2969 # Find a good install program. We prefer a C program (faster),
2970 # so one script is as good as another. But avoid the broken or
2971 # incompatible versions:
2972 # SysV /etc/install, /usr/sbin/install
2973 # SunOS /usr/etc/install
2974 # IRIX /sbin/install
2976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2979 # ./install, which can be erroneously created by make from ./install.sh.
2980 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2981 echo "configure:2982: checking for a BSD compatible install" >&5
2982 if test -z "$INSTALL"; then
2983 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2987 for ac_dir in $PATH; do
2988 # Account for people who put trailing slashes in PATH elements.
2990 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2992 # OSF1 and SCO ODT 3.0 have their own names for install.
2993 # Don't use installbsd from OSF since it installs stuff as root
2995 for ac_prog in ginstall scoinst install; do
2996 if test -f $ac_dir/$ac_prog; then
2997 if test $ac_prog = install &&
2998 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2999 # AIX install. It has an incompatible calling convention.
3002 ac_cv_path_install="$ac_dir/$ac_prog -c"
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL="$ac_cv_path_install"
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL="$ac_install_sh"
3023 echo "$ac_t""$INSTALL" 1>&6
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 case x"${target_os}" in
3049 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}windres; ac_word=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -n "$WINDRES"; then
3057 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 for ac_dir in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3071 WINDRES="$ac_cv_prog_WINDRES"
3072 if test -n "$WINDRES"; then
3073 echo "$ac_t""$WINDRES" 1>&6
3075 echo "$ac_t""no" 1>&6
3079 if test -z "$ac_cv_prog_WINDRES"; then
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "windres", so it can be a program name with args.
3082 set dummy windres; ac_word=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 if test -n "$WINDRES"; then
3089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3093 for ac_dir in $ac_dummy; do
3094 test -z "$ac_dir" && ac_dir=.
3095 if test -f $ac_dir/$ac_word; then
3096 ac_cv_prog_WINDRES="windres"
3101 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3104 WINDRES="$ac_cv_prog_WINDRES"
3105 if test -n "$WINDRES"; then
3106 echo "$ac_t""$WINDRES" 1>&6
3108 echo "$ac_t""no" 1>&6
3116 LIB_IPV4="${LIB_IPV4} -lws2_32"
3117 LIB_RC="${LIB_RC} -lws2_32"
3121 LIB_X11="${LIB_X11} -lsocket"
3122 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3126 LIB_IPV4="${LIB_IPV4} -lbind"
3127 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3128 PLDFLAGS="${PLDFLAGS} -nostart"
3135 for ac_func in gettimeofday select strerror strtod strtol isatty
3137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_func" >&5
3139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* System header to define __stub macros and hopefully few prototypes,
3146 which can conflict with char $ac_func(); below. */
3148 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3155 /* The GNU C library defines this for functions which it implements
3156 to always fail with ENOSYS. Some functions are actually named
3157 something starting with __ and the normal name is an alias. */
3158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3168 eval "ac_cv_func_$ac_func=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3173 eval "ac_cv_func_$ac_func=no"
3178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_func 1
3186 echo "$ac_t""no" 1>&6
3190 echo $ac_n "checking for connect""... $ac_c" 1>&6
3191 echo "configure:3192: checking for connect" >&5
3192 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199 which can conflict with char connect(); below. */
3201 /* Override any gcc2 internal prototype to avoid an error. */
3202 /* We use char because int might match the return type of a gcc2
3203 builtin and then its argument prototype would still apply. */
3208 /* The GNU C library defines this for functions which it implements
3209 to always fail with ENOSYS. Some functions are actually named
3210 something starting with __ and the normal name is an alias. */
3211 #if defined (__stub_connect) || defined (__stub___connect)
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 eval "ac_cv_func_connect=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 eval "ac_cv_func_connect=no"
3231 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3237 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3238 echo "configure:3239: checking for connect in -lsocket" >&5
3239 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 ac_save_LIBS="$LIBS"
3244 LIBS="-lsocket $LIBS"
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_lib_$ac_lib_var=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_lib_$ac_lib_var=no"
3267 LIBS="$ac_save_LIBS"
3270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 LIB_IPV4="${LIB_IPV4} -lsocket"
3273 LIB_VLC="${LIB_VLC} -lsocket"
3276 echo "$ac_t""no" 1>&6
3281 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3282 echo "configure:3283: checking for gethostbyname" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char gethostbyname(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3295 char gethostbyname();
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_func_gethostbyname=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_func_gethostbyname=no"
3322 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3326 echo "$ac_t""no" 1>&6
3328 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3329 echo "configure:3330: checking for gethostbyname in -lnsl" >&5
3330 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 ac_save_LIBS="$LIBS"
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 /* Override any gcc2 internal prototype to avoid an error. */
3340 /* We use char because int might match the return type of a gcc2
3341 builtin and then its argument prototype would still apply. */
3342 char gethostbyname();
3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3350 eval "ac_cv_lib_$ac_lib_var=yes"
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3355 eval "ac_cv_lib_$ac_lib_var=no"
3358 LIBS="$ac_save_LIBS"
3361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 LIB_IPV4="${LIB_IPV4} -lnsl"
3365 echo "$ac_t""no" 1>&6
3371 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3372 echo "configure:3373: checking for gethostbyname" >&5
3373 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 /* System header to define __stub macros and hopefully few prototypes,
3380 which can conflict with char gethostbyname(); below. */
3382 /* Override any gcc2 internal prototype to avoid an error. */
3383 /* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3385 char gethostbyname();
3389 /* The GNU C library defines this for functions which it implements
3390 to always fail with ENOSYS. Some functions are actually named
3391 something starting with __ and the normal name is an alias. */
3392 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3402 eval "ac_cv_func_gethostbyname=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3407 eval "ac_cv_func_gethostbyname=no"
3412 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3413 echo "$ac_t""yes" 1>&6
3416 echo "$ac_t""no" 1>&6
3418 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3419 echo "configure:3420: checking for gethostbyname in -lbind" >&5
3420 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 ac_save_LIBS="$LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char gethostbyname();
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3445 eval "ac_cv_lib_$ac_lib_var=no"
3448 LIBS="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 LIB_IPV4="${LIB_IPV4} -lbind"
3455 echo "$ac_t""no" 1>&6
3461 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3462 echo "configure:3463: checking for nanosleep" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470 which can conflict with char nanosleep(); below. */
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3479 /* The GNU C library defines this for functions which it implements
3480 to always fail with ENOSYS. Some functions are actually named
3481 something starting with __ and the normal name is an alias. */
3482 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3492 eval "ac_cv_func_nanosleep=yes"
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 eval "ac_cv_func_nanosleep=no"
3502 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3506 echo "$ac_t""no" 1>&6
3508 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3509 echo "configure:3510: checking for nanosleep in -lrt" >&5
3510 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 ac_save_LIBS="$LIBS"
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3530 eval "ac_cv_lib_$ac_lib_var=yes"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3535 eval "ac_cv_lib_$ac_lib_var=no"
3538 LIBS="$ac_save_LIBS"
3541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3542 echo "$ac_t""yes" 1>&6
3543 LIB_VLC="${LIB_VLC} -lrt"
3545 echo "$ac_t""no" 1>&6
3547 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3548 echo "configure:3549: checking for nanosleep in -lposix4" >&5
3549 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_save_LIBS="$LIBS"
3554 LIBS="-lposix4 $LIBS"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 LIB_VLC="${LIB_VLC} -lposix4"
3584 echo "$ac_t""no" 1>&6
3593 for ac_func in usleep
3595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char $ac_func(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626 eval "ac_cv_func_$ac_func=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3631 eval "ac_cv_func_$ac_func=no"
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639 cat >> confdefs.h <<EOF
3640 #define $ac_tr_func 1
3644 echo "$ac_t""no" 1>&6
3648 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3649 echo "configure:3650: checking for inet_aton" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char inet_aton(); below. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3679 eval "ac_cv_func_inet_aton=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_func_inet_aton=no"
3689 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3693 echo "$ac_t""no" 1>&6
3695 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3696 echo "configure:3697: checking for inet_aton in -lresolv" >&5
3697 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 ac_save_LIBS="$LIBS"
3702 LIBS="-lresolv $LIBS"
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3717 eval "ac_cv_lib_$ac_lib_var=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 eval "ac_cv_lib_$ac_lib_var=no"
3725 LIBS="$ac_save_LIBS"
3728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3730 LIB_VLC="${LIB_VLC} -lresolv"
3732 echo "$ac_t""no" 1>&6
3738 for ac_func in vasprintf
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char $ac_func(); below. */
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 eval "ac_cv_func_$ac_func=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 eval "ac_cv_func_$ac_func=no"
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_func 1
3789 echo "$ac_t""no" 1>&6
3795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3796 echo "configure:3797: checking for $ac_func" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char $ac_func(); below. */
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 eval "ac_cv_func_$ac_func=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3831 eval "ac_cv_func_$ac_func=no"
3836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3839 cat >> confdefs.h <<EOF
3840 #define $ac_tr_func 1
3844 echo "$ac_t""no" 1>&6
3848 for ac_func in memalign valloc
3850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_func" >&5
3852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* System header to define __stub macros and hopefully few prototypes,
3859 which can conflict with char $ac_func(); below. */
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3868 /* The GNU C library defines this for functions which it implements
3869 to always fail with ENOSYS. Some functions are actually named
3870 something starting with __ and the normal name is an alias. */
3871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_func_$ac_func=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_func_$ac_func=no"
3891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3894 cat >> confdefs.h <<EOF
3895 #define $ac_tr_func 1
3899 echo "$ac_t""no" 1>&6
3904 for ac_func in sigrelse
3906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_func" >&5
3908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* System header to define __stub macros and hopefully few prototypes,
3915 which can conflict with char $ac_func(); below. */
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3924 /* The GNU C library defines this for functions which it implements
3925 to always fail with ENOSYS. Some functions are actually named
3926 something starting with __ and the normal name is an alias. */
3927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 eval "ac_cv_func_$ac_func=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_func_$ac_func=no"
3947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3948 echo "$ac_t""yes" 1>&6
3949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3950 cat >> confdefs.h <<EOF
3951 #define $ac_tr_func 1
3955 echo "$ac_t""no" 1>&6
3959 for ac_func in getpwuid_r getpwuid
3961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_func" >&5
3963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char $ac_func(); below. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3979 /* The GNU C library defines this for functions which it implements
3980 to always fail with ENOSYS. Some functions are actually named
3981 something starting with __ and the normal name is an alias. */
3982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992 eval "ac_cv_func_$ac_func=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_func_$ac_func=no"
4002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4005 cat >> confdefs.h <<EOF
4006 #define $ac_tr_func 1
4010 echo "$ac_t""no" 1>&6
4016 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4017 echo "configure:4018: checking for getopt_long" >&5
4018 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* System header to define __stub macros and hopefully few prototypes,
4025 which can conflict with char getopt_long(); below. */
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 /* We use char because int might match the return type of a gcc2
4029 builtin and then its argument prototype would still apply. */
4034 /* The GNU C library defines this for functions which it implements
4035 to always fail with ENOSYS. Some functions are actually named
4036 something starting with __ and the normal name is an alias. */
4037 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4047 eval "ac_cv_func_getopt_long=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4052 eval "ac_cv_func_getopt_long=no"
4057 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_GETOPT_LONG 1
4064 echo "$ac_t""no" 1>&6
4065 # FreeBSD has a gnugetopt library for this:
4066 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4067 echo "configure:4068: checking for getopt_long in -lgnugetopt" >&5
4068 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 ac_save_LIBS="$LIBS"
4073 LIBS="-lgnugetopt $LIBS"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 eval "ac_cv_lib_$ac_lib_var=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 eval "ac_cv_lib_$ac_lib_var=no"
4096 LIBS="$ac_save_LIBS"
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_GETOPT_LONG 1
4104 LIB_VLC="${LIB_VLC} -lgnugetopt"
4106 echo "$ac_t""no" 1>&6
4113 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4114 echo "configure:4115: checking return type of signal handlers" >&5
4115 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <sys/types.h>
4127 extern "C" void (*signal (int, void (*)(int)))(int);
4129 void (*signal ()) ();
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_type_signal=void
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 ac_cv_type_signal=int
4148 echo "$ac_t""$ac_cv_type_signal" 1>&6
4149 cat >> confdefs.h <<EOF
4150 #define RETSIGTYPE $ac_cv_type_signal
4154 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4155 echo "configure:4156: checking for dlopen in -ldl" >&5
4156 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS="$LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 LIB_VLC="${LIB_VLC} -ldl"
4191 echo "$ac_t""no" 1>&6
4194 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4195 echo "configure:4196: checking for cos in -lm" >&5
4196 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_save_LIBS="$LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_lib_$ac_lib_var=no"
4224 LIBS="$ac_save_LIBS"
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4229 LIB_IMDCT="${LIB_IMDCT} -lm"
4230 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4232 echo "$ac_t""no" 1>&6
4235 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4236 echo "configure:4237: checking for pow in -lm" >&5
4237 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 ac_save_LIBS="$LIBS"
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4257 eval "ac_cv_lib_$ac_lib_var=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 eval "ac_cv_lib_$ac_lib_var=no"
4265 LIBS="$ac_save_LIBS"
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 LIB_IMDCT="${LIB_IMDCT} -lm"
4271 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4272 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4275 echo "$ac_t""no" 1>&6
4280 if test "x${THREAD_LIB}" = xerror; then
4281 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4282 echo "configure:4283: checking for pthread_attr_init in -lpthread" >&5
4283 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 ac_save_LIBS="$LIBS"
4288 LIBS="-lpthread $LIBS"
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* Override any gcc2 internal prototype to avoid an error. */
4293 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */
4295 char pthread_attr_init();
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4303 eval "ac_cv_lib_$ac_lib_var=yes"
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4308 eval "ac_cv_lib_$ac_lib_var=no"
4311 LIBS="$ac_save_LIBS"
4314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 THREAD_LIB="-lpthread"
4318 echo "$ac_t""no" 1>&6
4322 if test "x${THREAD_LIB}" = xerror; then
4323 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4324 echo "configure:4325: checking for pthread_attr_init in -lpthreads" >&5
4325 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 ac_save_LIBS="$LIBS"
4330 LIBS="-lpthreads $LIBS"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4337 char pthread_attr_init();
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 eval "ac_cv_lib_$ac_lib_var=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_lib_$ac_lib_var=no"
4353 LIBS="$ac_save_LIBS"
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 THREAD_LIB="-lpthreads"
4360 echo "$ac_t""no" 1>&6
4364 if test "x${THREAD_LIB}" = xerror; then
4365 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4366 echo "configure:4367: checking for pthread_attr_init in -lc_r" >&5
4367 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 ac_save_LIBS="$LIBS"
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4379 char pthread_attr_init();
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387 eval "ac_cv_lib_$ac_lib_var=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 eval "ac_cv_lib_$ac_lib_var=no"
4395 LIBS="$ac_save_LIBS"
4398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4402 echo "$ac_t""no" 1>&6
4406 if test "x${THREAD_LIB}" = xerror; then
4407 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4408 echo "configure:4409: checking for pthread_attr_init" >&5
4409 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char pthread_attr_init(); below. */
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4421 char pthread_attr_init();
4425 /* The GNU C library defines this for functions which it implements
4426 to always fail with ENOSYS. Some functions are actually named
4427 something starting with __ and the normal name is an alias. */
4428 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4431 pthread_attr_init();
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4438 eval "ac_cv_func_pthread_attr_init=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_func_pthread_attr_init=no"
4448 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4452 echo "$ac_t""no" 1>&6
4458 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4459 echo "configure:4460: checking for cthread_fork in -lthreads" >&5
4460 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 ac_save_LIBS="$LIBS"
4465 LIBS="-lthreads $LIBS"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char cthread_fork();
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 eval "ac_cv_lib_$ac_lib_var=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_lib_$ac_lib_var=no"
4488 LIBS="$ac_save_LIBS"
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 THREAD_LIB="-lthreads"
4495 echo "$ac_t""no" 1>&6
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <pthread.h>
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 egrep "pthread_cond_t" >/dev/null 2>&1; then
4508 cat >> confdefs.h <<\EOF
4509 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 #include <strings.h>
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 egrep "strncasecmp" >/dev/null 2>&1; then
4524 cat >> confdefs.h <<\EOF
4525 #define STRNCASECMP_IN_STRINGS_H 1
4532 for ac_hdr in getopt.h strings.h
4534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_hdr" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 eval "ac_cv_header_$ac_safe=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_header_$ac_safe=no"
4560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_hdr 1
4568 echo "$ac_t""no" 1>&6
4572 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4590 eval "ac_cv_header_$ac_safe=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 eval "ac_cv_header_$ac_safe=no"
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603 cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4608 echo "$ac_t""no" 1>&6
4612 for ac_hdr in dlfcn.h image.h
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4648 echo "$ac_t""no" 1>&6
4652 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4692 for ac_hdr in machine/param.h sys/shm.h
4694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then
4710 eval "ac_cv_header_$ac_safe=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_header_$ac_safe=no"
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723 cat >> confdefs.h <<EOF
4724 #define $ac_tr_hdr 1
4728 echo "$ac_t""no" 1>&6
4733 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4734 echo "configure:4735: checking whether time.h and sys/time.h may both be included" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <sys/types.h>
4742 #include <sys/time.h>
4748 if { (eval echo configure:4749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4750 ac_cv_header_time=yes
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 ac_cv_header_time=no
4760 echo "$ac_t""$ac_cv_header_time" 1>&6
4761 if test $ac_cv_header_time = yes; then
4762 cat >> confdefs.h <<\EOF
4763 #define TIME_WITH_SYS_TIME 1
4769 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4810 if test x$SYS != xmingw32
4812 if test x$x_includes = xNONE; then
4813 x_includes=/usr/X11R6/include
4815 if test x$x_libraries = xNONE; then
4816 x_libraries=/usr/X11R6/lib
4818 saved_CPPFLAGS=$CPPFLAGS
4819 CPPFLAGS="$CPPFLAGS -I$x_includes"
4820 for ac_hdr in X11/extensions/dpms.h
4822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4824 echo "configure:4825: checking for $ac_hdr" >&5
4825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4834 { (eval echo configure:4835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4836 if test -z "$ac_err"; then
4838 eval "ac_cv_header_$ac_safe=yes"
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4844 eval "ac_cv_header_$ac_safe=no"
4848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4851 cat >> confdefs.h <<EOF
4852 #define $ac_tr_hdr 1
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 #include <X11/extensions/dpms.h>
4860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861 egrep "DPMSInfo" >/dev/null 2>&1; then
4864 cat >> confdefs.h <<\EOF
4865 #define DPMSINFO_IN_DPMS_H 1
4874 echo "$ac_t""no" 1>&6
4878 CPPFLAGS=$saved_CPPFLAGS
4881 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4882 echo "configure:4883: checking for ntohl in sys/param.h" >&5
4883 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 CFLAGS="${save_CFLAGS} -Wall -Werror"
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <sys/param.h>
4892 void foo() { int meuh; ntohl(meuh); }
4895 if { (eval echo configure:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4897 ac_cv_c_ntohl_sys_param_h=yes
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 ac_cv_c_ntohl_sys_param_h=no
4907 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4908 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4909 cat >> confdefs.h <<\EOF
4910 #define NTOHL_IN_SYS_PARAM_H 1
4915 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4916 echo "configure:4917: checking if \$CC accepts -finline-limit" >&5
4917 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4929 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4931 ac_cv_c_inline_limit=yes
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 ac_cv_c_inline_limit=no
4941 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4942 if test x"$ac_cv_c_inline_limit" != x"no"; then
4943 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4946 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4947 echo "configure:4948: checking if \$CC accepts -Wall -Winline" >&5
4948 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 CFLAGS="${save_CFLAGS} -Wall -Winline"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4960 if { (eval echo configure:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4962 ac_cv_c_Wall_Winline=yes
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 ac_cv_c_Wall_Winline=no
4972 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4973 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4974 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4976 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4977 echo "configure:4978: checking if \$CC accepts -wall -winline" >&5
4978 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 CFLAGS="${save_CFLAGS} -wall -winline"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4992 ac_cv_c_wall_winline=yes
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4997 ac_cv_c_wall_winline=no
5002 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5003 if test x"$ac_cv_c_wall_winline" != x"no"; then
5004 save_CFLAGS="${save_CFLAGS} -wall -winline"
5008 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5009 echo "configure:5010: checking if \$CC accepts -pipe" >&5
5010 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5013 CFLAGS="${save_CFLAGS} -pipe"
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5022 if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5034 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5035 if test x"$ac_cv_c_pipe" != x"no"; then
5036 save_CFLAGS="${save_CFLAGS} -pipe"
5039 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5040 echo "configure:5041: checking if \$CC accepts -O3" >&5
5041 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5044 CFLAGS="${save_CFLAGS} -O3"
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5053 if { (eval echo configure:5054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5065 echo "$ac_t""$ac_cv_c_o3" 1>&6
5066 if test x"$ac_cv_c_o3" != x"no"; then
5067 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5069 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5070 echo "configure:5071: checking if \$CC accepts -O2" >&5
5071 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 CFLAGS="${save_CFLAGS} -O2"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5095 echo "$ac_t""$ac_cv_c_o2" 1>&6
5096 if test x"$ac_cv_c_o2" != x"no"; then
5097 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5099 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5100 echo "configure:5101: checking if \$CC accepts -O" >&5
5101 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 CFLAGS="${save_CFLAGS} -O"
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5113 if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5125 echo "$ac_t""$ac_cv_c_o" 1>&6
5126 if test x"$ac_cv_c_o" != x"no"; then
5127 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5132 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5133 echo "configure:5134: checking if \$CC accepts -ffast-math" >&5
5134 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 CFLAGS="${save_CFLAGS} -ffast-math"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148 ac_cv_c_fast_math=yes
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 ac_cv_c_fast_math=no
5158 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5159 if test x"$ac_cv_c_fast_math" != x"no"; then
5160 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5163 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5164 echo "configure:5165: checking if \$CC accepts -funroll-loops" >&5
5165 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 CFLAGS="${save_CFLAGS} -funroll-loops"
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5177 if { (eval echo configure:5178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 ac_cv_c_unroll_loops=yes
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5184 ac_cv_c_unroll_loops=no
5189 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5190 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5191 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5194 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5195 echo "configure:5196: checking if \$CC accepts -fomit-frame-pointer" >&5
5196 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 ac_cv_c_omit_frame_pointer=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 ac_cv_c_omit_frame_pointer=no
5220 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5221 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5222 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5225 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5226 echo "configure:5227: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5227 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5239 if { (eval echo configure:5240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5251 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5252 if test x"$ac_cv_ld_darwin" != x"no"; then
5253 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5256 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5257 echo "configure:5258: checking if \$CC accepts -shared" >&5
5258 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 CFLAGS="${save_CFLAGS} -shared"
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5270 if { (eval echo configure:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5272 ac_cv_ld_plugins=yes
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5282 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5283 if test x"$ac_cv_ld_plugins" != x"no"; then
5284 PLDFLAGS="${PLDFLAGS} -shared"
5287 if test x"${SOFLAGS}" = x; then
5288 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5289 echo "configure:5290: checking for soname setting" >&5
5290 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5295 try_SOFLAGS="-Wl,-soname -Wl,"
5296 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5307 ac_cv_ld_soname="${try_SOFLAGS}"
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5314 try_SOFLAGS="-Wl,-h -Wl,"
5315 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5326 ac_cv_ld_soname="${try_SOFLAGS}"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 ac_cv_ld_soname=none
5339 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5340 if test x"$ac_cv_ld_soname" != x"none"; then
5341 SOFLAGS=$ac_cv_ld_soname
5345 Your system doesn't seem to have support for dynamic linking. You may
5346 have problems using libdvdcss.
5352 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5353 echo "configure:5354: checking __attribute__ ((aligned ())) support" >&5
5354 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 ac_cv_c_attribute_aligned=0
5358 CFLAGS="${save_CFLAGS} -Werror"
5359 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5365 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5368 if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5370 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5379 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5380 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5381 cat >> confdefs.h <<EOF
5382 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5387 CFLAGS="${save_CFLAGS}"
5388 LDFLAGS="${save_LDFLAGS}"
5390 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5391 echo "configure:5392: checking for boolean_t in sys/types.h" >&5
5392 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 #include <sys/types.h>
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 ac_cv_c_boolean_t_sys_types_h=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 ac_cv_c_boolean_t_sys_types_h=no
5415 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5416 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5417 cat >> confdefs.h <<\EOF
5418 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5423 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5424 echo "configure:5425: checking for boolean_t in pthread.h" >&5
5425 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <pthread.h>
5436 if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 ac_cv_c_boolean_t_pthread_h=yes
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 ac_cv_c_boolean_t_pthread_h=no
5448 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5449 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5450 cat >> confdefs.h <<\EOF
5451 #define BOOLEAN_T_IN_PTHREAD_H 1
5456 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5457 echo "configure:5458: checking for boolean_t in cthreads.h" >&5
5458 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <cthreads.h>
5469 if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5471 ac_cv_c_boolean_t_cthreads_h=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 ac_cv_c_boolean_t_cthreads_h=no
5481 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5482 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5483 cat >> confdefs.h <<\EOF
5484 #define BOOLEAN_T_IN_CTHREADS_H 1
5489 case x"${target_cpu}" in
5498 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5499 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5501 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5502 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5503 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5504 SSE_MODULES="imdctsse downmixsse"
5505 ALTIVEC_MODULES="idctaltivec motionaltivec"
5507 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5508 echo "configure:5509: checking if \$CC groks MMX inline assembly" >&5
5509 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5517 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5522 ac_cv_mmx_inline=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5532 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5533 if test x"$ac_cv_mmx_inline" != x"no"; then
5534 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5537 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5538 echo "configure:5539: checking if \$CC groks MMX EXT inline assembly" >&5
5539 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5550 if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552 ac_cv_mmxext_inline=yes
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 ac_cv_mmxext_inline=no
5562 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5563 if test x"$ac_cv_mmxext_inline" != x"no"; then
5564 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5567 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5568 echo "configure:5569: checking if \$CC groks 3D Now! inline assembly" >&5
5569 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 ac_cv_3dnow_inline=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 ac_cv_3dnow_inline=no
5592 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5593 if test x"$ac_cv_3dnow_inline" != x"no"; then
5594 cat >> confdefs.h <<\EOF
5595 #define CAN_COMPILE_3DNOW 1
5598 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5601 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5602 echo "configure:5603: checking if \$CC groks SSE inline assembly" >&5
5603 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5611 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5614 if { (eval echo configure:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5616 ac_cv_sse_inline=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5626 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5627 if test x"$ac_cv_sse_inline" != x"no"; then
5628 cat >> confdefs.h <<\EOF
5629 #define CAN_COMPILE_SSE 1
5632 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5635 # don't try to grok altivec with native mingw32 it doesn't work right now
5636 # we should be able to remove this test with future versions of mingw32
5637 if test x$SYS != xmingw32; then
5638 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5639 echo "configure:5640: checking if \$CC groks Altivec inline assembly" >&5
5640 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5648 asm volatile("vperm 0,1,2,3");
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 ac_cv_altivec_inline=yes
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5659 CFLAGS="$CFLAGS -Wa,-m7400"
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5665 asm volatile("vperm 0,1,2,3");
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 ac_cv_altivec_inline="-Wa,-m7400"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 ac_cv_altivec_inline=no
5684 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5685 if test x"$ac_cv_altivec_inline" != x"no"; then
5686 cat >> confdefs.h <<\EOF
5687 #define CAN_COMPILE_ALTIVEC 1
5690 if test x"$ac_cv_altivec_inline" != x"yes"; then
5691 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5692 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5693 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5695 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5698 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5699 echo "configure:5700: checking if \$CC groks Altivec C extensions" >&5
5700 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5704 CFLAGS="$CFLAGS -faltivec"
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5711 vec_mtvscr((vector unsigned int)(0));
5714 if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716 ac_cv_c_altivec=-faltivec
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5723 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5729 vec_mtvscr((vector unsigned int)(0));
5732 if { (eval echo configure:5733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5734 ac_cv_c_altivec="-fvec"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5749 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5750 if test x"$ac_cv_c_altivec" != x"no"; then
5751 cat >> confdefs.h <<\EOF
5752 #define CAN_COMPILE_C_ALTIVEC 1
5755 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5756 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5757 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5758 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5761 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5762 echo "configure:5763: checking if linker needs -framework vecLib" >&5
5763 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 save_LDFLAGS=$LDFLAGS
5767 LDFLAGS="$LDFLAGS -framework vecLib"
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778 ac_cv_ld_altivec=yes
5780 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5786 LDFLAGS=$save_LDFLAGS
5790 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5791 if test x"$ac_cv_ld_altivec" != x"no"; then
5792 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5793 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5794 LIB_VLC="${LIB_VLC} -framework vecLib"
5804 DVD_DEVICE="/dev/dvd"
5805 VCD_DEVICE="/dev/cdrom"
5809 cat >> confdefs.h <<EOF
5810 #define DVD_DEVICE "$DVD_DEVICE"
5813 cat >> confdefs.h <<EOF
5814 #define VCD_DEVICE "$VCD_DEVICE"
5820 CAN_BUILD_LIBDVDCSS=0
5822 for ac_hdr in winioctl.h
5824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5826 echo "configure:5827: checking for $ac_hdr" >&5
5827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5830 cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5836 { (eval echo configure:5837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5838 if test -z "$ac_err"; then
5840 eval "ac_cv_header_$ac_safe=yes"
5843 echo "configure: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 eval "ac_cv_header_$ac_safe=no"
5850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5851 echo "$ac_t""yes" 1>&6
5852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5853 cat >> confdefs.h <<EOF
5854 #define $ac_tr_hdr 1
5857 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5860 echo "$ac_t""no" 1>&6
5865 for ac_hdr in sys/ioctl.h
5867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5869 echo "configure:5870: checking for $ac_hdr" >&5
5870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5873 cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5879 { (eval echo configure:5880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5881 if test -z "$ac_err"; then
5883 eval "ac_cv_header_$ac_safe=yes"
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5889 eval "ac_cv_header_$ac_safe=no"
5893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5894 echo "$ac_t""yes" 1>&6
5895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5896 cat >> confdefs.h <<EOF
5897 #define $ac_tr_hdr 1
5900 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5901 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5905 echo "configure:5906: checking for $ac_hdr" >&5
5906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5915 { (eval echo configure:5916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5917 if test -z "$ac_err"; then
5919 eval "ac_cv_header_$ac_safe=yes"
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 eval "ac_cv_header_$ac_safe=no"
5929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5932 cat >> confdefs.h <<EOF
5933 #define $ac_tr_hdr 1
5937 echo "$ac_t""no" 1>&6
5943 OPENBSD_DVD_STRUCT=0
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 #include <sys/cdio.h>
5949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5950 egrep "dvd_struct" >/dev/null 2>&1; then
5953 cat >> confdefs.h <<\EOF
5954 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 #include <sys/cdio.h>
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 egrep "struct dvd_struct" >/dev/null 2>&1; then
5969 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <sys/dvdio.h>
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 egrep "dvd_struct" >/dev/null 2>&1; then
5986 cat >> confdefs.h <<\EOF
5987 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 #include <sys/dvdio.h>
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 egrep "struct dvd_struct" >/dev/null 2>&1; then
6010 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6013 #include <linux/cdrom.h>
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 egrep "dvd_struct" >/dev/null 2>&1; then
6019 cat >> confdefs.h <<\EOF
6020 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 egrep "dvd_struct" >/dev/null 2>&1; then
6038 cat >> confdefs.h <<\EOF
6039 #define DVD_STRUCT_IN_DVD_H 1
6042 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6048 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_hdr" >&5
6053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6066 eval "ac_cv_header_$ac_safe=yes"
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 eval "ac_cv_header_$ac_safe=no"
6076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6079 cat >> confdefs.h <<EOF
6080 #define $ac_tr_hdr 1
6084 cat >> confdefs.h <<\EOF
6085 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6088 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6092 echo "$ac_t""no" 1>&6
6100 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6101 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6102 echo "configure:6103: checking for sys/scsi/scsi_types.h" >&5
6103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 #include <sys/scsi/scsi_types.h>
6111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6112 { (eval echo configure:6113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6114 if test -z "$ac_err"; then
6116 eval "ac_cv_header_$ac_safe=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_header_$ac_safe=no"
6126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6129 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6130 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6131 echo "configure:6132: checking for sys/scsi/impl/uscsi.h" >&5
6132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 #include <sys/scsi/impl/uscsi.h>
6140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6141 { (eval echo configure:6142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6143 if test -z "$ac_err"; then
6145 eval "ac_cv_header_$ac_safe=yes"
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 eval "ac_cv_header_$ac_safe=no"
6155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6156 echo "$ac_t""yes" 1>&6
6158 cat >> confdefs.h <<\EOF
6159 #define SOLARIS_USCSI 1
6164 echo "$ac_t""no" 1>&6
6169 echo "$ac_t""no" 1>&6
6172 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6173 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6174 echo "configure:6175: checking for sys/scsi.h" >&5
6175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <sys/scsi.h>
6183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6184 { (eval echo configure:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6186 if test -z "$ac_err"; then
6188 eval "ac_cv_header_$ac_safe=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_header_$ac_safe=no"
6198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6199 echo "$ac_t""yes" 1>&6
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 #include <sys/scsi.h>
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 egrep "sctl_io" >/dev/null 2>&1; then
6210 cat >> confdefs.h <<\EOF
6211 #define HPUX_SCTL_IO 1
6220 echo "$ac_t""no" 1>&6
6223 if test x$LINUX_DVD_STRUCT = x1; then
6224 cat >> confdefs.h <<\EOF
6225 #define HAVE_LINUX_DVD_STRUCT 1
6228 if test x$OPENBSD_DVD_STRUCT = x1; then
6229 cat >> confdefs.h <<\EOF
6230 #define HAVE_OPENBSD_DVD_STRUCT 1
6235 if test x$BSD_DVD_STRUCT = x1; then
6236 cat >> confdefs.h <<\EOF
6237 #define HAVE_BSD_DVD_STRUCT 1
6244 echo "$ac_t""no" 1>&6
6249 # Check whether --with- or --without- was given.
6250 if test "${with_+set}" = set; then
6255 # Check whether --with- or --without- was given.
6256 if test "${with_+set}" = set; then
6262 # Check whether --with-tuning or --without-tuning was given.
6263 if test "${with_tuning+set}" = set; then
6264 withval="$with_tuning"
6268 if test "x$withval" != "x"; then
6271 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6273 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6277 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6280 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6283 # Check whether --enable-optimizations or --disable-optimizations was given.
6284 if test "${enable_optimizations+set}" = set; then
6285 enableval="$enable_optimizations"
6286 if test x$enableval = xno; then OPTIMS=0; fi
6292 # Check whether --enable-altivec or --disable-altivec was given.
6293 if test "${enable_altivec+set}" = set; then
6294 enableval="$enable_altivec"
6295 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6296 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6298 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6299 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6304 # Check whether --enable-debug or --disable-debug was given.
6305 if test "${enable_debug+set}" = set; then
6306 enableval="$enable_debug"
6307 if test x$enableval = xyes; then DEBUG=1; fi
6311 # Check whether --enable-release or --disable-release was given.
6312 if test "${enable_release+set}" = set; then
6313 enableval="$enable_release"
6314 if test x$enableval = xyes; then RELEASE=1; fi
6316 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6317 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6322 # Check whether --with- or --without- was given.
6323 if test "${with_+set}" = set; then
6332 # Check whether --with-dvdcss or --without-dvdcss was given.
6333 if test "${with_dvdcss+set}" = set; then
6334 withval="$with_dvdcss"
6335 case "x${withval}" in
6337 # local libdvdcss, statically linked
6338 BUILTINS="${BUILTINS} dvd"
6339 if test x${CAN_BUILD_LIBDVDCSS} = x1
6343 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6344 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6348 # local libdvdcss, dynamically linked
6349 PLUGINS="${PLUGINS} dvd"
6350 if test x${CAN_BUILD_LIBDVDCSS} = x1
6353 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6354 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6358 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6359 PLUGINS="${PLUGINS} dvd"
6361 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6362 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6363 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6364 LIB_DVD="${LIB_DVD} -ldl"
6367 # existing libdvdcss
6368 PLUGINS="${PLUGINS} dvd"
6369 if test "x$withval" != "xyes"
6371 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6372 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6374 LIB_DVD="${LIB_DVD} -ldvdcss"
6377 # user didn't decide, we choose to use local libdvdcss and link statically
6378 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6379 if test x${CAN_BUILD_LIBDVDCSS} = x1
6381 BUILTINS="${BUILTINS} dvd"
6384 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6385 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6387 # XXX: no check for libdl is done, don't try this at home !
6388 PLUGINS="${PLUGINS} dvd"
6390 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6391 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6392 LIB_DVD="${LIB_DVD} -ldl"
6397 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6398 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6399 # Check whether --with-dvdread or --without-dvdread was given.
6400 if test "${with_dvdread+set}" = set; then
6401 withval="$with_dvdread"
6402 case "x${withval}" in
6404 if test x${STATIC_LIBDVDREAD} = x1
6406 BUILTINS="${BUILTINS} dvdread"
6407 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6408 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6410 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6416 if test x${STATIC_LIBDVDREAD} = x1
6418 #BUILTINS="${BUILTINS} dvdread"
6419 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6420 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6422 #PLUGINS="${PLUGINS} dvdread"
6423 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6424 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6428 if test "x$withval" != "xlocal-shared"
6430 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6431 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6433 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6434 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6436 if test x${STATIC_LIBDVDCSS} = x1
6438 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6440 #PLUGINS="${PLUGINS} dvdread"
6441 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6442 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6445 if test x${DUMMY_LIBDVDCSS} = x1
6447 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6449 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6454 # Check whether --enable-vcd or --disable-vcd was given.
6455 if test "${enable_vcd+set}" = set; then
6456 enableval="$enable_vcd"
6461 if test x$enable_vcd != xno
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 #include <linux/cdrom.h>
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 egrep "cdrom_msf0" >/dev/null 2>&1; then
6472 PLUGINS="${PLUGINS} vcd"
6478 if test "x${SYS}" = "xbsdi"
6480 PLUGINS="${PLUGINS} vcd"
6483 if test "x${SYS}" = "xdarwin"
6485 PLUGINS="${PLUGINS} vcd"
6486 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 #include <netinet/in.h>
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 egrep "in6_addr" >/dev/null 2>&1; then
6499 PLUGINS="${PLUGINS} ipv6"
6505 # Check whether --with- or --without- was given.
6506 if test "${with_+set}" = set; then
6512 # Check whether --enable-mad or --disable-mad was given.
6513 if test "${enable_mad+set}" = set; then
6514 enableval="$enable_mad"
6518 if test x$enable_mad = xyes
6520 PLUGINS="${PLUGINS} mad"
6521 LIB_MAD="${LIB_MAD} -lmad"
6522 # Check whether --with-mad or --without-mad was given.
6523 if test "${with_mad+set}" = set; then
6525 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6527 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6528 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6533 save_LDFLAGS=$LDFLAGS
6534 CFLAGS="$CFLAGS $CFLAGS_MAD"
6535 LDFLAGS="$LDFLAGS $LIB_MAD"
6538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6540 echo "configure:6541: checking for $ac_hdr" >&5
6541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6550 { (eval echo configure:6551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6552 if test -z "$ac_err"; then
6554 eval "ac_cv_header_$ac_safe=yes"
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6560 eval "ac_cv_header_$ac_safe=no"
6564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6565 echo "$ac_t""yes" 1>&6
6566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6567 cat >> confdefs.h <<EOF
6568 #define $ac_tr_hdr 1
6572 echo "$ac_t""no" 1>&6
6573 echo "Cannot find development headers for libmad..."
6579 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6580 echo "configure:6581: checking for mad_bit_init in -lmad" >&5
6581 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6585 ac_save_LIBS="$LIBS"
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593 char mad_bit_init();
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 eval "ac_cv_lib_$ac_lib_var=yes"
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 eval "ac_cv_lib_$ac_lib_var=no"
6609 LIBS="$ac_save_LIBS"
6612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6616 cat >> confdefs.h <<EOF
6617 #define $ac_tr_lib 1
6623 echo "$ac_t""no" 1>&6
6624 echo "Cannot find libmad library..."
6630 LDFLAGS=$save_LDFLAGS
6633 if test x$SYS = xbeos
6635 PLUGINS="${PLUGINS} beos"
6639 # Check whether --enable-a52 or --disable-a52 was given.
6640 if test "${enable_a52+set}" = set; then
6641 enableval="$enable_a52"
6645 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6647 for ac_hdr in a52dec/a52.h
6649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_hdr" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6665 eval "ac_cv_header_$ac_safe=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_hdr 1
6682 BUILTINS="${BUILTINS} a52"
6683 LIB_A52="${LIB_A52} -la52"
6686 echo "$ac_t""no" 1>&6
6693 # Check whether --with- or --without- was given.
6694 if test "${with_+set}" = set; then
6700 # Check whether --enable-x11 or --disable-x11 was given.
6701 if test "${enable_x11+set}" = set; then
6702 enableval="$enable_x11"
6706 if test x$enable_x11 != xno &&
6707 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6708 if test x$x_includes = xNONE; then
6709 x_includes=/usr/X11R6/include
6711 if test x$x_libraries = xNONE; then
6712 x_libraries=/usr/X11R6/lib
6714 saved_CPPFLAGS=$CPPFLAGS
6715 CPPFLAGS="$CPPFLAGS -I$x_includes"
6716 for ac_hdr in X11/Xlib.h
6718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_hdr" >&5
6721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6730 { (eval echo configure:6731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6732 if test -z "$ac_err"; then
6734 eval "ac_cv_header_$ac_safe=yes"
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 eval "ac_cv_header_$ac_safe=no"
6744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6747 cat >> confdefs.h <<EOF
6748 #define $ac_tr_hdr 1
6751 PLUGINS="${PLUGINS} x11"
6752 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6753 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6756 echo "$ac_t""no" 1>&6
6760 CPPFLAGS=$saved_CPPFLAGS
6763 # Check whether --enable-xvideo or --disable-xvideo was given.
6764 if test "${enable_xvideo+set}" = set; then
6765 enableval="$enable_xvideo"
6769 if test x$enable_xvideo != xno &&
6770 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6771 if test x$x_includes = xNONE; then
6772 x_includes=/usr/X11R6/include
6774 if test x$x_libraries = xNONE; then
6775 x_libraries=/usr/X11R6/lib
6777 saved_CPPFLAGS=$CPPFLAGS
6778 CPPFLAGS="$CPPFLAGS -I$x_includes"
6779 for ac_hdr in X11/extensions/Xv.h
6781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_hdr" >&5
6784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6797 eval "ac_cv_header_$ac_safe=yes"
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 eval "ac_cv_header_$ac_safe=no"
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6810 cat >> confdefs.h <<EOF
6811 #define $ac_tr_hdr 1
6814 saved_CFLAGS=$CFLAGS
6815 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6816 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6817 echo "configure:6818: checking for XvSetPortAttribute in -lXv_pic" >&5
6818 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 ac_save_LIBS="$LIBS"
6823 LIBS="-lXv_pic $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char XvSetPortAttribute();
6833 XvSetPortAttribute()
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6838 eval "ac_cv_lib_$ac_lib_var=yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6843 eval "ac_cv_lib_$ac_lib_var=no"
6846 LIBS="$ac_save_LIBS"
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6852 PLUGINS="${PLUGINS} xvideo"
6853 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6854 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6856 echo "$ac_t""no" 1>&6
6857 # We don't have Xv_pic, let's make xvideo.a as builtin
6858 BUILTINS="${BUILTINS} xvideo"
6859 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6860 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6863 CFLAGS=$saved_CFLAGS
6865 CPPFLAGS=$saved_CPPFLAGS
6867 echo "$ac_t""no" 1>&6
6873 # Check whether --enable-sdl or --disable-sdl was given.
6874 if test "${enable_sdl+set}" = set; then
6875 enableval="$enable_sdl"
6879 if test "x$enable_sdl" != "xno"
6882 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6883 if test "${with_sdl_config_path+set}" = set; then
6884 withval="$with_sdl_config_path"
6885 if test "x$withval" != "xno"
6887 SDL_PATH=$withval:$PATH
6891 # Extract the first word of "sdl12-config", so it can be a program name with args.
6892 set dummy sdl12-config; ac_word=$2
6893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6894 echo "configure:6895: checking for $ac_word" >&5
6895 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 case "$SDL12_CONFIG" in
6900 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6903 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6907 ac_dummy="$SDL_PATH"
6908 for ac_dir in $ac_dummy; do
6909 test -z "$ac_dir" && ac_dir=.
6910 if test -f $ac_dir/$ac_word; then
6911 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6916 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6920 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6921 if test -n "$SDL12_CONFIG"; then
6922 echo "$ac_t""$SDL12_CONFIG" 1>&6
6924 echo "$ac_t""no" 1>&6
6927 SDL_CONFIG=${SDL12_CONFIG}
6928 SDL_HEADER="SDL12/SDL.h"
6929 if test x${SDL_CONFIG} = xno
6931 # Extract the first word of "sdl11-config", so it can be a program name with args.
6932 set dummy sdl11-config; ac_word=$2
6933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6934 echo "configure:6935: checking for $ac_word" >&5
6935 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 case "$SDL11_CONFIG" in
6940 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6943 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6947 ac_dummy="$SDL_PATH"
6948 for ac_dir in $ac_dummy; do
6949 test -z "$ac_dir" && ac_dir=.
6950 if test -f $ac_dir/$ac_word; then
6951 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6956 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6960 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6961 if test -n "$SDL11_CONFIG"; then
6962 echo "$ac_t""$SDL11_CONFIG" 1>&6
6964 echo "$ac_t""no" 1>&6
6967 SDL_CONFIG=${SDL11_CONFIG}
6968 SDL_HEADER="SDL11/SDL.h"
6970 if test x${SDL_CONFIG} = xno
6972 # Extract the first word of "sdl-config", so it can be a program name with args.
6973 set dummy sdl-config; ac_word=$2
6974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6975 echo "configure:6976: checking for $ac_word" >&5
6976 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 case "$SDL_CONFIG" in
6981 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6984 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6988 ac_dummy="$SDL_PATH"
6989 for ac_dir in $ac_dummy; do
6990 test -z "$ac_dir" && ac_dir=.
6991 if test -f $ac_dir/$ac_word; then
6992 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6997 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7001 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7002 if test -n "$SDL_CONFIG"; then
7003 echo "$ac_t""$SDL_CONFIG" 1>&6
7005 echo "$ac_t""no" 1>&6
7008 SDL_HEADER="SDL/SDL.h"
7010 if test x${SDL_CONFIG} != xno
7012 PLUGINS="${PLUGINS} sdl"
7013 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7014 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7015 save_CPPFLAGS=$CPPFLAGS
7016 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7017 for ac_hdr in ${SDL_HEADER}
7019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_hdr" >&5
7022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7031 { (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7033 if test -z "$ac_err"; then
7035 eval "ac_cv_header_$ac_safe=yes"
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 eval "ac_cv_header_$ac_safe=no"
7045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7046 echo "$ac_t""yes" 1>&6
7047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7048 cat >> confdefs.h <<EOF
7049 #define $ac_tr_hdr 1
7051 cat >> confdefs.h <<EOF
7052 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7056 echo "$ac_t""no" 1>&6
7057 { echo "configure: error: The development package for SDL is not installed.
7058 Please install it and try again. Alternatively you can also configure with
7059 --disable-sdl." 1>&2; exit 1; }
7064 CPPFLAGS=$save_CPPFLAGS
7065 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7067 { echo "configure: error: The development package for SDL is not installed.
7068 Please install it and try again. Alternatively you can also configure with
7069 --disable-sdl." 1>&2; exit 1; }
7071 elif test "x$enable_sdl" = "xyes"
7073 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7074 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7079 # Check whether --enable-directx or --disable-directx was given.
7080 if test "${enable_directx+set}" = set; then
7081 enableval="$enable_directx"
7085 if test "x$enableval" != "xno"
7087 if test x$SYS = xmingw32
7089 # Check whether --with-directx or --without-directx was given.
7090 if test "${with_directx+set}" = set; then
7091 withval="$with_directx"
7095 if test "x$with_directx" = "x"
7097 for ac_hdr in ddraw.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
7131 PLUGINS="${PLUGINS} directx"
7132 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7134 echo "$ac_t""no" 1>&6
7139 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7140 echo "configure:7141: checking for directX headers in ${withval}" >&5
7141 if test -f ${withval}/ddraw.h
7143 PLUGINS="${PLUGINS} directx"
7144 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7145 INCLUDE="${INCLUDE} -I${withval}"
7146 echo "$ac_t""yes" 1>&6
7148 echo "$ac_t""no" 1>&6
7149 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7155 # Check whether --enable-fb or --disable-fb was given.
7156 if test "${enable_fb+set}" = set; then
7157 enableval="$enable_fb"
7161 if test x$enable_fb != xno
7163 for ac_hdr in linux/fb.h
7165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_hdr" >&5
7168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7171 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7179 if test -z "$ac_err"; then
7181 eval "ac_cv_header_$ac_safe=yes"
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7187 eval "ac_cv_header_$ac_safe=no"
7191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7194 cat >> confdefs.h <<EOF
7195 #define $ac_tr_hdr 1
7198 PLUGINS="${PLUGINS} fb"
7201 echo "$ac_t""no" 1>&6
7207 # Check whether --enable-mga or --disable-mga was given.
7208 if test "${enable_mga+set}" = set; then
7209 enableval="$enable_mga"
7210 if test x$enable_mga = xyes
7212 PLUGINS="${PLUGINS} mga xmga"
7217 # Check whether --enable-ggi or --disable-ggi was given.
7218 if test "${enable_ggi+set}" = set; then
7219 enableval="$enable_ggi"
7223 if test x$enable_ggi = xyes
7225 PLUGINS="${PLUGINS} ggi"
7226 LIB_GGI="${LIB_GGI} -lggi"
7227 # Check whether --with-ggi or --without-ggi was given.
7228 if test "${with_ggi+set}" = set; then
7230 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7232 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7233 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7239 # Check whether --enable-glide or --disable-glide was given.
7240 if test "${enable_glide+set}" = set; then
7241 enableval="$enable_glide"
7245 if test x$enable_glide = xyes
7247 PLUGINS="${PLUGINS} glide"
7248 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7249 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7250 # Check whether --with-glide or --without-glide was given.
7251 if test "${with_glide+set}" = set; then
7252 withval="$with_glide"
7253 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7255 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7256 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7262 # Check whether --enable-aa or --disable-aa was given.
7263 if test "${enable_aa+set}" = set; then
7264 enableval="$enable_aa"
7268 if test x$enable_aa = xyes
7270 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7271 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7272 echo "configure:7273: checking for aalib.h" >&5
7273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7282 { (eval echo configure:7283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7284 if test -z "$ac_err"; then
7286 eval "ac_cv_header_$ac_safe=yes"
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7292 eval "ac_cv_header_$ac_safe=no"
7296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7297 echo "$ac_t""yes" 1>&6
7300 echo "$ac_t""no" 1>&6
7304 if test x$have_aa = xtrue
7306 PLUGINS="${PLUGINS} aa"
7307 LIB_AA="${LIB_AA} -laa"
7312 # Check whether --with- or --without- was given.
7313 if test "${with_+set}" = set; then
7319 # Check whether --enable-dsp or --disable-dsp was given.
7320 if test "${enable_dsp+set}" = set; then
7321 enableval="$enable_dsp"
7326 if test x$enable_dsp != xno &&
7327 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7329 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_hdr" >&5
7334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7343 { (eval echo configure:7344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7345 if test -z "$ac_err"; then
7347 eval "ac_cv_header_$ac_safe=yes"
7350 echo "configure: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7353 eval "ac_cv_header_$ac_safe=no"
7357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7358 echo "$ac_t""yes" 1>&6
7359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7360 cat >> confdefs.h <<EOF
7361 #define $ac_tr_hdr 1
7364 PLUGINS="${PLUGINS} dsp"
7365 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7366 echo "configure:7367: checking for main in -lossaudio" >&5
7367 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7371 ac_save_LIBS="$LIBS"
7372 LIBS="-lossaudio $LIBS"
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7383 eval "ac_cv_lib_$ac_lib_var=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_lib_$ac_lib_var=no"
7391 LIBS="$ac_save_LIBS"
7394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7395 echo "$ac_t""yes" 1>&6
7396 LIB_DSP="${LIB_DSP} -lossaudio"
7398 echo "$ac_t""no" 1>&6
7403 echo "$ac_t""no" 1>&6
7409 # Check whether --enable-esd or --disable-esd was given.
7410 if test "${enable_esd+set}" = set; then
7411 enableval="$enable_esd"
7412 if test x$enable_esd = xyes
7414 # Extract the first word of "esd-config", so it can be a program name with args.
7415 set dummy esd-config; ac_word=$2
7416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7417 echo "configure:7418: checking for $ac_word" >&5
7418 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7421 case "$ESD_CONFIG" in
7423 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7426 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7431 for ac_dir in $ac_dummy; do
7432 test -z "$ac_dir" && ac_dir=.
7433 if test -f $ac_dir/$ac_word; then
7434 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7439 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7443 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7444 if test -n "$ESD_CONFIG"; then
7445 echo "$ac_t""$ESD_CONFIG" 1>&6
7447 echo "$ac_t""no" 1>&6
7450 if test x${ESD_CONFIG} != xno
7452 PLUGINS="${PLUGINS} esd"
7453 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7454 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7460 # Check whether --enable-arts or --disable-arts was given.
7461 if test "${enable_arts+set}" = set; then
7462 enableval="$enable_arts"
7463 if test x$enable_arts = xyes
7465 # Extract the first word of "artsc-config", so it can be a program name with args.
7466 set dummy artsc-config; ac_word=$2
7467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_word" >&5
7469 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 case "$ARTS_CONFIG" in
7474 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7477 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7482 for ac_dir in $ac_dummy; do
7483 test -z "$ac_dir" && ac_dir=.
7484 if test -f $ac_dir/$ac_word; then
7485 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7490 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7494 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7495 if test -n "$ARTS_CONFIG"; then
7496 echo "$ac_t""$ARTS_CONFIG" 1>&6
7498 echo "$ac_t""no" 1>&6
7501 if test x${ARTS_CONFIG} != xno
7503 PLUGINS="${PLUGINS} arts"
7504 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7505 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7511 # Check whether --enable-alsa or --disable-alsa was given.
7512 if test "${enable_alsa+set}" = set; then
7513 enableval="$enable_alsa"
7514 if test x$enable_alsa = xyes
7516 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7517 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7518 echo "configure:7519: checking for alsa/asoundlib.h" >&5
7519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <alsa/asoundlib.h>
7527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7528 { (eval echo configure:7529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7530 if test -z "$ac_err"; then
7532 eval "ac_cv_header_$ac_safe=yes"
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7538 eval "ac_cv_header_$ac_safe=no"
7542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7543 echo "$ac_t""yes" 1>&6
7544 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7545 echo "configure:7546: checking for main in -lasound" >&5
7546 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6
7550 ac_save_LIBS="$LIBS"
7551 LIBS="-lasound $LIBS"
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7562 eval "ac_cv_lib_$ac_lib_var=yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7567 eval "ac_cv_lib_$ac_lib_var=no"
7570 LIBS="$ac_save_LIBS"
7573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7577 echo "$ac_t""no" 1>&6
7582 echo "$ac_t""no" 1>&6
7586 if test x$have_alsa = xtrue
7588 PLUGINS="${PLUGINS} alsa"
7589 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7595 # Check whether --enable-waveout or --disable-waveout was given.
7596 if test "${enable_waveout+set}" = set; then
7597 enableval="$enable_waveout"
7601 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7603 PLUGINS="${PLUGINS} waveout"
7604 LIB_WAVEOUT="-lwinmm"
7608 # Check whether --with- or --without- was given.
7609 if test "${with_+set}" = set; then
7615 # Check whether --enable-gtk or --disable-gtk was given.
7616 if test "${enable_gtk+set}" = set; then
7617 enableval="$enable_gtk"
7621 if test x$enable_gtk != xno
7624 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7625 if test "${with_gtk_config_path+set}" = set; then
7626 withval="$with_gtk_config_path"
7627 if test "x$withval" != "xno"
7629 GTK_PATH=$withval:$PATH
7633 # look for gtk-config
7634 # Extract the first word of "gtk12-config", so it can be a program name with args.
7635 set dummy gtk12-config; ac_word=$2
7636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7637 echo "configure:7638: checking for $ac_word" >&5
7638 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 case "$GTK12_CONFIG" in
7643 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7646 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7650 ac_dummy="$GTK_PATH"
7651 for ac_dir in $ac_dummy; do
7652 test -z "$ac_dir" && ac_dir=.
7653 if test -f $ac_dir/$ac_word; then
7654 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7659 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7663 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7664 if test -n "$GTK12_CONFIG"; then
7665 echo "$ac_t""$GTK12_CONFIG" 1>&6
7667 echo "$ac_t""no" 1>&6
7670 GTK_CONFIG=${GTK12_CONFIG}
7671 if test x${GTK_CONFIG} = xno
7673 # Extract the first word of "gtk-config", so it can be a program name with args.
7674 set dummy gtk-config; ac_word=$2
7675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_word" >&5
7677 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 case "$GTK_CONFIG" in
7682 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7685 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7689 ac_dummy="$GTK_PATH"
7690 for ac_dir in $ac_dummy; do
7691 test -z "$ac_dir" && ac_dir=.
7692 if test -f $ac_dir/$ac_word; then
7693 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7698 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7702 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7703 if test -n "$GTK_CONFIG"; then
7704 echo "$ac_t""$GTK_CONFIG" 1>&6
7706 echo "$ac_t""no" 1>&6
7710 if test x${GTK_CONFIG} != xno
7712 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7714 { 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; }
7716 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7717 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7718 # now look for the gtk.h header
7719 saved_CPPFLAGS=$CPPFLAGS
7720 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7721 ac_cv_gtk_headers=yes
7722 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_hdr" >&5
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7738 if test -z "$ac_err"; then
7740 eval "ac_cv_header_$ac_safe=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 eval "ac_cv_header_$ac_safe=no"
7750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7753 cat >> confdefs.h <<EOF
7754 #define $ac_tr_hdr 1
7758 echo "$ac_t""no" 1>&6
7759 ac_cv_gtk_headers=no
7760 echo "Cannot find gtk development headers."
7765 if test "x$ac_cv_gtk_headers" = xyes
7767 PLUGINS="${PLUGINS} gtk"
7768 ALIASES="${ALIASES} gvlc"
7770 CPPFLAGS=$saved_CPPFLAGS
7774 # Check whether --enable-gnome or --disable-gnome was given.
7775 if test "${enable_gnome+set}" = set; then
7776 enableval="$enable_gnome"
7777 if test x$enable_gnome = xyes; then
7778 # look for gnome-config
7779 # Extract the first word of "gnome-config", so it can be a program name with args.
7780 set dummy gnome-config; ac_word=$2
7781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7782 echo "configure:7783: checking for $ac_word" >&5
7783 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7784 echo $ac_n "(cached) $ac_c" 1>&6
7786 case "$GNOME_CONFIG" in
7788 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7791 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7796 for ac_dir in $ac_dummy; do
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f $ac_dir/$ac_word; then
7799 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7804 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7808 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7809 if test -n "$GNOME_CONFIG"; then
7810 echo "$ac_t""$GNOME_CONFIG" 1>&6
7812 echo "$ac_t""no" 1>&6
7815 if test -x ${GNOME_CONFIG}
7817 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7818 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7820 # now look for the gnome.h header
7821 saved_CPPFLAGS=$CPPFLAGS
7822 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7823 for ac_hdr in gnome.h
7825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_hdr" >&5
7828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7841 eval "ac_cv_header_$ac_safe=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_header_$ac_safe=no"
7851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7854 cat >> confdefs.h <<EOF
7855 #define $ac_tr_hdr 1
7858 PLUGINS="${PLUGINS} gnome"
7859 ALIASES="${ALIASES} gnome-vlc"
7862 echo "$ac_t""no" 1>&6
7863 { echo "configure: error: Can't find gnome headers. Please install the gnome
7864 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7870 CPPFLAGS=$saved_CPPFLAGS
7875 # Check whether --enable-qt or --disable-qt was given.
7876 if test "${enable_qt+set}" = set; then
7877 enableval="$enable_qt"
7878 if test x$enable_qt = xyes; then
7879 PLUGINS="${PLUGINS} qt"
7880 ALIASES="${ALIASES} qvlc"
7881 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7882 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7883 if test -x ${QTDIR}/bin/moc
7885 MOC=${QTDIR}/bin/moc
7893 # Check whether --enable-kde or --disable-kde was given.
7894 if test "${enable_kde+set}" = set; then
7895 enableval="$enable_kde"
7896 if test x$enable_kde = xyes; then
7897 PLUGINS="${PLUGINS} kde"
7898 ALIASES="${ALIASES} kvlc"
7899 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7900 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7901 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7902 if test -x ${QTDIR}/bin/moc
7904 MOC=${QTDIR}/bin/moc
7912 # Check whether --enable-macosx or --disable-macosx was given.
7913 if test "${enable_macosx+set}" = set; then
7914 enableval="$enable_macosx"
7915 if test x$enable_macosx = xyes
7917 BUILTINS="${BUILTINS} macosx"
7918 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7919 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7920 LIB_COMMON="${LIB_COMMON} -ObjC"
7923 for ac_hdr in Cocoa/Cocoa.h
7925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_hdr" >&5
7928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7939 if test -z "$ac_err"; then
7941 eval "ac_cv_header_$ac_safe=yes"
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 eval "ac_cv_header_$ac_safe=no"
7951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7954 cat >> confdefs.h <<EOF
7955 #define $ac_tr_hdr 1
7957 BUILTINS="${BUILTINS} macosx"
7958 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7959 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7960 LIB_COMMON="${LIB_COMMON} -ObjC"
7963 echo "$ac_t""no" 1>&6
7970 # Check whether --enable-qnx or --disable-qnx was given.
7971 if test "${enable_qnx+set}" = set; then
7972 enableval="$enable_qnx"
7976 if test x$enable_qnx != xno
7980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_hdr" >&5
7983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994 if test -z "$ac_err"; then
7996 eval "ac_cv_header_$ac_safe=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_header_$ac_safe=no"
8006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8007 echo "$ac_t""yes" 1>&6
8008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8009 cat >> confdefs.h <<EOF
8010 #define $ac_tr_hdr 1
8013 PLUGINS="${PLUGINS} qnx"
8014 LIB_QNX="${LIB_QNX} -lasound -lph"
8017 echo "$ac_t""no" 1>&6
8023 # Check whether --enable-win32 or --disable-win32 was given.
8024 if test "${enable_win32+set}" = set; then
8025 enableval="$enable_win32"
8026 if test "x$enableval" != "xno"
8028 PLUGINS="${PLUGINS} win32"
8033 # Check whether --enable-ncurses or --disable-ncurses was given.
8034 if test "${enable_ncurses+set}" = set; then
8035 enableval="$enable_ncurses"
8036 if test x$enable_ncurses = xyes; then
8037 PLUGINS="${PLUGINS} ncurses"
8038 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8043 # Check whether --enable-lirc or --disable-lirc was given.
8044 if test "${enable_lirc+set}" = set; then
8045 enableval="$enable_lirc"
8049 if test x$enable_lirc = xyes
8051 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8052 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8053 echo "configure:8054: checking for lirc/lirc_client.h" >&5
8054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 #include <lirc/lirc_client.h>
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8067 eval "ac_cv_header_$ac_safe=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_header_$ac_safe=no"
8077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8080 echo "configure:8081: checking for lirc_init in -llirc_client" >&5
8081 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8085 ac_save_LIBS="$LIBS"
8086 LIBS="-llirc_client $LIBS"
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8101 eval "ac_cv_lib_$ac_lib_var=yes"
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8106 eval "ac_cv_lib_$ac_lib_var=no"
8109 LIBS="$ac_save_LIBS"
8112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8116 echo "$ac_t""no" 1>&6
8121 echo "$ac_t""no" 1>&6
8125 if test x$have_lirc = xtrue
8127 PLUGINS="${PLUGINS} lirc"
8128 LIB_LIRC="${LIB_LIRC} -llirc_client"
8134 # Check whether --with- or --without- was given.
8135 if test "${with_+set}" = set; then
8141 # Check whether --with-words or --without-words was given.
8142 if test "${with_words+set}" = set; then
8143 withval="$with_words"
8149 ac_cv_c_bigendian=yes
8152 ac_cv_c_bigendian=no
8155 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8156 echo "configure:8157: checking whether the byte order is big-endian" >&5
8157 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 ac_cv_c_bigendian=unknown
8161 cat >conftest.c <<EOF
8162 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8163 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8164 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8165 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8166 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8167 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8168 int main(void) { _a(); _e(); return 0; }
8171 if test -f conftest.c
8173 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8174 && test -f conftest.o
8176 if test "`strings conftest.o | grep BIGenDianSyS`"
8178 ac_cv_c_bigendian=yes
8180 if test "`strings conftest.o | grep LiTTleEnDian`"
8182 ac_cv_c_bigendian=no
8189 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8190 if test x$ac_cv_c_bigendian = xunknown
8192 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8196 if test $ac_cv_c_bigendian = yes
8198 cat >> confdefs.h <<\EOF
8199 #define WORDS_BIGENDIAN 1
8205 # Check whether --with-dll-path or --without-dll-path was given.
8206 if test "${with_dll_path+set}" = set; then
8207 withval="$with_dll_path"
8208 if test "x$withval" != "xno"
8216 # Check whether --enable-gprof or --disable-gprof was given.
8217 if test "${enable_gprof+set}" = set; then
8218 enableval="$enable_gprof"
8219 if test x$enableval = xyes; then GPROF=1; fi
8224 # Check whether --enable-cprof or --disable-cprof was given.
8225 if test "${enable_cprof+set}" = set; then
8226 enableval="$enable_cprof"
8227 if test x$enableval = xyes;
8229 LIB_COMMON="${LIB_COMMON} -lcprof"
8236 # Check whether --enable-pth or --disable-pth was given.
8237 if test "${enable_pth+set}" = set; then
8238 enableval="$enable_pth"
8239 if test x$enableval = xyes; then
8240 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8241 echo "configure:8242: checking for pth_init in -lpth" >&5
8242 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8246 ac_save_LIBS="$LIBS"
8248 cat > conftest.$ac_ext <<EOF
8249 #line 8250 "configure"
8250 #include "confdefs.h"
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8262 eval "ac_cv_lib_$ac_lib_var=yes"
8264 echo "configure: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8267 eval "ac_cv_lib_$ac_lib_var=no"
8270 LIBS="$ac_save_LIBS"
8273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8275 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8277 cat >> confdefs.h <<EOF
8278 #define $ac_tr_lib 1
8284 echo "$ac_t""no" 1>&6
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293 egrep "pth_init" >/dev/null 2>&1; then
8296 cat >> confdefs.h <<\EOF
8297 #define PTH_INIT_IN_PTH_H 1
8309 # Check whether --enable-st or --disable-st was given.
8310 if test "${enable_st+set}" = set; then
8311 enableval="$enable_st"
8312 if test x$enableval = xyes; then
8313 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8314 echo "configure:8315: checking for st_init in -lst" >&5
8315 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8319 ac_save_LIBS="$LIBS"
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335 eval "ac_cv_lib_$ac_lib_var=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_lib_$ac_lib_var=no"
8343 LIBS="$ac_save_LIBS"
8346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8348 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8350 cat >> confdefs.h <<EOF
8351 #define $ac_tr_lib 1
8357 echo "$ac_t""no" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366 egrep "st_init" >/dev/null 2>&1; then
8369 cat >> confdefs.h <<\EOF
8370 #define ST_INIT_IN_ST_H 1
8382 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8384 # Check whether --enable-plugins or --disable-plugins was given.
8385 if test "${enable_plugins+set}" = set; then
8386 enableval="$enable_plugins"
8387 if test x$enable_plugins = xno
8389 BUILTINS="${BUILTINS} ${PLUGINS}"
8395 cat >> confdefs.h <<EOF
8396 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8399 cat >> confdefs.h <<EOF
8400 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8404 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8405 cat >> confdefs.h <<EOF
8406 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8409 cat >> confdefs.h <<EOF
8410 #define MODULE_SYMBOL $VLC_SYMBOL
8414 DATA_PATH="${ac_tool_prefix}/share/videolan"
8416 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8519 cat > confcache <<\EOF
8520 # This file is a shell script that caches the results of configure
8521 # tests run on this system so they can be shared between configure
8522 # scripts and configure runs. It is not useful on other systems.
8523 # If it contains results you don't want to keep, you may remove or edit it.
8525 # By default, configure uses ./config.cache as the cache file,
8526 # creating it if it does not exist already. You can give configure
8527 # the --cache-file=FILE option to use a different cache file; that is
8528 # what configure does when it calls configure scripts in
8529 # subdirectories, so they share the cache.
8530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8531 # config.status only pays attention to the cache file if you give it the
8532 # --recheck option to rerun configure.
8535 # The following way of writing the cache mishandles newlines in values,
8536 # but we know of no workaround that is simple, portable, and efficient.
8537 # So, don't put newlines in cache variables' values.
8538 # Ultrix sh set writes to stderr and can't be redirected directly,
8539 # and sets the high bit in the cache file unless we assign to the vars.
8541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8543 # `set' does not quote correctly, so add quotes (double-quote substitution
8544 # turns \\\\ into \\, and sed turns \\ into \).
8546 -e "s/'/'\\\\''/g" \
8547 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8550 # `set' quotes correctly as required by POSIX, so do not add quotes.
8551 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8554 if cmp -s $cache_file confcache; then
8557 if test -w $cache_file; then
8558 echo "updating cache $cache_file"
8559 cat confcache > $cache_file
8561 echo "not updating unwritable cache $cache_file"
8566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8569 # Let make expand exec_prefix.
8570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8572 # Any assignment to VPATH causes Sun make to only execute
8573 # the first set of double-colon rules, so remove it if not needed.
8574 # If there is a colon in the path, we need to keep it.
8575 if test "x$srcdir" = x.; then
8576 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8579 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8581 DEFS=-DHAVE_CONFIG_H
8583 # Without the "./", some shells look in PATH for config.status.
8584 : ${CONFIG_STATUS=./config.status}
8586 echo creating $CONFIG_STATUS
8587 rm -f $CONFIG_STATUS
8588 cat > $CONFIG_STATUS <<EOF
8590 # Generated automatically by configure.
8591 # Run this file to recreate the current configuration.
8592 # This directory was configured as follows,
8593 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8595 # $0 $ac_configure_args
8597 # Compiler output produced by configure, useful for debugging
8598 # configure, is in ./config.log if it exists.
8600 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8603 case "\$ac_option" in
8604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8605 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8606 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8607 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8608 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8610 -help | --help | --hel | --he | --h)
8611 echo "\$ac_cs_usage"; exit 0 ;;
8612 *) echo "\$ac_cs_usage"; exit 1 ;;
8616 ac_given_srcdir=$srcdir
8617 ac_given_INSTALL="$INSTALL"
8619 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8621 cat >> $CONFIG_STATUS <<EOF
8623 # Protect against being on the right side of a sed subst in config.status.
8624 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8625 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8629 s%@CFLAGS@%$CFLAGS%g
8630 s%@CPPFLAGS@%$CPPFLAGS%g
8631 s%@CXXFLAGS@%$CXXFLAGS%g
8632 s%@FFLAGS@%$FFLAGS%g
8634 s%@LDFLAGS@%$LDFLAGS%g
8636 s%@exec_prefix@%$exec_prefix%g
8637 s%@prefix@%$prefix%g
8638 s%@program_transform_name@%$program_transform_name%g
8639 s%@bindir@%$bindir%g
8640 s%@sbindir@%$sbindir%g
8641 s%@libexecdir@%$libexecdir%g
8642 s%@datadir@%$datadir%g
8643 s%@sysconfdir@%$sysconfdir%g
8644 s%@sharedstatedir@%$sharedstatedir%g
8645 s%@localstatedir@%$localstatedir%g
8646 s%@libdir@%$libdir%g
8647 s%@includedir@%$includedir%g
8648 s%@oldincludedir@%$oldincludedir%g
8649 s%@infodir@%$infodir%g
8650 s%@mandir@%$mandir%g
8652 s%@host_alias@%$host_alias%g
8653 s%@host_cpu@%$host_cpu%g
8654 s%@host_vendor@%$host_vendor%g
8655 s%@host_os@%$host_os%g
8656 s%@target@%$target%g
8657 s%@target_alias@%$target_alias%g
8658 s%@target_cpu@%$target_cpu%g
8659 s%@target_vendor@%$target_vendor%g
8660 s%@target_os@%$target_os%g
8662 s%@build_alias@%$build_alias%g
8663 s%@build_cpu@%$build_cpu%g
8664 s%@build_vendor@%$build_vendor%g
8665 s%@build_os@%$build_os%g
8666 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8667 s%@SET_MAKE@%$SET_MAKE%g
8670 s%@RANLIB@%$RANLIB%g
8671 s%@ALLOCA@%$ALLOCA%g
8672 s%@GLIBC21@%$GLIBC21%g
8673 s%@LIBICONV@%$LIBICONV%g
8674 s%@USE_NLS@%$USE_NLS%g
8675 s%@MSGFMT@%$MSGFMT%g
8676 s%@GMSGFMT@%$GMSGFMT%g
8677 s%@XGETTEXT@%$XGETTEXT%g
8678 s%@INTLBISON@%$INTLBISON%g
8679 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8680 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8681 s%@CATALOGS@%$CATALOGS%g
8682 s%@CATOBJEXT@%$CATOBJEXT%g
8683 s%@GMOFILES@%$GMOFILES%g
8684 s%@INTLLIBS@%$INTLLIBS%g
8685 s%@INTLOBJS@%$INTLOBJS%g
8686 s%@POFILES@%$POFILES%g
8688 s%@DATADIRNAME@%$DATADIRNAME%g
8689 s%@INSTOBJEXT@%$INSTOBJEXT%g
8690 s%@GENCAT@%$GENCAT%g
8691 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8692 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8693 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8694 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8695 s%@INSTALL_DATA@%$INSTALL_DATA%g
8696 s%@WINDRES@%$WINDRES%g
8697 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8698 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8699 s%@SDL_CONFIG@%$SDL_CONFIG%g
8700 s%@ESD_CONFIG@%$ESD_CONFIG%g
8701 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8702 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8703 s%@GTK_CONFIG@%$GTK_CONFIG%g
8704 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8705 s%@DATA_PATH@%$DATA_PATH%g
8706 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8709 s%@PLUGINS@%$PLUGINS%g
8710 s%@BUILTINS@%$BUILTINS%g
8711 s%@ALIASES@%$ALIASES%g
8712 s%@INCLUDE@%$INCLUDE%g
8717 s%@OPTIMS@%$OPTIMS%g
8718 s%@TUNING@%$TUNING%g
8719 s%@RELEASE@%$RELEASE%g
8721 s%@DLL_PATH@%$DLL_PATH%g
8722 s%@PACKAGE@%$PACKAGE%g
8723 s%@VERSION@%$VERSION%g
8724 s%@VCD_DEVICE@%$VCD_DEVICE%g
8725 s%@DVD_DEVICE@%$DVD_DEVICE%g
8726 s%@PLDFLAGS@%$PLDFLAGS%g
8727 s%@SOFLAGS@%$SOFLAGS%g
8728 s%@LIB_COMMON@%$LIB_COMMON%g
8729 s%@LIB_VLC@%$LIB_VLC%g
8730 s%@LIB_A52@%$LIB_A52%g
8731 s%@LIB_AA@%$LIB_AA%g
8732 s%@LIB_ALSA@%$LIB_ALSA%g
8733 s%@LIB_ARTS@%$LIB_ARTS%g
8734 s%@LIB_BEOS@%$LIB_BEOS%g
8735 s%@LIB_DARWIN@%$LIB_DARWIN%g
8736 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8737 s%@LIB_DSP@%$LIB_DSP%g
8738 s%@LIB_DVD@%$LIB_DVD%g
8739 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8740 s%@LIB_ESD@%$LIB_ESD%g
8741 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8742 s%@LIB_GGI@%$LIB_GGI%g
8743 s%@LIB_GLIDE@%$LIB_GLIDE%g
8744 s%@LIB_GNOME@%$LIB_GNOME%g
8745 s%@LIB_GTK@%$LIB_GTK%g
8746 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8747 s%@LIB_IMDCT@%$LIB_IMDCT%g
8748 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8749 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8750 s%@LIB_IPV4@%$LIB_IPV4%g
8751 s%@LIB_IPV6@%$LIB_IPV6%g
8752 s%@LIB_KDE@%$LIB_KDE%g
8753 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8754 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8755 s%@LIB_LIRC@%$LIB_LIRC%g
8756 s%@LIB_MACOSX@%$LIB_MACOSX%g
8757 s%@LIB_MAD@%$LIB_MAD%g
8758 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8759 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8760 s%@LIB_NCURSES@%$LIB_NCURSES%g
8761 s%@LIB_QNX@%$LIB_QNX%g
8762 s%@LIB_QT@%$LIB_QT%g
8763 s%@LIB_RC@%$LIB_RC%g
8764 s%@LIB_SDL@%$LIB_SDL%g
8765 s%@LIB_VCD@%$LIB_VCD%g
8766 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8767 s%@LIB_WIN32@%$LIB_WIN32%g
8768 s%@LIB_X11@%$LIB_X11%g
8769 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8770 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8771 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8772 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8773 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8774 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8775 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8776 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8777 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8778 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8779 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8780 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8781 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8782 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8783 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8784 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8785 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8786 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8787 s%@CFLAGS_QT@%$CFLAGS_QT%g
8788 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8789 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8790 s%@CFLAGS_X11@%$CFLAGS_X11%g
8791 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8792 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8793 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8794 s%@NEED_GETOPT@%$NEED_GETOPT%g
8795 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8800 cat >> $CONFIG_STATUS <<\EOF
8802 # Split the substitutions into bite-sized pieces for seds with
8803 # small command number limits, like on Digital OSF/1 and HP-UX.
8804 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8805 ac_file=1 # Number of current file.
8806 ac_beg=1 # First line for current file.
8807 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8810 while $ac_more_lines; do
8811 if test $ac_beg -gt 1; then
8812 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8814 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8816 if test ! -s conftest.s$ac_file; then
8818 rm -f conftest.s$ac_file
8820 if test -z "$ac_sed_cmds"; then
8821 ac_sed_cmds="sed -f conftest.s$ac_file"
8823 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8825 ac_file=`expr $ac_file + 1`
8827 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8830 if test -z "$ac_sed_cmds"; then
8835 cat >> $CONFIG_STATUS <<EOF
8837 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8839 cat >> $CONFIG_STATUS <<\EOF
8840 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8843 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8844 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8845 *) ac_file_in="${ac_file}.in" ;;
8848 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8850 # Remove last slash and all that follows it. Not all systems have dirname.
8851 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8853 # The file is in a subdirectory.
8854 test ! -d "$ac_dir" && mkdir "$ac_dir"
8855 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8856 # A "../" for each directory in $ac_dir_suffix.
8857 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8859 ac_dir_suffix= ac_dots=
8862 case "$ac_given_srcdir" in
8864 if test -z "$ac_dots"; then top_srcdir=.
8865 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8866 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8868 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8869 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8872 case "$ac_given_INSTALL" in
8873 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8874 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8877 echo creating "$ac_file"
8879 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8881 *Makefile*) ac_comsub="1i\\
8882 # $configure_input" ;;
8886 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8888 s%@configure_input@%$configure_input%g
8889 s%@srcdir@%$srcdir%g
8890 s%@top_srcdir@%$top_srcdir%g
8891 s%@INSTALL@%$INSTALL%g
8892 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8899 # ac_d sets the value in "#define NAME VALUE" lines.
8900 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8901 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8904 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8905 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8906 ac_uB='\([ ]\)%\1#\2define\3'
8909 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8910 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8911 ac_eB='$%\1#\2define\3'
8915 if test "${CONFIG_HEADERS+set}" != set; then
8917 cat >> $CONFIG_STATUS <<EOF
8918 CONFIG_HEADERS="include/defs.h"
8920 cat >> $CONFIG_STATUS <<\EOF
8922 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8925 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8926 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8927 *) ac_file_in="${ac_file}.in" ;;
8930 echo creating $ac_file
8932 rm -f conftest.frag conftest.in conftest.out
8933 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8934 cat $ac_file_inputs > conftest.in
8938 # Transform confdefs.h into a sed script conftest.vals that substitutes
8939 # the proper values into config.h.in to produce config.h. And first:
8940 # Protect against being on the right side of a sed subst in config.status.
8941 # Protect against being in an unquoted here document in config.status.
8943 cat > conftest.hdr <<\EOF
8946 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8950 sed -n -f conftest.hdr confdefs.h > conftest.vals
8953 # This sed command replaces #undef with comments. This is necessary, for
8954 # example, in the case of _POSIX_SOURCE, which is predefined and required
8955 # on some systems where configure will not decide to define it.
8956 cat >> conftest.vals <<\EOF
8957 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8960 # Break up conftest.vals because some shells have a limit on
8961 # the size of here documents, and old seds have small limits too.
8966 ac_lines=`grep -c . conftest.vals`
8967 # grep -c gives empty output for an empty file on some AIX systems.
8968 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8969 # Write a limited-size here document to conftest.frag.
8970 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8971 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8973 sed -f conftest.frag conftest.in > conftest.out
8975 mv conftest.out conftest.in
8977 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8979 mv conftest.tail conftest.vals
8983 cat >> $CONFIG_STATUS <<\EOF
8984 rm -f conftest.frag conftest.h
8985 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8986 cat conftest.in >> conftest.h
8988 if cmp -s $ac_file conftest.h 2>/dev/null; then
8989 echo "$ac_file is unchanged"
8992 # Remove last slash and all that follows it. Not all systems have dirname.
8993 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8994 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8995 # The file is in a subdirectory.
8996 test ! -d "$ac_dir" && mkdir "$ac_dir"
8999 mv conftest.h $ac_file
9004 cat >> $CONFIG_STATUS <<EOF
9008 cat >> $CONFIG_STATUS <<\EOF
9009 for ac_file in $CONFIG_FILES; do
9010 # Support "outfile[:infile[:infile...]]"
9012 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9014 # PO directories have a Makefile.in generated from Makefile.in.in.
9015 case "$ac_file" in */Makefile.in)
9016 # Adjust a relative srcdir.
9017 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9018 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9019 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9020 # In autoconf-2.13 it is called $ac_given_srcdir.
9021 # In autoconf-2.50 it is called $srcdir.
9022 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9023 case "$ac_given_srcdir" in
9024 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9025 /*) top_srcdir="$ac_given_srcdir" ;;
9026 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9028 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9029 rm -f "$ac_dir/POTFILES"
9030 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9031 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9032 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9033 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9041 chmod +x $CONFIG_STATUS
9042 rm -fr confdefs* $ac_clean_files
9043 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9047 global configuration
9048 --------------------
9050 architecture : ${ARCH}
9051 optimizations : ${OPTIMS}
9053 release: : ${RELEASE}"
9055 if test x${HAVE_VLC} = x1
9060 vlc version : ${VLC_VERSION}
9061 debug mode : ${DEBUG}
9062 cprof/gprof support : ${CPROF}/${GPROF}
9063 need builtin getopt : ${NEED_GETOPT}
9064 built-in modules :${BUILTINS}
9065 plug-in modules :${PLUGINS}
9066 vlc aliases :${ALIASES}"
9070 libdvdcss configuration
9071 -----------------------
9072 can be built : ${CAN_BUILD_LIBDVDCSS}
9073 will be built : ${NEED_LIBDVDCSS}"
9074 if test x${NEED_LIBDVDCSS} = x1
9076 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9077 echo "link statically : ${STATIC_LIBDVDCSS}"
9079 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9083 You may now tune Makefile.opts at your convenience, for instance to choose
9084 which modules get compiled as plugins.
9086 if test x${HAVE_VLC} = x1
9088 echo "To build vlc and its plugins, type \`make'."
9090 if test x${NEED_LIBDVDCSS} = x1
9092 echo "To build libdvdcss only, type \`make libdvdcss'."