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)"
46 --enable-satellite Satellite card support (default disabled)"
50 --enable-mad libmad module (default disabled)"
52 --with-mad=PATH path to libmad"
54 --disable-a52 AC3 support with liba52 (default enabled)"
58 --disable-x11 X11 support (default enabled)"
60 --disable-xvideo XVideo support (default enabled)"
62 --disable-sdl SDL support (default enabled)"
64 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
66 --enable-directx Win32 DirectX support (default enabled on Win32)"
68 --with-directx=PATH Win32 DirectX headers and libraries"
70 --enable-fb Linux framebuffer support (default enabled on Linux)"
72 --enable-mga Linux kernel Matrox support (default disabled)"
74 --enable-ggi GGI support (default disabled)"
76 --with-ggi=PATH path to libggi"
78 --enable-glide Glide (3dfx) support (default disabled)"
80 --with-glide=PATH path to libglide"
82 --enable-aa aalib output (default disabled)"
86 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
88 --enable-esd Esound library support (default disabled)"
90 --enable-arts aRts sound server (default disabled)"
92 --enable-alsa ALSA sound support for Linux (default disabled)"
94 --enable-waveout Win32 waveOut module (default enabled on Win32)"
98 --disable-gtk Gtk+ support (default enabled)"
100 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
102 --enable-gnome Gnome interface support (default disabled)"
104 --enable-qt Qt interface support (default disabled)"
106 --enable-kde KDE interface support (default disabled)"
108 --enable-macosx MacOS X support (default enabled on MacOS X)"
110 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
112 --enable-win32 Win32 interface support (default disabled)"
114 --enable-ncurses ncurses interface support (default disabled)"
116 --enable-lirc lirc support (default disabled)"
120 --with-words=endianness set endianness (big or little)"
122 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
124 --enable-gprof gprof profiling (default disabled)"
126 --enable-cprof cprof profiling (default disabled)"
128 --enable-pth GNU Pth support (default disabled)"
130 --enable-st State Threads (default disabled)"
132 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
134 # Initialize some variables set by options.
135 # The variables have the same names as the options, with
136 # dashes changed to underlines.
138 cache_file=./config.cache
147 program_transform_name=s,x,x,
155 bindir='${exec_prefix}/bin'
156 sbindir='${exec_prefix}/sbin'
157 libexecdir='${exec_prefix}/libexec'
158 datadir='${prefix}/share'
159 sysconfdir='${prefix}/etc'
160 sharedstatedir='${prefix}/com'
161 localstatedir='${prefix}/var'
162 libdir='${exec_prefix}/lib'
163 includedir='${prefix}/include'
164 oldincludedir='/usr/include'
165 infodir='${prefix}/info'
166 mandir='${prefix}/man'
168 # Initialize some other variables.
171 SHELL=${CONFIG_SHELL-/bin/sh}
172 # Maximum number of lines to put in a shell here document.
179 # If the previous option needs an argument, assign it.
180 if test -n "$ac_prev"; then
181 eval "$ac_prev=\$ac_option"
187 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
191 # Accept the important Cygnus configure options, so we can diagnose typos.
195 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
198 bindir="$ac_optarg" ;;
200 -build | --build | --buil | --bui | --bu)
202 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
203 build="$ac_optarg" ;;
205 -cache-file | --cache-file | --cache-fil | --cache-fi \
206 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
207 ac_prev=cache_file ;;
208 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
209 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
210 cache_file="$ac_optarg" ;;
212 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
214 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
216 datadir="$ac_optarg" ;;
218 -disable-* | --disable-*)
219 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
220 # Reject names that are not valid shell variable names.
221 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
222 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
224 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
225 eval "enable_${ac_feature}=no" ;;
227 -enable-* | --enable-*)
228 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
238 eval "enable_${ac_feature}='$ac_optarg'" ;;
240 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
241 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
242 | --exec | --exe | --ex)
243 ac_prev=exec_prefix ;;
244 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
245 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
246 | --exec=* | --exe=* | --ex=*)
247 exec_prefix="$ac_optarg" ;;
249 -gas | --gas | --ga | --g)
250 # Obsolete; use --with-gas.
253 -help | --help | --hel | --he)
254 # Omit some internal or obsolete options to make the list less imposing.
255 # This message is too long to be a string in the A/UX 3.1 sh.
257 Usage: configure [options] [host]
258 Options: [defaults in brackets after descriptions]
260 --cache-file=FILE cache test results in FILE
261 --help print this message
262 --no-create do not create output files
263 --quiet, --silent do not print \`checking...' messages
264 --version print the version of autoconf that created configure
265 Directory and file names:
266 --prefix=PREFIX install architecture-independent files in PREFIX
268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
270 --bindir=DIR user executables in DIR [EPREFIX/bin]
271 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
272 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
273 --datadir=DIR read-only architecture-independent data in DIR
275 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
276 --sharedstatedir=DIR modifiable architecture-independent data in DIR
278 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
279 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
280 --includedir=DIR C header files in DIR [PREFIX/include]
281 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
282 --infodir=DIR info documentation in DIR [PREFIX/info]
283 --mandir=DIR man documentation in DIR [PREFIX/man]
284 --srcdir=DIR find the sources in DIR [configure dir or ..]
285 --program-prefix=PREFIX prepend PREFIX to installed program names
286 --program-suffix=SUFFIX append SUFFIX to installed program names
287 --program-transform-name=PROGRAM
288 run sed PROGRAM on installed program names
292 --build=BUILD configure for building on BUILD [BUILD=HOST]
293 --host=HOST configure for HOST [guessed]
294 --target=TARGET configure for TARGET [TARGET=HOST]
295 Features and packages:
296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
300 --x-includes=DIR X include files are in DIR
301 --x-libraries=DIR X library files are in DIR
303 if test -n "$ac_help"; then
304 echo "--enable and --with options recognized:$ac_help"
308 -host | --host | --hos | --ho)
310 -host=* | --host=* | --hos=* | --ho=*)
313 -includedir | --includedir | --includedi | --included | --include \
314 | --includ | --inclu | --incl | --inc)
315 ac_prev=includedir ;;
316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
317 | --includ=* | --inclu=* | --incl=* | --inc=*)
318 includedir="$ac_optarg" ;;
320 -infodir | --infodir | --infodi | --infod | --info | --inf)
322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
323 infodir="$ac_optarg" ;;
325 -libdir | --libdir | --libdi | --libd)
327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
328 libdir="$ac_optarg" ;;
330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
331 | --libexe | --libex | --libe)
332 ac_prev=libexecdir ;;
333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
334 | --libexe=* | --libex=* | --libe=*)
335 libexecdir="$ac_optarg" ;;
337 -localstatedir | --localstatedir | --localstatedi | --localstated \
338 | --localstate | --localstat | --localsta | --localst \
339 | --locals | --local | --loca | --loc | --lo)
340 ac_prev=localstatedir ;;
341 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
342 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
343 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
344 localstatedir="$ac_optarg" ;;
346 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
348 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
349 mandir="$ac_optarg" ;;
352 # Obsolete; use --without-fp.
355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
359 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
360 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
363 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
364 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
365 | --oldin | --oldi | --old | --ol | --o)
366 ac_prev=oldincludedir ;;
367 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
368 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
369 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
370 oldincludedir="$ac_optarg" ;;
372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
375 prefix="$ac_optarg" ;;
377 -program-prefix | --program-prefix | --program-prefi | --program-pref \
378 | --program-pre | --program-pr | --program-p)
379 ac_prev=program_prefix ;;
380 -program-prefix=* | --program-prefix=* | --program-prefi=* \
381 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
382 program_prefix="$ac_optarg" ;;
384 -program-suffix | --program-suffix | --program-suffi | --program-suff \
385 | --program-suf | --program-su | --program-s)
386 ac_prev=program_suffix ;;
387 -program-suffix=* | --program-suffix=* | --program-suffi=* \
388 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
389 program_suffix="$ac_optarg" ;;
391 -program-transform-name | --program-transform-name \
392 | --program-transform-nam | --program-transform-na \
393 | --program-transform-n | --program-transform- \
394 | --program-transform | --program-transfor \
395 | --program-transfo | --program-transf \
396 | --program-trans | --program-tran \
397 | --progr-tra | --program-tr | --program-t)
398 ac_prev=program_transform_name ;;
399 -program-transform-name=* | --program-transform-name=* \
400 | --program-transform-nam=* | --program-transform-na=* \
401 | --program-transform-n=* | --program-transform-=* \
402 | --program-transform=* | --program-transfor=* \
403 | --program-transfo=* | --program-transf=* \
404 | --program-trans=* | --program-tran=* \
405 | --progr-tra=* | --program-tr=* | --program-t=*)
406 program_transform_name="$ac_optarg" ;;
408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
409 | -silent | --silent | --silen | --sile | --sil)
412 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
414 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
416 sbindir="$ac_optarg" ;;
418 -sharedstatedir | --sharedstatedir | --sharedstatedi \
419 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
420 | --sharedst | --shareds | --shared | --share | --shar \
422 ac_prev=sharedstatedir ;;
423 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
424 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
425 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
427 sharedstatedir="$ac_optarg" ;;
429 -site | --site | --sit)
431 -site=* | --site=* | --sit=*)
434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
437 srcdir="$ac_optarg" ;;
439 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
440 | --syscon | --sysco | --sysc | --sys | --sy)
441 ac_prev=sysconfdir ;;
442 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
443 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
444 sysconfdir="$ac_optarg" ;;
446 -target | --target | --targe | --targ | --tar | --ta | --t)
448 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
449 target="$ac_optarg" ;;
451 -v | -verbose | --verbose | --verbos | --verbo | --verb)
454 -version | --version | --versio | --versi | --vers)
455 echo "configure generated by autoconf version 2.13"
459 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
460 # Reject names that are not valid shell variable names.
461 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
462 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
464 ac_package=`echo $ac_package| sed 's/-/_/g'`
469 eval "with_${ac_package}='$ac_optarg'" ;;
471 -without-* | --without-*)
472 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
477 ac_package=`echo $ac_package| sed 's/-/_/g'`
478 eval "with_${ac_package}=no" ;;
481 # Obsolete; use --with-x.
484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
485 | --x-incl | --x-inc | --x-in | --x-i)
486 ac_prev=x_includes ;;
487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
489 x_includes="$ac_optarg" ;;
491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
493 ac_prev=x_libraries ;;
494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
496 x_libraries="$ac_optarg" ;;
498 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
502 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
503 echo "configure: warning: $ac_option: invalid host type" 1>&2
505 if test "x$nonopt" != xNONE; then
506 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
514 if test -n "$ac_prev"; then
515 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
520 # File descriptor usage:
523 # 2 errors and warnings
524 # 3 some systems may open it to /dev/tty
525 # 4 used on the Kubota Titan
526 # 6 checking for... messages and results
527 # 5 compiler messages saved in config.log
528 if test "$silent" = yes; then
536 This file contains any messages produced by compilers while
537 running configure, to aid debugging if configure makes a mistake.
540 # Strip out --no-create and --no-recursion so they do not pile up.
541 # Also quote any args containing shell metacharacters.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 | --no-cr | --no-c) ;;
548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
551 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
552 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
557 # Only set these to C if already set. These must not be set unconditionally
558 # because not all systems understand e.g. LANG=C (notably SCO).
559 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
560 # Non-C LC_CTYPE values break the ctype check.
561 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
562 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
563 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
564 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
567 rm -rf conftest* confdefs.h
568 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
571 # A filename unique to this package, relative to the directory that
572 # configure is in, which we can look for to find out if srcdir is correct.
573 ac_unique_file=include/main.h
575 # Find the source files, if location was not specified.
576 if test -z "$srcdir"; then
577 ac_srcdir_defaulted=yes
578 # Try the directory containing this script, then its parent.
580 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
581 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
583 if test ! -r $srcdir/$ac_unique_file; then
587 ac_srcdir_defaulted=no
589 if test ! -r $srcdir/$ac_unique_file; then
590 if test "$ac_srcdir_defaulted" = yes; then
591 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
593 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
596 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
598 # Prefer explicitly selected file to automatically selected ones.
599 if test -z "$CONFIG_SITE"; then
600 if test "x$prefix" != xNONE; then
601 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
603 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
606 for ac_site_file in $CONFIG_SITE; do
607 if test -r "$ac_site_file"; then
608 echo "loading site script $ac_site_file"
613 if test -r "$cache_file"; then
614 echo "loading cache $cache_file"
617 echo "creating cache $cache_file"
622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
623 ac_cpp='$CPP $CPPFLAGS'
624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
626 cross_compiling=$ac_cv_prog_cc_cross
630 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
631 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
632 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
639 ac_n= ac_c='\c' ac_t=
646 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
647 if test -f $ac_dir/install-sh; then
649 ac_install_sh="$ac_aux_dir/install-sh -c"
651 elif test -f $ac_dir/install.sh; then
653 ac_install_sh="$ac_aux_dir/install.sh -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
660 ac_config_guess=$ac_aux_dir/config.guess
661 ac_config_sub=$ac_aux_dir/config.sub
662 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
755 if test -r src/interface/main.c; then
757 VLC_VERSION="0.2.92-dev"
762 if test -r extras/libdvdcss/libdvdcss.c; then
764 LIBDVDCSS_VERSION="1.0.1-dev"
766 if test -r extras/libdvdcss/csskeys.h; then
767 cat >> confdefs.h <<\EOF
768 #define HAVE_CSSKEYS 1
774 save_CFLAGS="${CFLAGS}"
775 save_LDFLAGS="${LDFLAGS}"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake <<\EOF
785 @echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_${ac_make}_set=yes
792 eval ac_cv_prog_make_${ac_make}_set=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE="MAKE=${MAKE-make}"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy "$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
942 ac_cv_prog_cc_cross=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c <<EOF
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 CPP="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1074 CPP="${CC-cc} -nologo -E"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1098 ac_cv_prog_CPP="$CPP"
1100 CPP="$ac_cv_prog_CPP"
1102 ac_cv_prog_CPP="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1107 if test $host != $build; then
1108 ac_tool_prefix=${host_alias}-
1113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1135 RANLIB="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1139 echo "$ac_t""no" 1>&6
1143 if test -z "$ac_cv_prog_RANLIB"; then
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "ranlib", so it can be a program name with args.
1146 set dummy ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="ranlib"
1165 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1168 RANLIB="$ac_cv_prog_RANLIB"
1169 if test -n "$RANLIB"; then
1170 echo "$ac_t""$RANLIB" 1>&6
1172 echo "$ac_t""no" 1>&6
1181 # Extract the first word of "gmake", so it can be a program name with args.
1182 set dummy gmake; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1190 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1193 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1206 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1210 GMAKE="$ac_cv_path_GMAKE"
1211 if test -n "$GMAKE"; then
1212 echo "$ac_t""$GMAKE" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 if test "x$GMAKE" = "xno"; then
1218 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether GNU make is installed" >&5
1220 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if make --version | grep -q -i gnu; then
1226 echo "This software needs you to install GNU make to compile properly."
1227 echo "You can get it from http://www.gnu.org/."
1232 echo "$ac_t""$ac_cv_gmake" 1>&6
1238 ALL_LINGUAS="de fr ja no ru nl"
1240 cat >> confdefs.h <<EOF
1241 #define PACKAGE "vlc"
1244 cat >> confdefs.h <<EOF
1245 #define VERSION "$VLC_VERSION"
1248 # Extract the first word of "ranlib", so it can be a program name with args.
1249 set dummy ranlib; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 if test -n "$RANLIB"; then
1256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1260 for ac_dir in $ac_dummy; do
1261 test -z "$ac_dir" && ac_dir=.
1262 if test -f $ac_dir/$ac_word; then
1263 ac_cv_prog_RANLIB="ranlib"
1268 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1271 RANLIB="$ac_cv_prog_RANLIB"
1272 if test -n "$RANLIB"; then
1273 echo "$ac_t""$RANLIB" 1>&6
1275 echo "$ac_t""no" 1>&6
1279 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1280 echo "configure:1281: checking for strerror in -lcposix" >&5
1281 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-lcposix $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 LIBS="$LIBS -lcposix"
1316 echo "$ac_t""no" 1>&6
1321 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1322 echo "configure:1323: checking for ANSI C header files" >&5
1323 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1335 { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1337 if test -z "$ac_err"; then
1339 ac_cv_header_stdc=yes
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 ac_cv_header_stdc=no
1349 if test $ac_cv_header_stdc = yes; then
1350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1357 egrep "memchr" >/dev/null 2>&1; then
1361 ac_cv_header_stdc=no
1367 if test $ac_cv_header_stdc = yes; then
1368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1375 egrep "free" >/dev/null 2>&1; then
1379 ac_cv_header_stdc=no
1385 if test $ac_cv_header_stdc = yes; then
1386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1387 if test "$cross_compiling" = yes; then
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1394 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1395 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1397 int main () { int i; for (i = 0; i < 256; i++)
1398 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 ac_cv_header_stdc=no
1417 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1418 if test $ac_cv_header_stdc = yes; then
1419 cat >> confdefs.h <<\EOF
1420 #define STDC_HEADERS 1
1425 echo $ac_n "checking for working const""... $ac_c" 1>&6
1426 echo "configure:1427: checking for working const" >&5
1427 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 /* Ultrix mips cc rejects this. */
1437 typedef int charset[2]; const charset x;
1438 /* SunOS 4.1.1 cc rejects this. */
1439 char const *const *ccp;
1441 /* NEC SVR4.0.2 mips cc rejects this. */
1442 struct point {int x, y;};
1443 static struct point const zero = {0,0};
1444 /* AIX XL C 1.02.0.0 rejects this.
1445 It does not let you subtract one const X* pointer from another in an arm
1446 of an if-expression whose if-part is not a constant expression */
1447 const char *g = "string";
1448 ccp = &g + (g ? g-g : 0);
1449 /* HPUX 7.0 cc rejects these. */
1452 ccp = (char const *const *) p;
1453 { /* SCO 3.2v4 cc rejects this. */
1455 char const *s = 0 ? (char *) 0 : (char const *) 0;
1459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1461 const int *foo = &x[0];
1464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1465 typedef const int *iptr;
1469 { /* AIX XL C 1.02.0.0 rejects this saying
1470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1471 struct s { int j; const int *ap[3]; };
1472 struct s *b; b->j = 5;
1474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_c_const" 1>&6
1493 if test $ac_cv_c_const = no; then
1494 cat >> confdefs.h <<\EOF
1500 echo $ac_n "checking for inline""... $ac_c" 1>&6
1501 echo "configure:1502: checking for inline" >&5
1502 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1506 for ac_kw in inline __inline__ __inline; do
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1515 if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1517 ac_cv_c_inline=$ac_kw; break
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1527 echo "$ac_t""$ac_cv_c_inline" 1>&6
1528 case "$ac_cv_c_inline" in
1530 no) cat >> confdefs.h <<\EOF
1534 *) cat >> confdefs.h <<EOF
1535 #define inline $ac_cv_c_inline
1540 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1541 echo "configure:1542: checking for off_t" >&5
1542 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1557 ac_cv_type_off_t=yes
1565 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1566 if test $ac_cv_type_off_t = no; then
1567 cat >> confdefs.h <<\EOF
1573 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1574 echo "configure:1575: checking for size_t" >&5
1575 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <sys/types.h>
1587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1588 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1590 ac_cv_type_size_t=yes
1593 ac_cv_type_size_t=no
1598 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1599 if test $ac_cv_type_size_t = no; then
1600 cat >> confdefs.h <<\EOF
1601 #define size_t unsigned
1606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1607 # for constant arguments. Useless!
1608 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working alloca.h" >&5
1610 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1618 char *p = alloca(2 * sizeof(int));
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 ac_cv_header_alloca_h=yes
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 ac_cv_header_alloca_h=no
1633 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1634 if test $ac_cv_header_alloca_h = yes; then
1635 cat >> confdefs.h <<\EOF
1636 #define HAVE_ALLOCA_H 1
1641 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1642 echo "configure:1643: checking for alloca" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1651 # define alloca __builtin_alloca
1654 # include <malloc.h>
1655 # define alloca _alloca
1658 # include <alloca.h>
1663 # ifndef alloca /* predefined by HP cc +Olibcalls */
1672 char *p = (char *) alloca(1);
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1677 ac_cv_func_alloca_works=yes
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1682 ac_cv_func_alloca_works=no
1687 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1688 if test $ac_cv_func_alloca_works = yes; then
1689 cat >> confdefs.h <<\EOF
1690 #define HAVE_ALLOCA 1
1695 if test $ac_cv_func_alloca_works = no; then
1696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1697 # that cause trouble. Some versions do not even contain alloca or
1698 # contain a buggy version. If you still want to use their alloca,
1699 # use ar to extract alloca.o from them instead of compiling alloca.c.
1700 ALLOCA=alloca.${ac_objext}
1701 cat >> confdefs.h <<\EOF
1706 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether alloca needs Cray hooks" >&5
1708 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #if defined(CRAY) && ! defined(CRAY2)
1721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1722 egrep "webecray" >/dev/null 2>&1; then
1733 echo "$ac_t""$ac_cv_os_cray" 1>&6
1734 if test $ac_cv_os_cray = yes; then
1735 for ac_func in _getb67 GETB67 getb67; do
1736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_func" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $ac_func(); below. */
1747 /* Override any gcc2 internal prototype to avoid an error. */
1748 /* We use char because int might match the return type of a gcc2
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 eval "ac_cv_func_$ac_func=yes"
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1772 eval "ac_cv_func_$ac_func=no"
1777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 cat >> confdefs.h <<EOF
1780 #define CRAY_STACKSEG_END $ac_func
1785 echo "$ac_t""no" 1>&6
1791 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1792 echo "configure:1793: checking stack direction for C alloca" >&5
1793 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 if test "$cross_compiling" = yes; then
1797 ac_cv_c_stack_direction=0
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 find_stack_direction ()
1804 static char *addr = 0;
1809 return find_stack_direction ();
1812 return (&dummy > addr) ? 1 : -1;
1816 exit (find_stack_direction() < 0);
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1821 ac_cv_c_stack_direction=1
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 ac_cv_c_stack_direction=-1
1833 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1834 cat >> confdefs.h <<EOF
1835 #define STACK_DIRECTION $ac_cv_c_stack_direction
1840 for ac_hdr in unistd.h
1842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_hdr" >&5
1845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1858 eval "ac_cv_header_$ac_safe=yes"
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 eval "ac_cv_header_$ac_safe=no"
1868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1869 echo "$ac_t""yes" 1>&6
1870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1871 cat >> confdefs.h <<EOF
1872 #define $ac_tr_hdr 1
1876 echo "$ac_t""no" 1>&6
1880 for ac_func in getpagesize
1882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_func" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $ac_func(); below. */
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1913 eval "ac_cv_func_$ac_func=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 eval "ac_cv_func_$ac_func=no"
1923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1926 cat >> confdefs.h <<EOF
1927 #define $ac_tr_func 1
1931 echo "$ac_t""no" 1>&6
1935 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1936 echo "configure:1937: checking for working mmap" >&5
1937 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test "$cross_compiling" = yes; then
1941 ac_cv_func_mmap_fixed_mapped=no
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1947 /* Thanks to Mike Haertel and Jim Avera for this test.
1948 Here is a matrix of mmap possibilities:
1949 mmap private not fixed
1950 mmap private fixed at somewhere currently unmapped
1951 mmap private fixed at somewhere already mapped
1952 mmap shared not fixed
1953 mmap shared fixed at somewhere currently unmapped
1954 mmap shared fixed at somewhere already mapped
1955 For private mappings, we should verify that changes cannot be read()
1956 back from the file, nor mmap's back from the file at a different
1957 address. (There have been systems where private was not correctly
1958 implemented like the infamous i386 svr4.0, and systems where the
1959 VM page cache was not coherent with the filesystem buffer cache
1960 like early versions of FreeBSD and possibly contemporary NetBSD.)
1961 For shared mappings, we should conversely verify that changes get
1962 propogated back to all the places they're supposed to be.
1964 Grep wants private fixed already mapped.
1965 The main things grep needs to know about mmap are:
1966 * does it exist and is it safe to write into the mmap'd area
1967 * how to use it (BSD variants) */
1968 #include <sys/types.h>
1970 #include <sys/mman.h>
1972 /* This mess was copied from the GNU getpagesize.h. */
1973 #ifndef HAVE_GETPAGESIZE
1974 # ifdef HAVE_UNISTD_H
1975 # include <unistd.h>
1978 /* Assume that all systems that can run configure have sys/param.h. */
1979 # ifndef HAVE_SYS_PARAM_H
1980 # define HAVE_SYS_PARAM_H 1
1983 # ifdef _SC_PAGESIZE
1984 # define getpagesize() sysconf(_SC_PAGESIZE)
1985 # else /* no _SC_PAGESIZE */
1986 # ifdef HAVE_SYS_PARAM_H
1987 # include <sys/param.h>
1988 # ifdef EXEC_PAGESIZE
1989 # define getpagesize() EXEC_PAGESIZE
1990 # else /* no EXEC_PAGESIZE */
1992 # define getpagesize() NBPG * CLSIZE
1995 # endif /* no CLSIZE */
1996 # else /* no NBPG */
1998 # define getpagesize() NBPC
1999 # else /* no NBPC */
2001 # define getpagesize() PAGESIZE
2002 # endif /* PAGESIZE */
2003 # endif /* no NBPC */
2004 # endif /* no NBPG */
2005 # endif /* no EXEC_PAGESIZE */
2006 # else /* no HAVE_SYS_PARAM_H */
2007 # define getpagesize() 8192 /* punt totally */
2008 # endif /* no HAVE_SYS_PARAM_H */
2009 # endif /* no _SC_PAGESIZE */
2011 #endif /* no HAVE_GETPAGESIZE */
2014 extern "C" { void *malloc(unsigned); }
2022 char *data, *data2, *data3;
2026 pagesize = getpagesize();
2029 * First, make a file with some known garbage in it.
2031 data = malloc(pagesize);
2034 for (i = 0; i < pagesize; ++i)
2035 *(data + i) = rand();
2037 fd = creat("conftestmmap", 0600);
2040 if (write(fd, data, pagesize) != pagesize)
2045 * Next, try to mmap the file at a fixed address which
2046 * already has something else allocated at it. If we can,
2047 * also make sure that we see the same garbage.
2049 fd = open("conftestmmap", O_RDWR);
2052 data2 = malloc(2 * pagesize);
2055 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2056 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2057 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2059 for (i = 0; i < pagesize; ++i)
2060 if (*(data + i) != *(data2 + i))
2064 * Finally, make sure that changes to the mapped area
2065 * do not percolate back to the file as seen by read().
2066 * (This is a bug on some variants of i386 svr4.0.)
2068 for (i = 0; i < pagesize; ++i)
2069 *(data2 + i) = *(data2 + i) + 1;
2070 data3 = malloc(pagesize);
2073 if (read(fd, data3, pagesize) != pagesize)
2075 for (i = 0; i < pagesize; ++i)
2076 if (*(data + i) != *(data3 + i))
2079 unlink("conftestmmap");
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2086 ac_cv_func_mmap_fixed_mapped=yes
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 ac_cv_func_mmap_fixed_mapped=no
2098 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2099 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2100 cat >> confdefs.h <<\EOF
2107 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether we are using the GNU C Library 2.1 or newer" >&5
2109 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2116 #include <features.h>
2117 #ifdef __GNU_LIBRARY__
2118 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2125 egrep "Lucky GNU user" >/dev/null 2>&1; then
2127 ac_cv_gnu_library_2_1=yes
2130 ac_cv_gnu_library_2_1=no
2138 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2140 GLIBC21="$ac_cv_gnu_library_2_1"
2144 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2145 stdlib.h string.h unistd.h sys/param.h
2147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_hdr" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2163 eval "ac_cv_header_$ac_safe=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_header_$ac_safe=no"
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_hdr 1
2181 echo "$ac_t""no" 1>&6
2185 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2186 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2187 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_func" >&5
2191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* System header to define __stub macros and hopefully few prototypes,
2198 which can conflict with char $ac_func(); below. */
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 eval "ac_cv_func_$ac_func=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 eval "ac_cv_func_$ac_func=no"
2230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2233 cat >> confdefs.h <<EOF
2234 #define $ac_tr_func 1
2238 echo "$ac_t""no" 1>&6
2245 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2246 if test "${with_libiconv_prefix+set}" = set; then
2247 withval="$with_libiconv_prefix"
2249 for dir in `echo "$withval" | tr : ' '`; do
2250 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2251 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2257 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2258 echo "configure:2259: checking for iconv" >&5
2259 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2263 am_cv_func_iconv="no, consider installing GNU libiconv"
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2271 iconv_t cd = iconv_open("","");
2272 iconv(cd,NULL,NULL,NULL,NULL);
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 am_cv_func_iconv=yes
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2284 if test "$am_cv_func_iconv" != yes; then
2285 am_save_LIBS="$LIBS"
2286 LIBS="$LIBS -liconv"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2293 iconv_t cd = iconv_open("","");
2294 iconv(cd,NULL,NULL,NULL,NULL);
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 am_cv_func_iconv=yes
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2307 LIBS="$am_save_LIBS"
2312 echo "$ac_t""$am_cv_func_iconv" 1>&6
2313 if test "$am_cv_func_iconv" = yes; then
2314 cat >> confdefs.h <<\EOF
2315 #define HAVE_ICONV 1
2318 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2319 echo "configure:2320: checking for iconv declaration" >&5
2320 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2334 #if defined(__STDC__) || defined(__cplusplus)
2335 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2344 if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2346 am_cv_proto_iconv_arg1=""
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 am_cv_proto_iconv_arg1="const"
2354 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);"
2357 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2358 echo "$ac_t""${ac_t:-
2359 }$am_cv_proto_iconv" 1>&6
2360 cat >> confdefs.h <<EOF
2361 #define ICONV_CONST $am_cv_proto_iconv_arg1
2366 if test "$am_cv_lib_iconv" = yes; then
2372 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2373 echo "configure:2374: checking for nl_langinfo and CODESET" >&5
2374 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <langinfo.h>
2382 char* cs = nl_langinfo(CODESET);
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387 am_cv_langinfo_codeset=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2392 am_cv_langinfo_codeset=no
2398 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2399 if test $am_cv_langinfo_codeset = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define HAVE_LANGINFO_CODESET 1
2406 if test $ac_cv_header_locale_h = yes; then
2407 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2408 echo "configure:2409: checking for LC_MESSAGES" >&5
2409 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 am_cv_val_LC_MESSAGES=yes
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 am_cv_val_LC_MESSAGES=no
2432 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2433 if test $am_cv_val_LC_MESSAGES = yes; then
2434 cat >> confdefs.h <<\EOF
2435 #define HAVE_LC_MESSAGES 1
2440 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether NLS is requested" >&5
2442 # Check whether --enable-nls or --disable-nls was given.
2443 if test "${enable_nls+set}" = set; then
2444 enableval="$enable_nls"
2450 echo "$ac_t""$USE_NLS" 1>&6
2453 BUILD_INCLUDED_LIBINTL=no
2454 USE_INCLUDED_LIBINTL=no
2457 if test "$USE_NLS" = "yes"; then
2458 cat >> confdefs.h <<\EOF
2459 #define ENABLE_NLS 1
2462 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2463 echo "configure:2464: checking whether included gettext is requested" >&5
2464 # Check whether --with-included-gettext or --without-included-gettext was given.
2465 if test "${with_included_gettext+set}" = set; then
2466 withval="$with_included_gettext"
2467 nls_cv_force_use_gnu_gettext=$withval
2469 nls_cv_force_use_gnu_gettext=no
2472 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2474 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2475 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2481 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2482 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2483 echo "configure:2484: checking for libintl.h" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <libintl.h>
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2497 eval "ac_cv_header_$ac_safe=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_header_$ac_safe=no"
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2510 echo "configure:2511: checking for GNU gettext in libc" >&5
2511 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 #include <libintl.h>
2518 extern int _nl_msg_cat_cntr;
2520 bindtextdomain ("", "");
2521 return (int) gettext ("") + _nl_msg_cat_cntr
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 gt_cv_func_gnugettext1_libc=yes
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 gt_cv_func_gnugettext1_libc=no
2536 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2538 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2539 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2540 echo "configure:2541: checking for GNU gettext in libintl" >&5
2541 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 gt_save_LIBS="$LIBS"
2545 LIBS="$LIBS -lintl $LIBICONV"
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 #include <libintl.h>
2550 extern int _nl_msg_cat_cntr;
2552 bindtextdomain ("", "");
2553 return (int) gettext ("") + _nl_msg_cat_cntr
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2558 gt_cv_func_gnugettext1_libintl=yes
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 gt_cv_func_gnugettext1_libintl=no
2566 LIBS="$gt_save_LIBS"
2569 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2572 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2573 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2574 && test "$PACKAGE" != gettext; }; then
2575 cat >> confdefs.h <<\EOF
2576 #define HAVE_GETTEXT 1
2580 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2581 INTLLIBS="-lintl $LIBICONV"
2584 gt_save_LIBS="$LIBS"
2585 LIBS="$LIBS $INTLLIBS"
2586 for ac_func in dcgettext
2588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_func" >&5
2590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $ac_func(); below. */
2599 /* Override any gcc2 internal prototype to avoid an error. */
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 eval "ac_cv_func_$ac_func=yes"
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 eval "ac_cv_func_$ac_func=no"
2629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2632 cat >> confdefs.h <<EOF
2633 #define $ac_tr_func 1
2637 echo "$ac_t""no" 1>&6
2641 LIBS="$gt_save_LIBS"
2643 # Extract the first word of "msgfmt", so it can be a program name with args.
2644 set dummy msgfmt; ac_word=$2
2645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_word" >&5
2647 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2652 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2656 for ac_dir in $PATH; do
2657 test -z "$ac_dir" && ac_dir=.
2658 if test -f $ac_dir/$ac_word; then
2659 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2660 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2666 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2670 MSGFMT="$ac_cv_path_MSGFMT"
2671 if test "$MSGFMT" != ":"; then
2672 echo "$ac_t""$MSGFMT" 1>&6
2674 echo "$ac_t""no" 1>&6
2677 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2678 set dummy gmsgfmt; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2686 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2689 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2694 for ac_dir in $ac_dummy; do
2695 test -z "$ac_dir" && ac_dir=.
2696 if test -f $ac_dir/$ac_word; then
2697 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2702 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2706 GMSGFMT="$ac_cv_path_GMSGFMT"
2707 if test -n "$GMSGFMT"; then
2708 echo "$ac_t""$GMSGFMT" 1>&6
2710 echo "$ac_t""no" 1>&6
2714 # Extract the first word of "xgettext", so it can be a program name with args.
2715 set dummy xgettext; ac_word=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2727 for ac_dir in $PATH; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2731 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2741 XGETTEXT="$ac_cv_path_XGETTEXT"
2742 if test "$XGETTEXT" != ":"; then
2743 echo "$ac_t""$XGETTEXT" 1>&6
2745 echo "$ac_t""no" 1>&6
2753 echo "$ac_t""no" 1>&6
2757 if test "$CATOBJEXT" = "NONE"; then
2758 nls_cv_use_gnu_gettext=yes
2762 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2763 INTLOBJS="\$(GETTOBJS)"
2764 # Extract the first word of "msgfmt", so it can be a program name with args.
2765 set dummy msgfmt; ac_word=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2777 for ac_dir in $PATH; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2780 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2781 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2787 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2791 MSGFMT="$ac_cv_path_MSGFMT"
2792 if test "$MSGFMT" != ":"; then
2793 echo "$ac_t""$MSGFMT" 1>&6
2795 echo "$ac_t""no" 1>&6
2798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2799 set dummy gmsgfmt; ac_word=$2
2800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_word" >&5
2802 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2810 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2815 for ac_dir in $ac_dummy; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f $ac_dir/$ac_word; then
2818 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2823 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2827 GMSGFMT="$ac_cv_path_GMSGFMT"
2828 if test -n "$GMSGFMT"; then
2829 echo "$ac_t""$GMSGFMT" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 # Extract the first word of "xgettext", so it can be a program name with args.
2835 set dummy xgettext; ac_word=$2
2836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_word" >&5
2838 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2847 for ac_dir in $PATH; do
2848 test -z "$ac_dir" && ac_dir=.
2849 if test -f $ac_dir/$ac_word; then
2850 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2851 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2857 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2861 XGETTEXT="$ac_cv_path_XGETTEXT"
2862 if test "$XGETTEXT" != ":"; then
2863 echo "$ac_t""$XGETTEXT" 1>&6
2865 echo "$ac_t""no" 1>&6
2869 BUILD_INCLUDED_LIBINTL=yes
2870 USE_INCLUDED_LIBINTL=yes
2872 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2873 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2876 if test "$GMSGFMT" != ":"; then
2877 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2880 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2885 if test "$XGETTEXT" != ":"; then
2886 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2889 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2899 if test "$PACKAGE" = gettext; then
2900 BUILD_INCLUDED_LIBINTL=yes
2903 for ac_prog in bison
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 if test -n "$INTLBISON"; then
2913 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2917 for ac_dir in $ac_dummy; do
2918 test -z "$ac_dir" && ac_dir=.
2919 if test -f $ac_dir/$ac_word; then
2920 ac_cv_prog_INTLBISON="$ac_prog"
2927 INTLBISON="$ac_cv_prog_INTLBISON"
2928 if test -n "$INTLBISON"; then
2929 echo "$ac_t""$INTLBISON" 1>&6
2931 echo "$ac_t""no" 1>&6
2934 test -n "$INTLBISON" && break
2937 if test -z "$INTLBISON"; then
2940 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2941 echo "configure:2942: checking version of bison" >&5
2942 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2943 case $ac_prog_version in
2944 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2945 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2946 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2947 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2949 echo "$ac_t""$ac_prog_version" 1>&6
2951 if test $ac_verc_fail = yes; then
2955 for lang in $ALL_LINGUAS; do
2956 GMOFILES="$GMOFILES $lang.gmo"
2957 POFILES="$POFILES $lang.po"
2971 nls_cv_header_libgt=
2983 if test "x$CATOBJEXT" != "x"; then
2984 if test "x$ALL_LINGUAS" = "x"; then
2987 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2988 echo "configure:2989: checking for catalogs to be installed" >&5
2990 for presentlang in $ALL_LINGUAS; do
2992 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2993 # Use the presentlang catalog if desiredlang is
2994 # a. equal to presentlang, or
2995 # b. a variant of presentlang (because in this case,
2996 # presentlang can be used as a fallback for messages
2997 # which are not translated in the desiredlang catalog).
2998 case "$desiredlang" in
2999 "$presentlang"*) useit=yes;;
3002 if test $useit = yes; then
3003 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3006 LINGUAS=$NEW_LINGUAS
3007 echo "$ac_t""$LINGUAS" 1>&6
3010 if test -n "$LINGUAS"; then
3011 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3016 if test -n "$ac_aux_dir"; then
3017 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3019 if test -z "$MKINSTALLDIRS"; then
3020 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3024 INTL_LIBTOOL_SUFFIX_PREFIX=
3028 # Find a good install program. We prefer a C program (faster),
3029 # so one script is as good as another. But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3038 # ./install, which can be erroneously created by make from ./install.sh.
3039 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3040 echo "configure:3041: checking for a BSD compatible install" >&5
3041 if test -z "$INSTALL"; then
3042 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3046 for ac_dir in $PATH; do
3047 # Account for people who put trailing slashes in PATH elements.
3049 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3051 # OSF1 and SCO ODT 3.0 have their own names for install.
3052 # Don't use installbsd from OSF since it installs stuff as root
3054 for ac_prog in ginstall scoinst install; do
3055 if test -f $ac_dir/$ac_prog; then
3056 if test $ac_prog = install &&
3057 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3058 # AIX install. It has an incompatible calling convention.
3061 ac_cv_path_install="$ac_dir/$ac_prog -c"
3072 if test "${ac_cv_path_install+set}" = set; then
3073 INSTALL="$ac_cv_path_install"
3075 # As a last resort, use the slow shell script. We don't cache a
3076 # path for INSTALL within a source directory, because that will
3077 # break other packages using the cache if that directory is
3078 # removed, or if the path is relative.
3079 INSTALL="$ac_install_sh"
3082 echo "$ac_t""$INSTALL" 1>&6
3084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3085 # It thinks the first close brace ends the variable substitution.
3086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3093 case x"${target_os}" in
3108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}windres; ac_word=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 if test -n "$WINDRES"; then
3116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3120 for ac_dir in $ac_dummy; do
3121 test -z "$ac_dir" && ac_dir=.
3122 if test -f $ac_dir/$ac_word; then
3123 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3130 WINDRES="$ac_cv_prog_WINDRES"
3131 if test -n "$WINDRES"; then
3132 echo "$ac_t""$WINDRES" 1>&6
3134 echo "$ac_t""no" 1>&6
3138 if test -z "$ac_cv_prog_WINDRES"; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "windres", so it can be a program name with args.
3141 set dummy windres; ac_word=$2
3142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3143 echo "configure:3144: checking for $ac_word" >&5
3144 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 if test -n "$WINDRES"; then
3148 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3152 for ac_dir in $ac_dummy; do
3153 test -z "$ac_dir" && ac_dir=.
3154 if test -f $ac_dir/$ac_word; then
3155 ac_cv_prog_WINDRES="windres"
3160 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3163 WINDRES="$ac_cv_prog_WINDRES"
3164 if test -n "$WINDRES"; then
3165 echo "$ac_t""$WINDRES" 1>&6
3167 echo "$ac_t""no" 1>&6
3175 LIB_IPV4="${LIB_IPV4} -lws2_32"
3176 LIB_RC="${LIB_RC} -lws2_32"
3180 LIB_X11="${LIB_X11} -lsocket"
3181 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3185 LIB_VLC="${LIB_VLC} -lbe"
3186 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3187 LIB_IPV4="${LIB_IPV4} -lbind"
3188 PLDFLAGS="${PLDFLAGS} -nostart"
3195 for ac_func in gettimeofday select strerror strtod strtol isatty
3197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_func" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206 which can conflict with char $ac_func(); below. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3215 /* The GNU C library defines this for functions which it implements
3216 to always fail with ENOSYS. Some functions are actually named
3217 something starting with __ and the normal name is an alias. */
3218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 eval "ac_cv_func_$ac_func=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3233 eval "ac_cv_func_$ac_func=no"
3238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241 cat >> confdefs.h <<EOF
3242 #define $ac_tr_func 1
3246 echo "$ac_t""no" 1>&6
3250 echo $ac_n "checking for connect""... $ac_c" 1>&6
3251 echo "configure:3252: checking for connect" >&5
3252 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 /* System header to define __stub macros and hopefully few prototypes,
3259 which can conflict with char connect(); below. */
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3268 /* The GNU C library defines this for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_connect) || defined (__stub___connect)
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3281 eval "ac_cv_func_connect=yes"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3286 eval "ac_cv_func_connect=no"
3291 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3295 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3298 echo "configure:3299: checking for connect in -lsocket" >&5
3299 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_save_LIBS="$LIBS"
3304 LIBS="-lsocket $LIBS"
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 eval "ac_cv_lib_$ac_lib_var=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "ac_cv_lib_$ac_lib_var=no"
3327 LIBS="$ac_save_LIBS"
3330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 LIB_IPV4="${LIB_IPV4} -lsocket"
3333 LIB_VLC="${LIB_VLC} -lsocket"
3336 echo "$ac_t""no" 1>&6
3341 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3342 echo "configure:3343: checking for gethostbyname" >&5
3343 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 /* System header to define __stub macros and hopefully few prototypes,
3350 which can conflict with char gethostbyname(); below. */
3352 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */
3355 char gethostbyname();
3359 /* The GNU C library defines this for functions which it implements
3360 to always fail with ENOSYS. Some functions are actually named
3361 something starting with __ and the normal name is an alias. */
3362 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 eval "ac_cv_func_gethostbyname=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_func_gethostbyname=no"
3382 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3383 echo "$ac_t""yes" 1>&6
3386 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3389 echo "configure:3390: checking for gethostbyname in -lnsl" >&5
3390 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 ac_save_LIBS="$LIBS"
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3402 char gethostbyname();
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3415 eval "ac_cv_lib_$ac_lib_var=no"
3418 LIBS="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 LIB_IPV4="${LIB_IPV4} -lnsl"
3425 echo "$ac_t""no" 1>&6
3431 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3432 echo "configure:3433: checking for gethostbyname" >&5
3433 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 /* System header to define __stub macros and hopefully few prototypes,
3440 which can conflict with char gethostbyname(); below. */
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445 char gethostbyname();
3449 /* The GNU C library defines this for functions which it implements
3450 to always fail with ENOSYS. Some functions are actually named
3451 something starting with __ and the normal name is an alias. */
3452 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 eval "ac_cv_func_gethostbyname=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 eval "ac_cv_func_gethostbyname=no"
3472 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6
3476 echo "$ac_t""no" 1>&6
3478 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3479 echo "configure:3480: checking for gethostbyname in -lbind" >&5
3480 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 ac_save_LIBS="$LIBS"
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492 char gethostbyname();
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3500 eval "ac_cv_lib_$ac_lib_var=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_lib_$ac_lib_var=no"
3508 LIBS="$ac_save_LIBS"
3511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3513 LIB_IPV4="${LIB_IPV4} -lbind"
3515 echo "$ac_t""no" 1>&6
3521 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3522 echo "configure:3523: checking for nanosleep" >&5
3523 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* System header to define __stub macros and hopefully few prototypes,
3530 which can conflict with char nanosleep(); below. */
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3539 /* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 eval "ac_cv_func_nanosleep=yes"
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3557 eval "ac_cv_func_nanosleep=no"
3562 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3566 echo "$ac_t""no" 1>&6
3568 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3569 echo "configure:3570: checking for nanosleep in -lrt" >&5
3570 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 ac_save_LIBS="$LIBS"
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3588 if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3590 eval "ac_cv_lib_$ac_lib_var=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 eval "ac_cv_lib_$ac_lib_var=no"
3598 LIBS="$ac_save_LIBS"
3601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 LIB_VLC="${LIB_VLC} -lrt"
3605 echo "$ac_t""no" 1>&6
3607 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3608 echo "configure:3609: checking for nanosleep in -lposix4" >&5
3609 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 ac_save_LIBS="$LIBS"
3614 LIBS="-lposix4 $LIBS"
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 eval "ac_cv_lib_$ac_lib_var=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_lib_$ac_lib_var=no"
3637 LIBS="$ac_save_LIBS"
3640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 LIB_VLC="${LIB_VLC} -lposix4"
3644 echo "$ac_t""no" 1>&6
3653 for ac_func in usleep
3655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3656 echo "configure:3657: checking for $ac_func" >&5
3657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* System header to define __stub macros and hopefully few prototypes,
3664 which can conflict with char $ac_func(); below. */
3666 /* Override any gcc2 internal prototype to avoid an error. */
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3673 /* The GNU C library defines this for functions which it implements
3674 to always fail with ENOSYS. Some functions are actually named
3675 something starting with __ and the normal name is an alias. */
3676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 eval "ac_cv_func_$ac_func=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 eval "ac_cv_func_$ac_func=no"
3696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3699 cat >> confdefs.h <<EOF
3700 #define $ac_tr_func 1
3704 echo "$ac_t""no" 1>&6
3708 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3709 echo "configure:3710: checking for inet_aton" >&5
3710 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 /* System header to define __stub macros and hopefully few prototypes,
3717 which can conflict with char inet_aton(); below. */
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 /* We use char because int might match the return type of a gcc2
3721 builtin and then its argument prototype would still apply. */
3726 /* The GNU C library defines this for functions which it implements
3727 to always fail with ENOSYS. Some functions are actually named
3728 something starting with __ and the normal name is an alias. */
3729 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 eval "ac_cv_func_inet_aton=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_func_inet_aton=no"
3749 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3753 echo "$ac_t""no" 1>&6
3755 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3756 echo "configure:3757: checking for inet_aton in -lresolv" >&5
3757 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 ac_save_LIBS="$LIBS"
3762 LIBS="-lresolv $LIBS"
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 eval "ac_cv_lib_$ac_lib_var=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 eval "ac_cv_lib_$ac_lib_var=no"
3785 LIBS="$ac_save_LIBS"
3788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 LIB_VLC="${LIB_IPV4} -lresolv"
3792 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3799 echo "configure:3800: checking for textdomain" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char textdomain(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_func_textdomain=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func_textdomain=no"
3839 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3843 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3846 echo "configure:3847: checking for textdomain in -lintl" >&5
3847 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 ac_save_LIBS="$LIBS"
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3867 eval "ac_cv_lib_$ac_lib_var=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3872 eval "ac_cv_lib_$ac_lib_var=no"
3875 LIBS="$ac_save_LIBS"
3878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3880 LIB_VLC="${LIB_VLC} -lintl"
3882 echo "$ac_t""no" 1>&6
3888 for ac_func in vasprintf
3890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3891 echo "configure:3892: checking for $ac_func" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899 which can conflict with char $ac_func(); below. */
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3908 /* The GNU C library defines this for functions which it implements
3909 to always fail with ENOSYS. Some functions are actually named
3910 something starting with __ and the normal name is an alias. */
3911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 eval "ac_cv_func_$ac_func=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 eval "ac_cv_func_$ac_func=no"
3931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3934 cat >> confdefs.h <<EOF
3935 #define $ac_tr_func 1
3939 echo "$ac_t""no" 1>&6
3945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_func" >&5
3947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char $ac_func(); below. */
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3963 /* The GNU C library defines this for functions which it implements
3964 to always fail with ENOSYS. Some functions are actually named
3965 something starting with __ and the normal name is an alias. */
3966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 eval "ac_cv_func_$ac_func=yes"
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 eval "ac_cv_func_$ac_func=no"
3986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_func 1
3994 echo "$ac_t""no" 1>&6
3998 for ac_func in memalign valloc
4000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4001 echo "configure:4002: checking for $ac_func" >&5
4002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 /* System header to define __stub macros and hopefully few prototypes,
4009 which can conflict with char $ac_func(); below. */
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4018 /* The GNU C library defines this for functions which it implements
4019 to always fail with ENOSYS. Some functions are actually named
4020 something starting with __ and the normal name is an alias. */
4021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4031 eval "ac_cv_func_$ac_func=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 eval "ac_cv_func_$ac_func=no"
4041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4044 cat >> confdefs.h <<EOF
4045 #define $ac_tr_func 1
4049 echo "$ac_t""no" 1>&6
4054 for ac_func in sigrelse
4056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_func" >&5
4058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 /* System header to define __stub macros and hopefully few prototypes,
4065 which can conflict with char $ac_func(); below. */
4067 /* Override any gcc2 internal prototype to avoid an error. */
4068 /* We use char because int might match the return type of a gcc2
4069 builtin and then its argument prototype would still apply. */
4074 /* The GNU C library defines this for functions which it implements
4075 to always fail with ENOSYS. Some functions are actually named
4076 something starting with __ and the normal name is an alias. */
4077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087 eval "ac_cv_func_$ac_func=yes"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 eval "ac_cv_func_$ac_func=no"
4097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4100 cat >> confdefs.h <<EOF
4101 #define $ac_tr_func 1
4105 echo "$ac_t""no" 1>&6
4109 for ac_func in getpwuid
4111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4112 echo "configure:4113: checking for $ac_func" >&5
4113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 /* System header to define __stub macros and hopefully few prototypes,
4120 which can conflict with char $ac_func(); below. */
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4129 /* The GNU C library defines this for functions which it implements
4130 to always fail with ENOSYS. Some functions are actually named
4131 something starting with __ and the normal name is an alias. */
4132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142 eval "ac_cv_func_$ac_func=yes"
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 eval "ac_cv_func_$ac_func=no"
4152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4155 cat >> confdefs.h <<EOF
4156 #define $ac_tr_func 1
4160 echo "$ac_t""no" 1>&6
4166 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4167 echo "configure:4168: checking for getopt_long" >&5
4168 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 /* System header to define __stub macros and hopefully few prototypes,
4175 which can conflict with char getopt_long(); below. */
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 eval "ac_cv_func_getopt_long=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 eval "ac_cv_func_getopt_long=no"
4207 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_GETOPT_LONG 1
4214 echo "$ac_t""no" 1>&6
4215 # FreeBSD has a gnugetopt library for this:
4216 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4217 echo "configure:4218: checking for getopt_long in -lgnugetopt" >&5
4218 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 ac_save_LIBS="$LIBS"
4223 LIBS="-lgnugetopt $LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_lib_$ac_lib_var=no"
4246 LIBS="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 cat >> confdefs.h <<\EOF
4252 #define HAVE_GETOPT_LONG 1
4254 LIB_VLC="${LIB_VLC} -lgnugetopt"
4256 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4264 echo "configure:4265: checking return type of signal handlers" >&5
4265 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <sys/types.h>
4277 extern "C" void (*signal (int, void (*)(int)))(int);
4279 void (*signal ()) ();
4286 if { (eval echo configure:4287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4288 ac_cv_type_signal=void
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 ac_cv_type_signal=int
4298 echo "$ac_t""$ac_cv_type_signal" 1>&6
4299 cat >> confdefs.h <<EOF
4300 #define RETSIGTYPE $ac_cv_type_signal
4304 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4305 echo "configure:4306: checking for dlopen in -ldl" >&5
4306 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 ac_save_LIBS="$LIBS"
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4326 eval "ac_cv_lib_$ac_lib_var=yes"
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 eval "ac_cv_lib_$ac_lib_var=no"
4334 LIBS="$ac_save_LIBS"
4337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 LIB_VLC="${LIB_VLC} -ldl"
4341 echo "$ac_t""no" 1>&6
4344 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4345 echo "configure:4346: checking for cos in -lm" >&5
4346 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS="$LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 LIB_IMDCT="${LIB_IMDCT} -lm"
4380 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4382 echo "$ac_t""no" 1>&6
4385 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4386 echo "configure:4387: checking for pow in -lm" >&5
4387 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 ac_save_LIBS="$LIBS"
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4407 eval "ac_cv_lib_$ac_lib_var=yes"
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4412 eval "ac_cv_lib_$ac_lib_var=no"
4415 LIBS="$ac_save_LIBS"
4418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 LIB_IMDCT="${LIB_IMDCT} -lm"
4421 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4422 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4423 LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4426 echo "$ac_t""no" 1>&6
4431 if test "x${THREAD_LIB}" = xerror; then
4432 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4433 echo "configure:4434: checking for pthread_attr_init in -lpthread" >&5
4434 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 ac_save_LIBS="$LIBS"
4439 LIBS="-lpthread $LIBS"
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4446 char pthread_attr_init();
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 eval "ac_cv_lib_$ac_lib_var=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_lib_$ac_lib_var=no"
4462 LIBS="$ac_save_LIBS"
4465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 THREAD_LIB="-lpthread"
4469 echo "$ac_t""no" 1>&6
4473 if test "x${THREAD_LIB}" = xerror; then
4474 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4475 echo "configure:4476: checking for pthread_attr_init in -lpthreads" >&5
4476 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 ac_save_LIBS="$LIBS"
4481 LIBS="-lpthreads $LIBS"
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4486 /* We use char because int might match the return type of a gcc2
4487 builtin and then its argument prototype would still apply. */
4488 char pthread_attr_init();
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4496 eval "ac_cv_lib_$ac_lib_var=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4501 eval "ac_cv_lib_$ac_lib_var=no"
4504 LIBS="$ac_save_LIBS"
4507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 THREAD_LIB="-lpthreads"
4511 echo "$ac_t""no" 1>&6
4515 if test "x${THREAD_LIB}" = xerror; then
4516 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4517 echo "configure:4518: checking for pthread_attr_init in -lc_r" >&5
4518 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 ac_save_LIBS="$LIBS"
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* Override any gcc2 internal prototype to avoid an error. */
4528 /* We use char because int might match the return type of a gcc2
4529 builtin and then its argument prototype would still apply. */
4530 char pthread_attr_init();
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 eval "ac_cv_lib_$ac_lib_var=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_lib_$ac_lib_var=no"
4546 LIBS="$ac_save_LIBS"
4549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4553 echo "$ac_t""no" 1>&6
4557 if test "x${THREAD_LIB}" = xerror; then
4558 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4559 echo "configure:4560: checking for pthread_attr_init" >&5
4560 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 /* System header to define __stub macros and hopefully few prototypes,
4567 which can conflict with char pthread_attr_init(); below. */
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4572 char pthread_attr_init();
4576 /* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4582 pthread_attr_init();
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4589 eval "ac_cv_func_pthread_attr_init=yes"
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 eval "ac_cv_func_pthread_attr_init=no"
4599 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4603 echo "$ac_t""no" 1>&6
4609 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4610 echo "configure:4611: checking for cthread_fork in -lthreads" >&5
4611 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 ac_save_LIBS="$LIBS"
4616 LIBS="-lthreads $LIBS"
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4623 char cthread_fork();
4629 if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4631 eval "ac_cv_lib_$ac_lib_var=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4636 eval "ac_cv_lib_$ac_lib_var=no"
4639 LIBS="$ac_save_LIBS"
4642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 THREAD_LIB="-lthreads"
4646 echo "$ac_t""no" 1>&6
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <pthread.h>
4655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656 egrep "pthread_cond_t" >/dev/null 2>&1; then
4659 cat >> confdefs.h <<\EOF
4660 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 #include <strings.h>
4671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 egrep "strncasecmp" >/dev/null 2>&1; then
4675 cat >> confdefs.h <<\EOF
4676 #define STRNCASECMP_IN_STRINGS_H 1
4683 for ac_hdr in getopt.h strings.h
4685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_hdr" >&5
4688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4697 { (eval echo configure:4698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4699 if test -z "$ac_err"; then
4701 eval "ac_cv_header_$ac_safe=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_header_$ac_safe=no"
4711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4712 echo "$ac_t""yes" 1>&6
4713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4714 cat >> confdefs.h <<EOF
4715 #define $ac_tr_hdr 1
4719 echo "$ac_t""no" 1>&6
4723 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_hdr" >&5
4728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4737 { (eval echo configure:4738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4739 if test -z "$ac_err"; then
4741 eval "ac_cv_header_$ac_safe=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 eval "ac_cv_header_$ac_safe=no"
4751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4754 cat >> confdefs.h <<EOF
4755 #define $ac_tr_hdr 1
4759 echo "$ac_t""no" 1>&6
4763 for ac_hdr in dlfcn.h image.h
4765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4767 echo "configure:4768: checking for $ac_hdr" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779 if test -z "$ac_err"; then
4781 eval "ac_cv_header_$ac_safe=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_header_$ac_safe=no"
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_hdr 1
4799 echo "$ac_t""no" 1>&6
4803 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_hdr" >&5
4808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4817 { (eval echo configure:4818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4819 if test -z "$ac_err"; then
4821 eval "ac_cv_header_$ac_safe=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 eval "ac_cv_header_$ac_safe=no"
4831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_hdr 1
4839 echo "$ac_t""no" 1>&6
4843 for ac_hdr in machine/param.h sys/shm.h
4845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $ac_hdr" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4859 if test -z "$ac_err"; then
4861 eval "ac_cv_header_$ac_safe=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_header_$ac_safe=no"
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4874 cat >> confdefs.h <<EOF
4875 #define $ac_tr_hdr 1
4879 echo "$ac_t""no" 1>&6
4884 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4885 echo "configure:4886: checking whether time.h and sys/time.h may both be included" >&5
4886 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 #include <sys/types.h>
4893 #include <sys/time.h>
4899 if { (eval echo configure:4900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4901 ac_cv_header_time=yes
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 ac_cv_header_time=no
4911 echo "$ac_t""$ac_cv_header_time" 1>&6
4912 if test $ac_cv_header_time = yes; then
4913 cat >> confdefs.h <<\EOF
4914 #define TIME_WITH_SYS_TIME 1
4920 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4924 echo "configure:4925: checking for $ac_hdr" >&5
4925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4934 { (eval echo configure:4935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4936 if test -z "$ac_err"; then
4938 eval "ac_cv_header_$ac_safe=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4944 eval "ac_cv_header_$ac_safe=no"
4948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4951 cat >> confdefs.h <<EOF
4952 #define $ac_tr_hdr 1
4956 echo "$ac_t""no" 1>&6
4961 if test x$SYS != xmingw32
4963 if test x$x_includes = xNONE; then
4964 x_includes=/usr/X11R6/include
4966 if test x$x_libraries = xNONE; then
4967 x_libraries=/usr/X11R6/lib
4969 saved_CPPFLAGS=$CPPFLAGS
4970 CPPFLAGS="$CPPFLAGS -I$x_includes"
4971 for ac_hdr in X11/extensions/dpms.h
4973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_hdr" >&5
4976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4985 { (eval echo configure:4986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4987 if test -z "$ac_err"; then
4989 eval "ac_cv_header_$ac_safe=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_header_$ac_safe=no"
4999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5000 echo "$ac_t""yes" 1>&6
5001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5002 cat >> confdefs.h <<EOF
5003 #define $ac_tr_hdr 1
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 #include <X11/extensions/dpms.h>
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 egrep "DPMSInfo" >/dev/null 2>&1; then
5015 cat >> confdefs.h <<\EOF
5016 #define DPMSINFO_IN_DPMS_H 1
5025 echo "$ac_t""no" 1>&6
5029 CPPFLAGS=$saved_CPPFLAGS
5032 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5033 echo "configure:5034: checking for ntohl in sys/param.h" >&5
5034 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 CFLAGS="${save_CFLAGS} -Wall -Werror"
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 #include <sys/param.h>
5043 void foo() { int meuh; ntohl(meuh); }
5046 if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5048 ac_cv_c_ntohl_sys_param_h=yes
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 ac_cv_c_ntohl_sys_param_h=no
5058 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5059 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5060 cat >> confdefs.h <<\EOF
5061 #define NTOHL_IN_SYS_PARAM_H 1
5066 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5067 echo "configure:5068: checking if \$CC accepts -finline-limit" >&5
5068 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5082 ac_cv_c_inline_limit=yes
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 ac_cv_c_inline_limit=no
5092 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5093 if test x"$ac_cv_c_inline_limit" != x"no"; then
5094 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5097 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5098 echo "configure:5099: checking if \$CC accepts -Wall -Winline" >&5
5099 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 CFLAGS="${save_CFLAGS} -Wall -Winline"
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5111 if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5113 ac_cv_c_Wall_Winline=yes
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 ac_cv_c_Wall_Winline=no
5123 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5124 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5125 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5127 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5128 echo "configure:5129: checking if \$CC accepts -wall -winline" >&5
5129 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 CFLAGS="${save_CFLAGS} -wall -winline"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 ac_cv_c_wall_winline=yes
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 ac_cv_c_wall_winline=no
5153 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5154 if test x"$ac_cv_c_wall_winline" != x"no"; then
5155 save_CFLAGS="${save_CFLAGS} -wall -winline"
5159 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5160 echo "configure:5161: checking if \$CC accepts -pipe" >&5
5161 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 CFLAGS="${save_CFLAGS} -pipe"
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5173 if { (eval echo configure:5174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5185 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5186 if test x"$ac_cv_c_pipe" != x"no"; then
5187 save_CFLAGS="${save_CFLAGS} -pipe"
5190 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5191 echo "configure:5192: checking if \$CC accepts -O3" >&5
5192 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 CFLAGS="${save_CFLAGS} -O3"
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5204 if { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5216 echo "$ac_t""$ac_cv_c_o3" 1>&6
5217 if test x"$ac_cv_c_o3" != x"no"; then
5218 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5220 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5221 echo "configure:5222: checking if \$CC accepts -O2" >&5
5222 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 CFLAGS="${save_CFLAGS} -O2"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5246 echo "$ac_t""$ac_cv_c_o2" 1>&6
5247 if test x"$ac_cv_c_o2" != x"no"; then
5248 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5250 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5251 echo "configure:5252: checking if \$CC accepts -O" >&5
5252 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 CFLAGS="${save_CFLAGS} -O"
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5264 if { (eval echo configure:5265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5276 echo "$ac_t""$ac_cv_c_o" 1>&6
5277 if test x"$ac_cv_c_o" != x"no"; then
5278 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5283 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5284 echo "configure:5285: checking if \$CC accepts -ffast-math" >&5
5285 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5288 CFLAGS="${save_CFLAGS} -ffast-math"
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5297 if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 ac_cv_c_fast_math=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 ac_cv_c_fast_math=no
5309 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5310 if test x"$ac_cv_c_fast_math" != x"no"; then
5311 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5314 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5315 echo "configure:5316: checking if \$CC accepts -funroll-loops" >&5
5316 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 CFLAGS="${save_CFLAGS} -funroll-loops"
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5328 if { (eval echo configure:5329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5330 ac_cv_c_unroll_loops=yes
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5335 ac_cv_c_unroll_loops=no
5340 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5341 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5342 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5345 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5346 echo "configure:5347: checking if \$CC accepts -fomit-frame-pointer" >&5
5347 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5359 if { (eval echo configure:5360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5361 ac_cv_c_omit_frame_pointer=yes
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 ac_cv_c_omit_frame_pointer=no
5371 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5372 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5373 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5376 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5377 echo "configure:5378: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5378 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5390 if { (eval echo configure:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5402 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5403 if test x"$ac_cv_ld_darwin" != x"no"; then
5404 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5407 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5408 echo "configure:5409: checking if \$CC accepts -shared" >&5
5409 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5412 CFLAGS="${save_CFLAGS} -shared"
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5421 if { (eval echo configure:5422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 ac_cv_ld_plugins=yes
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5433 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5434 if test x"$ac_cv_ld_plugins" != x"no"; then
5435 PLDFLAGS="${PLDFLAGS} -shared"
5438 if test x"${SOFLAGS}" = x; then
5439 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5440 echo "configure:5441: checking for soname setting" >&5
5441 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5446 try_SOFLAGS="-Wl,-soname -Wl,"
5447 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5458 ac_cv_ld_soname="${try_SOFLAGS}"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5465 try_SOFLAGS="-Wl,-h -Wl,"
5466 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5475 if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5477 ac_cv_ld_soname="${try_SOFLAGS}"
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 ac_cv_ld_soname=none
5490 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5491 if test x"$ac_cv_ld_soname" != x"none"; then
5492 SOFLAGS=$ac_cv_ld_soname
5496 Your system doesn't seem to have support for dynamic linking. You may
5497 have problems using libdvdcss.
5503 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5504 echo "configure:5505: checking __attribute__ ((aligned ())) support" >&5
5505 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 ac_cv_c_attribute_aligned=0
5509 CFLAGS="${save_CFLAGS} -Werror"
5510 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5516 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5530 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5531 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5532 cat >> confdefs.h <<EOF
5533 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5538 CFLAGS="${save_CFLAGS}"
5539 LDFLAGS="${save_LDFLAGS}"
5541 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5542 echo "configure:5543: checking for boolean_t in sys/types.h" >&5
5543 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 #include <sys/types.h>
5554 if { (eval echo configure:5555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5556 ac_cv_c_boolean_t_sys_types_h=yes
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 ac_cv_c_boolean_t_sys_types_h=no
5566 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5567 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5568 cat >> confdefs.h <<\EOF
5569 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5574 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5575 echo "configure:5576: checking for boolean_t in pthread.h" >&5
5576 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5582 #include <pthread.h>
5587 if { (eval echo configure:5588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5589 ac_cv_c_boolean_t_pthread_h=yes
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 ac_cv_c_boolean_t_pthread_h=no
5599 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5600 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5601 cat >> confdefs.h <<\EOF
5602 #define BOOLEAN_T_IN_PTHREAD_H 1
5607 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5608 echo "configure:5609: checking for boolean_t in cthreads.h" >&5
5609 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <cthreads.h>
5620 if { (eval echo configure:5621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5622 ac_cv_c_boolean_t_cthreads_h=yes
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 ac_cv_c_boolean_t_cthreads_h=no
5632 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5633 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5634 cat >> confdefs.h <<\EOF
5635 #define BOOLEAN_T_IN_CTHREADS_H 1
5640 case x"${target_cpu}" in
5649 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"
5650 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"
5652 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5653 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5654 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5655 if test x$SYS != xmingw32; then
5656 SSE_MODULES="imdctsse downmixsse"
5658 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5660 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5661 echo "configure:5662: checking if \$CC groks MMX inline assembly" >&5
5662 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5670 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5673 if { (eval echo configure:5674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5675 ac_cv_mmx_inline=yes
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5685 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5686 if test x"$ac_cv_mmx_inline" != x"no"; then
5687 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5690 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5691 echo "configure:5692: checking if \$CC groks MMX EXT inline assembly" >&5
5692 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5700 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 ac_cv_mmxext_inline=yes
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 ac_cv_mmxext_inline=no
5715 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5716 if test x"$ac_cv_mmxext_inline" != x"no"; then
5717 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5720 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5721 echo "configure:5722: checking if \$CC groks 3D Now! inline assembly" >&5
5722 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5730 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5733 if { (eval echo configure:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5735 ac_cv_3dnow_inline=yes
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 ac_cv_3dnow_inline=no
5745 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5746 if test x"$ac_cv_3dnow_inline" != x"no"; then
5747 cat >> confdefs.h <<\EOF
5748 #define CAN_COMPILE_3DNOW 1
5751 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5754 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5755 echo "configure:5756: checking if \$CC groks SSE inline assembly" >&5
5756 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5764 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5767 if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5769 ac_cv_sse_inline=yes
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5779 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5780 if test x"$ac_cv_sse_inline" != x"no"; then
5781 cat >> confdefs.h <<\EOF
5782 #define CAN_COMPILE_SSE 1
5785 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5788 # don't try to grok altivec with native mingw32 it doesn't work right now
5789 # we should be able to remove this test with future versions of mingw32
5790 if test x$SYS != xmingw32; then
5791 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5792 echo "configure:5793: checking if \$CC groks Altivec inline assembly" >&5
5793 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5801 asm volatile("vperm 0,1,2,3");
5804 if { (eval echo configure:5805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 ac_cv_altivec_inline=yes
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5812 CFLAGS="$CFLAGS -Wa,-m7400"
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5818 asm volatile("vperm 0,1,2,3");
5821 if { (eval echo configure:5822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5823 ac_cv_altivec_inline="-Wa,-m7400"
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5828 ac_cv_altivec_inline=no
5837 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5838 if test x"$ac_cv_altivec_inline" != x"no"; then
5839 cat >> confdefs.h <<\EOF
5840 #define CAN_COMPILE_ALTIVEC 1
5843 if test x"$ac_cv_altivec_inline" != x"yes"; then
5844 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5845 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5846 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5848 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5851 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5852 echo "configure:5853: checking if \$CC groks Altivec C extensions" >&5
5853 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5857 CFLAGS="$CFLAGS -faltivec"
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5864 vec_mtvscr((vector unsigned int)(0));
5867 if { (eval echo configure:5868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5869 ac_cv_c_altivec=-faltivec
5871 echo "configure: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5876 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5882 vec_mtvscr((vector unsigned int)(0));
5885 if { (eval echo configure:5886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5887 ac_cv_c_altivec="-fvec"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5902 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5903 if test x"$ac_cv_c_altivec" != x"no"; then
5904 cat >> confdefs.h <<\EOF
5905 #define CAN_COMPILE_C_ALTIVEC 1
5908 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5909 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5910 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5911 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5914 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5915 echo "configure:5916: checking if linker needs -framework vecLib" >&5
5916 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 save_LDFLAGS=$LDFLAGS
5920 LDFLAGS="$LDFLAGS -framework vecLib"
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 ac_cv_ld_altivec=yes
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5939 LDFLAGS=$save_LDFLAGS
5943 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5944 if test x"$ac_cv_ld_altivec" != x"no"; then
5945 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5946 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5947 LIB_VLC="${LIB_VLC} -framework vecLib"
5953 CAN_BUILD_LIBDVDCSS=0
5955 for ac_hdr in winioctl.h
5957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5959 echo "configure:5960: checking for $ac_hdr" >&5
5960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5969 { (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5971 if test -z "$ac_err"; then
5973 eval "ac_cv_header_$ac_safe=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 eval "ac_cv_header_$ac_safe=no"
5983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5986 cat >> confdefs.h <<EOF
5987 #define $ac_tr_hdr 1
5990 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5993 echo "$ac_t""no" 1>&6
5998 for ac_hdr in sys/ioctl.h
6000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6002 echo "configure:6003: checking for $ac_hdr" >&5
6003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6012 { (eval echo configure:6013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6014 if test -z "$ac_err"; then
6016 eval "ac_cv_header_$ac_safe=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_header_$ac_safe=no"
6026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6029 cat >> confdefs.h <<EOF
6030 #define $ac_tr_hdr 1
6033 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
6034 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
6036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_hdr" >&5
6039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6048 { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6050 if test -z "$ac_err"; then
6052 eval "ac_cv_header_$ac_safe=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_header_$ac_safe=no"
6062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6065 cat >> confdefs.h <<EOF
6066 #define $ac_tr_hdr 1
6070 echo "$ac_t""no" 1>&6
6076 OPENBSD_DVD_STRUCT=0
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6080 #include <sys/cdio.h>
6082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6083 egrep "dvd_struct" >/dev/null 2>&1; then
6086 cat >> confdefs.h <<\EOF
6087 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 #include <sys/cdio.h>
6095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 egrep "struct dvd_struct" >/dev/null 2>&1; then
6102 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 #include <sys/dvdio.h>
6115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 egrep "dvd_struct" >/dev/null 2>&1; then
6119 cat >> confdefs.h <<\EOF
6120 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 #include <sys/dvdio.h>
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 egrep "struct dvd_struct" >/dev/null 2>&1; then
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 #include <linux/cdrom.h>
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 egrep "dvd_struct" >/dev/null 2>&1; then
6152 cat >> confdefs.h <<\EOF
6153 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6168 egrep "dvd_struct" >/dev/null 2>&1; then
6171 cat >> confdefs.h <<\EOF
6172 #define DVD_STRUCT_IN_DVD_H 1
6175 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6181 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_hdr" >&5
6186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6197 if test -z "$ac_err"; then
6199 eval "ac_cv_header_$ac_safe=yes"
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 eval "ac_cv_header_$ac_safe=no"
6209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6212 cat >> confdefs.h <<EOF
6213 #define $ac_tr_hdr 1
6217 cat >> confdefs.h <<\EOF
6218 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6221 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6225 echo "$ac_t""no" 1>&6
6233 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6234 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6235 echo "configure:6236: checking for sys/scsi/scsi_types.h" >&5
6236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 #include <sys/scsi/scsi_types.h>
6244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6245 { (eval echo configure:6246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6247 if test -z "$ac_err"; then
6249 eval "ac_cv_header_$ac_safe=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_header_$ac_safe=no"
6259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6262 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6263 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6264 echo "configure:6265: checking for sys/scsi/impl/uscsi.h" >&5
6265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 #include <sys/scsi/impl/uscsi.h>
6273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6274 { (eval echo configure:6275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6276 if test -z "$ac_err"; then
6278 eval "ac_cv_header_$ac_safe=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 eval "ac_cv_header_$ac_safe=no"
6288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6291 cat >> confdefs.h <<\EOF
6292 #define SOLARIS_USCSI 1
6297 echo "$ac_t""no" 1>&6
6302 echo "$ac_t""no" 1>&6
6305 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6306 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6307 echo "configure:6308: checking for sys/scsi.h" >&5
6308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 #include <sys/scsi.h>
6316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6317 { (eval echo configure:6318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6319 if test -z "$ac_err"; then
6321 eval "ac_cv_header_$ac_safe=yes"
6324 echo "configure: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 eval "ac_cv_header_$ac_safe=no"
6331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6332 echo "$ac_t""yes" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 #include <sys/scsi.h>
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 egrep "sctl_io" >/dev/null 2>&1; then
6343 cat >> confdefs.h <<\EOF
6344 #define HPUX_SCTL_IO 1
6353 echo "$ac_t""no" 1>&6
6356 if test x$LINUX_DVD_STRUCT = x1; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_LINUX_DVD_STRUCT 1
6361 if test x$OPENBSD_DVD_STRUCT = x1; then
6362 cat >> confdefs.h <<\EOF
6363 #define HAVE_OPENBSD_DVD_STRUCT 1
6368 if test x$BSD_DVD_STRUCT = x1; then
6369 cat >> confdefs.h <<\EOF
6370 #define HAVE_BSD_DVD_STRUCT 1
6377 echo "$ac_t""no" 1>&6
6382 # Check whether --with- or --without- was given.
6383 if test "${with_+set}" = set; then
6388 # Check whether --with- or --without- was given.
6389 if test "${with_+set}" = set; then
6395 # Check whether --with-tuning or --without-tuning was given.
6396 if test "${with_tuning+set}" = set; then
6397 withval="$with_tuning"
6401 if test "x$withval" != "x"; then
6404 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6406 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6410 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6413 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6416 # Check whether --enable-optimizations or --disable-optimizations was given.
6417 if test "${enable_optimizations+set}" = set; then
6418 enableval="$enable_optimizations"
6419 if test x$enableval = xno; then OPTIMS=0; fi
6425 # Check whether --enable-altivec or --disable-altivec was given.
6426 if test "${enable_altivec+set}" = set; then
6427 enableval="$enable_altivec"
6428 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6429 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6431 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6432 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6437 # Check whether --enable-debug or --disable-debug was given.
6438 if test "${enable_debug+set}" = set; then
6439 enableval="$enable_debug"
6440 if test x$enableval = xyes; then DEBUG=1; fi
6444 # Check whether --enable-release or --disable-release was given.
6445 if test "${enable_release+set}" = set; then
6446 enableval="$enable_release"
6447 if test x$enableval = xyes; then RELEASE=1; fi
6449 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6450 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6455 # Check whether --with- or --without- was given.
6456 if test "${with_+set}" = set; then
6465 # Check whether --with-dvdcss or --without-dvdcss was given.
6466 if test "${with_dvdcss+set}" = set; then
6467 withval="$with_dvdcss"
6468 case "x${withval}" in
6470 # local libdvdcss, statically linked
6471 BUILTINS="${BUILTINS} dvd"
6472 if test x${CAN_BUILD_LIBDVDCSS} = x1
6476 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6477 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6481 # local libdvdcss, dynamically linked
6482 PLUGINS="${PLUGINS} dvd"
6483 if test x${CAN_BUILD_LIBDVDCSS} = x1
6486 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6487 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6491 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6492 PLUGINS="${PLUGINS} dvd"
6494 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6495 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6496 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6497 LIB_DVD="${LIB_DVD} -ldl"
6500 # existing libdvdcss
6501 PLUGINS="${PLUGINS} dvd"
6502 if test "x$withval" != "xyes"
6504 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6505 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6507 LIB_DVD="${LIB_DVD} -ldvdcss"
6510 # user didn't decide, we choose to use local libdvdcss and link statically
6511 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6512 if test x${CAN_BUILD_LIBDVDCSS} = x1
6514 BUILTINS="${BUILTINS} dvd"
6517 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6518 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6520 # XXX: no check for libdl is done, don't try this at home !
6521 PLUGINS="${PLUGINS} dvd"
6523 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6524 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6525 LIB_DVD="${LIB_DVD} -ldl"
6530 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6531 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6532 # Check whether --with-dvdread or --without-dvdread was given.
6533 if test "${with_dvdread+set}" = set; then
6534 withval="$with_dvdread"
6535 case "x${withval}" in
6537 if test x${STATIC_LIBDVDREAD} = x1
6539 BUILTINS="${BUILTINS} dvdread"
6540 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6541 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6543 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6549 if test x${STATIC_LIBDVDREAD} = x1
6551 #BUILTINS="${BUILTINS} dvdread"
6552 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6553 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6555 #PLUGINS="${PLUGINS} dvdread"
6556 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6557 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6561 if test "x$withval" != "xlocal-shared"
6563 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6564 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6566 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6567 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6569 if test x${STATIC_LIBDVDCSS} = x1
6571 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6573 #PLUGINS="${PLUGINS} dvdread"
6574 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6575 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6578 if test x${DUMMY_LIBDVDCSS} = x1
6580 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6582 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6587 # Check whether --enable-vcd or --disable-vcd was given.
6588 if test "${enable_vcd+set}" = set; then
6589 enableval="$enable_vcd"
6594 if test x$enable_vcd != xno
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6599 #include <linux/cdrom.h>
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 egrep "cdrom_msf0" >/dev/null 2>&1; then
6605 PLUGINS="${PLUGINS} vcd"
6611 if test "x${SYS}" = "xbsdi"
6613 PLUGINS="${PLUGINS} vcd"
6616 if test "x${SYS}" = "xdarwin"
6618 PLUGINS="${PLUGINS} vcd"
6619 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6623 # Check whether --enable-satellite or --disable-satellite was given.
6624 if test "${enable_satellite+set}" = set; then
6625 enableval="$enable_satellite"
6626 if test x$enable_satellite = xyes
6628 BUILTINS="${BUILTINS} satellite"
6629 cat >> confdefs.h <<\EOF
6630 #define HAVE_SATELLITE 1
6637 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6638 echo "configure:6639: checking for inet_pton" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char inet_pton(); below. */
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_func_inet_pton=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_func_inet_pton=no"
6678 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 PLUGINS="${PLUGINS} ipv6"
6682 echo "$ac_t""no" 1>&6
6687 # Check whether --with- or --without- was given.
6688 if test "${with_+set}" = set; then
6694 # Check whether --enable-mad or --disable-mad was given.
6695 if test "${enable_mad+set}" = set; then
6696 enableval="$enable_mad"
6700 if test x$enable_mad = xyes
6702 PLUGINS="${PLUGINS} mad"
6703 LIB_MAD="${LIB_MAD} -lmad"
6704 # Check whether --with-mad or --without-mad was given.
6705 if test "${with_mad+set}" = set; then
6707 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6709 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6710 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6715 save_LDFLAGS=$LDFLAGS
6716 CFLAGS="$CFLAGS $CFLAGS_MAD"
6717 LDFLAGS="$LDFLAGS $LIB_MAD"
6720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6722 echo "configure:6723: checking for $ac_hdr" >&5
6723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6732 { (eval echo configure:6733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6734 if test -z "$ac_err"; then
6736 eval "ac_cv_header_$ac_safe=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_header_$ac_safe=no"
6746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6747 echo "$ac_t""yes" 1>&6
6748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6749 cat >> confdefs.h <<EOF
6750 #define $ac_tr_hdr 1
6754 echo "$ac_t""no" 1>&6
6755 echo "Cannot find development headers for libmad..."
6761 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6762 echo "configure:6763: checking for mad_bit_init in -lmad" >&5
6763 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6767 ac_save_LIBS="$LIBS"
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6775 char mad_bit_init();
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6783 eval "ac_cv_lib_$ac_lib_var=yes"
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6788 eval "ac_cv_lib_$ac_lib_var=no"
6791 LIBS="$ac_save_LIBS"
6794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6798 cat >> confdefs.h <<EOF
6799 #define $ac_tr_lib 1
6805 echo "$ac_t""no" 1>&6
6806 echo "Cannot find libmad library..."
6812 LDFLAGS=$save_LDFLAGS
6815 if test x$SYS = xbeos
6817 PLUGINS="${PLUGINS} beos"
6821 # Check whether --enable-a52 or --disable-a52 was given.
6822 if test "${enable_a52+set}" = set; then
6823 enableval="$enable_a52"
6827 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6829 for ac_hdr in a52dec/a52.h
6831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_hdr" >&5
6834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6843 { (eval echo configure:6844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6845 if test -z "$ac_err"; then
6847 eval "ac_cv_header_$ac_safe=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 eval "ac_cv_header_$ac_safe=no"
6857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6860 cat >> confdefs.h <<EOF
6861 #define $ac_tr_hdr 1
6864 BUILTINS="${BUILTINS} a52"
6865 LIB_A52="${LIB_A52} -la52 -lm"
6868 echo "$ac_t""no" 1>&6
6875 # Check whether --with- or --without- was given.
6876 if test "${with_+set}" = set; then
6882 # Check whether --enable-x11 or --disable-x11 was given.
6883 if test "${enable_x11+set}" = set; then
6884 enableval="$enable_x11"
6888 if test x$enable_x11 != xno &&
6889 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6890 if test x$x_includes = xNONE; then
6891 x_includes=/usr/X11R6/include
6893 if test x$x_libraries = xNONE; then
6894 x_libraries=/usr/X11R6/lib
6896 saved_CPPFLAGS=$CPPFLAGS
6897 CPPFLAGS="$CPPFLAGS -I$x_includes"
6898 for ac_hdr in X11/Xlib.h
6900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6902 echo "configure:6903: checking for $ac_hdr" >&5
6903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6912 { (eval echo configure:6913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6914 if test -z "$ac_err"; then
6916 eval "ac_cv_header_$ac_safe=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 eval "ac_cv_header_$ac_safe=no"
6926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6929 cat >> confdefs.h <<EOF
6930 #define $ac_tr_hdr 1
6933 PLUGINS="${PLUGINS} x11"
6934 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6935 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6938 echo "$ac_t""no" 1>&6
6942 CPPFLAGS=$saved_CPPFLAGS
6945 # Check whether --enable-xvideo or --disable-xvideo was given.
6946 if test "${enable_xvideo+set}" = set; then
6947 enableval="$enable_xvideo"
6951 if test x$enable_xvideo != xno &&
6952 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6953 if test x$x_includes = xNONE; then
6954 x_includes=/usr/X11R6/include
6956 if test x$x_libraries = xNONE; then
6957 x_libraries=/usr/X11R6/lib
6959 saved_CPPFLAGS=$CPPFLAGS
6960 CPPFLAGS="$CPPFLAGS -I$x_includes"
6961 for ac_hdr in X11/extensions/Xv.h
6963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6965 echo "configure:6966: checking for $ac_hdr" >&5
6966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6975 { (eval echo configure:6976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6977 if test -z "$ac_err"; then
6979 eval "ac_cv_header_$ac_safe=yes"
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 eval "ac_cv_header_$ac_safe=no"
6989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6990 echo "$ac_t""yes" 1>&6
6991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6992 cat >> confdefs.h <<EOF
6993 #define $ac_tr_hdr 1
6996 saved_CFLAGS=$CFLAGS
6997 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6998 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6999 echo "configure:7000: checking for XvSetPortAttribute in -lXv_pic" >&5
7000 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7004 ac_save_LIBS="$LIBS"
7005 LIBS="-lXv_pic $LIBS"
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char XvSetPortAttribute();
7015 XvSetPortAttribute()
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7020 eval "ac_cv_lib_$ac_lib_var=yes"
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 eval "ac_cv_lib_$ac_lib_var=no"
7028 LIBS="$ac_save_LIBS"
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7034 PLUGINS="${PLUGINS} xvideo"
7035 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7036 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7038 echo "$ac_t""no" 1>&6
7039 # We don't have Xv_pic, let's make xvideo.a as builtin
7040 BUILTINS="${BUILTINS} xvideo"
7041 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7042 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7045 CFLAGS=$saved_CFLAGS
7047 CPPFLAGS=$saved_CPPFLAGS
7049 echo "$ac_t""no" 1>&6
7055 # Check whether --enable-sdl or --disable-sdl was given.
7056 if test "${enable_sdl+set}" = set; then
7057 enableval="$enable_sdl"
7061 if test "x$enable_sdl" != "xno"
7064 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7065 if test "${with_sdl_config_path+set}" = set; then
7066 withval="$with_sdl_config_path"
7067 if test "x$withval" != "xno"
7069 SDL_PATH=$withval:$PATH
7073 # Extract the first word of "sdl12-config", so it can be a program name with args.
7074 set dummy sdl12-config; ac_word=$2
7075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_word" >&5
7077 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 case "$SDL12_CONFIG" in
7082 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7085 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7089 ac_dummy="$SDL_PATH"
7090 for ac_dir in $ac_dummy; do
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/$ac_word; then
7093 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7098 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7102 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7103 if test -n "$SDL12_CONFIG"; then
7104 echo "$ac_t""$SDL12_CONFIG" 1>&6
7106 echo "$ac_t""no" 1>&6
7109 SDL_CONFIG=${SDL12_CONFIG}
7110 SDL_HEADER="SDL12/SDL.h"
7111 if test x${SDL_CONFIG} = xno
7113 # Extract the first word of "sdl11-config", so it can be a program name with args.
7114 set dummy sdl11-config; ac_word=$2
7115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_word" >&5
7117 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 case "$SDL11_CONFIG" in
7122 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7125 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7129 ac_dummy="$SDL_PATH"
7130 for ac_dir in $ac_dummy; do
7131 test -z "$ac_dir" && ac_dir=.
7132 if test -f $ac_dir/$ac_word; then
7133 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7138 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7142 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7143 if test -n "$SDL11_CONFIG"; then
7144 echo "$ac_t""$SDL11_CONFIG" 1>&6
7146 echo "$ac_t""no" 1>&6
7149 SDL_CONFIG=${SDL11_CONFIG}
7150 SDL_HEADER="SDL11/SDL.h"
7152 if test x${SDL_CONFIG} = xno
7154 # Extract the first word of "sdl-config", so it can be a program name with args.
7155 set dummy sdl-config; ac_word=$2
7156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_word" >&5
7158 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 case "$SDL_CONFIG" in
7163 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7166 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7170 ac_dummy="$SDL_PATH"
7171 for ac_dir in $ac_dummy; do
7172 test -z "$ac_dir" && ac_dir=.
7173 if test -f $ac_dir/$ac_word; then
7174 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7179 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7183 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7184 if test -n "$SDL_CONFIG"; then
7185 echo "$ac_t""$SDL_CONFIG" 1>&6
7187 echo "$ac_t""no" 1>&6
7190 SDL_HEADER="SDL/SDL.h"
7192 if test x${SDL_CONFIG} != xno
7194 PLUGINS="${PLUGINS} sdl"
7195 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7196 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7197 save_CPPFLAGS=$CPPFLAGS
7198 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7199 for ac_hdr in ${SDL_HEADER}
7201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7203 echo "configure:7204: checking for $ac_hdr" >&5
7204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7213 { (eval echo configure:7214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7215 if test -z "$ac_err"; then
7217 eval "ac_cv_header_$ac_safe=yes"
7220 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7223 eval "ac_cv_header_$ac_safe=no"
7227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7230 cat >> confdefs.h <<EOF
7231 #define $ac_tr_hdr 1
7233 cat >> confdefs.h <<EOF
7234 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7238 echo "$ac_t""no" 1>&6
7239 { echo "configure: error: The development package for SDL is not installed.
7240 Please install it and try again. Alternatively you can also configure with
7241 --disable-sdl." 1>&2; exit 1; }
7246 CPPFLAGS=$save_CPPFLAGS
7247 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7249 { echo "configure: error: The development package for SDL is not installed.
7250 Please install it and try again. Alternatively you can also configure with
7251 --disable-sdl." 1>&2; exit 1; }
7253 elif test "x$enable_sdl" = "xyes"
7255 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7256 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7261 # Check whether --enable-directx or --disable-directx was given.
7262 if test "${enable_directx+set}" = set; then
7263 enableval="$enable_directx"
7267 if test "x$enableval" != "xno"
7269 if test x$SYS = xmingw32
7271 # Check whether --with-directx or --without-directx was given.
7272 if test "${with_directx+set}" = set; then
7273 withval="$with_directx"
7277 if test "x$with_directx" = "x"
7279 for ac_hdr in ddraw.h
7281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_hdr" >&5
7284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7287 cat > conftest.$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7293 { (eval echo configure:7294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7295 if test -z "$ac_err"; then
7297 eval "ac_cv_header_$ac_safe=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7303 eval "ac_cv_header_$ac_safe=no"
7307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7308 echo "$ac_t""yes" 1>&6
7309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7310 cat >> confdefs.h <<EOF
7311 #define $ac_tr_hdr 1
7313 PLUGINS="${PLUGINS} directx"
7314 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7316 echo "$ac_t""no" 1>&6
7321 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7322 echo "configure:7323: checking for directX headers in ${withval}" >&5
7323 if test -f ${withval}/ddraw.h
7325 PLUGINS="${PLUGINS} directx"
7326 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7327 INCLUDE="${INCLUDE} -I${withval}"
7328 echo "$ac_t""yes" 1>&6
7330 echo "$ac_t""no" 1>&6
7331 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7337 # Check whether --enable-fb or --disable-fb was given.
7338 if test "${enable_fb+set}" = set; then
7339 enableval="$enable_fb"
7343 if test x$enable_fb != xno
7345 for ac_hdr in linux/fb.h
7347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7349 echo "configure:7350: checking for $ac_hdr" >&5
7350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7359 { (eval echo configure:7360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7361 if test -z "$ac_err"; then
7363 eval "ac_cv_header_$ac_safe=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_header_$ac_safe=no"
7373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7374 echo "$ac_t""yes" 1>&6
7375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7376 cat >> confdefs.h <<EOF
7377 #define $ac_tr_hdr 1
7380 PLUGINS="${PLUGINS} fb"
7383 echo "$ac_t""no" 1>&6
7389 # Check whether --enable-mga or --disable-mga was given.
7390 if test "${enable_mga+set}" = set; then
7391 enableval="$enable_mga"
7392 if test x$enable_mga = xyes
7394 PLUGINS="${PLUGINS} mga xmga"
7399 # Check whether --enable-ggi or --disable-ggi was given.
7400 if test "${enable_ggi+set}" = set; then
7401 enableval="$enable_ggi"
7405 if test x$enable_ggi = xyes
7407 PLUGINS="${PLUGINS} ggi"
7408 LIB_GGI="${LIB_GGI} -lggi"
7409 # Check whether --with-ggi or --without-ggi was given.
7410 if test "${with_ggi+set}" = set; then
7412 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7414 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7415 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7421 # Check whether --enable-glide or --disable-glide was given.
7422 if test "${enable_glide+set}" = set; then
7423 enableval="$enable_glide"
7427 if test x$enable_glide = xyes
7429 PLUGINS="${PLUGINS} glide"
7430 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7431 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7432 # Check whether --with-glide or --without-glide was given.
7433 if test "${with_glide+set}" = set; then
7434 withval="$with_glide"
7435 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7437 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7438 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7444 # Check whether --enable-aa or --disable-aa was given.
7445 if test "${enable_aa+set}" = set; then
7446 enableval="$enable_aa"
7450 if test x$enable_aa = xyes
7452 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7453 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7454 echo "configure:7455: checking for aalib.h" >&5
7455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7464 { (eval echo configure:7465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7466 if test -z "$ac_err"; then
7468 eval "ac_cv_header_$ac_safe=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7474 eval "ac_cv_header_$ac_safe=no"
7478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7479 echo "$ac_t""yes" 1>&6
7482 echo "$ac_t""no" 1>&6
7486 if test x$have_aa = xtrue
7488 PLUGINS="${PLUGINS} aa"
7489 LIB_AA="${LIB_AA} -laa"
7494 # Check whether --with- or --without- was given.
7495 if test "${with_+set}" = set; then
7501 # Check whether --enable-dsp or --disable-dsp was given.
7502 if test "${enable_dsp+set}" = set; then
7503 enableval="$enable_dsp"
7508 if test x$enable_dsp != xno &&
7509 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7511 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_hdr" >&5
7516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7525 { (eval echo configure:7526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7527 if test -z "$ac_err"; then
7529 eval "ac_cv_header_$ac_safe=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7535 eval "ac_cv_header_$ac_safe=no"
7539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_hdr 1
7546 PLUGINS="${PLUGINS} dsp"
7547 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7548 echo "configure:7549: checking for main in -lossaudio" >&5
7549 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 ac_save_LIBS="$LIBS"
7554 LIBS="-lossaudio $LIBS"
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7565 eval "ac_cv_lib_$ac_lib_var=yes"
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7570 eval "ac_cv_lib_$ac_lib_var=no"
7573 LIBS="$ac_save_LIBS"
7576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 LIB_DSP="${LIB_DSP} -lossaudio"
7580 echo "$ac_t""no" 1>&6
7585 echo "$ac_t""no" 1>&6
7591 # Check whether --enable-esd or --disable-esd was given.
7592 if test "${enable_esd+set}" = set; then
7593 enableval="$enable_esd"
7594 if test x$enable_esd = xyes
7596 # Extract the first word of "esd-config", so it can be a program name with args.
7597 set dummy esd-config; ac_word=$2
7598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_word" >&5
7600 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 case "$ESD_CONFIG" in
7605 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7608 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7613 for ac_dir in $ac_dummy; do
7614 test -z "$ac_dir" && ac_dir=.
7615 if test -f $ac_dir/$ac_word; then
7616 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7621 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7625 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7626 if test -n "$ESD_CONFIG"; then
7627 echo "$ac_t""$ESD_CONFIG" 1>&6
7629 echo "$ac_t""no" 1>&6
7632 if test x${ESD_CONFIG} != xno
7634 PLUGINS="${PLUGINS} esd"
7635 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7636 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7642 # Check whether --enable-arts or --disable-arts was given.
7643 if test "${enable_arts+set}" = set; then
7644 enableval="$enable_arts"
7645 if test x$enable_arts = xyes
7647 # Extract the first word of "artsc-config", so it can be a program name with args.
7648 set dummy artsc-config; ac_word=$2
7649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7650 echo "configure:7651: checking for $ac_word" >&5
7651 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7654 case "$ARTS_CONFIG" in
7656 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7659 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7664 for ac_dir in $ac_dummy; do
7665 test -z "$ac_dir" && ac_dir=.
7666 if test -f $ac_dir/$ac_word; then
7667 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7672 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7676 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7677 if test -n "$ARTS_CONFIG"; then
7678 echo "$ac_t""$ARTS_CONFIG" 1>&6
7680 echo "$ac_t""no" 1>&6
7683 if test x${ARTS_CONFIG} != xno
7685 PLUGINS="${PLUGINS} arts"
7686 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7687 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7693 # Check whether --enable-alsa or --disable-alsa was given.
7694 if test "${enable_alsa+set}" = set; then
7695 enableval="$enable_alsa"
7696 if test x$enable_alsa = xyes
7698 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7699 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7700 echo "configure:7701: checking for alsa/asoundlib.h" >&5
7701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7702 echo $ac_n "(cached) $ac_c" 1>&6
7704 cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7707 #include <alsa/asoundlib.h>
7709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7710 { (eval echo configure:7711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7712 if test -z "$ac_err"; then
7714 eval "ac_cv_header_$ac_safe=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7720 eval "ac_cv_header_$ac_safe=no"
7724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7725 echo "$ac_t""yes" 1>&6
7726 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7727 echo "configure:7728: checking for main in -lasound" >&5
7728 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7730 echo $ac_n "(cached) $ac_c" 1>&6
7732 ac_save_LIBS="$LIBS"
7733 LIBS="-lasound $LIBS"
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7742 if { (eval echo configure:7743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 eval "ac_cv_lib_$ac_lib_var=yes"
7746 echo "configure: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7749 eval "ac_cv_lib_$ac_lib_var=no"
7752 LIBS="$ac_save_LIBS"
7755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7756 echo "$ac_t""yes" 1>&6
7759 echo "$ac_t""no" 1>&6
7764 echo "$ac_t""no" 1>&6
7768 if test x$have_alsa = xtrue
7770 PLUGINS="${PLUGINS} alsa"
7771 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7777 # Check whether --enable-waveout or --disable-waveout was given.
7778 if test "${enable_waveout+set}" = set; then
7779 enableval="$enable_waveout"
7783 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7785 PLUGINS="${PLUGINS} waveout"
7786 LIB_WAVEOUT="-lwinmm"
7790 # Check whether --with- or --without- was given.
7791 if test "${with_+set}" = set; then
7797 # Check whether --enable-gtk or --disable-gtk was given.
7798 if test "${enable_gtk+set}" = set; then
7799 enableval="$enable_gtk"
7803 if test x$enable_gtk != xno
7806 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7807 if test "${with_gtk_config_path+set}" = set; then
7808 withval="$with_gtk_config_path"
7809 if test "x$withval" != "xno"
7811 GTK_PATH=$withval:$PATH
7815 # look for gtk-config
7816 # Extract the first word of "gtk12-config", so it can be a program name with args.
7817 set dummy gtk12-config; ac_word=$2
7818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_word" >&5
7820 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7823 case "$GTK12_CONFIG" in
7825 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7828 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7832 ac_dummy="$GTK_PATH"
7833 for ac_dir in $ac_dummy; do
7834 test -z "$ac_dir" && ac_dir=.
7835 if test -f $ac_dir/$ac_word; then
7836 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7841 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7845 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7846 if test -n "$GTK12_CONFIG"; then
7847 echo "$ac_t""$GTK12_CONFIG" 1>&6
7849 echo "$ac_t""no" 1>&6
7852 GTK_CONFIG=${GTK12_CONFIG}
7853 if test x${GTK_CONFIG} = xno
7855 # Extract the first word of "gtk-config", so it can be a program name with args.
7856 set dummy gtk-config; ac_word=$2
7857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_word" >&5
7859 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7862 case "$GTK_CONFIG" in
7864 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7867 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7871 ac_dummy="$GTK_PATH"
7872 for ac_dir in $ac_dummy; do
7873 test -z "$ac_dir" && ac_dir=.
7874 if test -f $ac_dir/$ac_word; then
7875 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7880 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7884 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7885 if test -n "$GTK_CONFIG"; then
7886 echo "$ac_t""$GTK_CONFIG" 1>&6
7888 echo "$ac_t""no" 1>&6
7892 if test x${GTK_CONFIG} != xno
7894 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7896 { 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; }
7898 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7899 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7900 # now look for the gtk.h header
7901 saved_CPPFLAGS=$CPPFLAGS
7902 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7903 ac_cv_gtk_headers=yes
7904 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7908 echo "configure:7909: checking for $ac_hdr" >&5
7909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7918 { (eval echo configure:7919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7920 if test -z "$ac_err"; then
7922 eval "ac_cv_header_$ac_safe=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_header_$ac_safe=no"
7932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_hdr 1
7940 echo "$ac_t""no" 1>&6
7941 ac_cv_gtk_headers=no
7942 echo "Cannot find gtk development headers."
7947 if test "x$ac_cv_gtk_headers" = xyes
7949 PLUGINS="${PLUGINS} gtk"
7950 ALIASES="${ALIASES} gvlc"
7952 CPPFLAGS=$saved_CPPFLAGS
7956 # Check whether --enable-gnome or --disable-gnome was given.
7957 if test "${enable_gnome+set}" = set; then
7958 enableval="$enable_gnome"
7959 if test x$enable_gnome = xyes; then
7960 # look for gnome-config
7961 # Extract the first word of "gnome-config", so it can be a program name with args.
7962 set dummy gnome-config; ac_word=$2
7963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7964 echo "configure:7965: checking for $ac_word" >&5
7965 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 case "$GNOME_CONFIG" in
7970 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7973 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7978 for ac_dir in $ac_dummy; do
7979 test -z "$ac_dir" && ac_dir=.
7980 if test -f $ac_dir/$ac_word; then
7981 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7986 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7990 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7991 if test -n "$GNOME_CONFIG"; then
7992 echo "$ac_t""$GNOME_CONFIG" 1>&6
7994 echo "$ac_t""no" 1>&6
7997 if test -x ${GNOME_CONFIG}
7999 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8000 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8002 # now look for the gnome.h header
8003 saved_CPPFLAGS=$CPPFLAGS
8004 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
8005 for ac_hdr in gnome.h
8007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_hdr" >&5
8010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8019 { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8021 if test -z "$ac_err"; then
8023 eval "ac_cv_header_$ac_safe=yes"
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 eval "ac_cv_header_$ac_safe=no"
8033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8034 echo "$ac_t""yes" 1>&6
8035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8036 cat >> confdefs.h <<EOF
8037 #define $ac_tr_hdr 1
8040 PLUGINS="${PLUGINS} gnome"
8041 ALIASES="${ALIASES} gnome-vlc"
8044 echo "$ac_t""no" 1>&6
8045 { echo "configure: error: Can't find gnome headers. Please install the gnome
8046 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
8052 CPPFLAGS=$saved_CPPFLAGS
8057 # Check whether --enable-qt or --disable-qt was given.
8058 if test "${enable_qt+set}" = set; then
8059 enableval="$enable_qt"
8060 if test x$enable_qt = xyes; then
8061 PLUGINS="${PLUGINS} qt"
8062 ALIASES="${ALIASES} qvlc"
8063 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
8064 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
8065 if test -x ${QTDIR}/bin/moc
8067 MOC=${QTDIR}/bin/moc
8075 # Check whether --enable-kde or --disable-kde was given.
8076 if test "${enable_kde+set}" = set; then
8077 enableval="$enable_kde"
8078 if test x$enable_kde = xyes; then
8079 PLUGINS="${PLUGINS} kde"
8080 ALIASES="${ALIASES} kvlc"
8081 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
8082 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
8083 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
8084 if test -x ${QTDIR}/bin/moc
8086 MOC=${QTDIR}/bin/moc
8094 # Check whether --enable-macosx or --disable-macosx was given.
8095 if test "${enable_macosx+set}" = set; then
8096 enableval="$enable_macosx"
8097 if test x$enable_macosx = xyes
8099 BUILTINS="${BUILTINS} macosx"
8100 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8101 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8102 LIB_COMMON="${LIB_COMMON} -ObjC"
8105 for ac_hdr in Cocoa/Cocoa.h
8107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_hdr" >&5
8110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8119 { (eval echo configure:8120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8121 if test -z "$ac_err"; then
8123 eval "ac_cv_header_$ac_safe=yes"
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8129 eval "ac_cv_header_$ac_safe=no"
8133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8134 echo "$ac_t""yes" 1>&6
8135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8136 cat >> confdefs.h <<EOF
8137 #define $ac_tr_hdr 1
8139 BUILTINS="${BUILTINS} macosx"
8140 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8141 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8142 LIB_COMMON="${LIB_COMMON} -ObjC"
8145 echo "$ac_t""no" 1>&6
8152 # Check whether --enable-qnx or --disable-qnx was given.
8153 if test "${enable_qnx+set}" = set; then
8154 enableval="$enable_qnx"
8158 if test x$enable_qnx != xno
8162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8164 echo "configure:8165: checking for $ac_hdr" >&5
8165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8174 { (eval echo configure:8175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8176 if test -z "$ac_err"; then
8178 eval "ac_cv_header_$ac_safe=yes"
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 eval "ac_cv_header_$ac_safe=no"
8188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8189 echo "$ac_t""yes" 1>&6
8190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8191 cat >> confdefs.h <<EOF
8192 #define $ac_tr_hdr 1
8195 PLUGINS="${PLUGINS} qnx"
8196 LIB_QNX="${LIB_QNX} -lasound -lph"
8199 echo "$ac_t""no" 1>&6
8205 # Check whether --enable-win32 or --disable-win32 was given.
8206 if test "${enable_win32+set}" = set; then
8207 enableval="$enable_win32"
8208 if test "x$enableval" != "xno"
8210 PLUGINS="${PLUGINS} win32"
8215 # Check whether --enable-ncurses or --disable-ncurses was given.
8216 if test "${enable_ncurses+set}" = set; then
8217 enableval="$enable_ncurses"
8218 if test x$enable_ncurses = xyes; then
8219 PLUGINS="${PLUGINS} ncurses"
8220 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8225 # Check whether --enable-lirc or --disable-lirc was given.
8226 if test "${enable_lirc+set}" = set; then
8227 enableval="$enable_lirc"
8231 if test x$enable_lirc = xyes
8233 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8234 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8235 echo "configure:8236: checking for lirc/lirc_client.h" >&5
8236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8242 #include <lirc/lirc_client.h>
8244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8245 { (eval echo configure:8246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8247 if test -z "$ac_err"; then
8249 eval "ac_cv_header_$ac_safe=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_header_$ac_safe=no"
8259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8262 echo "configure:8263: checking for lirc_init in -llirc_client" >&5
8263 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 ac_save_LIBS="$LIBS"
8268 LIBS="-llirc_client $LIBS"
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 eval "ac_cv_lib_$ac_lib_var=yes"
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_lib_$ac_lib_var=no"
8291 LIBS="$ac_save_LIBS"
8294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8298 echo "$ac_t""no" 1>&6
8303 echo "$ac_t""no" 1>&6
8307 if test x$have_lirc = xtrue
8309 PLUGINS="${PLUGINS} lirc"
8310 LIB_LIRC="${LIB_LIRC} -llirc_client"
8316 # Check whether --with- or --without- was given.
8317 if test "${with_+set}" = set; then
8323 # Check whether --with-words or --without-words was given.
8324 if test "${with_words+set}" = set; then
8325 withval="$with_words"
8331 ac_cv_c_bigendian=yes
8334 ac_cv_c_bigendian=no
8337 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8338 echo "configure:8339: checking whether the byte order is big-endian" >&5
8339 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8342 ac_cv_c_bigendian=unknown
8343 cat >conftest.c <<EOF
8344 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8345 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8346 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8347 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8348 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8349 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8350 int main(void) { _a(); _e(); return 0; }
8353 if test -f conftest.c
8355 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8356 && test -f conftest.o
8358 if test "`strings conftest.o | grep BIGenDianSyS`"
8360 ac_cv_c_bigendian=yes
8362 if test "`strings conftest.o | grep LiTTleEnDian`"
8364 ac_cv_c_bigendian=no
8371 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8372 if test x$ac_cv_c_bigendian = xunknown
8374 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8378 if test $ac_cv_c_bigendian = yes
8380 cat >> confdefs.h <<\EOF
8381 #define WORDS_BIGENDIAN 1
8387 # Check whether --with-dll-path or --without-dll-path was given.
8388 if test "${with_dll_path+set}" = set; then
8389 withval="$with_dll_path"
8390 if test "x$withval" != "xno"
8398 # Check whether --enable-gprof or --disable-gprof was given.
8399 if test "${enable_gprof+set}" = set; then
8400 enableval="$enable_gprof"
8401 if test x$enableval = xyes; then GPROF=1; fi
8406 # Check whether --enable-cprof or --disable-cprof was given.
8407 if test "${enable_cprof+set}" = set; then
8408 enableval="$enable_cprof"
8409 if test x$enableval = xyes;
8411 LIB_COMMON="${LIB_COMMON} -lcprof"
8418 # Check whether --enable-pth or --disable-pth was given.
8419 if test "${enable_pth+set}" = set; then
8420 enableval="$enable_pth"
8421 if test x$enableval = xyes; then
8422 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8423 echo "configure:8424: checking for pth_init in -lpth" >&5
8424 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8428 ac_save_LIBS="$LIBS"
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 eval "ac_cv_lib_$ac_lib_var=yes"
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8449 eval "ac_cv_lib_$ac_lib_var=no"
8452 LIBS="$ac_save_LIBS"
8455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_lib 1
8466 echo "$ac_t""no" 1>&6
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475 egrep "pth_init" >/dev/null 2>&1; then
8478 cat >> confdefs.h <<\EOF
8479 #define PTH_INIT_IN_PTH_H 1
8491 # Check whether --enable-st or --disable-st was given.
8492 if test "${enable_st+set}" = set; then
8493 enableval="$enable_st"
8494 if test x$enableval = xyes; then
8495 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8496 echo "configure:8497: checking for st_init in -lst" >&5
8497 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8501 ac_save_LIBS="$LIBS"
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 eval "ac_cv_lib_$ac_lib_var=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_lib_$ac_lib_var=no"
8525 LIBS="$ac_save_LIBS"
8528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8530 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8532 cat >> confdefs.h <<EOF
8533 #define $ac_tr_lib 1
8539 echo "$ac_t""no" 1>&6
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8548 egrep "st_init" >/dev/null 2>&1; then
8551 cat >> confdefs.h <<\EOF
8552 #define ST_INIT_IN_ST_H 1
8564 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8566 # Check whether --enable-plugins or --disable-plugins was given.
8567 if test "${enable_plugins+set}" = set; then
8568 enableval="$enable_plugins"
8569 if test x$enable_plugins = xno
8571 BUILTINS="${BUILTINS} ${PLUGINS}"
8577 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8579 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8581 BUILTINS="${BUILTINS} ${PLUGINS}"
8585 cat >> confdefs.h <<EOF
8586 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8589 cat >> confdefs.h <<EOF
8590 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8594 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8595 cat >> confdefs.h <<EOF
8596 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8599 cat >> confdefs.h <<EOF
8600 #define MODULE_SYMBOL $VLC_SYMBOL
8604 DATA_PATH="${ac_tool_prefix}/share/videolan"
8606 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8708 cat > confcache <<\EOF
8709 # This file is a shell script that caches the results of configure
8710 # tests run on this system so they can be shared between configure
8711 # scripts and configure runs. It is not useful on other systems.
8712 # If it contains results you don't want to keep, you may remove or edit it.
8714 # By default, configure uses ./config.cache as the cache file,
8715 # creating it if it does not exist already. You can give configure
8716 # the --cache-file=FILE option to use a different cache file; that is
8717 # what configure does when it calls configure scripts in
8718 # subdirectories, so they share the cache.
8719 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8720 # config.status only pays attention to the cache file if you give it the
8721 # --recheck option to rerun configure.
8724 # The following way of writing the cache mishandles newlines in values,
8725 # but we know of no workaround that is simple, portable, and efficient.
8726 # So, don't put newlines in cache variables' values.
8727 # Ultrix sh set writes to stderr and can't be redirected directly,
8728 # and sets the high bit in the cache file unless we assign to the vars.
8730 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8732 # `set' does not quote correctly, so add quotes (double-quote substitution
8733 # turns \\\\ into \\, and sed turns \\ into \).
8735 -e "s/'/'\\\\''/g" \
8736 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8739 # `set' quotes correctly as required by POSIX, so do not add quotes.
8740 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8743 if cmp -s $cache_file confcache; then
8746 if test -w $cache_file; then
8747 echo "updating cache $cache_file"
8748 cat confcache > $cache_file
8750 echo "not updating unwritable cache $cache_file"
8755 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8758 # Let make expand exec_prefix.
8759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8761 # Any assignment to VPATH causes Sun make to only execute
8762 # the first set of double-colon rules, so remove it if not needed.
8763 # If there is a colon in the path, we need to keep it.
8764 if test "x$srcdir" = x.; then
8765 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8768 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8770 DEFS=-DHAVE_CONFIG_H
8772 # Without the "./", some shells look in PATH for config.status.
8773 : ${CONFIG_STATUS=./config.status}
8775 echo creating $CONFIG_STATUS
8776 rm -f $CONFIG_STATUS
8777 cat > $CONFIG_STATUS <<EOF
8779 # Generated automatically by configure.
8780 # Run this file to recreate the current configuration.
8781 # This directory was configured as follows,
8782 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8784 # $0 $ac_configure_args
8786 # Compiler output produced by configure, useful for debugging
8787 # configure, is in ./config.log if it exists.
8789 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8792 case "\$ac_option" in
8793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8797 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8799 -help | --help | --hel | --he | --h)
8800 echo "\$ac_cs_usage"; exit 0 ;;
8801 *) echo "\$ac_cs_usage"; exit 1 ;;
8805 ac_given_srcdir=$srcdir
8806 ac_given_INSTALL="$INSTALL"
8808 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8810 cat >> $CONFIG_STATUS <<EOF
8812 # Protect against being on the right side of a sed subst in config.status.
8813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8818 s%@CFLAGS@%$CFLAGS%g
8819 s%@CPPFLAGS@%$CPPFLAGS%g
8820 s%@CXXFLAGS@%$CXXFLAGS%g
8821 s%@FFLAGS@%$FFLAGS%g
8823 s%@LDFLAGS@%$LDFLAGS%g
8825 s%@exec_prefix@%$exec_prefix%g
8826 s%@prefix@%$prefix%g
8827 s%@program_transform_name@%$program_transform_name%g
8828 s%@bindir@%$bindir%g
8829 s%@sbindir@%$sbindir%g
8830 s%@libexecdir@%$libexecdir%g
8831 s%@datadir@%$datadir%g
8832 s%@sysconfdir@%$sysconfdir%g
8833 s%@sharedstatedir@%$sharedstatedir%g
8834 s%@localstatedir@%$localstatedir%g
8835 s%@libdir@%$libdir%g
8836 s%@includedir@%$includedir%g
8837 s%@oldincludedir@%$oldincludedir%g
8838 s%@infodir@%$infodir%g
8839 s%@mandir@%$mandir%g
8841 s%@host_alias@%$host_alias%g
8842 s%@host_cpu@%$host_cpu%g
8843 s%@host_vendor@%$host_vendor%g
8844 s%@host_os@%$host_os%g
8845 s%@target@%$target%g
8846 s%@target_alias@%$target_alias%g
8847 s%@target_cpu@%$target_cpu%g
8848 s%@target_vendor@%$target_vendor%g
8849 s%@target_os@%$target_os%g
8851 s%@build_alias@%$build_alias%g
8852 s%@build_cpu@%$build_cpu%g
8853 s%@build_vendor@%$build_vendor%g
8854 s%@build_os@%$build_os%g
8855 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8856 s%@SET_MAKE@%$SET_MAKE%g
8859 s%@RANLIB@%$RANLIB%g
8861 s%@ALLOCA@%$ALLOCA%g
8862 s%@GLIBC21@%$GLIBC21%g
8863 s%@LIBICONV@%$LIBICONV%g
8864 s%@USE_NLS@%$USE_NLS%g
8865 s%@MSGFMT@%$MSGFMT%g
8866 s%@GMSGFMT@%$GMSGFMT%g
8867 s%@XGETTEXT@%$XGETTEXT%g
8868 s%@INTLBISON@%$INTLBISON%g
8869 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8870 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8871 s%@CATALOGS@%$CATALOGS%g
8872 s%@CATOBJEXT@%$CATOBJEXT%g
8873 s%@GMOFILES@%$GMOFILES%g
8874 s%@INTLLIBS@%$INTLLIBS%g
8875 s%@INTLOBJS@%$INTLOBJS%g
8876 s%@POFILES@%$POFILES%g
8878 s%@DATADIRNAME@%$DATADIRNAME%g
8879 s%@INSTOBJEXT@%$INSTOBJEXT%g
8880 s%@GENCAT@%$GENCAT%g
8881 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8882 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8883 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8884 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8885 s%@INSTALL_DATA@%$INSTALL_DATA%g
8886 s%@WINDRES@%$WINDRES%g
8887 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8888 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8889 s%@SDL_CONFIG@%$SDL_CONFIG%g
8890 s%@ESD_CONFIG@%$ESD_CONFIG%g
8891 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8892 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8893 s%@GTK_CONFIG@%$GTK_CONFIG%g
8894 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8895 s%@DATA_PATH@%$DATA_PATH%g
8896 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8899 s%@PLUGINS@%$PLUGINS%g
8900 s%@BUILTINS@%$BUILTINS%g
8901 s%@ALIASES@%$ALIASES%g
8902 s%@INCLUDE@%$INCLUDE%g
8907 s%@OPTIMS@%$OPTIMS%g
8908 s%@TUNING@%$TUNING%g
8909 s%@RELEASE@%$RELEASE%g
8911 s%@DLL_PATH@%$DLL_PATH%g
8912 s%@PACKAGE@%$PACKAGE%g
8913 s%@VERSION@%$VERSION%g
8914 s%@PLDFLAGS@%$PLDFLAGS%g
8915 s%@SOFLAGS@%$SOFLAGS%g
8916 s%@LIB_COMMON@%$LIB_COMMON%g
8917 s%@LIB_VLC@%$LIB_VLC%g
8918 s%@LIB_A52@%$LIB_A52%g
8919 s%@LIB_AA@%$LIB_AA%g
8920 s%@LIB_ALSA@%$LIB_ALSA%g
8921 s%@LIB_ARTS@%$LIB_ARTS%g
8922 s%@LIB_BEOS@%$LIB_BEOS%g
8923 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8924 s%@LIB_DARWIN@%$LIB_DARWIN%g
8925 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8926 s%@LIB_DSP@%$LIB_DSP%g
8927 s%@LIB_DVD@%$LIB_DVD%g
8928 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8929 s%@LIB_ESD@%$LIB_ESD%g
8930 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8931 s%@LIB_GGI@%$LIB_GGI%g
8932 s%@LIB_GLIDE@%$LIB_GLIDE%g
8933 s%@LIB_GNOME@%$LIB_GNOME%g
8934 s%@LIB_GTK@%$LIB_GTK%g
8935 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8936 s%@LIB_IMDCT@%$LIB_IMDCT%g
8937 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8938 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8939 s%@LIB_IPV4@%$LIB_IPV4%g
8940 s%@LIB_IPV6@%$LIB_IPV6%g
8941 s%@LIB_KDE@%$LIB_KDE%g
8942 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8943 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8944 s%@LIB_LIRC@%$LIB_LIRC%g
8945 s%@LIB_MACOSX@%$LIB_MACOSX%g
8946 s%@LIB_MAD@%$LIB_MAD%g
8947 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8948 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8949 s%@LIB_NCURSES@%$LIB_NCURSES%g
8950 s%@LIB_QNX@%$LIB_QNX%g
8951 s%@LIB_QT@%$LIB_QT%g
8952 s%@LIB_RC@%$LIB_RC%g
8953 s%@LIB_SDL@%$LIB_SDL%g
8954 s%@LIB_VCD@%$LIB_VCD%g
8955 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8956 s%@LIB_WIN32@%$LIB_WIN32%g
8957 s%@LIB_X11@%$LIB_X11%g
8958 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8959 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8960 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8961 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8962 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8963 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8964 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8965 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8966 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8967 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8968 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8969 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8970 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8971 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8972 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8973 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8974 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8975 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8976 s%@CFLAGS_QT@%$CFLAGS_QT%g
8977 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8978 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8979 s%@CFLAGS_X11@%$CFLAGS_X11%g
8980 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8981 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8982 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8983 s%@NEED_GETOPT@%$NEED_GETOPT%g
8984 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8989 cat >> $CONFIG_STATUS <<\EOF
8991 # Split the substitutions into bite-sized pieces for seds with
8992 # small command number limits, like on Digital OSF/1 and HP-UX.
8993 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8994 ac_file=1 # Number of current file.
8995 ac_beg=1 # First line for current file.
8996 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8999 while $ac_more_lines; do
9000 if test $ac_beg -gt 1; then
9001 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9003 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9005 if test ! -s conftest.s$ac_file; then
9007 rm -f conftest.s$ac_file
9009 if test -z "$ac_sed_cmds"; then
9010 ac_sed_cmds="sed -f conftest.s$ac_file"
9012 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9014 ac_file=`expr $ac_file + 1`
9016 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9019 if test -z "$ac_sed_cmds"; then
9024 cat >> $CONFIG_STATUS <<EOF
9026 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
9028 cat >> $CONFIG_STATUS <<\EOF
9029 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9032 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9033 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9034 *) ac_file_in="${ac_file}.in" ;;
9037 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9039 # Remove last slash and all that follows it. Not all systems have dirname.
9040 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9041 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9042 # The file is in a subdirectory.
9043 test ! -d "$ac_dir" && mkdir "$ac_dir"
9044 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9045 # A "../" for each directory in $ac_dir_suffix.
9046 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9048 ac_dir_suffix= ac_dots=
9051 case "$ac_given_srcdir" in
9053 if test -z "$ac_dots"; then top_srcdir=.
9054 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9055 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9057 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9058 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9061 case "$ac_given_INSTALL" in
9062 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9063 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9066 echo creating "$ac_file"
9068 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9070 *Makefile*) ac_comsub="1i\\
9071 # $configure_input" ;;
9075 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9077 s%@configure_input@%$configure_input%g
9078 s%@srcdir@%$srcdir%g
9079 s%@top_srcdir@%$top_srcdir%g
9080 s%@INSTALL@%$INSTALL%g
9081 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9085 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9086 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9088 # ac_d sets the value in "#define NAME VALUE" lines.
9089 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9090 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9093 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9094 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9095 ac_uB='\([ ]\)%\1#\2define\3'
9098 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9099 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9100 ac_eB='$%\1#\2define\3'
9104 if test "${CONFIG_HEADERS+set}" != set; then
9106 cat >> $CONFIG_STATUS <<EOF
9107 CONFIG_HEADERS="include/defs.h"
9109 cat >> $CONFIG_STATUS <<\EOF
9111 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9114 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9115 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9116 *) ac_file_in="${ac_file}.in" ;;
9119 echo creating $ac_file
9121 rm -f conftest.frag conftest.in conftest.out
9122 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9123 cat $ac_file_inputs > conftest.in
9127 # Transform confdefs.h into a sed script conftest.vals that substitutes
9128 # the proper values into config.h.in to produce config.h. And first:
9129 # Protect against being on the right side of a sed subst in config.status.
9130 # Protect against being in an unquoted here document in config.status.
9132 cat > conftest.hdr <<\EOF
9135 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9139 sed -n -f conftest.hdr confdefs.h > conftest.vals
9142 # This sed command replaces #undef with comments. This is necessary, for
9143 # example, in the case of _POSIX_SOURCE, which is predefined and required
9144 # on some systems where configure will not decide to define it.
9145 cat >> conftest.vals <<\EOF
9146 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9149 # Break up conftest.vals because some shells have a limit on
9150 # the size of here documents, and old seds have small limits too.
9155 ac_lines=`grep -c . conftest.vals`
9156 # grep -c gives empty output for an empty file on some AIX systems.
9157 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9158 # Write a limited-size here document to conftest.frag.
9159 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9160 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9162 sed -f conftest.frag conftest.in > conftest.out
9164 mv conftest.out conftest.in
9166 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9168 mv conftest.tail conftest.vals
9172 cat >> $CONFIG_STATUS <<\EOF
9173 rm -f conftest.frag conftest.h
9174 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9175 cat conftest.in >> conftest.h
9177 if cmp -s $ac_file conftest.h 2>/dev/null; then
9178 echo "$ac_file is unchanged"
9181 # Remove last slash and all that follows it. Not all systems have dirname.
9182 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9183 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9184 # The file is in a subdirectory.
9185 test ! -d "$ac_dir" && mkdir "$ac_dir"
9188 mv conftest.h $ac_file
9193 cat >> $CONFIG_STATUS <<EOF
9197 cat >> $CONFIG_STATUS <<\EOF
9198 for ac_file in $CONFIG_FILES; do
9199 # Support "outfile[:infile[:infile...]]"
9201 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9203 # PO directories have a Makefile.in generated from Makefile.in.in.
9204 case "$ac_file" in */Makefile.in)
9205 # Adjust a relative srcdir.
9206 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9207 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9208 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9209 # In autoconf-2.13 it is called $ac_given_srcdir.
9210 # In autoconf-2.50 it is called $srcdir.
9211 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9212 case "$ac_given_srcdir" in
9213 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9214 /*) top_srcdir="$ac_given_srcdir" ;;
9215 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9217 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9218 rm -f "$ac_dir/POTFILES"
9219 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9220 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9221 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9222 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9230 chmod +x $CONFIG_STATUS
9231 rm -fr confdefs* $ac_clean_files
9232 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9236 global configuration
9237 --------------------
9239 architecture : ${ARCH}
9240 optimizations : ${OPTIMS}
9242 release: : ${RELEASE}"
9244 if test x${HAVE_VLC} = x1
9249 vlc version : ${VLC_VERSION}
9250 debug mode : ${DEBUG}
9251 cprof/gprof support : ${CPROF}/${GPROF}
9252 need builtin getopt : ${NEED_GETOPT}
9253 built-in modules :${BUILTINS}
9254 plug-in modules :${PLUGINS}
9255 vlc aliases :${ALIASES}"
9259 libdvdcss configuration
9260 -----------------------
9261 can be built : ${CAN_BUILD_LIBDVDCSS}
9262 will be built : ${NEED_LIBDVDCSS}"
9263 if test x${NEED_LIBDVDCSS} = x1
9265 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9266 echo "link statically : ${STATIC_LIBDVDCSS}"
9268 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9272 You may now tune Makefile.opts at your convenience, for instance to choose
9273 which modules get compiled as plugins.
9275 if test x${HAVE_VLC} = x1
9277 echo "To build vlc and its plugins, type \`$VLC_MAKE'."
9279 if test x${NEED_LIBDVDCSS} = x1
9281 echo "To build libdvdcss only, type \`$VLC_MAKE libdvdcss'."