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 ALL_LINGUAS="de fr no ru"
1183 cat >> confdefs.h <<EOF
1184 #define PACKAGE "vlc"
1187 cat >> confdefs.h <<EOF
1188 #define VERSION "$VLC_VERSION"
1191 # Extract the first word of "ranlib", so it can be a program name with args.
1192 set dummy ranlib; ac_word=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$RANLIB"; then
1199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_prog_RANLIB="ranlib"
1211 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1214 RANLIB="$ac_cv_prog_RANLIB"
1215 if test -n "$RANLIB"; then
1216 echo "$ac_t""$RANLIB" 1>&6
1218 echo "$ac_t""no" 1>&6
1222 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1223 echo "configure:1224: checking for strerror in -lcposix" >&5
1224 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 ac_save_LIBS="$LIBS"
1229 LIBS="-lcposix $LIBS"
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233 /* Override any gcc2 internal prototype to avoid an error. */
1234 /* We use char because int might match the return type of a gcc2
1235 builtin and then its argument prototype would still apply. */
1242 if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1244 eval "ac_cv_lib_$ac_lib_var=yes"
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1249 eval "ac_cv_lib_$ac_lib_var=no"
1252 LIBS="$ac_save_LIBS"
1255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1256 echo "$ac_t""yes" 1>&6
1257 LIBS="$LIBS -lcposix"
1259 echo "$ac_t""no" 1>&6
1264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1265 echo "configure:1266: checking for ANSI C header files" >&5
1266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1282 ac_cv_header_stdc=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 ac_cv_header_stdc=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "memchr" >/dev/null 2>&1; then
1304 ac_cv_header_stdc=no
1310 if test $ac_cv_header_stdc = yes; then
1311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "free" >/dev/null 2>&1; then
1322 ac_cv_header_stdc=no
1328 if test $ac_cv_header_stdc = yes; then
1329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1330 if test "$cross_compiling" = yes; then
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1340 int main () { int i; for (i = 0; i < 256; i++)
1341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 ac_cv_header_stdc=no
1360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1361 if test $ac_cv_header_stdc = yes; then
1362 cat >> confdefs.h <<\EOF
1363 #define STDC_HEADERS 1
1368 echo $ac_n "checking for working const""... $ac_c" 1>&6
1369 echo "configure:1370: checking for working const" >&5
1370 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1379 /* Ultrix mips cc rejects this. */
1380 typedef int charset[2]; const charset x;
1381 /* SunOS 4.1.1 cc rejects this. */
1382 char const *const *ccp;
1384 /* NEC SVR4.0.2 mips cc rejects this. */
1385 struct point {int x, y;};
1386 static struct point const zero = {0,0};
1387 /* AIX XL C 1.02.0.0 rejects this.
1388 It does not let you subtract one const X* pointer from another in an arm
1389 of an if-expression whose if-part is not a constant expression */
1390 const char *g = "string";
1391 ccp = &g + (g ? g-g : 0);
1392 /* HPUX 7.0 cc rejects these. */
1395 ccp = (char const *const *) p;
1396 { /* SCO 3.2v4 cc rejects this. */
1398 char const *s = 0 ? (char *) 0 : (char const *) 0;
1402 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1404 const int *foo = &x[0];
1407 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1408 typedef const int *iptr;
1412 { /* AIX XL C 1.02.0.0 rejects this saying
1413 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1414 struct s { int j; const int *ap[3]; };
1415 struct s *b; b->j = 5;
1417 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1423 if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1435 echo "$ac_t""$ac_cv_c_const" 1>&6
1436 if test $ac_cv_c_const = no; then
1437 cat >> confdefs.h <<\EOF
1443 echo $ac_n "checking for inline""... $ac_c" 1>&6
1444 echo "configure:1445: checking for inline" >&5
1445 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1449 for ac_kw in inline __inline__ __inline; do
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1458 if { (eval echo configure:1459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 ac_cv_c_inline=$ac_kw; break
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1470 echo "$ac_t""$ac_cv_c_inline" 1>&6
1471 case "$ac_cv_c_inline" in
1473 no) cat >> confdefs.h <<\EOF
1477 *) cat >> confdefs.h <<EOF
1478 #define inline $ac_cv_c_inline
1483 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1484 echo "configure:1485: checking for off_t" >&5
1485 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1491 #include <sys/types.h>
1497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1498 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1500 ac_cv_type_off_t=yes
1508 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1509 if test $ac_cv_type_off_t = no; then
1510 cat >> confdefs.h <<\EOF
1516 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1517 echo "configure:1518: checking for size_t" >&5
1518 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 #include <sys/types.h>
1530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1531 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1533 ac_cv_type_size_t=yes
1536 ac_cv_type_size_t=no
1541 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1542 if test $ac_cv_type_size_t = no; then
1543 cat >> confdefs.h <<\EOF
1544 #define size_t unsigned
1549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1550 # for constant arguments. Useless!
1551 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1552 echo "configure:1553: checking for working alloca.h" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1561 char *p = alloca(2 * sizeof(int));
1564 if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1566 ac_cv_header_alloca_h=yes
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1571 ac_cv_header_alloca_h=no
1576 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1577 if test $ac_cv_header_alloca_h = yes; then
1578 cat >> confdefs.h <<\EOF
1579 #define HAVE_ALLOCA_H 1
1584 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1585 echo "configure:1586: checking for alloca" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1594 # define alloca __builtin_alloca
1597 # include <malloc.h>
1598 # define alloca _alloca
1601 # include <alloca.h>
1606 # ifndef alloca /* predefined by HP cc +Olibcalls */
1615 char *p = (char *) alloca(1);
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620 ac_cv_func_alloca_works=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 ac_cv_func_alloca_works=no
1630 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1631 if test $ac_cv_func_alloca_works = yes; then
1632 cat >> confdefs.h <<\EOF
1633 #define HAVE_ALLOCA 1
1638 if test $ac_cv_func_alloca_works = no; then
1639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1640 # that cause trouble. Some versions do not even contain alloca or
1641 # contain a buggy version. If you still want to use their alloca,
1642 # use ar to extract alloca.o from them instead of compiling alloca.c.
1643 ALLOCA=alloca.${ac_objext}
1644 cat >> confdefs.h <<\EOF
1649 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether alloca needs Cray hooks" >&5
1651 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #if defined(CRAY) && ! defined(CRAY2)
1664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1665 egrep "webecray" >/dev/null 2>&1; then
1676 echo "$ac_t""$ac_cv_os_cray" 1>&6
1677 if test $ac_cv_os_cray = yes; then
1678 for ac_func in _getb67 GETB67 getb67; do
1679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_func" >&5
1681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $ac_func(); below. */
1690 /* Override any gcc2 internal prototype to avoid an error. */
1691 /* We use char because int might match the return type of a gcc2
1692 builtin and then its argument prototype would still apply. */
1697 /* The GNU C library defines this for functions which it implements
1698 to always fail with ENOSYS. Some functions are actually named
1699 something starting with __ and the normal name is an alias. */
1700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 eval "ac_cv_func_$ac_func=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_func_$ac_func=no"
1720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 cat >> confdefs.h <<EOF
1723 #define CRAY_STACKSEG_END $ac_func
1728 echo "$ac_t""no" 1>&6
1734 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1735 echo "configure:1736: checking stack direction for C alloca" >&5
1736 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 if test "$cross_compiling" = yes; then
1740 ac_cv_c_stack_direction=0
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 find_stack_direction ()
1747 static char *addr = 0;
1752 return find_stack_direction ();
1755 return (&dummy > addr) ? 1 : -1;
1759 exit (find_stack_direction() < 0);
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1764 ac_cv_c_stack_direction=1
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 ac_cv_c_stack_direction=-1
1776 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1777 cat >> confdefs.h <<EOF
1778 #define STACK_DIRECTION $ac_cv_c_stack_direction
1783 for ac_hdr in unistd.h
1785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_hdr" >&5
1788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1799 if test -z "$ac_err"; then
1801 eval "ac_cv_header_$ac_safe=yes"
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 eval "ac_cv_header_$ac_safe=no"
1811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_hdr 1
1819 echo "$ac_t""no" 1>&6
1823 for ac_func in getpagesize
1825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_func" >&5
1827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $ac_func(); below. */
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1843 /* The GNU C library defines this for functions which it implements
1844 to always fail with ENOSYS. Some functions are actually named
1845 something starting with __ and the normal name is an alias. */
1846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856 eval "ac_cv_func_$ac_func=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_func_$ac_func=no"
1866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1869 cat >> confdefs.h <<EOF
1870 #define $ac_tr_func 1
1874 echo "$ac_t""no" 1>&6
1878 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1879 echo "configure:1880: checking for working mmap" >&5
1880 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test "$cross_compiling" = yes; then
1884 ac_cv_func_mmap_fixed_mapped=no
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1890 /* Thanks to Mike Haertel and Jim Avera for this test.
1891 Here is a matrix of mmap possibilities:
1892 mmap private not fixed
1893 mmap private fixed at somewhere currently unmapped
1894 mmap private fixed at somewhere already mapped
1895 mmap shared not fixed
1896 mmap shared fixed at somewhere currently unmapped
1897 mmap shared fixed at somewhere already mapped
1898 For private mappings, we should verify that changes cannot be read()
1899 back from the file, nor mmap's back from the file at a different
1900 address. (There have been systems where private was not correctly
1901 implemented like the infamous i386 svr4.0, and systems where the
1902 VM page cache was not coherent with the filesystem buffer cache
1903 like early versions of FreeBSD and possibly contemporary NetBSD.)
1904 For shared mappings, we should conversely verify that changes get
1905 propogated back to all the places they're supposed to be.
1907 Grep wants private fixed already mapped.
1908 The main things grep needs to know about mmap are:
1909 * does it exist and is it safe to write into the mmap'd area
1910 * how to use it (BSD variants) */
1911 #include <sys/types.h>
1913 #include <sys/mman.h>
1915 /* This mess was copied from the GNU getpagesize.h. */
1916 #ifndef HAVE_GETPAGESIZE
1917 # ifdef HAVE_UNISTD_H
1918 # include <unistd.h>
1921 /* Assume that all systems that can run configure have sys/param.h. */
1922 # ifndef HAVE_SYS_PARAM_H
1923 # define HAVE_SYS_PARAM_H 1
1926 # ifdef _SC_PAGESIZE
1927 # define getpagesize() sysconf(_SC_PAGESIZE)
1928 # else /* no _SC_PAGESIZE */
1929 # ifdef HAVE_SYS_PARAM_H
1930 # include <sys/param.h>
1931 # ifdef EXEC_PAGESIZE
1932 # define getpagesize() EXEC_PAGESIZE
1933 # else /* no EXEC_PAGESIZE */
1935 # define getpagesize() NBPG * CLSIZE
1938 # endif /* no CLSIZE */
1939 # else /* no NBPG */
1941 # define getpagesize() NBPC
1942 # else /* no NBPC */
1944 # define getpagesize() PAGESIZE
1945 # endif /* PAGESIZE */
1946 # endif /* no NBPC */
1947 # endif /* no NBPG */
1948 # endif /* no EXEC_PAGESIZE */
1949 # else /* no HAVE_SYS_PARAM_H */
1950 # define getpagesize() 8192 /* punt totally */
1951 # endif /* no HAVE_SYS_PARAM_H */
1952 # endif /* no _SC_PAGESIZE */
1954 #endif /* no HAVE_GETPAGESIZE */
1957 extern "C" { void *malloc(unsigned); }
1965 char *data, *data2, *data3;
1969 pagesize = getpagesize();
1972 * First, make a file with some known garbage in it.
1974 data = malloc(pagesize);
1977 for (i = 0; i < pagesize; ++i)
1978 *(data + i) = rand();
1980 fd = creat("conftestmmap", 0600);
1983 if (write(fd, data, pagesize) != pagesize)
1988 * Next, try to mmap the file at a fixed address which
1989 * already has something else allocated at it. If we can,
1990 * also make sure that we see the same garbage.
1992 fd = open("conftestmmap", O_RDWR);
1995 data2 = malloc(2 * pagesize);
1998 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1999 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2000 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2002 for (i = 0; i < pagesize; ++i)
2003 if (*(data + i) != *(data2 + i))
2007 * Finally, make sure that changes to the mapped area
2008 * do not percolate back to the file as seen by read().
2009 * (This is a bug on some variants of i386 svr4.0.)
2011 for (i = 0; i < pagesize; ++i)
2012 *(data2 + i) = *(data2 + i) + 1;
2013 data3 = malloc(pagesize);
2016 if (read(fd, data3, pagesize) != pagesize)
2018 for (i = 0; i < pagesize; ++i)
2019 if (*(data + i) != *(data3 + i))
2022 unlink("conftestmmap");
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2029 ac_cv_func_mmap_fixed_mapped=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 ac_cv_func_mmap_fixed_mapped=no
2041 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2043 cat >> confdefs.h <<\EOF
2050 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether we are using the GNU C Library 2.1 or newer" >&5
2052 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2059 #include <features.h>
2060 #ifdef __GNU_LIBRARY__
2061 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2068 egrep "Lucky GNU user" >/dev/null 2>&1; then
2070 ac_cv_gnu_library_2_1=yes
2073 ac_cv_gnu_library_2_1=no
2081 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2083 GLIBC21="$ac_cv_gnu_library_2_1"
2087 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2088 stdlib.h string.h unistd.h sys/param.h
2090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_hdr" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_hdr 1
2124 echo "$ac_t""no" 1>&6
2128 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2129 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2130 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_func" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $ac_func(); below. */
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2150 /* The GNU C library defines this for functions which it implements
2151 to always fail with ENOSYS. Some functions are actually named
2152 something starting with __ and the normal name is an alias. */
2153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2163 eval "ac_cv_func_$ac_func=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_func_$ac_func=no"
2173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_func 1
2181 echo "$ac_t""no" 1>&6
2188 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2189 if test "${with_libiconv_prefix+set}" = set; then
2190 withval="$with_libiconv_prefix"
2192 for dir in `echo "$withval" | tr : ' '`; do
2193 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2194 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2200 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2201 echo "configure:2202: checking for iconv" >&5
2202 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2206 am_cv_func_iconv="no, consider installing GNU libiconv"
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2214 iconv_t cd = iconv_open("","");
2215 iconv(cd,NULL,NULL,NULL,NULL);
2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2221 am_cv_func_iconv=yes
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2227 if test "$am_cv_func_iconv" != yes; then
2228 am_save_LIBS="$LIBS"
2229 LIBS="$LIBS -liconv"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2236 iconv_t cd = iconv_open("","");
2237 iconv(cd,NULL,NULL,NULL,NULL);
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 am_cv_func_iconv=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2250 LIBS="$am_save_LIBS"
2255 echo "$ac_t""$am_cv_func_iconv" 1>&6
2256 if test "$am_cv_func_iconv" = yes; then
2257 cat >> confdefs.h <<\EOF
2258 #define HAVE_ICONV 1
2261 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2262 echo "configure:2263: checking for iconv declaration" >&5
2263 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2277 #if defined(__STDC__) || defined(__cplusplus)
2278 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2287 if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2289 am_cv_proto_iconv_arg1=""
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 am_cv_proto_iconv_arg1="const"
2297 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);"
2300 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2301 echo "$ac_t""${ac_t:-
2302 }$am_cv_proto_iconv" 1>&6
2303 cat >> confdefs.h <<EOF
2304 #define ICONV_CONST $am_cv_proto_iconv_arg1
2309 if test "$am_cv_lib_iconv" = yes; then
2315 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2316 echo "configure:2317: checking for nl_langinfo and CODESET" >&5
2317 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <langinfo.h>
2325 char* cs = nl_langinfo(CODESET);
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2330 am_cv_langinfo_codeset=yes
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 am_cv_langinfo_codeset=no
2341 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2342 if test $am_cv_langinfo_codeset = yes; then
2343 cat >> confdefs.h <<\EOF
2344 #define HAVE_LANGINFO_CODESET 1
2349 if test $ac_cv_header_locale_h = yes; then
2350 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2351 echo "configure:2352: checking for LC_MESSAGES" >&5
2352 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 am_cv_val_LC_MESSAGES=yes
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 am_cv_val_LC_MESSAGES=no
2375 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2376 if test $am_cv_val_LC_MESSAGES = yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define HAVE_LC_MESSAGES 1
2383 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2384 echo "configure:2385: checking whether NLS is requested" >&5
2385 # Check whether --enable-nls or --disable-nls was given.
2386 if test "${enable_nls+set}" = set; then
2387 enableval="$enable_nls"
2393 echo "$ac_t""$USE_NLS" 1>&6
2396 BUILD_INCLUDED_LIBINTL=no
2397 USE_INCLUDED_LIBINTL=no
2400 if test "$USE_NLS" = "yes"; then
2401 cat >> confdefs.h <<\EOF
2402 #define ENABLE_NLS 1
2405 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2406 echo "configure:2407: checking whether included gettext is requested" >&5
2407 # Check whether --with-included-gettext or --without-included-gettext was given.
2408 if test "${with_included_gettext+set}" = set; then
2409 withval="$with_included_gettext"
2410 nls_cv_force_use_gnu_gettext=$withval
2412 nls_cv_force_use_gnu_gettext=no
2415 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2417 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2418 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2424 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2426 echo "configure:2427: checking for libintl.h" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <libintl.h>
2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2453 echo "configure:2454: checking for GNU gettext in libc" >&5
2454 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 #include <libintl.h>
2461 extern int _nl_msg_cat_cntr;
2463 bindtextdomain ("", "");
2464 return (int) gettext ("") + _nl_msg_cat_cntr
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2469 gt_cv_func_gnugettext1_libc=yes
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 gt_cv_func_gnugettext1_libc=no
2479 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2481 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2482 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2483 echo "configure:2484: checking for GNU gettext in libintl" >&5
2484 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 gt_save_LIBS="$LIBS"
2488 LIBS="$LIBS -lintl $LIBICONV"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <libintl.h>
2493 extern int _nl_msg_cat_cntr;
2495 bindtextdomain ("", "");
2496 return (int) gettext ("") + _nl_msg_cat_cntr
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 gt_cv_func_gnugettext1_libintl=yes
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 gt_cv_func_gnugettext1_libintl=no
2509 LIBS="$gt_save_LIBS"
2512 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2515 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2516 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2517 && test "$PACKAGE" != gettext; }; then
2518 cat >> confdefs.h <<\EOF
2519 #define HAVE_GETTEXT 1
2523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2524 INTLLIBS="-lintl $LIBICONV"
2527 gt_save_LIBS="$LIBS"
2528 LIBS="$LIBS $INTLLIBS"
2529 for ac_func in dcgettext
2531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_func" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char $ac_func(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2562 eval "ac_cv_func_$ac_func=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_func_$ac_func=no"
2572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2575 cat >> confdefs.h <<EOF
2576 #define $ac_tr_func 1
2580 echo "$ac_t""no" 1>&6
2584 LIBS="$gt_save_LIBS"
2586 # Extract the first word of "msgfmt", so it can be a program name with args.
2587 set dummy msgfmt; ac_word=$2
2588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_word" >&5
2590 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2599 for ac_dir in $PATH; do
2600 test -z "$ac_dir" && ac_dir=.
2601 if test -f $ac_dir/$ac_word; then
2602 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2603 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2609 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2613 MSGFMT="$ac_cv_path_MSGFMT"
2614 if test "$MSGFMT" != ":"; then
2615 echo "$ac_t""$MSGFMT" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2621 set dummy gmsgfmt; ac_word=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2632 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2637 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if test -f $ac_dir/$ac_word; then
2640 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2645 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2649 GMSGFMT="$ac_cv_path_GMSGFMT"
2650 if test -n "$GMSGFMT"; then
2651 echo "$ac_t""$GMSGFMT" 1>&6
2653 echo "$ac_t""no" 1>&6
2657 # Extract the first word of "xgettext", so it can be a program name with args.
2658 set dummy xgettext; ac_word=$2
2659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_word" >&5
2661 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2670 for ac_dir in $PATH; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2673 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2674 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2680 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2684 XGETTEXT="$ac_cv_path_XGETTEXT"
2685 if test "$XGETTEXT" != ":"; then
2686 echo "$ac_t""$XGETTEXT" 1>&6
2688 echo "$ac_t""no" 1>&6
2696 echo "$ac_t""no" 1>&6
2700 if test "$CATOBJEXT" = "NONE"; then
2701 nls_cv_use_gnu_gettext=yes
2705 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2706 INTLOBJS="\$(GETTOBJS)"
2707 # Extract the first word of "msgfmt", so it can be a program name with args.
2708 set dummy msgfmt; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2720 for ac_dir in $PATH; do
2721 test -z "$ac_dir" && ac_dir=.
2722 if test -f $ac_dir/$ac_word; then
2723 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2724 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2730 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2734 MSGFMT="$ac_cv_path_MSGFMT"
2735 if test "$MSGFMT" != ":"; then
2736 echo "$ac_t""$MSGFMT" 1>&6
2738 echo "$ac_t""no" 1>&6
2741 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2742 set dummy gmsgfmt; ac_word=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2758 for ac_dir in $ac_dummy; do
2759 test -z "$ac_dir" && ac_dir=.
2760 if test -f $ac_dir/$ac_word; then
2761 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2766 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2770 GMSGFMT="$ac_cv_path_GMSGFMT"
2771 if test -n "$GMSGFMT"; then
2772 echo "$ac_t""$GMSGFMT" 1>&6
2774 echo "$ac_t""no" 1>&6
2777 # Extract the first word of "xgettext", so it can be a program name with args.
2778 set dummy xgettext; ac_word=$2
2779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_word" >&5
2781 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2786 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2790 for ac_dir in $PATH; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f $ac_dir/$ac_word; then
2793 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2794 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2804 XGETTEXT="$ac_cv_path_XGETTEXT"
2805 if test "$XGETTEXT" != ":"; then
2806 echo "$ac_t""$XGETTEXT" 1>&6
2808 echo "$ac_t""no" 1>&6
2812 BUILD_INCLUDED_LIBINTL=yes
2813 USE_INCLUDED_LIBINTL=yes
2815 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2816 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2819 if test "$GMSGFMT" != ":"; then
2820 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2823 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2828 if test "$XGETTEXT" != ":"; then
2829 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2832 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2842 if test "$PACKAGE" = gettext; then
2843 BUILD_INCLUDED_LIBINTL=yes
2846 for ac_prog in bison
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_word" >&5
2852 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 if test -n "$INTLBISON"; then
2856 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2860 for ac_dir in $ac_dummy; do
2861 test -z "$ac_dir" && ac_dir=.
2862 if test -f $ac_dir/$ac_word; then
2863 ac_cv_prog_INTLBISON="$ac_prog"
2870 INTLBISON="$ac_cv_prog_INTLBISON"
2871 if test -n "$INTLBISON"; then
2872 echo "$ac_t""$INTLBISON" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 test -n "$INTLBISON" && break
2880 if test -z "$INTLBISON"; then
2883 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2884 echo "configure:2885: checking version of bison" >&5
2885 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2886 case $ac_prog_version in
2887 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2888 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2889 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2890 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2892 echo "$ac_t""$ac_prog_version" 1>&6
2894 if test $ac_verc_fail = yes; then
2898 for lang in $ALL_LINGUAS; do
2899 GMOFILES="$GMOFILES $lang.gmo"
2900 POFILES="$POFILES $lang.po"
2914 nls_cv_header_libgt=
2926 if test "x$CATOBJEXT" != "x"; then
2927 if test "x$ALL_LINGUAS" = "x"; then
2930 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2931 echo "configure:2932: checking for catalogs to be installed" >&5
2933 for presentlang in $ALL_LINGUAS; do
2935 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2936 # Use the presentlang catalog if desiredlang is
2937 # a. equal to presentlang, or
2938 # b. a variant of presentlang (because in this case,
2939 # presentlang can be used as a fallback for messages
2940 # which are not translated in the desiredlang catalog).
2941 case "$desiredlang" in
2942 "$presentlang"*) useit=yes;;
2945 if test $useit = yes; then
2946 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2949 LINGUAS=$NEW_LINGUAS
2950 echo "$ac_t""$LINGUAS" 1>&6
2953 if test -n "$LINGUAS"; then
2954 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2959 if test -n "$ac_aux_dir"; then
2960 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2962 if test -z "$MKINSTALLDIRS"; then
2963 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2967 INTL_LIBTOOL_SUFFIX_PREFIX=
2971 # Find a good install program. We prefer a C program (faster),
2972 # so one script is as good as another. But avoid the broken or
2973 # incompatible versions:
2974 # SysV /etc/install, /usr/sbin/install
2975 # SunOS /usr/etc/install
2976 # IRIX /sbin/install
2978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981 # ./install, which can be erroneously created by make from ./install.sh.
2982 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2983 echo "configure:2984: checking for a BSD compatible install" >&5
2984 if test -z "$INSTALL"; then
2985 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2989 for ac_dir in $PATH; do
2990 # Account for people who put trailing slashes in PATH elements.
2992 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2994 # OSF1 and SCO ODT 3.0 have their own names for install.
2995 # Don't use installbsd from OSF since it installs stuff as root
2997 for ac_prog in ginstall scoinst install; do
2998 if test -f $ac_dir/$ac_prog; then
2999 if test $ac_prog = install &&
3000 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3001 # AIX install. It has an incompatible calling convention.
3004 ac_cv_path_install="$ac_dir/$ac_prog -c"
3015 if test "${ac_cv_path_install+set}" = set; then
3016 INSTALL="$ac_cv_path_install"
3018 # As a last resort, use the slow shell script. We don't cache a
3019 # path for INSTALL within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the path is relative.
3022 INSTALL="$ac_install_sh"
3025 echo "$ac_t""$INSTALL" 1>&6
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3036 case x"${target_os}" in
3051 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}windres; ac_word=$2
3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_word" >&5
3055 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 if test -n "$WINDRES"; then
3059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3063 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if test -f $ac_dir/$ac_word; then
3066 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3073 WINDRES="$ac_cv_prog_WINDRES"
3074 if test -n "$WINDRES"; then
3075 echo "$ac_t""$WINDRES" 1>&6
3077 echo "$ac_t""no" 1>&6
3081 if test -z "$ac_cv_prog_WINDRES"; then
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "windres", so it can be a program name with args.
3084 set dummy windres; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$WINDRES"; then
3091 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_WINDRES="windres"
3103 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3106 WINDRES="$ac_cv_prog_WINDRES"
3107 if test -n "$WINDRES"; then
3108 echo "$ac_t""$WINDRES" 1>&6
3110 echo "$ac_t""no" 1>&6
3118 LIB_IPV4="${LIB_IPV4} -lws2_32"
3119 LIB_RC="${LIB_RC} -lws2_32"
3123 LIB_X11="${LIB_X11} -lsocket"
3124 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3128 LIB_IPV4="${LIB_IPV4} -lbind"
3129 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3130 PLDFLAGS="${PLDFLAGS} -nostart"
3137 for ac_func in gettimeofday select strerror strtod strtol isatty
3139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_func" >&5
3141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 /* System header to define __stub macros and hopefully few prototypes,
3148 which can conflict with char $ac_func(); below. */
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3157 /* The GNU C library defines this for functions which it implements
3158 to always fail with ENOSYS. Some functions are actually named
3159 something starting with __ and the normal name is an alias. */
3160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 eval "ac_cv_func_$ac_func=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 eval "ac_cv_func_$ac_func=no"
3180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_func 1
3188 echo "$ac_t""no" 1>&6
3192 echo $ac_n "checking for connect""... $ac_c" 1>&6
3193 echo "configure:3194: checking for connect" >&5
3194 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char connect(); below. */
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_connect) || defined (__stub___connect)
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 eval "ac_cv_func_connect=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 eval "ac_cv_func_connect=no"
3233 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3237 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3240 echo "configure:3241: checking for connect in -lsocket" >&5
3241 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_save_LIBS="$LIBS"
3246 LIBS="-lsocket $LIBS"
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_lib_$ac_lib_var=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_lib_$ac_lib_var=no"
3269 LIBS="$ac_save_LIBS"
3272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 LIB_IPV4="${LIB_IPV4} -lsocket"
3275 LIB_VLC="${LIB_VLC} -lsocket"
3278 echo "$ac_t""no" 1>&6
3283 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3284 echo "configure:3285: checking for gethostbyname" >&5
3285 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* System header to define __stub macros and hopefully few prototypes,
3292 which can conflict with char gethostbyname(); below. */
3294 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3297 char gethostbyname();
3301 /* The GNU C library defines this for functions which it implements
3302 to always fail with ENOSYS. Some functions are actually named
3303 something starting with __ and the normal name is an alias. */
3304 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3314 eval "ac_cv_func_gethostbyname=yes"
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3319 eval "ac_cv_func_gethostbyname=no"
3324 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3328 echo "$ac_t""no" 1>&6
3330 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3331 echo "configure:3332: checking for gethostbyname in -lnsl" >&5
3332 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 ac_save_LIBS="$LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gethostbyname();
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 eval "ac_cv_lib_$ac_lib_var=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 eval "ac_cv_lib_$ac_lib_var=no"
3360 LIBS="$ac_save_LIBS"
3363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3364 echo "$ac_t""yes" 1>&6
3365 LIB_IPV4="${LIB_IPV4} -lnsl"
3367 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3374 echo "configure:3375: checking for gethostbyname" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char gethostbyname(); below. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char gethostbyname();
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_func_gethostbyname=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_func_gethostbyname=no"
3414 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3418 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3421 echo "configure:3422: checking for gethostbyname in -lbind" >&5
3422 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3434 char gethostbyname();
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 LIB_IPV4="${LIB_IPV4} -lbind"
3457 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3464 echo "configure:3465: checking for nanosleep" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char nanosleep(); below. */
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_func_nanosleep=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_func_nanosleep=no"
3504 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3508 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3511 echo "configure:3512: checking for nanosleep in -lrt" >&5
3512 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 LIB_VLC="${LIB_VLC} -lrt"
3547 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3550 echo "configure:3551: checking for nanosleep in -lposix4" >&5
3551 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lposix4 $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 LIB_VLC="${LIB_VLC} -lposix4"
3586 echo "$ac_t""no" 1>&6
3595 for ac_func in usleep
3597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_func" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char $ac_func(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_$ac_func=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_$ac_func=no"
3638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_func 1
3646 echo "$ac_t""no" 1>&6
3650 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3651 echo "configure:3652: checking for inet_aton" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char inet_aton(); below. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3668 /* The GNU C library defines this for functions which it implements
3669 to always fail with ENOSYS. Some functions are actually named
3670 something starting with __ and the normal name is an alias. */
3671 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_func_inet_aton=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_func_inet_aton=no"
3691 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3695 echo "$ac_t""no" 1>&6
3697 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3698 echo "configure:3699: checking for inet_aton in -lresolv" >&5
3699 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS="$LIBS"
3704 LIBS="-lresolv $LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 LIB_VLC="${LIB_VLC} -lresolv"
3734 echo "$ac_t""no" 1>&6
3740 for ac_func in vasprintf
3742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_func" >&5
3744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* System header to define __stub macros and hopefully few prototypes,
3751 which can conflict with char $ac_func(); below. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3760 /* The GNU C library defines this for functions which it implements
3761 to always fail with ENOSYS. Some functions are actually named
3762 something starting with __ and the normal name is an alias. */
3763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 eval "ac_cv_func_$ac_func=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_func_$ac_func=no"
3783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3786 cat >> confdefs.h <<EOF
3787 #define $ac_tr_func 1
3791 echo "$ac_t""no" 1>&6
3797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_func" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char $ac_func(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_func_$ac_func=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_func_$ac_func=no"
3838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3841 cat >> confdefs.h <<EOF
3842 #define $ac_tr_func 1
3846 echo "$ac_t""no" 1>&6
3850 for ac_func in memalign valloc
3852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_func" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char $ac_func(); below. */
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3870 /* The GNU C library defines this for functions which it implements
3871 to always fail with ENOSYS. Some functions are actually named
3872 something starting with __ and the normal name is an alias. */
3873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_func_$ac_func=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_func_$ac_func=no"
3893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3896 cat >> confdefs.h <<EOF
3897 #define $ac_tr_func 1
3901 echo "$ac_t""no" 1>&6
3906 for ac_func in sigrelse
3908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3909 echo "configure:3910: checking for $ac_func" >&5
3910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* System header to define __stub macros and hopefully few prototypes,
3917 which can conflict with char $ac_func(); below. */
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3926 /* The GNU C library defines this for functions which it implements
3927 to always fail with ENOSYS. Some functions are actually named
3928 something starting with __ and the normal name is an alias. */
3929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3939 eval "ac_cv_func_$ac_func=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 eval "ac_cv_func_$ac_func=no"
3949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3952 cat >> confdefs.h <<EOF
3953 #define $ac_tr_func 1
3957 echo "$ac_t""no" 1>&6
3961 for ac_func in getpwuid
3963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_func" >&5
3965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 /* System header to define __stub macros and hopefully few prototypes,
3972 which can conflict with char $ac_func(); below. */
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3981 /* The GNU C library defines this for functions which it implements
3982 to always fail with ENOSYS. Some functions are actually named
3983 something starting with __ and the normal name is an alias. */
3984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 eval "ac_cv_func_$ac_func=yes"
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3999 eval "ac_cv_func_$ac_func=no"
4004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4007 cat >> confdefs.h <<EOF
4008 #define $ac_tr_func 1
4012 echo "$ac_t""no" 1>&6
4018 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4019 echo "configure:4020: checking for getopt_long" >&5
4020 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* System header to define __stub macros and hopefully few prototypes,
4027 which can conflict with char getopt_long(); below. */
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4036 /* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4049 eval "ac_cv_func_getopt_long=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4054 eval "ac_cv_func_getopt_long=no"
4059 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_GETOPT_LONG 1
4066 echo "$ac_t""no" 1>&6
4067 # FreeBSD has a gnugetopt library for this:
4068 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4069 echo "configure:4070: checking for getopt_long in -lgnugetopt" >&5
4070 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 ac_save_LIBS="$LIBS"
4075 LIBS="-lgnugetopt $LIBS"
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_lib_$ac_lib_var=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_lib_$ac_lib_var=no"
4098 LIBS="$ac_save_LIBS"
4101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 cat >> confdefs.h <<\EOF
4104 #define HAVE_GETOPT_LONG 1
4106 LIB_VLC="${LIB_VLC} -lgnugetopt"
4108 echo "$ac_t""no" 1>&6
4115 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4116 echo "configure:4117: checking return type of signal handlers" >&5
4117 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 #include <sys/types.h>
4129 extern "C" void (*signal (int, void (*)(int)))(int);
4131 void (*signal ()) ();
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 ac_cv_type_signal=void
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 ac_cv_type_signal=int
4150 echo "$ac_t""$ac_cv_type_signal" 1>&6
4151 cat >> confdefs.h <<EOF
4152 #define RETSIGTYPE $ac_cv_type_signal
4156 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4157 echo "configure:4158: checking for dlopen in -ldl" >&5
4158 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 ac_save_LIBS="$LIBS"
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 eval "ac_cv_lib_$ac_lib_var=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 eval "ac_cv_lib_$ac_lib_var=no"
4186 LIBS="$ac_save_LIBS"
4189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4190 echo "$ac_t""yes" 1>&6
4191 LIB_VLC="${LIB_VLC} -ldl"
4193 echo "$ac_t""no" 1>&6
4196 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4197 echo "configure:4198: checking for cos in -lm" >&5
4198 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 ac_save_LIBS="$LIBS"
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 /* Override any gcc2 internal prototype to avoid an error. */
4208 /* We use char because int might match the return type of a gcc2
4209 builtin and then its argument prototype would still apply. */
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 eval "ac_cv_lib_$ac_lib_var=yes"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 eval "ac_cv_lib_$ac_lib_var=no"
4226 LIBS="$ac_save_LIBS"
4229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4231 LIB_IMDCT="${LIB_IMDCT} -lm"
4232 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4234 echo "$ac_t""no" 1>&6
4237 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4238 echo "configure:4239: checking for pow in -lm" >&5
4239 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS="$LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 LIB_IMDCT="${LIB_IMDCT} -lm"
4273 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4274 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4277 echo "$ac_t""no" 1>&6
4282 if test "x${THREAD_LIB}" = xerror; then
4283 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4284 echo "configure:4285: checking for pthread_attr_init in -lpthread" >&5
4285 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 ac_save_LIBS="$LIBS"
4290 LIBS="-lpthread $LIBS"
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4294 /* Override any gcc2 internal prototype to avoid an error. */
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char pthread_attr_init();
4303 if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4305 eval "ac_cv_lib_$ac_lib_var=yes"
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4310 eval "ac_cv_lib_$ac_lib_var=no"
4313 LIBS="$ac_save_LIBS"
4316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 THREAD_LIB="-lpthread"
4320 echo "$ac_t""no" 1>&6
4324 if test "x${THREAD_LIB}" = xerror; then
4325 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4326 echo "configure:4327: checking for pthread_attr_init in -lpthreads" >&5
4327 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_save_LIBS="$LIBS"
4332 LIBS="-lpthreads $LIBS"
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char pthread_attr_init();
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4347 eval "ac_cv_lib_$ac_lib_var=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 eval "ac_cv_lib_$ac_lib_var=no"
4355 LIBS="$ac_save_LIBS"
4358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 THREAD_LIB="-lpthreads"
4362 echo "$ac_t""no" 1>&6
4366 if test "x${THREAD_LIB}" = xerror; then
4367 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4368 echo "configure:4369: checking for pthread_attr_init in -lc_r" >&5
4369 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char pthread_attr_init();
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4404 echo "$ac_t""no" 1>&6
4408 if test "x${THREAD_LIB}" = xerror; then
4409 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4410 echo "configure:4411: checking for pthread_attr_init" >&5
4411 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* System header to define __stub macros and hopefully few prototypes,
4418 which can conflict with char pthread_attr_init(); below. */
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4423 char pthread_attr_init();
4427 /* The GNU C library defines this for functions which it implements
4428 to always fail with ENOSYS. Some functions are actually named
4429 something starting with __ and the normal name is an alias. */
4430 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4433 pthread_attr_init();
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_func_pthread_attr_init=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_func_pthread_attr_init=no"
4450 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4454 echo "$ac_t""no" 1>&6
4460 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4461 echo "configure:4462: checking for cthread_fork in -lthreads" >&5
4462 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 ac_save_LIBS="$LIBS"
4467 LIBS="-lthreads $LIBS"
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4474 char cthread_fork();
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 eval "ac_cv_lib_$ac_lib_var=no"
4490 LIBS="$ac_save_LIBS"
4493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 THREAD_LIB="-lthreads"
4497 echo "$ac_t""no" 1>&6
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <pthread.h>
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 egrep "pthread_cond_t" >/dev/null 2>&1; then
4510 cat >> confdefs.h <<\EOF
4511 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 #include <strings.h>
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 egrep "strncasecmp" >/dev/null 2>&1; then
4526 cat >> confdefs.h <<\EOF
4527 #define STRNCASECMP_IN_STRINGS_H 1
4534 for ac_hdr in getopt.h strings.h
4536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4538 echo "configure:4539: checking for $ac_hdr" >&5
4539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4548 { (eval echo configure:4549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4550 if test -z "$ac_err"; then
4552 eval "ac_cv_header_$ac_safe=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_header_$ac_safe=no"
4562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_hdr 1
4570 echo "$ac_t""no" 1>&6
4574 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_hdr" >&5
4579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4588 { (eval echo configure:4589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4590 if test -z "$ac_err"; then
4592 eval "ac_cv_header_$ac_safe=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_header_$ac_safe=no"
4602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4605 cat >> confdefs.h <<EOF
4606 #define $ac_tr_hdr 1
4610 echo "$ac_t""no" 1>&6
4614 for ac_hdr in dlfcn.h image.h
4616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4618 echo "configure:4619: checking for $ac_hdr" >&5
4619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4628 { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4630 if test -z "$ac_err"; then
4632 eval "ac_cv_header_$ac_safe=yes"
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 eval "ac_cv_header_$ac_safe=no"
4642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4645 cat >> confdefs.h <<EOF
4646 #define $ac_tr_hdr 1
4650 echo "$ac_t""no" 1>&6
4654 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4694 for ac_hdr in machine/param.h sys/shm.h
4696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_hdr" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4712 eval "ac_cv_header_$ac_safe=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4718 eval "ac_cv_header_$ac_safe=no"
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4725 cat >> confdefs.h <<EOF
4726 #define $ac_tr_hdr 1
4730 echo "$ac_t""no" 1>&6
4735 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4736 echo "configure:4737: checking whether time.h and sys/time.h may both be included" >&5
4737 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 #include <sys/types.h>
4744 #include <sys/time.h>
4750 if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4752 ac_cv_header_time=yes
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 ac_cv_header_time=no
4762 echo "$ac_t""$ac_cv_header_time" 1>&6
4763 if test $ac_cv_header_time = yes; then
4764 cat >> confdefs.h <<\EOF
4765 #define TIME_WITH_SYS_TIME 1
4771 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4775 echo "configure:4776: checking for $ac_hdr" >&5
4776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4785 { (eval echo configure:4786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4787 if test -z "$ac_err"; then
4789 eval "ac_cv_header_$ac_safe=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_header_$ac_safe=no"
4799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4802 cat >> confdefs.h <<EOF
4803 #define $ac_tr_hdr 1
4807 echo "$ac_t""no" 1>&6
4812 if test x$SYS != xmingw32
4814 if test x$x_includes = xNONE; then
4815 x_includes=/usr/X11R6/include
4817 if test x$x_libraries = xNONE; then
4818 x_libraries=/usr/X11R6/lib
4820 saved_CPPFLAGS=$CPPFLAGS
4821 CPPFLAGS="$CPPFLAGS -I$x_includes"
4822 for ac_hdr in X11/extensions/dpms.h
4824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_hdr" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4838 if test -z "$ac_err"; then
4840 eval "ac_cv_header_$ac_safe=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_header_$ac_safe=no"
4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_hdr 1
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <X11/extensions/dpms.h>
4862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863 egrep "DPMSInfo" >/dev/null 2>&1; then
4866 cat >> confdefs.h <<\EOF
4867 #define DPMSINFO_IN_DPMS_H 1
4876 echo "$ac_t""no" 1>&6
4880 CPPFLAGS=$saved_CPPFLAGS
4883 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4884 echo "configure:4885: checking for ntohl in sys/param.h" >&5
4885 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 CFLAGS="${save_CFLAGS} -Wall -Werror"
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 #include <sys/param.h>
4894 void foo() { int meuh; ntohl(meuh); }
4897 if { (eval echo configure:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4899 ac_cv_c_ntohl_sys_param_h=yes
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 ac_cv_c_ntohl_sys_param_h=no
4909 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4910 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4911 cat >> confdefs.h <<\EOF
4912 #define NTOHL_IN_SYS_PARAM_H 1
4917 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4918 echo "configure:4919: checking if \$CC accepts -finline-limit" >&5
4919 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4933 ac_cv_c_inline_limit=yes
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 ac_cv_c_inline_limit=no
4943 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4944 if test x"$ac_cv_c_inline_limit" != x"no"; then
4945 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4948 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4949 echo "configure:4950: checking if \$CC accepts -Wall -Winline" >&5
4950 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 CFLAGS="${save_CFLAGS} -Wall -Winline"
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4962 if { (eval echo configure:4963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4964 ac_cv_c_Wall_Winline=yes
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 ac_cv_c_Wall_Winline=no
4974 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4975 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4976 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4978 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4979 echo "configure:4980: checking if \$CC accepts -wall -winline" >&5
4980 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 CFLAGS="${save_CFLAGS} -wall -winline"
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4992 if { (eval echo configure:4993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4994 ac_cv_c_wall_winline=yes
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4999 ac_cv_c_wall_winline=no
5004 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5005 if test x"$ac_cv_c_wall_winline" != x"no"; then
5006 save_CFLAGS="${save_CFLAGS} -wall -winline"
5010 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5011 echo "configure:5012: checking if \$CC accepts -pipe" >&5
5012 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 CFLAGS="${save_CFLAGS} -pipe"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5024 if { (eval echo configure:5025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5036 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5037 if test x"$ac_cv_c_pipe" != x"no"; then
5038 save_CFLAGS="${save_CFLAGS} -pipe"
5041 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5042 echo "configure:5043: checking if \$CC accepts -O3" >&5
5043 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 CFLAGS="${save_CFLAGS} -O3"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5055 if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5067 echo "$ac_t""$ac_cv_c_o3" 1>&6
5068 if test x"$ac_cv_c_o3" != x"no"; then
5069 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5071 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5072 echo "configure:5073: checking if \$CC accepts -O2" >&5
5073 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 CFLAGS="${save_CFLAGS} -O2"
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5085 if { (eval echo configure:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5097 echo "$ac_t""$ac_cv_c_o2" 1>&6
5098 if test x"$ac_cv_c_o2" != x"no"; then
5099 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5101 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5102 echo "configure:5103: checking if \$CC accepts -O" >&5
5103 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 CFLAGS="${save_CFLAGS} -O"
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5115 if { (eval echo configure:5116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5127 echo "$ac_t""$ac_cv_c_o" 1>&6
5128 if test x"$ac_cv_c_o" != x"no"; then
5129 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5134 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5135 echo "configure:5136: checking if \$CC accepts -ffast-math" >&5
5136 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 CFLAGS="${save_CFLAGS} -ffast-math"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 ac_cv_c_fast_math=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 ac_cv_c_fast_math=no
5160 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5161 if test x"$ac_cv_c_fast_math" != x"no"; then
5162 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5165 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5166 echo "configure:5167: checking if \$CC accepts -funroll-loops" >&5
5167 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5170 CFLAGS="${save_CFLAGS} -funroll-loops"
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5179 if { (eval echo configure:5180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5181 ac_cv_c_unroll_loops=yes
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 ac_cv_c_unroll_loops=no
5191 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5192 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5193 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5196 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5197 echo "configure:5198: checking if \$CC accepts -fomit-frame-pointer" >&5
5198 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5210 if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212 ac_cv_c_omit_frame_pointer=yes
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5217 ac_cv_c_omit_frame_pointer=no
5222 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5223 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5224 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5227 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5228 echo "configure:5229: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5229 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5253 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5254 if test x"$ac_cv_ld_darwin" != x"no"; then
5255 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5258 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5259 echo "configure:5260: checking if \$CC accepts -shared" >&5
5260 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 CFLAGS="${save_CFLAGS} -shared"
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5272 if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5274 ac_cv_ld_plugins=yes
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5284 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5285 if test x"$ac_cv_ld_plugins" != x"no"; then
5286 PLDFLAGS="${PLDFLAGS} -shared"
5289 if test x"${SOFLAGS}" = x; then
5290 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5291 echo "configure:5292: checking for soname setting" >&5
5292 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5297 try_SOFLAGS="-Wl,-soname -Wl,"
5298 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 ac_cv_ld_soname="${try_SOFLAGS}"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5316 try_SOFLAGS="-Wl,-h -Wl,"
5317 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 ac_cv_ld_soname="${try_SOFLAGS}"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ac_cv_ld_soname=none
5341 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5342 if test x"$ac_cv_ld_soname" != x"none"; then
5343 SOFLAGS=$ac_cv_ld_soname
5347 Your system doesn't seem to have support for dynamic linking. You may
5348 have problems using libdvdcss.
5354 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5355 echo "configure:5356: checking __attribute__ ((aligned ())) support" >&5
5356 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 ac_cv_c_attribute_aligned=0
5360 CFLAGS="${save_CFLAGS} -Werror"
5361 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5367 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5370 if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5372 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5381 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5382 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5383 cat >> confdefs.h <<EOF
5384 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5389 CFLAGS="${save_CFLAGS}"
5390 LDFLAGS="${save_LDFLAGS}"
5392 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5393 echo "configure:5394: checking for boolean_t in sys/types.h" >&5
5394 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 #include <sys/types.h>
5405 if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407 ac_cv_c_boolean_t_sys_types_h=yes
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 ac_cv_c_boolean_t_sys_types_h=no
5417 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5418 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5419 cat >> confdefs.h <<\EOF
5420 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5425 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5426 echo "configure:5427: checking for boolean_t in pthread.h" >&5
5427 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 #include <pthread.h>
5438 if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5440 ac_cv_c_boolean_t_pthread_h=yes
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5445 ac_cv_c_boolean_t_pthread_h=no
5450 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5451 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5452 cat >> confdefs.h <<\EOF
5453 #define BOOLEAN_T_IN_PTHREAD_H 1
5458 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5459 echo "configure:5460: checking for boolean_t in cthreads.h" >&5
5460 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 #include <cthreads.h>
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 ac_cv_c_boolean_t_cthreads_h=yes
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 ac_cv_c_boolean_t_cthreads_h=no
5483 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5484 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5485 cat >> confdefs.h <<\EOF
5486 #define BOOLEAN_T_IN_CTHREADS_H 1
5491 case x"${target_cpu}" in
5500 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"
5501 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"
5503 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5504 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5505 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5506 SSE_MODULES="imdctsse downmixsse"
5507 ALTIVEC_MODULES="idctaltivec motionaltivec"
5509 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5510 echo "configure:5511: checking if \$CC groks MMX inline assembly" >&5
5511 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5512 echo $ac_n "(cached) $ac_c" 1>&6
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5519 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5522 if { (eval echo configure:5523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524 ac_cv_mmx_inline=yes
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5534 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5535 if test x"$ac_cv_mmx_inline" != x"no"; then
5536 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5539 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5540 echo "configure:5541: checking if \$CC groks MMX EXT inline assembly" >&5
5541 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5549 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5552 if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 ac_cv_mmxext_inline=yes
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5559 ac_cv_mmxext_inline=no
5564 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5565 if test x"$ac_cv_mmxext_inline" != x"no"; then
5566 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5569 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5570 echo "configure:5571: checking if \$CC groks 3D Now! inline assembly" >&5
5571 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5579 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5584 ac_cv_3dnow_inline=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5589 ac_cv_3dnow_inline=no
5594 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5595 if test x"$ac_cv_3dnow_inline" != x"no"; then
5596 cat >> confdefs.h <<\EOF
5597 #define CAN_COMPILE_3DNOW 1
5600 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5603 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5604 echo "configure:5605: checking if \$CC groks SSE inline assembly" >&5
5605 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5613 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5616 if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 ac_cv_sse_inline=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5628 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5629 if test x"$ac_cv_sse_inline" != x"no"; then
5630 cat >> confdefs.h <<\EOF
5631 #define CAN_COMPILE_SSE 1
5634 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5637 # don't try to grok altivec with native mingw32 it doesn't work right now
5638 # we should be able to remove this test with future versions of mingw32
5639 if test x$SYS != xmingw32; then
5640 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5641 echo "configure:5642: checking if \$CC groks Altivec inline assembly" >&5
5642 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5650 asm volatile("vperm 0,1,2,3");
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655 ac_cv_altivec_inline=yes
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5661 CFLAGS="$CFLAGS -Wa,-m7400"
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5667 asm volatile("vperm 0,1,2,3");
5670 if { (eval echo configure:5671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5672 ac_cv_altivec_inline="-Wa,-m7400"
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5677 ac_cv_altivec_inline=no
5686 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5687 if test x"$ac_cv_altivec_inline" != x"no"; then
5688 cat >> confdefs.h <<\EOF
5689 #define CAN_COMPILE_ALTIVEC 1
5692 if test x"$ac_cv_altivec_inline" != x"yes"; then
5693 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5694 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5695 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5697 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5700 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5701 echo "configure:5702: checking if \$CC groks Altivec C extensions" >&5
5702 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5706 CFLAGS="$CFLAGS -faltivec"
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5713 vec_mtvscr((vector unsigned int)(0));
5716 if { (eval echo configure:5717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5718 ac_cv_c_altivec=-faltivec
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5725 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5731 vec_mtvscr((vector unsigned int)(0));
5734 if { (eval echo configure:5735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5736 ac_cv_c_altivec="-fvec"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5751 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5752 if test x"$ac_cv_c_altivec" != x"no"; then
5753 cat >> confdefs.h <<\EOF
5754 #define CAN_COMPILE_C_ALTIVEC 1
5757 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5758 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5759 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5760 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5763 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5764 echo "configure:5765: checking if linker needs -framework vecLib" >&5
5765 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 save_LDFLAGS=$LDFLAGS
5769 LDFLAGS="$LDFLAGS -framework vecLib"
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5778 if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780 ac_cv_ld_altivec=yes
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5788 LDFLAGS=$save_LDFLAGS
5792 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5793 if test x"$ac_cv_ld_altivec" != x"no"; then
5794 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5795 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5796 LIB_VLC="${LIB_VLC} -framework vecLib"
5806 DVD_DEVICE="/dev/dvd"
5807 VCD_DEVICE="/dev/cdrom"
5811 cat >> confdefs.h <<EOF
5812 #define DVD_DEVICE "$DVD_DEVICE"
5815 cat >> confdefs.h <<EOF
5816 #define VCD_DEVICE "$VCD_DEVICE"
5822 CAN_BUILD_LIBDVDCSS=0
5824 for ac_hdr in winioctl.h
5826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_hdr" >&5
5829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5832 cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5838 { (eval echo configure:5839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5840 if test -z "$ac_err"; then
5842 eval "ac_cv_header_$ac_safe=yes"
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5848 eval "ac_cv_header_$ac_safe=no"
5852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5855 cat >> confdefs.h <<EOF
5856 #define $ac_tr_hdr 1
5859 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5862 echo "$ac_t""no" 1>&6
5867 for ac_hdr in sys/ioctl.h
5869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5871 echo "configure:5872: checking for $ac_hdr" >&5
5872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5881 { (eval echo configure:5882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5883 if test -z "$ac_err"; then
5885 eval "ac_cv_header_$ac_safe=yes"
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5891 eval "ac_cv_header_$ac_safe=no"
5895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5898 cat >> confdefs.h <<EOF
5899 #define $ac_tr_hdr 1
5902 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5903 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_hdr" >&5
5908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5917 { (eval echo configure:5918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5919 if test -z "$ac_err"; then
5921 eval "ac_cv_header_$ac_safe=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_header_$ac_safe=no"
5931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5932 echo "$ac_t""yes" 1>&6
5933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5934 cat >> confdefs.h <<EOF
5935 #define $ac_tr_hdr 1
5939 echo "$ac_t""no" 1>&6
5945 OPENBSD_DVD_STRUCT=0
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 #include <sys/cdio.h>
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 egrep "dvd_struct" >/dev/null 2>&1; then
5955 cat >> confdefs.h <<\EOF
5956 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 #include <sys/cdio.h>
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 egrep "struct dvd_struct" >/dev/null 2>&1; then
5971 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 #include <sys/dvdio.h>
5984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5985 egrep "dvd_struct" >/dev/null 2>&1; then
5988 cat >> confdefs.h <<\EOF
5989 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <sys/dvdio.h>
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998 egrep "struct dvd_struct" >/dev/null 2>&1; then
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 #include <linux/cdrom.h>
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 egrep "dvd_struct" >/dev/null 2>&1; then
6021 cat >> confdefs.h <<\EOF
6022 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 egrep "dvd_struct" >/dev/null 2>&1; then
6040 cat >> confdefs.h <<\EOF
6041 #define DVD_STRUCT_IN_DVD_H 1
6044 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6050 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_hdr" >&5
6055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6064 { (eval echo configure:6065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6066 if test -z "$ac_err"; then
6068 eval "ac_cv_header_$ac_safe=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_header_$ac_safe=no"
6078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_hdr 1
6086 cat >> confdefs.h <<\EOF
6087 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6090 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6094 echo "$ac_t""no" 1>&6
6102 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6103 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6104 echo "configure:6105: checking for sys/scsi/scsi_types.h" >&5
6105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <sys/scsi/scsi_types.h>
6113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6114 { (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6116 if test -z "$ac_err"; then
6118 eval "ac_cv_header_$ac_safe=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_header_$ac_safe=no"
6128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6129 echo "$ac_t""yes" 1>&6
6131 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6132 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6133 echo "configure:6134: checking for sys/scsi/impl/uscsi.h" >&5
6134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 #include <sys/scsi/impl/uscsi.h>
6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145 if test -z "$ac_err"; then
6147 eval "ac_cv_header_$ac_safe=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_header_$ac_safe=no"
6157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6160 cat >> confdefs.h <<\EOF
6161 #define SOLARIS_USCSI 1
6166 echo "$ac_t""no" 1>&6
6171 echo "$ac_t""no" 1>&6
6174 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6175 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6176 echo "configure:6177: checking for sys/scsi.h" >&5
6177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6178 echo $ac_n "(cached) $ac_c" 1>&6
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 #include <sys/scsi.h>
6185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6186 { (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6188 if test -z "$ac_err"; then
6190 eval "ac_cv_header_$ac_safe=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_header_$ac_safe=no"
6200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 #include <sys/scsi.h>
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 egrep "sctl_io" >/dev/null 2>&1; then
6212 cat >> confdefs.h <<\EOF
6213 #define HPUX_SCTL_IO 1
6222 echo "$ac_t""no" 1>&6
6225 if test x$LINUX_DVD_STRUCT = x1; then
6226 cat >> confdefs.h <<\EOF
6227 #define HAVE_LINUX_DVD_STRUCT 1
6230 if test x$OPENBSD_DVD_STRUCT = x1; then
6231 cat >> confdefs.h <<\EOF
6232 #define HAVE_OPENBSD_DVD_STRUCT 1
6237 if test x$BSD_DVD_STRUCT = x1; then
6238 cat >> confdefs.h <<\EOF
6239 #define HAVE_BSD_DVD_STRUCT 1
6246 echo "$ac_t""no" 1>&6
6251 # Check whether --with- or --without- was given.
6252 if test "${with_+set}" = set; then
6257 # Check whether --with- or --without- was given.
6258 if test "${with_+set}" = set; then
6264 # Check whether --with-tuning or --without-tuning was given.
6265 if test "${with_tuning+set}" = set; then
6266 withval="$with_tuning"
6270 if test "x$withval" != "x"; then
6273 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6275 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6279 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6282 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6285 # Check whether --enable-optimizations or --disable-optimizations was given.
6286 if test "${enable_optimizations+set}" = set; then
6287 enableval="$enable_optimizations"
6288 if test x$enableval = xno; then OPTIMS=0; fi
6294 # Check whether --enable-altivec or --disable-altivec was given.
6295 if test "${enable_altivec+set}" = set; then
6296 enableval="$enable_altivec"
6297 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6298 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6300 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6301 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6306 # Check whether --enable-debug or --disable-debug was given.
6307 if test "${enable_debug+set}" = set; then
6308 enableval="$enable_debug"
6309 if test x$enableval = xyes; then DEBUG=1; fi
6313 # Check whether --enable-release or --disable-release was given.
6314 if test "${enable_release+set}" = set; then
6315 enableval="$enable_release"
6316 if test x$enableval = xyes; then RELEASE=1; fi
6318 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6319 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6324 # Check whether --with- or --without- was given.
6325 if test "${with_+set}" = set; then
6334 # Check whether --with-dvdcss or --without-dvdcss was given.
6335 if test "${with_dvdcss+set}" = set; then
6336 withval="$with_dvdcss"
6337 case "x${withval}" in
6339 # local libdvdcss, statically linked
6340 BUILTINS="${BUILTINS} dvd"
6341 if test x${CAN_BUILD_LIBDVDCSS} = x1
6345 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6346 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6350 # local libdvdcss, dynamically linked
6351 PLUGINS="${PLUGINS} dvd"
6352 if test x${CAN_BUILD_LIBDVDCSS} = x1
6355 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6356 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6360 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6361 PLUGINS="${PLUGINS} dvd"
6363 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6364 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6365 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6366 LIB_DVD="${LIB_DVD} -ldl"
6369 # existing libdvdcss
6370 PLUGINS="${PLUGINS} dvd"
6371 if test "x$withval" != "xyes"
6373 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6374 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6376 LIB_DVD="${LIB_DVD} -ldvdcss"
6379 # user didn't decide, we choose to use local libdvdcss and link statically
6380 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6381 if test x${CAN_BUILD_LIBDVDCSS} = x1
6383 BUILTINS="${BUILTINS} dvd"
6386 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6387 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6389 # XXX: no check for libdl is done, don't try this at home !
6390 PLUGINS="${PLUGINS} dvd"
6392 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6393 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6394 LIB_DVD="${LIB_DVD} -ldl"
6399 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6400 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6401 # Check whether --with-dvdread or --without-dvdread was given.
6402 if test "${with_dvdread+set}" = set; then
6403 withval="$with_dvdread"
6404 case "x${withval}" in
6406 if test x${STATIC_LIBDVDREAD} = x1
6408 BUILTINS="${BUILTINS} dvdread"
6409 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6410 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6412 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6418 if test x${STATIC_LIBDVDREAD} = x1
6420 #BUILTINS="${BUILTINS} dvdread"
6421 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6422 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6424 #PLUGINS="${PLUGINS} dvdread"
6425 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6426 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6430 if test "x$withval" != "xlocal-shared"
6432 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6433 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6435 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6436 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6438 if test x${STATIC_LIBDVDCSS} = x1
6440 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6442 #PLUGINS="${PLUGINS} dvdread"
6443 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6444 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6447 if test x${DUMMY_LIBDVDCSS} = x1
6449 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6451 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6456 # Check whether --enable-vcd or --disable-vcd was given.
6457 if test "${enable_vcd+set}" = set; then
6458 enableval="$enable_vcd"
6463 if test x$enable_vcd != xno
6465 cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6468 #include <linux/cdrom.h>
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 egrep "cdrom_msf0" >/dev/null 2>&1; then
6474 PLUGINS="${PLUGINS} vcd"
6480 if test "x${SYS}" = "xbsdi"
6482 PLUGINS="${PLUGINS} vcd"
6485 if test "x${SYS}" = "xdarwin"
6487 PLUGINS="${PLUGINS} vcd"
6488 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6492 # Check whether --enable-satellite or --disable-satellite was given.
6493 if test "${enable_satellite+set}" = set; then
6494 enableval="$enable_satellite"
6495 if test x$enable_satellite = xyes
6497 BUILTINS="${BUILTINS} satellite"
6498 cat >> confdefs.h <<\EOF
6499 #define HAVE_SATELLITE 1
6506 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6507 echo "configure:6508: checking for inet_pton" >&5
6508 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 /* System header to define __stub macros and hopefully few prototypes,
6515 which can conflict with char inet_pton(); below. */
6517 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6524 /* The GNU C library defines this for functions which it implements
6525 to always fail with ENOSYS. Some functions are actually named
6526 something starting with __ and the normal name is an alias. */
6527 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537 eval "ac_cv_func_inet_pton=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_func_inet_pton=no"
6547 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6548 echo "$ac_t""yes" 1>&6
6549 PLUGINS="${PLUGINS} ipv6"
6551 echo "$ac_t""no" 1>&6
6556 # Check whether --with- or --without- was given.
6557 if test "${with_+set}" = set; then
6563 # Check whether --enable-mad or --disable-mad was given.
6564 if test "${enable_mad+set}" = set; then
6565 enableval="$enable_mad"
6569 if test x$enable_mad = xyes
6571 PLUGINS="${PLUGINS} mad"
6572 LIB_MAD="${LIB_MAD} -lmad"
6573 # Check whether --with-mad or --without-mad was given.
6574 if test "${with_mad+set}" = set; then
6576 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6578 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6579 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6584 save_LDFLAGS=$LDFLAGS
6585 CFLAGS="$CFLAGS $CFLAGS_MAD"
6586 LDFLAGS="$LDFLAGS $LIB_MAD"
6589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_hdr" >&5
6592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6601 { (eval echo configure:6602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6603 if test -z "$ac_err"; then
6605 eval "ac_cv_header_$ac_safe=yes"
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6611 eval "ac_cv_header_$ac_safe=no"
6615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6616 echo "$ac_t""yes" 1>&6
6617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6618 cat >> confdefs.h <<EOF
6619 #define $ac_tr_hdr 1
6623 echo "$ac_t""no" 1>&6
6624 echo "Cannot find development headers for libmad..."
6630 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6631 echo "configure:6632: checking for mad_bit_init in -lmad" >&5
6632 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 ac_save_LIBS="$LIBS"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644 char mad_bit_init();
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6660 LIBS="$ac_save_LIBS"
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6665 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6667 cat >> confdefs.h <<EOF
6668 #define $ac_tr_lib 1
6674 echo "$ac_t""no" 1>&6
6675 echo "Cannot find libmad library..."
6681 LDFLAGS=$save_LDFLAGS
6684 if test x$SYS = xbeos
6686 PLUGINS="${PLUGINS} beos"
6690 # Check whether --enable-a52 or --disable-a52 was given.
6691 if test "${enable_a52+set}" = set; then
6692 enableval="$enable_a52"
6696 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6698 for ac_hdr in a52dec/a52.h
6700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_hdr" >&5
6703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6712 { (eval echo configure:6713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6714 if test -z "$ac_err"; then
6716 eval "ac_cv_header_$ac_safe=yes"
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6722 eval "ac_cv_header_$ac_safe=no"
6726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_hdr 1
6733 BUILTINS="${BUILTINS} a52"
6734 LIB_A52="${LIB_A52} -la52"
6737 echo "$ac_t""no" 1>&6
6744 # Check whether --with- or --without- was given.
6745 if test "${with_+set}" = set; then
6751 # Check whether --enable-x11 or --disable-x11 was given.
6752 if test "${enable_x11+set}" = set; then
6753 enableval="$enable_x11"
6757 if test x$enable_x11 != xno &&
6758 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6759 if test x$x_includes = xNONE; then
6760 x_includes=/usr/X11R6/include
6762 if test x$x_libraries = xNONE; then
6763 x_libraries=/usr/X11R6/lib
6765 saved_CPPFLAGS=$CPPFLAGS
6766 CPPFLAGS="$CPPFLAGS -I$x_includes"
6767 for ac_hdr in X11/Xlib.h
6769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6771 echo "configure:6772: checking for $ac_hdr" >&5
6772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6773 echo $ac_n "(cached) $ac_c" 1>&6
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6781 { (eval echo configure:6782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6783 if test -z "$ac_err"; then
6785 eval "ac_cv_header_$ac_safe=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_header_$ac_safe=no"
6795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6796 echo "$ac_t""yes" 1>&6
6797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6798 cat >> confdefs.h <<EOF
6799 #define $ac_tr_hdr 1
6802 PLUGINS="${PLUGINS} x11"
6803 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6804 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6807 echo "$ac_t""no" 1>&6
6811 CPPFLAGS=$saved_CPPFLAGS
6814 # Check whether --enable-xvideo or --disable-xvideo was given.
6815 if test "${enable_xvideo+set}" = set; then
6816 enableval="$enable_xvideo"
6820 if test x$enable_xvideo != xno &&
6821 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6822 if test x$x_includes = xNONE; then
6823 x_includes=/usr/X11R6/include
6825 if test x$x_libraries = xNONE; then
6826 x_libraries=/usr/X11R6/lib
6828 saved_CPPFLAGS=$CPPFLAGS
6829 CPPFLAGS="$CPPFLAGS -I$x_includes"
6830 for ac_hdr in X11/extensions/Xv.h
6832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6834 echo "configure:6835: checking for $ac_hdr" >&5
6835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6846 if test -z "$ac_err"; then
6848 eval "ac_cv_header_$ac_safe=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_header_$ac_safe=no"
6858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6859 echo "$ac_t""yes" 1>&6
6860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6861 cat >> confdefs.h <<EOF
6862 #define $ac_tr_hdr 1
6865 saved_CFLAGS=$CFLAGS
6866 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6867 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6868 echo "configure:6869: checking for XvSetPortAttribute in -lXv_pic" >&5
6869 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 ac_save_LIBS="$LIBS"
6874 LIBS="-lXv_pic $LIBS"
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6881 char XvSetPortAttribute();
6884 XvSetPortAttribute()
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 eval "ac_cv_lib_$ac_lib_var=yes"
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 eval "ac_cv_lib_$ac_lib_var=no"
6897 LIBS="$ac_save_LIBS"
6900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6903 PLUGINS="${PLUGINS} xvideo"
6904 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6905 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6907 echo "$ac_t""no" 1>&6
6908 # We don't have Xv_pic, let's make xvideo.a as builtin
6909 BUILTINS="${BUILTINS} xvideo"
6910 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6911 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6914 CFLAGS=$saved_CFLAGS
6916 CPPFLAGS=$saved_CPPFLAGS
6918 echo "$ac_t""no" 1>&6
6924 # Check whether --enable-sdl or --disable-sdl was given.
6925 if test "${enable_sdl+set}" = set; then
6926 enableval="$enable_sdl"
6930 if test "x$enable_sdl" != "xno"
6933 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6934 if test "${with_sdl_config_path+set}" = set; then
6935 withval="$with_sdl_config_path"
6936 if test "x$withval" != "xno"
6938 SDL_PATH=$withval:$PATH
6942 # Extract the first word of "sdl12-config", so it can be a program name with args.
6943 set dummy sdl12-config; ac_word=$2
6944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_word" >&5
6946 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6949 case "$SDL12_CONFIG" in
6951 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6954 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6958 ac_dummy="$SDL_PATH"
6959 for ac_dir in $ac_dummy; do
6960 test -z "$ac_dir" && ac_dir=.
6961 if test -f $ac_dir/$ac_word; then
6962 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6967 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6971 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6972 if test -n "$SDL12_CONFIG"; then
6973 echo "$ac_t""$SDL12_CONFIG" 1>&6
6975 echo "$ac_t""no" 1>&6
6978 SDL_CONFIG=${SDL12_CONFIG}
6979 SDL_HEADER="SDL12/SDL.h"
6980 if test x${SDL_CONFIG} = xno
6982 # Extract the first word of "sdl11-config", so it can be a program name with args.
6983 set dummy sdl11-config; ac_word=$2
6984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6985 echo "configure:6986: checking for $ac_word" >&5
6986 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6989 case "$SDL11_CONFIG" in
6991 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6994 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6998 ac_dummy="$SDL_PATH"
6999 for ac_dir in $ac_dummy; do
7000 test -z "$ac_dir" && ac_dir=.
7001 if test -f $ac_dir/$ac_word; then
7002 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7007 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7011 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7012 if test -n "$SDL11_CONFIG"; then
7013 echo "$ac_t""$SDL11_CONFIG" 1>&6
7015 echo "$ac_t""no" 1>&6
7018 SDL_CONFIG=${SDL11_CONFIG}
7019 SDL_HEADER="SDL11/SDL.h"
7021 if test x${SDL_CONFIG} = xno
7023 # Extract the first word of "sdl-config", so it can be a program name with args.
7024 set dummy sdl-config; ac_word=$2
7025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_word" >&5
7027 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 case "$SDL_CONFIG" in
7032 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7035 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7039 ac_dummy="$SDL_PATH"
7040 for ac_dir in $ac_dummy; do
7041 test -z "$ac_dir" && ac_dir=.
7042 if test -f $ac_dir/$ac_word; then
7043 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7048 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7052 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7053 if test -n "$SDL_CONFIG"; then
7054 echo "$ac_t""$SDL_CONFIG" 1>&6
7056 echo "$ac_t""no" 1>&6
7059 SDL_HEADER="SDL/SDL.h"
7061 if test x${SDL_CONFIG} != xno
7063 PLUGINS="${PLUGINS} sdl"
7064 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7065 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7066 save_CPPFLAGS=$CPPFLAGS
7067 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7068 for ac_hdr in ${SDL_HEADER}
7070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_hdr" >&5
7073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7082 { (eval echo configure:7083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7084 if test -z "$ac_err"; then
7086 eval "ac_cv_header_$ac_safe=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_header_$ac_safe=no"
7096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7097 echo "$ac_t""yes" 1>&6
7098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7099 cat >> confdefs.h <<EOF
7100 #define $ac_tr_hdr 1
7102 cat >> confdefs.h <<EOF
7103 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7107 echo "$ac_t""no" 1>&6
7108 { echo "configure: error: The development package for SDL is not installed.
7109 Please install it and try again. Alternatively you can also configure with
7110 --disable-sdl." 1>&2; exit 1; }
7115 CPPFLAGS=$save_CPPFLAGS
7116 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7118 { echo "configure: error: The development package for SDL is not installed.
7119 Please install it and try again. Alternatively you can also configure with
7120 --disable-sdl." 1>&2; exit 1; }
7122 elif test "x$enable_sdl" = "xyes"
7124 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7125 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7130 # Check whether --enable-directx or --disable-directx was given.
7131 if test "${enable_directx+set}" = set; then
7132 enableval="$enable_directx"
7136 if test "x$enableval" != "xno"
7138 if test x$SYS = xmingw32
7140 # Check whether --with-directx or --without-directx was given.
7141 if test "${with_directx+set}" = set; then
7142 withval="$with_directx"
7146 if test "x$with_directx" = "x"
7148 for ac_hdr in ddraw.h
7150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_hdr" >&5
7153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7162 { (eval echo configure:7163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7164 if test -z "$ac_err"; then
7166 eval "ac_cv_header_$ac_safe=yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 eval "ac_cv_header_$ac_safe=no"
7176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7177 echo "$ac_t""yes" 1>&6
7178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7179 cat >> confdefs.h <<EOF
7180 #define $ac_tr_hdr 1
7182 PLUGINS="${PLUGINS} directx"
7183 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7185 echo "$ac_t""no" 1>&6
7190 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7191 echo "configure:7192: checking for directX headers in ${withval}" >&5
7192 if test -f ${withval}/ddraw.h
7194 PLUGINS="${PLUGINS} directx"
7195 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7196 INCLUDE="${INCLUDE} -I${withval}"
7197 echo "$ac_t""yes" 1>&6
7199 echo "$ac_t""no" 1>&6
7200 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7206 # Check whether --enable-fb or --disable-fb was given.
7207 if test "${enable_fb+set}" = set; then
7208 enableval="$enable_fb"
7212 if test x$enable_fb != xno
7214 for ac_hdr in linux/fb.h
7216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7218 echo "configure:7219: checking for $ac_hdr" >&5
7219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7230 if test -z "$ac_err"; then
7232 eval "ac_cv_header_$ac_safe=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 eval "ac_cv_header_$ac_safe=no"
7242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7245 cat >> confdefs.h <<EOF
7246 #define $ac_tr_hdr 1
7249 PLUGINS="${PLUGINS} fb"
7252 echo "$ac_t""no" 1>&6
7258 # Check whether --enable-mga or --disable-mga was given.
7259 if test "${enable_mga+set}" = set; then
7260 enableval="$enable_mga"
7261 if test x$enable_mga = xyes
7263 PLUGINS="${PLUGINS} mga xmga"
7268 # Check whether --enable-ggi or --disable-ggi was given.
7269 if test "${enable_ggi+set}" = set; then
7270 enableval="$enable_ggi"
7274 if test x$enable_ggi = xyes
7276 PLUGINS="${PLUGINS} ggi"
7277 LIB_GGI="${LIB_GGI} -lggi"
7278 # Check whether --with-ggi or --without-ggi was given.
7279 if test "${with_ggi+set}" = set; then
7281 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7283 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7284 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7290 # Check whether --enable-glide or --disable-glide was given.
7291 if test "${enable_glide+set}" = set; then
7292 enableval="$enable_glide"
7296 if test x$enable_glide = xyes
7298 PLUGINS="${PLUGINS} glide"
7299 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7300 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7301 # Check whether --with-glide or --without-glide was given.
7302 if test "${with_glide+set}" = set; then
7303 withval="$with_glide"
7304 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7306 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7307 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7313 # Check whether --enable-aa or --disable-aa was given.
7314 if test "${enable_aa+set}" = set; then
7315 enableval="$enable_aa"
7319 if test x$enable_aa = xyes
7321 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7322 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7323 echo "configure:7324: checking for aalib.h" >&5
7324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7333 { (eval echo configure:7334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7335 if test -z "$ac_err"; then
7337 eval "ac_cv_header_$ac_safe=yes"
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 eval "ac_cv_header_$ac_safe=no"
7347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7351 echo "$ac_t""no" 1>&6
7355 if test x$have_aa = xtrue
7357 PLUGINS="${PLUGINS} aa"
7358 LIB_AA="${LIB_AA} -laa"
7363 # Check whether --with- or --without- was given.
7364 if test "${with_+set}" = set; then
7370 # Check whether --enable-dsp or --disable-dsp was given.
7371 if test "${enable_dsp+set}" = set; then
7372 enableval="$enable_dsp"
7377 if test x$enable_dsp != xno &&
7378 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7380 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7384 echo "configure:7385: checking for $ac_hdr" >&5
7385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7394 { (eval echo configure:7395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7396 if test -z "$ac_err"; then
7398 eval "ac_cv_header_$ac_safe=yes"
7401 echo "configure: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7404 eval "ac_cv_header_$ac_safe=no"
7408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7409 echo "$ac_t""yes" 1>&6
7410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7411 cat >> confdefs.h <<EOF
7412 #define $ac_tr_hdr 1
7415 PLUGINS="${PLUGINS} dsp"
7416 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7417 echo "configure:7418: checking for main in -lossaudio" >&5
7418 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 ac_save_LIBS="$LIBS"
7423 LIBS="-lossaudio $LIBS"
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 eval "ac_cv_lib_$ac_lib_var=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 eval "ac_cv_lib_$ac_lib_var=no"
7442 LIBS="$ac_save_LIBS"
7445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 LIB_DSP="${LIB_DSP} -lossaudio"
7449 echo "$ac_t""no" 1>&6
7454 echo "$ac_t""no" 1>&6
7460 # Check whether --enable-esd or --disable-esd was given.
7461 if test "${enable_esd+set}" = set; then
7462 enableval="$enable_esd"
7463 if test x$enable_esd = xyes
7465 # Extract the first word of "esd-config", so it can be a program name with args.
7466 set dummy esd-config; ac_word=$2
7467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_word" >&5
7469 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 case "$ESD_CONFIG" in
7474 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7477 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7482 for ac_dir in $ac_dummy; do
7483 test -z "$ac_dir" && ac_dir=.
7484 if test -f $ac_dir/$ac_word; then
7485 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7490 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7494 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7495 if test -n "$ESD_CONFIG"; then
7496 echo "$ac_t""$ESD_CONFIG" 1>&6
7498 echo "$ac_t""no" 1>&6
7501 if test x${ESD_CONFIG} != xno
7503 PLUGINS="${PLUGINS} esd"
7504 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7505 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7511 # Check whether --enable-arts or --disable-arts was given.
7512 if test "${enable_arts+set}" = set; then
7513 enableval="$enable_arts"
7514 if test x$enable_arts = xyes
7516 # Extract the first word of "artsc-config", so it can be a program name with args.
7517 set dummy artsc-config; ac_word=$2
7518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7519 echo "configure:7520: checking for $ac_word" >&5
7520 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7523 case "$ARTS_CONFIG" in
7525 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7528 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7533 for ac_dir in $ac_dummy; do
7534 test -z "$ac_dir" && ac_dir=.
7535 if test -f $ac_dir/$ac_word; then
7536 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7541 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7545 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7546 if test -n "$ARTS_CONFIG"; then
7547 echo "$ac_t""$ARTS_CONFIG" 1>&6
7549 echo "$ac_t""no" 1>&6
7552 if test x${ARTS_CONFIG} != xno
7554 PLUGINS="${PLUGINS} arts"
7555 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7556 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7562 # Check whether --enable-alsa or --disable-alsa was given.
7563 if test "${enable_alsa+set}" = set; then
7564 enableval="$enable_alsa"
7565 if test x$enable_alsa = xyes
7567 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7568 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7569 echo "configure:7570: checking for alsa/asoundlib.h" >&5
7570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 #include <alsa/asoundlib.h>
7578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7579 { (eval echo configure:7580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7581 if test -z "$ac_err"; then
7583 eval "ac_cv_header_$ac_safe=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_header_$ac_safe=no"
7593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7594 echo "$ac_t""yes" 1>&6
7595 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7596 echo "configure:7597: checking for main in -lasound" >&5
7597 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 ac_save_LIBS="$LIBS"
7602 LIBS="-lasound $LIBS"
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7611 if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613 eval "ac_cv_lib_$ac_lib_var=yes"
7615 echo "configure: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7618 eval "ac_cv_lib_$ac_lib_var=no"
7621 LIBS="$ac_save_LIBS"
7624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7628 echo "$ac_t""no" 1>&6
7633 echo "$ac_t""no" 1>&6
7637 if test x$have_alsa = xtrue
7639 PLUGINS="${PLUGINS} alsa"
7640 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7646 # Check whether --enable-waveout or --disable-waveout was given.
7647 if test "${enable_waveout+set}" = set; then
7648 enableval="$enable_waveout"
7652 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7654 PLUGINS="${PLUGINS} waveout"
7655 LIB_WAVEOUT="-lwinmm"
7659 # Check whether --with- or --without- was given.
7660 if test "${with_+set}" = set; then
7666 # Check whether --enable-gtk or --disable-gtk was given.
7667 if test "${enable_gtk+set}" = set; then
7668 enableval="$enable_gtk"
7672 if test x$enable_gtk != xno
7675 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7676 if test "${with_gtk_config_path+set}" = set; then
7677 withval="$with_gtk_config_path"
7678 if test "x$withval" != "xno"
7680 GTK_PATH=$withval:$PATH
7684 # look for gtk-config
7685 # Extract the first word of "gtk12-config", so it can be a program name with args.
7686 set dummy gtk12-config; ac_word=$2
7687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7688 echo "configure:7689: checking for $ac_word" >&5
7689 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 case "$GTK12_CONFIG" in
7694 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7697 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7701 ac_dummy="$GTK_PATH"
7702 for ac_dir in $ac_dummy; do
7703 test -z "$ac_dir" && ac_dir=.
7704 if test -f $ac_dir/$ac_word; then
7705 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7710 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7714 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7715 if test -n "$GTK12_CONFIG"; then
7716 echo "$ac_t""$GTK12_CONFIG" 1>&6
7718 echo "$ac_t""no" 1>&6
7721 GTK_CONFIG=${GTK12_CONFIG}
7722 if test x${GTK_CONFIG} = xno
7724 # Extract the first word of "gtk-config", so it can be a program name with args.
7725 set dummy gtk-config; ac_word=$2
7726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7727 echo "configure:7728: checking for $ac_word" >&5
7728 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 case "$GTK_CONFIG" in
7733 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7736 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7740 ac_dummy="$GTK_PATH"
7741 for ac_dir in $ac_dummy; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7749 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7753 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7754 if test -n "$GTK_CONFIG"; then
7755 echo "$ac_t""$GTK_CONFIG" 1>&6
7757 echo "$ac_t""no" 1>&6
7761 if test x${GTK_CONFIG} != xno
7763 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7765 { 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; }
7767 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7768 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7769 # now look for the gtk.h header
7770 saved_CPPFLAGS=$CPPFLAGS
7771 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7772 ac_cv_gtk_headers=yes
7773 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7777 echo "configure:7778: checking for $ac_hdr" >&5
7778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7787 { (eval echo configure:7788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7789 if test -z "$ac_err"; then
7791 eval "ac_cv_header_$ac_safe=yes"
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7797 eval "ac_cv_header_$ac_safe=no"
7801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7802 echo "$ac_t""yes" 1>&6
7803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7804 cat >> confdefs.h <<EOF
7805 #define $ac_tr_hdr 1
7809 echo "$ac_t""no" 1>&6
7810 ac_cv_gtk_headers=no
7811 echo "Cannot find gtk development headers."
7816 if test "x$ac_cv_gtk_headers" = xyes
7818 PLUGINS="${PLUGINS} gtk"
7819 ALIASES="${ALIASES} gvlc"
7821 CPPFLAGS=$saved_CPPFLAGS
7825 # Check whether --enable-gnome or --disable-gnome was given.
7826 if test "${enable_gnome+set}" = set; then
7827 enableval="$enable_gnome"
7828 if test x$enable_gnome = xyes; then
7829 # look for gnome-config
7830 # Extract the first word of "gnome-config", so it can be a program name with args.
7831 set dummy gnome-config; ac_word=$2
7832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_word" >&5
7834 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 case "$GNOME_CONFIG" in
7839 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7842 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7847 for ac_dir in $ac_dummy; do
7848 test -z "$ac_dir" && ac_dir=.
7849 if test -f $ac_dir/$ac_word; then
7850 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7855 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7859 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7860 if test -n "$GNOME_CONFIG"; then
7861 echo "$ac_t""$GNOME_CONFIG" 1>&6
7863 echo "$ac_t""no" 1>&6
7866 if test -x ${GNOME_CONFIG}
7868 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7869 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7871 # now look for the gnome.h header
7872 saved_CPPFLAGS=$CPPFLAGS
7873 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7874 for ac_hdr in gnome.h
7876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_hdr" >&5
7879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7888 { (eval echo configure:7889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7890 if test -z "$ac_err"; then
7892 eval "ac_cv_header_$ac_safe=yes"
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7898 eval "ac_cv_header_$ac_safe=no"
7902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7903 echo "$ac_t""yes" 1>&6
7904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7905 cat >> confdefs.h <<EOF
7906 #define $ac_tr_hdr 1
7909 PLUGINS="${PLUGINS} gnome"
7910 ALIASES="${ALIASES} gnome-vlc"
7913 echo "$ac_t""no" 1>&6
7914 { echo "configure: error: Can't find gnome headers. Please install the gnome
7915 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7921 CPPFLAGS=$saved_CPPFLAGS
7926 # Check whether --enable-qt or --disable-qt was given.
7927 if test "${enable_qt+set}" = set; then
7928 enableval="$enable_qt"
7929 if test x$enable_qt = xyes; then
7930 PLUGINS="${PLUGINS} qt"
7931 ALIASES="${ALIASES} qvlc"
7932 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7933 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7934 if test -x ${QTDIR}/bin/moc
7936 MOC=${QTDIR}/bin/moc
7944 # Check whether --enable-kde or --disable-kde was given.
7945 if test "${enable_kde+set}" = set; then
7946 enableval="$enable_kde"
7947 if test x$enable_kde = xyes; then
7948 PLUGINS="${PLUGINS} kde"
7949 ALIASES="${ALIASES} kvlc"
7950 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7951 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7952 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7953 if test -x ${QTDIR}/bin/moc
7955 MOC=${QTDIR}/bin/moc
7963 # Check whether --enable-macosx or --disable-macosx was given.
7964 if test "${enable_macosx+set}" = set; then
7965 enableval="$enable_macosx"
7966 if test x$enable_macosx = xyes
7968 BUILTINS="${BUILTINS} macosx"
7969 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7970 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7971 LIB_COMMON="${LIB_COMMON} -ObjC"
7974 for ac_hdr in Cocoa/Cocoa.h
7976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7978 echo "configure:7979: checking for $ac_hdr" >&5
7979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then
7992 eval "ac_cv_header_$ac_safe=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 eval "ac_cv_header_$ac_safe=no"
8002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8005 cat >> confdefs.h <<EOF
8006 #define $ac_tr_hdr 1
8008 BUILTINS="${BUILTINS} macosx"
8009 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8010 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8011 LIB_COMMON="${LIB_COMMON} -ObjC"
8014 echo "$ac_t""no" 1>&6
8021 # Check whether --enable-qnx or --disable-qnx was given.
8022 if test "${enable_qnx+set}" = set; then
8023 enableval="$enable_qnx"
8027 if test x$enable_qnx != xno
8031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_hdr" >&5
8034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8043 { (eval echo configure:8044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8045 if test -z "$ac_err"; then
8047 eval "ac_cv_header_$ac_safe=yes"
8050 echo "configure: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8053 eval "ac_cv_header_$ac_safe=no"
8057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8058 echo "$ac_t""yes" 1>&6
8059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8060 cat >> confdefs.h <<EOF
8061 #define $ac_tr_hdr 1
8064 PLUGINS="${PLUGINS} qnx"
8065 LIB_QNX="${LIB_QNX} -lasound -lph"
8068 echo "$ac_t""no" 1>&6
8074 # Check whether --enable-win32 or --disable-win32 was given.
8075 if test "${enable_win32+set}" = set; then
8076 enableval="$enable_win32"
8077 if test "x$enableval" != "xno"
8079 PLUGINS="${PLUGINS} win32"
8084 # Check whether --enable-ncurses or --disable-ncurses was given.
8085 if test "${enable_ncurses+set}" = set; then
8086 enableval="$enable_ncurses"
8087 if test x$enable_ncurses = xyes; then
8088 PLUGINS="${PLUGINS} ncurses"
8089 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8094 # Check whether --enable-lirc or --disable-lirc was given.
8095 if test "${enable_lirc+set}" = set; then
8096 enableval="$enable_lirc"
8100 if test x$enable_lirc = xyes
8102 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8103 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8104 echo "configure:8105: checking for lirc/lirc_client.h" >&5
8105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 #include <lirc/lirc_client.h>
8113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8114 { (eval echo configure:8115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8116 if test -z "$ac_err"; then
8118 eval "ac_cv_header_$ac_safe=yes"
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 eval "ac_cv_header_$ac_safe=no"
8128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8129 echo "$ac_t""yes" 1>&6
8130 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8131 echo "configure:8132: checking for lirc_init in -llirc_client" >&5
8132 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8136 ac_save_LIBS="$LIBS"
8137 LIBS="-llirc_client $LIBS"
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* Override any gcc2 internal prototype to avoid an error. */
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8150 if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 eval "ac_cv_lib_$ac_lib_var=yes"
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8157 eval "ac_cv_lib_$ac_lib_var=no"
8160 LIBS="$ac_save_LIBS"
8163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8164 echo "$ac_t""yes" 1>&6
8167 echo "$ac_t""no" 1>&6
8172 echo "$ac_t""no" 1>&6
8176 if test x$have_lirc = xtrue
8178 PLUGINS="${PLUGINS} lirc"
8179 LIB_LIRC="${LIB_LIRC} -llirc_client"
8185 # Check whether --with- or --without- was given.
8186 if test "${with_+set}" = set; then
8192 # Check whether --with-words or --without-words was given.
8193 if test "${with_words+set}" = set; then
8194 withval="$with_words"
8200 ac_cv_c_bigendian=yes
8203 ac_cv_c_bigendian=no
8206 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8207 echo "configure:8208: checking whether the byte order is big-endian" >&5
8208 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 ac_cv_c_bigendian=unknown
8212 cat >conftest.c <<EOF
8213 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8214 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8215 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8216 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8217 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8218 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8219 int main(void) { _a(); _e(); return 0; }
8222 if test -f conftest.c
8224 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8225 && test -f conftest.o
8227 if test "`strings conftest.o | grep BIGenDianSyS`"
8229 ac_cv_c_bigendian=yes
8231 if test "`strings conftest.o | grep LiTTleEnDian`"
8233 ac_cv_c_bigendian=no
8240 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8241 if test x$ac_cv_c_bigendian = xunknown
8243 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8247 if test $ac_cv_c_bigendian = yes
8249 cat >> confdefs.h <<\EOF
8250 #define WORDS_BIGENDIAN 1
8256 # Check whether --with-dll-path or --without-dll-path was given.
8257 if test "${with_dll_path+set}" = set; then
8258 withval="$with_dll_path"
8259 if test "x$withval" != "xno"
8267 # Check whether --enable-gprof or --disable-gprof was given.
8268 if test "${enable_gprof+set}" = set; then
8269 enableval="$enable_gprof"
8270 if test x$enableval = xyes; then GPROF=1; fi
8275 # Check whether --enable-cprof or --disable-cprof was given.
8276 if test "${enable_cprof+set}" = set; then
8277 enableval="$enable_cprof"
8278 if test x$enableval = xyes;
8280 LIB_COMMON="${LIB_COMMON} -lcprof"
8287 # Check whether --enable-pth or --disable-pth was given.
8288 if test "${enable_pth+set}" = set; then
8289 enableval="$enable_pth"
8290 if test x$enableval = xyes; then
8291 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8292 echo "configure:8293: checking for pth_init in -lpth" >&5
8293 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8297 ac_save_LIBS="$LIBS"
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 /* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 eval "ac_cv_lib_$ac_lib_var=yes"
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 eval "ac_cv_lib_$ac_lib_var=no"
8321 LIBS="$ac_save_LIBS"
8324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8325 echo "$ac_t""yes" 1>&6
8326 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8328 cat >> confdefs.h <<EOF
8329 #define $ac_tr_lib 1
8335 echo "$ac_t""no" 1>&6
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 egrep "pth_init" >/dev/null 2>&1; then
8347 cat >> confdefs.h <<\EOF
8348 #define PTH_INIT_IN_PTH_H 1
8360 # Check whether --enable-st or --disable-st was given.
8361 if test "${enable_st+set}" = set; then
8362 enableval="$enable_st"
8363 if test x$enableval = xyes; then
8364 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8365 echo "configure:8366: checking for st_init in -lst" >&5
8366 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8368 echo $ac_n "(cached) $ac_c" 1>&6
8370 ac_save_LIBS="$LIBS"
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8386 eval "ac_cv_lib_$ac_lib_var=yes"
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8391 eval "ac_cv_lib_$ac_lib_var=no"
8394 LIBS="$ac_save_LIBS"
8397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8401 cat >> confdefs.h <<EOF
8402 #define $ac_tr_lib 1
8408 echo "$ac_t""no" 1>&6
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8417 egrep "st_init" >/dev/null 2>&1; then
8420 cat >> confdefs.h <<\EOF
8421 #define ST_INIT_IN_ST_H 1
8433 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8435 # Check whether --enable-plugins or --disable-plugins was given.
8436 if test "${enable_plugins+set}" = set; then
8437 enableval="$enable_plugins"
8438 if test x$enable_plugins = xno
8440 BUILTINS="${BUILTINS} ${PLUGINS}"
8446 cat >> confdefs.h <<EOF
8447 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8450 cat >> confdefs.h <<EOF
8451 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8455 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8456 cat >> confdefs.h <<EOF
8457 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8460 cat >> confdefs.h <<EOF
8461 #define MODULE_SYMBOL $VLC_SYMBOL
8465 DATA_PATH="${ac_tool_prefix}/share/videolan"
8467 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8570 cat > confcache <<\EOF
8571 # This file is a shell script that caches the results of configure
8572 # tests run on this system so they can be shared between configure
8573 # scripts and configure runs. It is not useful on other systems.
8574 # If it contains results you don't want to keep, you may remove or edit it.
8576 # By default, configure uses ./config.cache as the cache file,
8577 # creating it if it does not exist already. You can give configure
8578 # the --cache-file=FILE option to use a different cache file; that is
8579 # what configure does when it calls configure scripts in
8580 # subdirectories, so they share the cache.
8581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8582 # config.status only pays attention to the cache file if you give it the
8583 # --recheck option to rerun configure.
8586 # The following way of writing the cache mishandles newlines in values,
8587 # but we know of no workaround that is simple, portable, and efficient.
8588 # So, don't put newlines in cache variables' values.
8589 # Ultrix sh set writes to stderr and can't be redirected directly,
8590 # and sets the high bit in the cache file unless we assign to the vars.
8592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8594 # `set' does not quote correctly, so add quotes (double-quote substitution
8595 # turns \\\\ into \\, and sed turns \\ into \).
8597 -e "s/'/'\\\\''/g" \
8598 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8601 # `set' quotes correctly as required by POSIX, so do not add quotes.
8602 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8605 if cmp -s $cache_file confcache; then
8608 if test -w $cache_file; then
8609 echo "updating cache $cache_file"
8610 cat confcache > $cache_file
8612 echo "not updating unwritable cache $cache_file"
8617 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8620 # Let make expand exec_prefix.
8621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8623 # Any assignment to VPATH causes Sun make to only execute
8624 # the first set of double-colon rules, so remove it if not needed.
8625 # If there is a colon in the path, we need to keep it.
8626 if test "x$srcdir" = x.; then
8627 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8630 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8632 DEFS=-DHAVE_CONFIG_H
8634 # Without the "./", some shells look in PATH for config.status.
8635 : ${CONFIG_STATUS=./config.status}
8637 echo creating $CONFIG_STATUS
8638 rm -f $CONFIG_STATUS
8639 cat > $CONFIG_STATUS <<EOF
8641 # Generated automatically by configure.
8642 # Run this file to recreate the current configuration.
8643 # This directory was configured as follows,
8644 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8646 # $0 $ac_configure_args
8648 # Compiler output produced by configure, useful for debugging
8649 # configure, is in ./config.log if it exists.
8651 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8654 case "\$ac_option" in
8655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8656 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8657 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8658 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8659 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8661 -help | --help | --hel | --he | --h)
8662 echo "\$ac_cs_usage"; exit 0 ;;
8663 *) echo "\$ac_cs_usage"; exit 1 ;;
8667 ac_given_srcdir=$srcdir
8668 ac_given_INSTALL="$INSTALL"
8670 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8672 cat >> $CONFIG_STATUS <<EOF
8674 # Protect against being on the right side of a sed subst in config.status.
8675 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8676 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8680 s%@CFLAGS@%$CFLAGS%g
8681 s%@CPPFLAGS@%$CPPFLAGS%g
8682 s%@CXXFLAGS@%$CXXFLAGS%g
8683 s%@FFLAGS@%$FFLAGS%g
8685 s%@LDFLAGS@%$LDFLAGS%g
8687 s%@exec_prefix@%$exec_prefix%g
8688 s%@prefix@%$prefix%g
8689 s%@program_transform_name@%$program_transform_name%g
8690 s%@bindir@%$bindir%g
8691 s%@sbindir@%$sbindir%g
8692 s%@libexecdir@%$libexecdir%g
8693 s%@datadir@%$datadir%g
8694 s%@sysconfdir@%$sysconfdir%g
8695 s%@sharedstatedir@%$sharedstatedir%g
8696 s%@localstatedir@%$localstatedir%g
8697 s%@libdir@%$libdir%g
8698 s%@includedir@%$includedir%g
8699 s%@oldincludedir@%$oldincludedir%g
8700 s%@infodir@%$infodir%g
8701 s%@mandir@%$mandir%g
8703 s%@host_alias@%$host_alias%g
8704 s%@host_cpu@%$host_cpu%g
8705 s%@host_vendor@%$host_vendor%g
8706 s%@host_os@%$host_os%g
8707 s%@target@%$target%g
8708 s%@target_alias@%$target_alias%g
8709 s%@target_cpu@%$target_cpu%g
8710 s%@target_vendor@%$target_vendor%g
8711 s%@target_os@%$target_os%g
8713 s%@build_alias@%$build_alias%g
8714 s%@build_cpu@%$build_cpu%g
8715 s%@build_vendor@%$build_vendor%g
8716 s%@build_os@%$build_os%g
8717 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8718 s%@SET_MAKE@%$SET_MAKE%g
8721 s%@RANLIB@%$RANLIB%g
8722 s%@ALLOCA@%$ALLOCA%g
8723 s%@GLIBC21@%$GLIBC21%g
8724 s%@LIBICONV@%$LIBICONV%g
8725 s%@USE_NLS@%$USE_NLS%g
8726 s%@MSGFMT@%$MSGFMT%g
8727 s%@GMSGFMT@%$GMSGFMT%g
8728 s%@XGETTEXT@%$XGETTEXT%g
8729 s%@INTLBISON@%$INTLBISON%g
8730 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8731 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8732 s%@CATALOGS@%$CATALOGS%g
8733 s%@CATOBJEXT@%$CATOBJEXT%g
8734 s%@GMOFILES@%$GMOFILES%g
8735 s%@INTLLIBS@%$INTLLIBS%g
8736 s%@INTLOBJS@%$INTLOBJS%g
8737 s%@POFILES@%$POFILES%g
8739 s%@DATADIRNAME@%$DATADIRNAME%g
8740 s%@INSTOBJEXT@%$INSTOBJEXT%g
8741 s%@GENCAT@%$GENCAT%g
8742 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8743 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8744 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8745 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8746 s%@INSTALL_DATA@%$INSTALL_DATA%g
8747 s%@WINDRES@%$WINDRES%g
8748 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8749 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8750 s%@SDL_CONFIG@%$SDL_CONFIG%g
8751 s%@ESD_CONFIG@%$ESD_CONFIG%g
8752 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8753 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8754 s%@GTK_CONFIG@%$GTK_CONFIG%g
8755 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8756 s%@DATA_PATH@%$DATA_PATH%g
8757 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8760 s%@PLUGINS@%$PLUGINS%g
8761 s%@BUILTINS@%$BUILTINS%g
8762 s%@ALIASES@%$ALIASES%g
8763 s%@INCLUDE@%$INCLUDE%g
8768 s%@OPTIMS@%$OPTIMS%g
8769 s%@TUNING@%$TUNING%g
8770 s%@RELEASE@%$RELEASE%g
8772 s%@DLL_PATH@%$DLL_PATH%g
8773 s%@PACKAGE@%$PACKAGE%g
8774 s%@VERSION@%$VERSION%g
8775 s%@VCD_DEVICE@%$VCD_DEVICE%g
8776 s%@DVD_DEVICE@%$DVD_DEVICE%g
8777 s%@PLDFLAGS@%$PLDFLAGS%g
8778 s%@SOFLAGS@%$SOFLAGS%g
8779 s%@LIB_COMMON@%$LIB_COMMON%g
8780 s%@LIB_VLC@%$LIB_VLC%g
8781 s%@LIB_A52@%$LIB_A52%g
8782 s%@LIB_AA@%$LIB_AA%g
8783 s%@LIB_ALSA@%$LIB_ALSA%g
8784 s%@LIB_ARTS@%$LIB_ARTS%g
8785 s%@LIB_BEOS@%$LIB_BEOS%g
8786 s%@LIB_DARWIN@%$LIB_DARWIN%g
8787 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8788 s%@LIB_DSP@%$LIB_DSP%g
8789 s%@LIB_DVD@%$LIB_DVD%g
8790 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8791 s%@LIB_ESD@%$LIB_ESD%g
8792 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8793 s%@LIB_GGI@%$LIB_GGI%g
8794 s%@LIB_GLIDE@%$LIB_GLIDE%g
8795 s%@LIB_GNOME@%$LIB_GNOME%g
8796 s%@LIB_GTK@%$LIB_GTK%g
8797 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8798 s%@LIB_IMDCT@%$LIB_IMDCT%g
8799 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8800 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8801 s%@LIB_IPV4@%$LIB_IPV4%g
8802 s%@LIB_IPV6@%$LIB_IPV6%g
8803 s%@LIB_KDE@%$LIB_KDE%g
8804 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8805 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8806 s%@LIB_LIRC@%$LIB_LIRC%g
8807 s%@LIB_MACOSX@%$LIB_MACOSX%g
8808 s%@LIB_MAD@%$LIB_MAD%g
8809 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8810 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8811 s%@LIB_NCURSES@%$LIB_NCURSES%g
8812 s%@LIB_QNX@%$LIB_QNX%g
8813 s%@LIB_QT@%$LIB_QT%g
8814 s%@LIB_RC@%$LIB_RC%g
8815 s%@LIB_SDL@%$LIB_SDL%g
8816 s%@LIB_VCD@%$LIB_VCD%g
8817 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8818 s%@LIB_WIN32@%$LIB_WIN32%g
8819 s%@LIB_X11@%$LIB_X11%g
8820 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8821 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8822 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8823 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8824 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8825 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8826 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8827 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8828 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8829 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8830 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8831 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8832 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8833 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8834 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8835 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8836 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8837 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8838 s%@CFLAGS_QT@%$CFLAGS_QT%g
8839 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8840 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8841 s%@CFLAGS_X11@%$CFLAGS_X11%g
8842 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8843 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8844 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8845 s%@NEED_GETOPT@%$NEED_GETOPT%g
8846 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8851 cat >> $CONFIG_STATUS <<\EOF
8853 # Split the substitutions into bite-sized pieces for seds with
8854 # small command number limits, like on Digital OSF/1 and HP-UX.
8855 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8856 ac_file=1 # Number of current file.
8857 ac_beg=1 # First line for current file.
8858 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8861 while $ac_more_lines; do
8862 if test $ac_beg -gt 1; then
8863 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8865 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8867 if test ! -s conftest.s$ac_file; then
8869 rm -f conftest.s$ac_file
8871 if test -z "$ac_sed_cmds"; then
8872 ac_sed_cmds="sed -f conftest.s$ac_file"
8874 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8876 ac_file=`expr $ac_file + 1`
8878 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8881 if test -z "$ac_sed_cmds"; then
8886 cat >> $CONFIG_STATUS <<EOF
8888 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8890 cat >> $CONFIG_STATUS <<\EOF
8891 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8896 *) ac_file_in="${ac_file}.in" ;;
8899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8901 # Remove last slash and all that follows it. Not all systems have dirname.
8902 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8904 # The file is in a subdirectory.
8905 test ! -d "$ac_dir" && mkdir "$ac_dir"
8906 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8907 # A "../" for each directory in $ac_dir_suffix.
8908 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8910 ac_dir_suffix= ac_dots=
8913 case "$ac_given_srcdir" in
8915 if test -z "$ac_dots"; then top_srcdir=.
8916 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8917 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8920 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8923 case "$ac_given_INSTALL" in
8924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8928 echo creating "$ac_file"
8930 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8932 *Makefile*) ac_comsub="1i\\
8933 # $configure_input" ;;
8937 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8939 s%@configure_input@%$configure_input%g
8940 s%@srcdir@%$srcdir%g
8941 s%@top_srcdir@%$top_srcdir%g
8942 s%@INSTALL@%$INSTALL%g
8943 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8947 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8948 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8950 # ac_d sets the value in "#define NAME VALUE" lines.
8951 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8952 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8955 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8956 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8957 ac_uB='\([ ]\)%\1#\2define\3'
8960 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8961 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8962 ac_eB='$%\1#\2define\3'
8966 if test "${CONFIG_HEADERS+set}" != set; then
8968 cat >> $CONFIG_STATUS <<EOF
8969 CONFIG_HEADERS="include/defs.h"
8971 cat >> $CONFIG_STATUS <<\EOF
8973 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8976 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8977 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8978 *) ac_file_in="${ac_file}.in" ;;
8981 echo creating $ac_file
8983 rm -f conftest.frag conftest.in conftest.out
8984 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8985 cat $ac_file_inputs > conftest.in
8989 # Transform confdefs.h into a sed script conftest.vals that substitutes
8990 # the proper values into config.h.in to produce config.h. And first:
8991 # Protect against being on the right side of a sed subst in config.status.
8992 # Protect against being in an unquoted here document in config.status.
8994 cat > conftest.hdr <<\EOF
8997 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9001 sed -n -f conftest.hdr confdefs.h > conftest.vals
9004 # This sed command replaces #undef with comments. This is necessary, for
9005 # example, in the case of _POSIX_SOURCE, which is predefined and required
9006 # on some systems where configure will not decide to define it.
9007 cat >> conftest.vals <<\EOF
9008 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9011 # Break up conftest.vals because some shells have a limit on
9012 # the size of here documents, and old seds have small limits too.
9017 ac_lines=`grep -c . conftest.vals`
9018 # grep -c gives empty output for an empty file on some AIX systems.
9019 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9020 # Write a limited-size here document to conftest.frag.
9021 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9022 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9024 sed -f conftest.frag conftest.in > conftest.out
9026 mv conftest.out conftest.in
9028 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9030 mv conftest.tail conftest.vals
9034 cat >> $CONFIG_STATUS <<\EOF
9035 rm -f conftest.frag conftest.h
9036 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9037 cat conftest.in >> conftest.h
9039 if cmp -s $ac_file conftest.h 2>/dev/null; then
9040 echo "$ac_file is unchanged"
9043 # Remove last slash and all that follows it. Not all systems have dirname.
9044 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9045 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9046 # The file is in a subdirectory.
9047 test ! -d "$ac_dir" && mkdir "$ac_dir"
9050 mv conftest.h $ac_file
9055 cat >> $CONFIG_STATUS <<EOF
9059 cat >> $CONFIG_STATUS <<\EOF
9060 for ac_file in $CONFIG_FILES; do
9061 # Support "outfile[:infile[:infile...]]"
9063 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9065 # PO directories have a Makefile.in generated from Makefile.in.in.
9066 case "$ac_file" in */Makefile.in)
9067 # Adjust a relative srcdir.
9068 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9069 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9070 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9071 # In autoconf-2.13 it is called $ac_given_srcdir.
9072 # In autoconf-2.50 it is called $srcdir.
9073 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9074 case "$ac_given_srcdir" in
9075 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9076 /*) top_srcdir="$ac_given_srcdir" ;;
9077 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9079 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9080 rm -f "$ac_dir/POTFILES"
9081 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9082 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9083 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9084 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9092 chmod +x $CONFIG_STATUS
9093 rm -fr confdefs* $ac_clean_files
9094 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9098 global configuration
9099 --------------------
9101 architecture : ${ARCH}
9102 optimizations : ${OPTIMS}
9104 release: : ${RELEASE}"
9106 if test x${HAVE_VLC} = x1
9111 vlc version : ${VLC_VERSION}
9112 debug mode : ${DEBUG}
9113 cprof/gprof support : ${CPROF}/${GPROF}
9114 need builtin getopt : ${NEED_GETOPT}
9115 built-in modules :${BUILTINS}
9116 plug-in modules :${PLUGINS}
9117 vlc aliases :${ALIASES}"
9121 libdvdcss configuration
9122 -----------------------
9123 can be built : ${CAN_BUILD_LIBDVDCSS}
9124 will be built : ${NEED_LIBDVDCSS}"
9125 if test x${NEED_LIBDVDCSS} = x1
9127 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9128 echo "link statically : ${STATIC_LIBDVDCSS}"
9130 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9134 You may now tune Makefile.opts at your convenience, for instance to choose
9135 which modules get compiled as plugins.
9137 if test x${HAVE_VLC} = x1
9139 echo "To build vlc and its plugins, type \`make'."
9141 if test x${NEED_LIBDVDCSS} = x1
9143 echo "To build libdvdcss only, type \`make libdvdcss'."