3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
48 --enable-mad libmad module (default disabled)"
50 --with-mad=PATH path to libmad"
52 --disable-a52 AC3 support with liba52 (default enabled)"
56 --disable-x11 X11 support (default enabled)"
58 --disable-xvideo XVideo support (default enabled)"
60 --disable-sdl SDL support (default enabled)"
62 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
64 --enable-directx Win32 DirectX support (default enabled on Win32)"
66 --with-directx=PATH Win32 DirectX headers and libraries"
68 --enable-fb Linux framebuffer support (default enabled on Linux)"
70 --enable-mga Linux kernel Matrox support (default disabled)"
72 --enable-ggi GGI support (default disabled)"
74 --with-ggi=PATH path to libggi"
76 --enable-glide Glide (3dfx) support (default disabled)"
78 --with-glide=PATH path to libglide"
80 --enable-aa aalib output (default disabled)"
84 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
86 --enable-esd Esound library support (default disabled)"
88 --enable-arts aRts sound server (default disabled)"
90 --enable-alsa ALSA sound support for Linux (default disabled)"
92 --enable-waveout Win32 waveOut module (default enabled on Win32)"
96 --disable-gtk Gtk+ support (default enabled)"
98 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
100 --enable-gnome Gnome interface support (default disabled)"
102 --enable-qt Qt interface support (default disabled)"
104 --enable-kde KDE interface support (default disabled)"
106 --enable-macosx MacOS X support (default enabled on MacOS X)"
108 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
110 --enable-win32 Win32 interface support (default disabled)"
112 --enable-ncurses ncurses interface support (default disabled)"
114 --enable-lirc lirc support (default disabled)"
118 --with-words=endianness set endianness (big or little)"
120 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
122 --enable-gprof gprof profiling (default disabled)"
124 --enable-cprof cprof profiling (default disabled)"
126 --enable-pth GNU Pth support (default disabled)"
128 --enable-st State Threads (default disabled)"
130 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
132 # Initialize some variables set by options.
133 # The variables have the same names as the options, with
134 # dashes changed to underlines.
136 cache_file=./config.cache
145 program_transform_name=s,x,x,
153 bindir='${exec_prefix}/bin'
154 sbindir='${exec_prefix}/sbin'
155 libexecdir='${exec_prefix}/libexec'
156 datadir='${prefix}/share'
157 sysconfdir='${prefix}/etc'
158 sharedstatedir='${prefix}/com'
159 localstatedir='${prefix}/var'
160 libdir='${exec_prefix}/lib'
161 includedir='${prefix}/include'
162 oldincludedir='/usr/include'
163 infodir='${prefix}/info'
164 mandir='${prefix}/man'
166 # Initialize some other variables.
169 SHELL=${CONFIG_SHELL-/bin/sh}
170 # Maximum number of lines to put in a shell here document.
177 # If the previous option needs an argument, assign it.
178 if test -n "$ac_prev"; then
179 eval "$ac_prev=\$ac_option"
185 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
189 # Accept the important Cygnus configure options, so we can diagnose typos.
193 -bindir | --bindir | --bindi | --bind | --bin | --bi)
195 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
196 bindir="$ac_optarg" ;;
198 -build | --build | --buil | --bui | --bu)
200 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
201 build="$ac_optarg" ;;
203 -cache-file | --cache-file | --cache-fil | --cache-fi \
204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
205 ac_prev=cache_file ;;
206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
208 cache_file="$ac_optarg" ;;
210 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
212 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
214 datadir="$ac_optarg" ;;
216 -disable-* | --disable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 eval "enable_${ac_feature}=no" ;;
225 -enable-* | --enable-*)
226 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
236 eval "enable_${ac_feature}='$ac_optarg'" ;;
238 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
239 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
240 | --exec | --exe | --ex)
241 ac_prev=exec_prefix ;;
242 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
243 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
244 | --exec=* | --exe=* | --ex=*)
245 exec_prefix="$ac_optarg" ;;
247 -gas | --gas | --ga | --g)
248 # Obsolete; use --with-gas.
251 -help | --help | --hel | --he)
252 # Omit some internal or obsolete options to make the list less imposing.
253 # This message is too long to be a string in the A/UX 3.1 sh.
255 Usage: configure [options] [host]
256 Options: [defaults in brackets after descriptions]
258 --cache-file=FILE cache test results in FILE
259 --help print this message
260 --no-create do not create output files
261 --quiet, --silent do not print \`checking...' messages
262 --version print the version of autoconf that created configure
263 Directory and file names:
264 --prefix=PREFIX install architecture-independent files in PREFIX
266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
268 --bindir=DIR user executables in DIR [EPREFIX/bin]
269 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
270 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
271 --datadir=DIR read-only architecture-independent data in DIR
273 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
274 --sharedstatedir=DIR modifiable architecture-independent data in DIR
276 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
277 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
278 --includedir=DIR C header files in DIR [PREFIX/include]
279 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
280 --infodir=DIR info documentation in DIR [PREFIX/info]
281 --mandir=DIR man documentation in DIR [PREFIX/man]
282 --srcdir=DIR find the sources in DIR [configure dir or ..]
283 --program-prefix=PREFIX prepend PREFIX to installed program names
284 --program-suffix=SUFFIX append SUFFIX to installed program names
285 --program-transform-name=PROGRAM
286 run sed PROGRAM on installed program names
290 --build=BUILD configure for building on BUILD [BUILD=HOST]
291 --host=HOST configure for HOST [guessed]
292 --target=TARGET configure for TARGET [TARGET=HOST]
293 Features and packages:
294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
298 --x-includes=DIR X include files are in DIR
299 --x-libraries=DIR X library files are in DIR
301 if test -n "$ac_help"; then
302 echo "--enable and --with options recognized:$ac_help"
306 -host | --host | --hos | --ho)
308 -host=* | --host=* | --hos=* | --ho=*)
311 -includedir | --includedir | --includedi | --included | --include \
312 | --includ | --inclu | --incl | --inc)
313 ac_prev=includedir ;;
314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
315 | --includ=* | --inclu=* | --incl=* | --inc=*)
316 includedir="$ac_optarg" ;;
318 -infodir | --infodir | --infodi | --infod | --info | --inf)
320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
321 infodir="$ac_optarg" ;;
323 -libdir | --libdir | --libdi | --libd)
325 -libdir=* | --libdir=* | --libdi=* | --libd=*)
326 libdir="$ac_optarg" ;;
328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
329 | --libexe | --libex | --libe)
330 ac_prev=libexecdir ;;
331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
332 | --libexe=* | --libex=* | --libe=*)
333 libexecdir="$ac_optarg" ;;
335 -localstatedir | --localstatedir | --localstatedi | --localstated \
336 | --localstate | --localstat | --localsta | --localst \
337 | --locals | --local | --loca | --loc | --lo)
338 ac_prev=localstatedir ;;
339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
340 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
341 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
342 localstatedir="$ac_optarg" ;;
344 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
346 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
347 mandir="$ac_optarg" ;;
350 # Obsolete; use --without-fp.
353 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
357 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
361 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
362 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
363 | --oldin | --oldi | --old | --ol | --o)
364 ac_prev=oldincludedir ;;
365 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
366 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
367 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
368 oldincludedir="$ac_optarg" ;;
370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
373 prefix="$ac_optarg" ;;
375 -program-prefix | --program-prefix | --program-prefi | --program-pref \
376 | --program-pre | --program-pr | --program-p)
377 ac_prev=program_prefix ;;
378 -program-prefix=* | --program-prefix=* | --program-prefi=* \
379 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
380 program_prefix="$ac_optarg" ;;
382 -program-suffix | --program-suffix | --program-suffi | --program-suff \
383 | --program-suf | --program-su | --program-s)
384 ac_prev=program_suffix ;;
385 -program-suffix=* | --program-suffix=* | --program-suffi=* \
386 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
387 program_suffix="$ac_optarg" ;;
389 -program-transform-name | --program-transform-name \
390 | --program-transform-nam | --program-transform-na \
391 | --program-transform-n | --program-transform- \
392 | --program-transform | --program-transfor \
393 | --program-transfo | --program-transf \
394 | --program-trans | --program-tran \
395 | --progr-tra | --program-tr | --program-t)
396 ac_prev=program_transform_name ;;
397 -program-transform-name=* | --program-transform-name=* \
398 | --program-transform-nam=* | --program-transform-na=* \
399 | --program-transform-n=* | --program-transform-=* \
400 | --program-transform=* | --program-transfor=* \
401 | --program-transfo=* | --program-transf=* \
402 | --program-trans=* | --program-tran=* \
403 | --progr-tra=* | --program-tr=* | --program-t=*)
404 program_transform_name="$ac_optarg" ;;
406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
407 | -silent | --silent | --silen | --sile | --sil)
410 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
412 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
414 sbindir="$ac_optarg" ;;
416 -sharedstatedir | --sharedstatedir | --sharedstatedi \
417 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
418 | --sharedst | --shareds | --shared | --share | --shar \
420 ac_prev=sharedstatedir ;;
421 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
422 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
423 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
425 sharedstatedir="$ac_optarg" ;;
427 -site | --site | --sit)
429 -site=* | --site=* | --sit=*)
432 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
434 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
435 srcdir="$ac_optarg" ;;
437 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
438 | --syscon | --sysco | --sysc | --sys | --sy)
439 ac_prev=sysconfdir ;;
440 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
441 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
442 sysconfdir="$ac_optarg" ;;
444 -target | --target | --targe | --targ | --tar | --ta | --t)
446 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
447 target="$ac_optarg" ;;
449 -v | -verbose | --verbose | --verbos | --verbo | --verb)
452 -version | --version | --versio | --versi | --vers)
453 echo "configure generated by autoconf version 2.13"
457 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
458 # Reject names that are not valid shell variable names.
459 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
460 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}='$ac_optarg'" ;;
469 -without-* | --without-*)
470 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
471 # Reject names that are not valid shell variable names.
472 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
475 ac_package=`echo $ac_package| sed 's/-/_/g'`
476 eval "with_${ac_package}=no" ;;
479 # Obsolete; use --with-x.
482 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
483 | --x-incl | --x-inc | --x-in | --x-i)
484 ac_prev=x_includes ;;
485 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
486 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
487 x_includes="$ac_optarg" ;;
489 -x-libraries | --x-libraries | --x-librarie | --x-librari \
490 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
491 ac_prev=x_libraries ;;
492 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
493 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
494 x_libraries="$ac_optarg" ;;
496 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
500 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
501 echo "configure: warning: $ac_option: invalid host type" 1>&2
503 if test "x$nonopt" != xNONE; then
504 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
512 if test -n "$ac_prev"; then
513 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
518 # File descriptor usage:
521 # 2 errors and warnings
522 # 3 some systems may open it to /dev/tty
523 # 4 used on the Kubota Titan
524 # 6 checking for... messages and results
525 # 5 compiler messages saved in config.log
526 if test "$silent" = yes; then
534 This file contains any messages produced by compilers while
535 running configure, to aid debugging if configure makes a mistake.
538 # Strip out --no-create and --no-recursion so they do not pile up.
539 # Also quote any args containing shell metacharacters.
544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
545 | --no-cr | --no-c) ;;
546 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
547 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
549 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
550 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
565 rm -rf conftest* confdefs.h
566 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
569 # A filename unique to this package, relative to the directory that
570 # configure is in, which we can look for to find out if srcdir is correct.
571 ac_unique_file=include/main.h
573 # Find the source files, if location was not specified.
574 if test -z "$srcdir"; then
575 ac_srcdir_defaulted=yes
576 # Try the directory containing this script, then its parent.
578 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
579 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
581 if test ! -r $srcdir/$ac_unique_file; then
585 ac_srcdir_defaulted=no
587 if test ! -r $srcdir/$ac_unique_file; then
588 if test "$ac_srcdir_defaulted" = yes; then
589 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
591 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
594 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
596 # Prefer explicitly selected file to automatically selected ones.
597 if test -z "$CONFIG_SITE"; then
598 if test "x$prefix" != xNONE; then
599 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
601 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
604 for ac_site_file in $CONFIG_SITE; do
605 if test -r "$ac_site_file"; then
606 echo "loading site script $ac_site_file"
611 if test -r "$cache_file"; then
612 echo "loading cache $cache_file"
615 echo "creating cache $cache_file"
620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
621 ac_cpp='$CPP $CPPFLAGS'
622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
624 cross_compiling=$ac_cv_prog_cc_cross
628 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
629 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
630 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
637 ac_n= ac_c='\c' ac_t=
644 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
663 # Do some error checking and defaulting for the host and target type.
665 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # 2. Host defaults to nonopt.
671 # 3. If nonopt is not specified, then host defaults to the current host,
672 # as determined by config.guess.
673 # 4. Target and build default to nonopt.
674 # 5. If nonopt is not specified, then target and build default to host.
676 # The aliases save the names the user supplied, while $host etc.
677 # will get canonicalized.
678 case $host---$target---$nonopt in
679 NONE---*---* | *---NONE---* | *---*---NONE) ;;
680 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
684 # Make sure we can run config.sub.
685 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
689 echo $ac_n "checking host system type""... $ac_c" 1>&6
690 echo "configure:691: checking host system type" >&5
693 case "$host_alias" in
697 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
698 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 *) host_alias=$nonopt ;;
704 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
705 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$host" 1>&6
710 echo $ac_n "checking target system type""... $ac_c" 1>&6
711 echo "configure:712: checking target system type" >&5
714 case "$target_alias" in
717 NONE) target_alias=$host_alias ;;
718 *) target_alias=$nonopt ;;
722 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
723 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$target" 1>&6
728 echo $ac_n "checking build system type""... $ac_c" 1>&6
729 echo "configure:730: checking build system type" >&5
732 case "$build_alias" in
735 NONE) build_alias=$host_alias ;;
736 *) build_alias=$nonopt ;;
740 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
741 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
742 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
743 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo "$ac_t""$build" 1>&6
746 test "$host_alias" != "$target_alias" &&
747 test "$program_prefix$program_suffix$program_transform_name" = \
749 program_prefix=${target_alias}-
753 if test -r src/interface/main.c; then
755 VLC_VERSION="0.2.92-dev"
760 if test -r extras/libdvdcss/libdvdcss.c; then
762 LIBDVDCSS_VERSION="1.0.1-dev"
764 if test -r extras/libdvdcss/csskeys.h; then
765 cat >> confdefs.h <<\EOF
766 #define HAVE_CSSKEYS 1
772 save_CFLAGS="${CFLAGS}"
773 save_LDFLAGS="${LDFLAGS}"
775 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5
777 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
778 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 cat > conftestmake <<\EOF
783 @echo 'ac_maketemp="${MAKE}"'
785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
786 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
787 if test -n "$ac_maketemp"; then
788 eval ac_cv_prog_make_${ac_make}_set=yes
790 eval ac_cv_prog_make_${ac_make}_set=no
794 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
795 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
799 SET_MAKE="MAKE=${MAKE-make}"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy $ac_cv_prog_CC
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
866 set dummy "$ac_dir/$ac_word" "$@"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$CC"; then
891 ac_cv_prog_CC="$CC" # Let the user override the test.
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
909 echo "$ac_t""no" 1>&6
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 cat > conftest.$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935 ac_cv_prog_cc_works=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (./conftest; exit) 2>/dev/null; then
938 ac_cv_prog_cc_cross=no
940 ac_cv_prog_cc_cross=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 ac_cv_prog_cc_works=no
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c <<EOF
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
989 ac_test_CFLAGS="${CFLAGS+set}"
990 ac_save_CFLAGS="$CFLAGS"
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1017 if test "$GCC" = yes; then
1024 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1025 echo "configure:1026: checking how to run the C preprocessor" >&5
1026 # On Suns, sometimes $CPP names a directory.
1027 if test -n "$CPP" && test -d "$CPP"; then
1030 if test -z "$CPP"; then
1031 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 # This must be in double quotes, not single quotes, because CPP may get
1035 # substituted into the Makefile and "${CC-cc}" will confuse make.
1037 # On the NeXT, cc -E runs the code through the compiler's parser,
1038 # not just through cpp.
1039 cat > conftest.$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1046 { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1048 if test -z "$ac_err"; then
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1055 CPP="${CC-cc} -E -traditional-cpp"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063 { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1065 if test -z "$ac_err"; then
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1072 CPP="${CC-cc} -nologo -E"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1096 ac_cv_prog_CPP="$CPP"
1098 CPP="$ac_cv_prog_CPP"
1100 ac_cv_prog_CPP="$CPP"
1102 echo "$ac_t""$CPP" 1>&6
1105 if test $host != $build; then
1106 ac_tool_prefix=${host_alias}-
1111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$RANLIB"; then
1119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1133 RANLIB="$ac_cv_prog_RANLIB"
1134 if test -n "$RANLIB"; then
1135 echo "$ac_t""$RANLIB" 1>&6
1137 echo "$ac_t""no" 1>&6
1141 if test -z "$ac_cv_prog_RANLIB"; then
1142 if test -n "$ac_tool_prefix"; then
1143 # Extract the first word of "ranlib", so it can be a program name with args.
1144 set dummy ranlib; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$RANLIB"; then
1151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_RANLIB="ranlib"
1163 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1166 RANLIB="$ac_cv_prog_RANLIB"
1167 if test -n "$RANLIB"; then
1168 echo "$ac_t""$RANLIB" 1>&6
1170 echo "$ac_t""no" 1>&6
1179 ALL_LINGUAS="de fr no ru"
1181 cat >> confdefs.h <<EOF
1182 #define PACKAGE "vlc"
1185 cat >> confdefs.h <<EOF
1186 #define VERSION "$VLC_VERSION"
1189 # Extract the first word of "ranlib", so it can be a program name with args.
1190 set dummy ranlib; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$RANLIB"; then
1197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212 RANLIB="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1221 echo "configure:1222: checking for strerror in -lcposix" >&5
1222 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 ac_save_LIBS="$LIBS"
1227 LIBS="-lcposix $LIBS"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1231 /* Override any gcc2 internal prototype to avoid an error. */
1232 /* We use char because int might match the return type of a gcc2
1233 builtin and then its argument prototype would still apply. */
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1242 eval "ac_cv_lib_$ac_lib_var=yes"
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 eval "ac_cv_lib_$ac_lib_var=no"
1250 LIBS="$ac_save_LIBS"
1253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1254 echo "$ac_t""yes" 1>&6
1255 LIBS="$LIBS -lcposix"
1257 echo "$ac_t""no" 1>&6
1262 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1263 echo "configure:1264: checking for ANSI C header files" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1280 ac_cv_header_stdc=yes
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 ac_cv_header_stdc=no
1290 if test $ac_cv_header_stdc = yes; then
1291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1292 cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298 egrep "memchr" >/dev/null 2>&1; then
1302 ac_cv_header_stdc=no
1308 if test $ac_cv_header_stdc = yes; then
1309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316 egrep "free" >/dev/null 2>&1; then
1320 ac_cv_header_stdc=no
1326 if test $ac_cv_header_stdc = yes; then
1327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1328 if test "$cross_compiling" = yes; then
1331 cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1335 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1336 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1338 int main () { int i; for (i = 0; i < 256; i++)
1339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 ac_cv_header_stdc=no
1358 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1359 if test $ac_cv_header_stdc = yes; then
1360 cat >> confdefs.h <<\EOF
1361 #define STDC_HEADERS 1
1366 echo $ac_n "checking for working const""... $ac_c" 1>&6
1367 echo "configure:1368: checking for working const" >&5
1368 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1377 /* Ultrix mips cc rejects this. */
1378 typedef int charset[2]; const charset x = {0,0};
1379 /* SunOS 4.1.1 cc rejects this. */
1380 char const *const *ccp;
1382 /* NEC SVR4.0.2 mips cc rejects this. */
1383 struct point {int x, y;};
1384 static struct point const zero = {0,0};
1385 /* AIX XL C 1.02.0.0 rejects this.
1386 It does not let you subtract one const X* pointer from another in an arm
1387 of an if-expression whose if-part is not a constant expression */
1388 const char *g = "string";
1389 ccp = &g + (g ? g-g : 0);
1390 /* HPUX 7.0 cc rejects these. */
1393 ccp = (char const *const *) p;
1394 { /* SCO 3.2v4 cc rejects this. */
1396 char const *s = 0 ? (char *) 0 : (char const *) 0;
1400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1402 const int *foo = &x[0];
1405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1406 typedef const int *iptr;
1410 { /* AIX XL C 1.02.0.0 rejects this saying
1411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1412 struct s { int j; const int *ap[3]; };
1413 struct s *b; b->j = 5;
1415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1433 echo "$ac_t""$ac_cv_c_const" 1>&6
1434 if test $ac_cv_c_const = no; then
1435 cat >> confdefs.h <<\EOF
1441 echo $ac_n "checking for inline""... $ac_c" 1>&6
1442 echo "configure:1443: checking for inline" >&5
1443 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1447 for ac_kw in inline __inline__ __inline; do
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1453 } int $ac_kw foo() {
1456 if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 ac_cv_c_inline=$ac_kw; break
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1468 echo "$ac_t""$ac_cv_c_inline" 1>&6
1469 case "$ac_cv_c_inline" in
1471 no) cat >> confdefs.h <<\EOF
1475 *) cat >> confdefs.h <<EOF
1476 #define inline $ac_cv_c_inline
1481 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1482 echo "configure:1483: checking for off_t" >&5
1483 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <sys/types.h>
1495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1496 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1498 ac_cv_type_off_t=yes
1506 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1507 if test $ac_cv_type_off_t = no; then
1508 cat >> confdefs.h <<\EOF
1514 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1515 echo "configure:1516: checking for size_t" >&5
1516 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <sys/types.h>
1528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1529 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1531 ac_cv_type_size_t=yes
1534 ac_cv_type_size_t=no
1539 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1540 if test $ac_cv_type_size_t = no; then
1541 cat >> confdefs.h <<\EOF
1542 #define size_t unsigned
1547 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1548 # for constant arguments. Useless!
1549 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1550 echo "configure:1551: checking for working alloca.h" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1559 void *p = alloca(2 * sizeof(int));
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1564 ac_cv_header_alloca_h=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 ac_cv_header_alloca_h=no
1574 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1575 if test $ac_cv_header_alloca_h = yes; then
1576 cat >> confdefs.h <<\EOF
1577 #define HAVE_ALLOCA_H 1
1582 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1583 echo "configure:1584: checking for alloca" >&5
1584 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1592 # define alloca __builtin_alloca
1595 # include <malloc.h>
1596 # define alloca _alloca
1599 # include <alloca.h>
1604 # ifndef alloca /* predefined by HP cc +Olibcalls */
1613 char *p = (char *) alloca(1);
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1618 ac_cv_func_alloca_works=yes
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1623 ac_cv_func_alloca_works=no
1628 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1629 if test $ac_cv_func_alloca_works = yes; then
1630 cat >> confdefs.h <<\EOF
1631 #define HAVE_ALLOCA 1
1636 if test $ac_cv_func_alloca_works = no; then
1637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1638 # that cause trouble. Some versions do not even contain alloca or
1639 # contain a buggy version. If you still want to use their alloca,
1640 # use ar to extract alloca.o from them instead of compiling alloca.c.
1641 ALLOCA=alloca.${ac_objext}
1642 cat >> confdefs.h <<\EOF
1647 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether alloca needs Cray hooks" >&5
1649 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #if defined(CRAY) && ! defined(CRAY2)
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "webecray" >/dev/null 2>&1; then
1674 echo "$ac_t""$ac_cv_os_cray" 1>&6
1675 if test $ac_cv_os_cray = yes; then
1676 for ac_func in _getb67 GETB67 getb67; do
1677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_func" >&5
1679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 /* System header to define __stub macros and hopefully few prototypes,
1686 which can conflict with char $ac_func(); below. */
1688 /* Override any gcc2 internal prototype to avoid an error. */
1689 /* We use char because int might match the return type of a gcc2
1690 builtin and then its argument prototype would still apply. */
1695 /* The GNU C library defines this for functions which it implements
1696 to always fail with ENOSYS. Some functions are actually named
1697 something starting with __ and the normal name is an alias. */
1698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 eval "ac_cv_func_$ac_func=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1713 eval "ac_cv_func_$ac_func=no"
1718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 cat >> confdefs.h <<EOF
1721 #define CRAY_STACKSEG_END $ac_func
1726 echo "$ac_t""no" 1>&6
1732 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1733 echo "configure:1734: checking stack direction for C alloca" >&5
1734 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test "$cross_compiling" = yes; then
1738 ac_cv_c_stack_direction=0
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 find_stack_direction ()
1745 static char *addr = 0;
1750 return find_stack_direction ();
1753 return (&dummy > addr) ? 1 : -1;
1757 exit (find_stack_direction() < 0);
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1762 ac_cv_c_stack_direction=1
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 ac_cv_c_stack_direction=-1
1774 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1775 cat >> confdefs.h <<EOF
1776 #define STACK_DIRECTION $ac_cv_c_stack_direction
1781 for ac_hdr in unistd.h
1783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1785 echo "configure:1786: checking for $ac_hdr" >&5
1786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1795 { (eval echo configure:1796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1797 if test -z "$ac_err"; then
1799 eval "ac_cv_header_$ac_safe=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_header_$ac_safe=no"
1809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1812 cat >> confdefs.h <<EOF
1813 #define $ac_tr_hdr 1
1817 echo "$ac_t""no" 1>&6
1821 for ac_func in getpagesize
1823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_func" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $ac_func(); below. */
1834 /* Override any gcc2 internal prototype to avoid an error. */
1835 /* We use char because int might match the return type of a gcc2
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1854 eval "ac_cv_func_$ac_func=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_func_$ac_func=no"
1864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1867 cat >> confdefs.h <<EOF
1868 #define $ac_tr_func 1
1872 echo "$ac_t""no" 1>&6
1876 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1877 echo "configure:1878: checking for working mmap" >&5
1878 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test "$cross_compiling" = yes; then
1882 ac_cv_func_mmap_fixed_mapped=no
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1888 /* Thanks to Mike Haertel and Jim Avera for this test.
1889 Here is a matrix of mmap possibilities:
1890 mmap private not fixed
1891 mmap private fixed at somewhere currently unmapped
1892 mmap private fixed at somewhere already mapped
1893 mmap shared not fixed
1894 mmap shared fixed at somewhere currently unmapped
1895 mmap shared fixed at somewhere already mapped
1896 For private mappings, we should verify that changes cannot be read()
1897 back from the file, nor mmap's back from the file at a different
1898 address. (There have been systems where private was not correctly
1899 implemented like the infamous i386 svr4.0, and systems where the
1900 VM page cache was not coherent with the filesystem buffer cache
1901 like early versions of FreeBSD and possibly contemporary NetBSD.)
1902 For shared mappings, we should conversely verify that changes get
1903 propogated back to all the places they're supposed to be.
1905 Grep wants private fixed already mapped.
1906 The main things grep needs to know about mmap are:
1907 * does it exist and is it safe to write into the mmap'd area
1908 * how to use it (BSD variants) */
1909 #include <sys/types.h>
1911 #include <sys/mman.h>
1913 #include <sys/stat.h>
1915 #ifdef HAVE_UNISTD_H
1916 # include <unistd.h>
1919 /* This mess was copied from the GNU getpagesize.h. */
1920 #ifndef HAVE_GETPAGESIZE
1922 /* Assume that all systems that can run configure have sys/param.h. */
1923 # ifndef HAVE_SYS_PARAM_H
1924 # define HAVE_SYS_PARAM_H 1
1927 # ifdef _SC_PAGESIZE
1928 # define getpagesize() sysconf(_SC_PAGESIZE)
1929 # else /* no _SC_PAGESIZE */
1930 # ifdef HAVE_SYS_PARAM_H
1931 # include <sys/param.h>
1932 # ifdef EXEC_PAGESIZE
1933 # define getpagesize() EXEC_PAGESIZE
1934 # else /* no EXEC_PAGESIZE */
1936 # define getpagesize() NBPG * CLSIZE
1939 # endif /* no CLSIZE */
1940 # else /* no NBPG */
1942 # define getpagesize() NBPC
1943 # else /* no NBPC */
1945 # define getpagesize() PAGESIZE
1946 # endif /* PAGESIZE */
1947 # endif /* no NBPC */
1948 # endif /* no NBPG */
1949 # endif /* no EXEC_PAGESIZE */
1950 # else /* no HAVE_SYS_PARAM_H */
1951 # define getpagesize() 8192 /* punt totally */
1952 # endif /* no HAVE_SYS_PARAM_H */
1953 # endif /* no _SC_PAGESIZE */
1955 #endif /* no HAVE_GETPAGESIZE */
1958 extern "C" { void *malloc(unsigned); }
1966 char *data, *data2, *data3;
1970 pagesize = getpagesize();
1973 * First, make a file with some known garbage in it.
1975 data = (char*)malloc(pagesize);
1978 for (i = 0; i < pagesize; ++i)
1979 *(data + i) = rand();
1981 fd = creat("conftestmmap", 0600);
1984 if (write(fd, data, pagesize) != pagesize)
1989 * Next, try to mmap the file at a fixed address which
1990 * already has something else allocated at it. If we can,
1991 * also make sure that we see the same garbage.
1993 fd = open("conftestmmap", O_RDWR);
1996 data2 = (char*)malloc(2 * pagesize);
1999 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2000 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2003 for (i = 0; i < pagesize; ++i)
2004 if (*(data + i) != *(data2 + i))
2008 * Finally, make sure that changes to the mapped area
2009 * do not percolate back to the file as seen by read().
2010 * (This is a bug on some variants of i386 svr4.0.)
2012 for (i = 0; i < pagesize; ++i)
2013 *(data2 + i) = *(data2 + i) + 1;
2014 data3 = (char*)malloc(pagesize);
2017 if (read(fd, data3, pagesize) != pagesize)
2019 for (i = 0; i < pagesize; ++i)
2020 if (*(data + i) != *(data3 + i))
2023 unlink("conftestmmap");
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030 ac_cv_func_mmap_fixed_mapped=yes
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2035 ac_cv_func_mmap_fixed_mapped=no
2042 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2043 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2044 cat >> confdefs.h <<\EOF
2051 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether we are using the GNU C Library 2.1 or newer" >&5
2053 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2060 #include <features.h>
2061 #ifdef __GNU_LIBRARY__
2062 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2069 egrep "Lucky GNU user" >/dev/null 2>&1; then
2071 ac_cv_gnu_library_2_1=yes
2074 ac_cv_gnu_library_2_1=no
2082 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2084 GLIBC21="$ac_cv_gnu_library_2_1"
2088 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2089 stdlib.h string.h unistd.h sys/param.h
2091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_hdr" >&5
2094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2105 if test -z "$ac_err"; then
2107 eval "ac_cv_header_$ac_safe=yes"
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 eval "ac_cv_header_$ac_safe=no"
2117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2120 cat >> confdefs.h <<EOF
2121 #define $ac_tr_hdr 1
2125 echo "$ac_t""no" 1>&6
2129 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2130 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2131 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_func" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $ac_func(); below. */
2144 /* Override any gcc2 internal prototype to avoid an error. */
2145 /* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 eval "ac_cv_func_$ac_func=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_func_$ac_func=no"
2174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2177 cat >> confdefs.h <<EOF
2178 #define $ac_tr_func 1
2182 echo "$ac_t""no" 1>&6
2189 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2190 if test "${with_libiconv_prefix+set}" = set; then
2191 withval="$with_libiconv_prefix"
2193 for dir in `echo "$withval" | tr : ' '`; do
2194 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2195 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2201 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2202 echo "configure:2203: checking for iconv" >&5
2203 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2207 am_cv_func_iconv="no, consider installing GNU libiconv"
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2215 iconv_t cd = iconv_open("","");
2216 iconv(cd,NULL,NULL,NULL,NULL);
2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2222 am_cv_func_iconv=yes
2224 echo "configure: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2228 if test "$am_cv_func_iconv" != yes; then
2229 am_save_LIBS="$LIBS"
2230 LIBS="$LIBS -liconv"
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2237 iconv_t cd = iconv_open("","");
2238 iconv(cd,NULL,NULL,NULL,NULL);
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 am_cv_func_iconv=yes
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2251 LIBS="$am_save_LIBS"
2256 echo "$ac_t""$am_cv_func_iconv" 1>&6
2257 if test "$am_cv_func_iconv" = yes; then
2258 cat >> confdefs.h <<\EOF
2259 #define HAVE_ICONV 1
2262 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2263 echo "configure:2264: checking for iconv declaration" >&5
2264 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2278 #if defined(__STDC__) || defined(__cplusplus)
2279 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2288 if { (eval echo configure:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2290 am_cv_proto_iconv_arg1=""
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 am_cv_proto_iconv_arg1="const"
2298 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);"
2301 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2302 echo "$ac_t""${ac_t:-
2303 }$am_cv_proto_iconv" 1>&6
2304 cat >> confdefs.h <<EOF
2305 #define ICONV_CONST $am_cv_proto_iconv_arg1
2310 if test "$am_cv_lib_iconv" = yes; then
2316 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2317 echo "configure:2318: checking for nl_langinfo and CODESET" >&5
2318 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 #include <langinfo.h>
2326 char* cs = nl_langinfo(CODESET);
2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331 am_cv_langinfo_codeset=yes
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 am_cv_langinfo_codeset=no
2342 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2343 if test $am_cv_langinfo_codeset = yes; then
2344 cat >> confdefs.h <<\EOF
2345 #define HAVE_LANGINFO_CODESET 1
2350 if test $ac_cv_header_locale_h = yes; then
2351 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2352 echo "configure:2353: checking for LC_MESSAGES" >&5
2353 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 am_cv_val_LC_MESSAGES=yes
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 am_cv_val_LC_MESSAGES=no
2376 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2377 if test $am_cv_val_LC_MESSAGES = yes; then
2378 cat >> confdefs.h <<\EOF
2379 #define HAVE_LC_MESSAGES 1
2384 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2385 echo "configure:2386: checking whether NLS is requested" >&5
2386 # Check whether --enable-nls or --disable-nls was given.
2387 if test "${enable_nls+set}" = set; then
2388 enableval="$enable_nls"
2394 echo "$ac_t""$USE_NLS" 1>&6
2397 BUILD_INCLUDED_LIBINTL=no
2398 USE_INCLUDED_LIBINTL=no
2401 if test "$USE_NLS" = "yes"; then
2402 cat >> confdefs.h <<\EOF
2403 #define ENABLE_NLS 1
2406 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2407 echo "configure:2408: checking whether included gettext is requested" >&5
2408 # Check whether --with-included-gettext or --without-included-gettext was given.
2409 if test "${with_included_gettext+set}" = set; then
2410 withval="$with_included_gettext"
2411 nls_cv_force_use_gnu_gettext=$withval
2413 nls_cv_force_use_gnu_gettext=no
2416 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2418 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2419 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2425 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2426 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2427 echo "configure:2428: checking for libintl.h" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 #include <libintl.h>
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437 { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439 if test -z "$ac_err"; then
2441 eval "ac_cv_header_$ac_safe=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_header_$ac_safe=no"
2451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2454 echo "configure:2455: checking for GNU gettext in libc" >&5
2455 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 #include <libintl.h>
2462 extern int _nl_msg_cat_cntr;
2464 bindtextdomain ("", "");
2465 return (int) gettext ("") + _nl_msg_cat_cntr
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 gt_cv_func_gnugettext1_libc=yes
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 gt_cv_func_gnugettext1_libc=no
2480 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2482 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2483 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2484 echo "configure:2485: checking for GNU gettext in libintl" >&5
2485 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 gt_save_LIBS="$LIBS"
2489 LIBS="$LIBS -lintl $LIBICONV"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <libintl.h>
2494 extern int _nl_msg_cat_cntr;
2496 bindtextdomain ("", "");
2497 return (int) gettext ("") + _nl_msg_cat_cntr
2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2502 gt_cv_func_gnugettext1_libintl=yes
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2507 gt_cv_func_gnugettext1_libintl=no
2510 LIBS="$gt_save_LIBS"
2513 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2516 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2517 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2518 && test "$PACKAGE" != gettext; }; then
2519 cat >> confdefs.h <<\EOF
2520 #define HAVE_GETTEXT 1
2524 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2525 INTLLIBS="-lintl $LIBICONV"
2528 gt_save_LIBS="$LIBS"
2529 LIBS="$LIBS $INTLLIBS"
2530 for ac_func in dcgettext
2532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_func" >&5
2534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 /* System header to define __stub macros and hopefully few prototypes,
2541 which can conflict with char $ac_func(); below. */
2543 /* Override any gcc2 internal prototype to avoid an error. */
2544 /* We use char because int might match the return type of a gcc2
2545 builtin and then its argument prototype would still apply. */
2550 /* The GNU C library defines this for functions which it implements
2551 to always fail with ENOSYS. Some functions are actually named
2552 something starting with __ and the normal name is an alias. */
2553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2563 eval "ac_cv_func_$ac_func=yes"
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2568 eval "ac_cv_func_$ac_func=no"
2573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2576 cat >> confdefs.h <<EOF
2577 #define $ac_tr_func 1
2581 echo "$ac_t""no" 1>&6
2585 LIBS="$gt_save_LIBS"
2587 # Extract the first word of "msgfmt", so it can be a program name with args.
2588 set dummy msgfmt; ac_word=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2600 for ac_dir in $PATH; do
2601 test -z "$ac_dir" && ac_dir=.
2602 if test -f $ac_dir/$ac_word; then
2603 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2604 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2610 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2614 MSGFMT="$ac_cv_path_MSGFMT"
2615 if test "$MSGFMT" != ":"; then
2616 echo "$ac_t""$MSGFMT" 1>&6
2618 echo "$ac_t""no" 1>&6
2621 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2622 set dummy gmsgfmt; ac_word=$2
2623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_word" >&5
2625 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2630 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2633 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2638 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2641 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2646 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2650 GMSGFMT="$ac_cv_path_GMSGFMT"
2651 if test -n "$GMSGFMT"; then
2652 echo "$ac_t""$GMSGFMT" 1>&6
2654 echo "$ac_t""no" 1>&6
2658 # Extract the first word of "xgettext", so it can be a program name with args.
2659 set dummy xgettext; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2671 for ac_dir in $PATH; do
2672 test -z "$ac_dir" && ac_dir=.
2673 if test -f $ac_dir/$ac_word; then
2674 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2675 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2685 XGETTEXT="$ac_cv_path_XGETTEXT"
2686 if test "$XGETTEXT" != ":"; then
2687 echo "$ac_t""$XGETTEXT" 1>&6
2689 echo "$ac_t""no" 1>&6
2697 echo "$ac_t""no" 1>&6
2701 if test "$CATOBJEXT" = "NONE"; then
2702 nls_cv_use_gnu_gettext=yes
2706 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2707 INTLOBJS="\$(GETTOBJS)"
2708 # Extract the first word of "msgfmt", so it can be a program name with args.
2709 set dummy msgfmt; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2721 for ac_dir in $PATH; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2724 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2725 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2735 MSGFMT="$ac_cv_path_MSGFMT"
2736 if test "$MSGFMT" != ":"; then
2737 echo "$ac_t""$MSGFMT" 1>&6
2739 echo "$ac_t""no" 1>&6
2742 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2743 set dummy gmsgfmt; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2751 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2754 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2759 for ac_dir in $ac_dummy; do
2760 test -z "$ac_dir" && ac_dir=.
2761 if test -f $ac_dir/$ac_word; then
2762 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2767 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2771 GMSGFMT="$ac_cv_path_GMSGFMT"
2772 if test -n "$GMSGFMT"; then
2773 echo "$ac_t""$GMSGFMT" 1>&6
2775 echo "$ac_t""no" 1>&6
2778 # Extract the first word of "xgettext", so it can be a program name with args.
2779 set dummy xgettext; ac_word=$2
2780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_word" >&5
2782 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2787 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2791 for ac_dir in $PATH; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2795 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2805 XGETTEXT="$ac_cv_path_XGETTEXT"
2806 if test "$XGETTEXT" != ":"; then
2807 echo "$ac_t""$XGETTEXT" 1>&6
2809 echo "$ac_t""no" 1>&6
2813 BUILD_INCLUDED_LIBINTL=yes
2814 USE_INCLUDED_LIBINTL=yes
2816 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2817 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2820 if test "$GMSGFMT" != ":"; then
2821 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2824 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2829 if test "$XGETTEXT" != ":"; then
2830 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2833 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2843 if test "$PACKAGE" = gettext; then
2844 BUILD_INCLUDED_LIBINTL=yes
2847 for ac_prog in bison
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_word" >&5
2853 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 if test -n "$INTLBISON"; then
2857 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2861 for ac_dir in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 ac_cv_prog_INTLBISON="$ac_prog"
2871 INTLBISON="$ac_cv_prog_INTLBISON"
2872 if test -n "$INTLBISON"; then
2873 echo "$ac_t""$INTLBISON" 1>&6
2875 echo "$ac_t""no" 1>&6
2878 test -n "$INTLBISON" && break
2881 if test -z "$INTLBISON"; then
2884 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2885 echo "configure:2886: checking version of bison" >&5
2886 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2887 case $ac_prog_version in
2888 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2889 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2890 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2891 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2893 echo "$ac_t""$ac_prog_version" 1>&6
2895 if test $ac_verc_fail = yes; then
2899 for lang in $ALL_LINGUAS; do
2900 GMOFILES="$GMOFILES $lang.gmo"
2901 POFILES="$POFILES $lang.po"
2915 nls_cv_header_libgt=
2927 if test "x$CATOBJEXT" != "x"; then
2928 if test "x$ALL_LINGUAS" = "x"; then
2931 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2932 echo "configure:2933: checking for catalogs to be installed" >&5
2934 for presentlang in $ALL_LINGUAS; do
2936 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2937 # Use the presentlang catalog if desiredlang is
2938 # a. equal to presentlang, or
2939 # b. a variant of presentlang (because in this case,
2940 # presentlang can be used as a fallback for messages
2941 # which are not translated in the desiredlang catalog).
2942 case "$desiredlang" in
2943 "$presentlang"*) useit=yes;;
2946 if test $useit = yes; then
2947 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2950 LINGUAS=$NEW_LINGUAS
2951 echo "$ac_t""$LINGUAS" 1>&6
2954 if test -n "$LINGUAS"; then
2955 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2960 if test -n "$ac_aux_dir"; then
2961 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2963 if test -z "$MKINSTALLDIRS"; then
2964 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2968 INTL_LIBTOOL_SUFFIX_PREFIX=
2972 # Find a good install program. We prefer a C program (faster),
2973 # so one script is as good as another. But avoid the broken or
2974 # incompatible versions:
2975 # SysV /etc/install, /usr/sbin/install
2976 # SunOS /usr/etc/install
2977 # IRIX /sbin/install
2979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2982 # ./install, which can be erroneously created by make from ./install.sh.
2983 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2984 echo "configure:2985: checking for a BSD compatible install" >&5
2985 if test -z "$INSTALL"; then
2986 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2990 for ac_dir in $PATH; do
2991 # Account for people who put trailing slashes in PATH elements.
2993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2995 # OSF1 and SCO ODT 3.0 have their own names for install.
2996 # Don't use installbsd from OSF since it installs stuff as root
2998 for ac_prog in ginstall scoinst install; do
2999 if test -f $ac_dir/$ac_prog; then
3000 if test $ac_prog = install &&
3001 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3002 # AIX install. It has an incompatible calling convention.
3005 ac_cv_path_install="$ac_dir/$ac_prog -c"
3016 if test "${ac_cv_path_install+set}" = set; then
3017 INSTALL="$ac_cv_path_install"
3019 # As a last resort, use the slow shell script. We don't cache a
3020 # path for INSTALL within a source directory, because that will
3021 # break other packages using the cache if that directory is
3022 # removed, or if the path is relative.
3023 INSTALL="$ac_install_sh"
3026 echo "$ac_t""$INSTALL" 1>&6
3028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3029 # It thinks the first close brace ends the variable substitution.
3030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3037 case x"${target_os}" in
3052 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}windres; ac_word=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3056 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 if test -n "$WINDRES"; then
3060 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3064 for ac_dir in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir=.
3066 if test -f $ac_dir/$ac_word; then
3067 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3074 WINDRES="$ac_cv_prog_WINDRES"
3075 if test -n "$WINDRES"; then
3076 echo "$ac_t""$WINDRES" 1>&6
3078 echo "$ac_t""no" 1>&6
3082 if test -z "$ac_cv_prog_WINDRES"; then
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "windres", so it can be a program name with args.
3085 set dummy windres; ac_word=$2
3086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3087 echo "configure:3088: checking for $ac_word" >&5
3088 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 if test -n "$WINDRES"; then
3092 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3096 for ac_dir in $ac_dummy; do
3097 test -z "$ac_dir" && ac_dir=.
3098 if test -f $ac_dir/$ac_word; then
3099 ac_cv_prog_WINDRES="windres"
3104 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3107 WINDRES="$ac_cv_prog_WINDRES"
3108 if test -n "$WINDRES"; then
3109 echo "$ac_t""$WINDRES" 1>&6
3111 echo "$ac_t""no" 1>&6
3119 LIB_IPV4="${LIB_IPV4} -lws2_32"
3120 LIB_RC="${LIB_RC} -lws2_32"
3124 LIB_X11="${LIB_X11} -lsocket"
3125 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3129 LIB_IPV4="${LIB_IPV4} -lbind"
3130 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3131 PLDFLAGS="${PLDFLAGS} -nostart"
3138 for ac_func in gettimeofday select strerror strtod strtol isatty
3140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_func" >&5
3142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* System header to define __stub macros and hopefully few prototypes,
3149 which can conflict with char $ac_func(); below. */
3151 /* Override any gcc2 internal prototype to avoid an error. */
3152 /* We use char because int might match the return type of a gcc2
3153 builtin and then its argument prototype would still apply. */
3158 /* The GNU C library defines this for functions which it implements
3159 to always fail with ENOSYS. Some functions are actually named
3160 something starting with __ and the normal name is an alias. */
3161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3171 eval "ac_cv_func_$ac_func=yes"
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3176 eval "ac_cv_func_$ac_func=no"
3181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3184 cat >> confdefs.h <<EOF
3185 #define $ac_tr_func 1
3189 echo "$ac_t""no" 1>&6
3193 echo $ac_n "checking for connect""... $ac_c" 1>&6
3194 echo "configure:3195: checking for connect" >&5
3195 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 /* System header to define __stub macros and hopefully few prototypes,
3202 which can conflict with char connect(); below. */
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3211 /* The GNU C library defines this for functions which it implements
3212 to always fail with ENOSYS. Some functions are actually named
3213 something starting with __ and the normal name is an alias. */
3214 #if defined (__stub_connect) || defined (__stub___connect)
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 eval "ac_cv_func_connect=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_func_connect=no"
3234 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3238 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3241 echo "configure:3242: checking for connect in -lsocket" >&5
3242 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 ac_save_LIBS="$LIBS"
3247 LIBS="-lsocket $LIBS"
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262 eval "ac_cv_lib_$ac_lib_var=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_lib_$ac_lib_var=no"
3270 LIBS="$ac_save_LIBS"
3273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 LIB_IPV4="${LIB_IPV4} -lsocket"
3276 LIB_VLC="${LIB_VLC} -lsocket"
3279 echo "$ac_t""no" 1>&6
3284 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3285 echo "configure:3286: checking for gethostbyname" >&5
3286 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 /* System header to define __stub macros and hopefully few prototypes,
3293 which can conflict with char gethostbyname(); below. */
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gethostbyname();
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3315 eval "ac_cv_func_gethostbyname=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_func_gethostbyname=no"
3325 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3329 echo "$ac_t""no" 1>&6
3331 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3332 echo "configure:3333: checking for gethostbyname in -lnsl" >&5
3333 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 ac_save_LIBS="$LIBS"
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345 char gethostbyname();
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3353 eval "ac_cv_lib_$ac_lib_var=yes"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3358 eval "ac_cv_lib_$ac_lib_var=no"
3361 LIBS="$ac_save_LIBS"
3364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 LIB_IPV4="${LIB_IPV4} -lnsl"
3368 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3375 echo "configure:3376: checking for gethostbyname" >&5
3376 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 /* System header to define __stub macros and hopefully few prototypes,
3383 which can conflict with char gethostbyname(); below. */
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3388 char gethostbyname();
3392 /* The GNU C library defines this for functions which it implements
3393 to always fail with ENOSYS. Some functions are actually named
3394 something starting with __ and the normal name is an alias. */
3395 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 eval "ac_cv_func_gethostbyname=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 eval "ac_cv_func_gethostbyname=no"
3415 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3419 echo "$ac_t""no" 1>&6
3421 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3422 echo "configure:3423: checking for gethostbyname in -lbind" >&5
3423 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 ac_save_LIBS="$LIBS"
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3435 char gethostbyname();
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 eval "ac_cv_lib_$ac_lib_var=yes"
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3448 eval "ac_cv_lib_$ac_lib_var=no"
3451 LIBS="$ac_save_LIBS"
3454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 LIB_IPV4="${LIB_IPV4} -lbind"
3458 echo "$ac_t""no" 1>&6
3464 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3465 echo "configure:3466: checking for nanosleep" >&5
3466 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 /* System header to define __stub macros and hopefully few prototypes,
3473 which can conflict with char nanosleep(); below. */
3475 /* Override any gcc2 internal prototype to avoid an error. */
3476 /* We use char because int might match the return type of a gcc2
3477 builtin and then its argument prototype would still apply. */
3482 /* The GNU C library defines this for functions which it implements
3483 to always fail with ENOSYS. Some functions are actually named
3484 something starting with __ and the normal name is an alias. */
3485 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 eval "ac_cv_func_nanosleep=yes"
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 eval "ac_cv_func_nanosleep=no"
3505 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3506 echo "$ac_t""yes" 1>&6
3509 echo "$ac_t""no" 1>&6
3511 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3512 echo "configure:3513: checking for nanosleep in -lrt" >&5
3513 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 ac_save_LIBS="$LIBS"
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 /* We use char because int might match the return type of a gcc2
3524 builtin and then its argument prototype would still apply. */
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 eval "ac_cv_lib_$ac_lib_var=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_lib_$ac_lib_var=no"
3541 LIBS="$ac_save_LIBS"
3544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3545 echo "$ac_t""yes" 1>&6
3546 LIB_VLC="${LIB_VLC} -lrt"
3548 echo "$ac_t""no" 1>&6
3550 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3551 echo "configure:3552: checking for nanosleep in -lposix4" >&5
3552 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 ac_save_LIBS="$LIBS"
3557 LIBS="-lposix4 $LIBS"
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3572 eval "ac_cv_lib_$ac_lib_var=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3577 eval "ac_cv_lib_$ac_lib_var=no"
3580 LIBS="$ac_save_LIBS"
3583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3585 LIB_VLC="${LIB_VLC} -lposix4"
3587 echo "$ac_t""no" 1>&6
3596 for ac_func in usleep
3598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3599 echo "configure:3600: checking for $ac_func" >&5
3600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 /* System header to define __stub macros and hopefully few prototypes,
3607 which can conflict with char $ac_func(); below. */
3609 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3616 /* The GNU C library defines this for functions which it implements
3617 to always fail with ENOSYS. Some functions are actually named
3618 something starting with __ and the normal name is an alias. */
3619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 eval "ac_cv_func_$ac_func=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_func_$ac_func=no"
3639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3642 cat >> confdefs.h <<EOF
3643 #define $ac_tr_func 1
3647 echo "$ac_t""no" 1>&6
3651 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3652 echo "configure:3653: checking for inet_aton" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* System header to define __stub macros and hopefully few prototypes,
3660 which can conflict with char inet_aton(); below. */
3662 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3669 /* The GNU C library defines this for functions which it implements
3670 to always fail with ENOSYS. Some functions are actually named
3671 something starting with __ and the normal name is an alias. */
3672 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3682 eval "ac_cv_func_inet_aton=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_func_inet_aton=no"
3692 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3696 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3699 echo "configure:3700: checking for inet_aton in -lresolv" >&5
3700 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_save_LIBS="$LIBS"
3705 LIBS="-lresolv $LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_lib_$ac_lib_var=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_lib_$ac_lib_var=no"
3728 LIBS="$ac_save_LIBS"
3731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 LIB_VLC="${LIB_VLC} -lresolv"
3735 echo "$ac_t""no" 1>&6
3741 for ac_func in vasprintf
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 eval "ac_cv_func_$ac_func=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_func_$ac_func=no"
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_func 1
3792 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_func" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char $ac_func(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_func_$ac_func=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func_$ac_func=no"
3839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3842 cat >> confdefs.h <<EOF
3843 #define $ac_tr_func 1
3847 echo "$ac_t""no" 1>&6
3851 for ac_func in memalign valloc
3853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3854 echo "configure:3855: checking for $ac_func" >&5
3855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* System header to define __stub macros and hopefully few prototypes,
3862 which can conflict with char $ac_func(); below. */
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3871 /* The GNU C library defines this for functions which it implements
3872 to always fail with ENOSYS. Some functions are actually named
3873 something starting with __ and the normal name is an alias. */
3874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_func_$ac_func=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_func_$ac_func=no"
3894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3897 cat >> confdefs.h <<EOF
3898 #define $ac_tr_func 1
3902 echo "$ac_t""no" 1>&6
3907 for ac_func in sigrelse
3909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3910 echo "configure:3911: checking for $ac_func" >&5
3911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* System header to define __stub macros and hopefully few prototypes,
3918 which can conflict with char $ac_func(); below. */
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3927 /* The GNU C library defines this for functions which it implements
3928 to always fail with ENOSYS. Some functions are actually named
3929 something starting with __ and the normal name is an alias. */
3930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940 eval "ac_cv_func_$ac_func=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3945 eval "ac_cv_func_$ac_func=no"
3950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3951 echo "$ac_t""yes" 1>&6
3952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3953 cat >> confdefs.h <<EOF
3954 #define $ac_tr_func 1
3958 echo "$ac_t""no" 1>&6
3962 for ac_func in getpwuid_r getpwuid
3964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3965 echo "configure:3966: checking for $ac_func" >&5
3966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* System header to define __stub macros and hopefully few prototypes,
3973 which can conflict with char $ac_func(); below. */
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3982 /* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 eval "ac_cv_func_$ac_func=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_func_$ac_func=no"
4005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4008 cat >> confdefs.h <<EOF
4009 #define $ac_tr_func 1
4013 echo "$ac_t""no" 1>&6
4019 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4020 echo "configure:4021: checking for getopt_long" >&5
4021 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* System header to define __stub macros and hopefully few prototypes,
4028 which can conflict with char getopt_long(); below. */
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4037 /* The GNU C library defines this for functions which it implements
4038 to always fail with ENOSYS. Some functions are actually named
4039 something starting with __ and the normal name is an alias. */
4040 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 eval "ac_cv_func_getopt_long=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4055 eval "ac_cv_func_getopt_long=no"
4060 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 cat >> confdefs.h <<\EOF
4063 #define HAVE_GETOPT_LONG 1
4067 echo "$ac_t""no" 1>&6
4068 # FreeBSD has a gnugetopt library for this:
4069 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4070 echo "configure:4071: checking for getopt_long in -lgnugetopt" >&5
4071 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 ac_save_LIBS="$LIBS"
4076 LIBS="-lgnugetopt $LIBS"
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4091 eval "ac_cv_lib_$ac_lib_var=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 eval "ac_cv_lib_$ac_lib_var=no"
4099 LIBS="$ac_save_LIBS"
4102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_GETOPT_LONG 1
4107 LIB_VLC="${LIB_VLC} -lgnugetopt"
4109 echo "$ac_t""no" 1>&6
4116 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4117 echo "configure:4118: checking return type of signal handlers" >&5
4118 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 #include <sys/types.h>
4130 extern "C" void (*signal (int, void (*)(int)))(int);
4132 void (*signal ()) ();
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 ac_cv_type_signal=void
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 ac_cv_type_signal=int
4151 echo "$ac_t""$ac_cv_type_signal" 1>&6
4152 cat >> confdefs.h <<EOF
4153 #define RETSIGTYPE $ac_cv_type_signal
4157 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4158 echo "configure:4159: checking for dlopen in -ldl" >&5
4159 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 ac_save_LIBS="$LIBS"
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4177 if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4179 eval "ac_cv_lib_$ac_lib_var=yes"
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4184 eval "ac_cv_lib_$ac_lib_var=no"
4187 LIBS="$ac_save_LIBS"
4190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 LIB_VLC="${LIB_VLC} -ldl"
4194 echo "$ac_t""no" 1>&6
4197 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4198 echo "configure:4199: checking for cos in -lm" >&5
4199 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 ac_save_LIBS="$LIBS"
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* Override any gcc2 internal prototype to avoid an error. */
4209 /* We use char because int might match the return type of a gcc2
4210 builtin and then its argument prototype would still apply. */
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 eval "ac_cv_lib_$ac_lib_var=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 eval "ac_cv_lib_$ac_lib_var=no"
4227 LIBS="$ac_save_LIBS"
4230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 LIB_IMDCT="${LIB_IMDCT} -lm"
4233 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4235 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4239 echo "configure:4240: checking for pow in -lm" >&5
4240 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 ac_save_LIBS="$LIBS"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 eval "ac_cv_lib_$ac_lib_var=no"
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 LIB_IMDCT="${LIB_IMDCT} -lm"
4274 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4275 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4278 echo "$ac_t""no" 1>&6
4283 if test "x${THREAD_LIB}" = xerror; then
4284 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4285 echo "configure:4286: checking for pthread_attr_init in -lpthread" >&5
4286 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4291 LIBS="-lpthread $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4298 char pthread_attr_init();
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4319 THREAD_LIB="-lpthread"
4321 echo "$ac_t""no" 1>&6
4325 if test "x${THREAD_LIB}" = xerror; then
4326 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4327 echo "configure:4328: checking for pthread_attr_init in -lpthreads" >&5
4328 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 ac_save_LIBS="$LIBS"
4333 LIBS="-lpthreads $LIBS"
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4340 char pthread_attr_init();
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 eval "ac_cv_lib_$ac_lib_var=yes"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_lib_$ac_lib_var=no"
4356 LIBS="$ac_save_LIBS"
4359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4361 THREAD_LIB="-lpthreads"
4363 echo "$ac_t""no" 1>&6
4367 if test "x${THREAD_LIB}" = xerror; then
4368 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4369 echo "configure:4370: checking for pthread_attr_init in -lc_r" >&5
4370 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 ac_save_LIBS="$LIBS"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4382 char pthread_attr_init();
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 eval "ac_cv_lib_$ac_lib_var=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_lib_$ac_lib_var=no"
4398 LIBS="$ac_save_LIBS"
4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4405 echo "$ac_t""no" 1>&6
4409 if test "x${THREAD_LIB}" = xerror; then
4410 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4411 echo "configure:4412: checking for pthread_attr_init" >&5
4412 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419 which can conflict with char pthread_attr_init(); below. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4424 char pthread_attr_init();
4428 /* The GNU C library defines this for functions which it implements
4429 to always fail with ENOSYS. Some functions are actually named
4430 something starting with __ and the normal name is an alias. */
4431 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4434 pthread_attr_init();
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_func_pthread_attr_init=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_func_pthread_attr_init=no"
4451 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4452 echo "$ac_t""yes" 1>&6
4455 echo "$ac_t""no" 1>&6
4461 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4462 echo "configure:4463: checking for cthread_fork in -lthreads" >&5
4463 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 ac_save_LIBS="$LIBS"
4468 LIBS="-lthreads $LIBS"
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4475 char cthread_fork();
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 eval "ac_cv_lib_$ac_lib_var=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 eval "ac_cv_lib_$ac_lib_var=no"
4491 LIBS="$ac_save_LIBS"
4494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 THREAD_LIB="-lthreads"
4498 echo "$ac_t""no" 1>&6
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 #include <pthread.h>
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 egrep "pthread_cond_t" >/dev/null 2>&1; then
4511 cat >> confdefs.h <<\EOF
4512 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 #include <strings.h>
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 egrep "strncasecmp" >/dev/null 2>&1; then
4527 cat >> confdefs.h <<\EOF
4528 #define STRNCASECMP_IN_STRINGS_H 1
4535 for ac_hdr in getopt.h strings.h
4537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4539 echo "configure:4540: checking for $ac_hdr" >&5
4540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4549 { (eval echo configure:4550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4551 if test -z "$ac_err"; then
4553 eval "ac_cv_header_$ac_safe=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_header_$ac_safe=no"
4563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4566 cat >> confdefs.h <<EOF
4567 #define $ac_tr_hdr 1
4571 echo "$ac_t""no" 1>&6
4575 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4579 echo "configure:4580: checking for $ac_hdr" >&5
4580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4589 { (eval echo configure:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4591 if test -z "$ac_err"; then
4593 eval "ac_cv_header_$ac_safe=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_header_$ac_safe=no"
4603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4606 cat >> confdefs.h <<EOF
4607 #define $ac_tr_hdr 1
4611 echo "$ac_t""no" 1>&6
4615 for ac_hdr in dlfcn.h image.h
4617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_hdr" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4633 eval "ac_cv_header_$ac_safe=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_header_$ac_safe=no"
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4646 cat >> confdefs.h <<EOF
4647 #define $ac_tr_hdr 1
4651 echo "$ac_t""no" 1>&6
4655 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4673 eval "ac_cv_header_$ac_safe=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4679 eval "ac_cv_header_$ac_safe=no"
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_hdr 1
4691 echo "$ac_t""no" 1>&6
4695 for ac_hdr in machine/param.h sys/shm.h
4697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_hdr" >&5
4700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4709 { (eval echo configure:4710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4711 if test -z "$ac_err"; then
4713 eval "ac_cv_header_$ac_safe=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 eval "ac_cv_header_$ac_safe=no"
4723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4726 cat >> confdefs.h <<EOF
4727 #define $ac_tr_hdr 1
4731 echo "$ac_t""no" 1>&6
4736 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4737 echo "configure:4738: checking whether time.h and sys/time.h may both be included" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 #include <sys/types.h>
4745 #include <sys/time.h>
4751 if { (eval echo configure:4752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4753 ac_cv_header_time=yes
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 ac_cv_header_time=no
4763 echo "$ac_t""$ac_cv_header_time" 1>&6
4764 if test $ac_cv_header_time = yes; then
4765 cat >> confdefs.h <<\EOF
4766 #define TIME_WITH_SYS_TIME 1
4772 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_hdr" >&5
4777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4786 { (eval echo configure:4787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4788 if test -z "$ac_err"; then
4790 eval "ac_cv_header_$ac_safe=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_header_$ac_safe=no"
4800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_hdr 1
4808 echo "$ac_t""no" 1>&6
4813 if test x$SYS != xmingw32
4815 if test x$x_includes = xNONE; then
4816 x_includes=/usr/X11R6/include
4818 if test x$x_libraries = xNONE; then
4819 x_libraries=/usr/X11R6/lib
4821 saved_CPPFLAGS=$CPPFLAGS
4822 CPPFLAGS="$CPPFLAGS -I$x_includes"
4823 for ac_hdr in X11/extensions/dpms.h
4825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_hdr" >&5
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4839 if test -z "$ac_err"; then
4841 eval "ac_cv_header_$ac_safe=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_header_$ac_safe=no"
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4854 cat >> confdefs.h <<EOF
4855 #define $ac_tr_hdr 1
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <X11/extensions/dpms.h>
4863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4864 egrep "DPMSInfo" >/dev/null 2>&1; then
4867 cat >> confdefs.h <<\EOF
4868 #define DPMSINFO_IN_DPMS_H 1
4877 echo "$ac_t""no" 1>&6
4881 CPPFLAGS=$saved_CPPFLAGS
4884 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4885 echo "configure:4886: checking for ntohl in sys/param.h" >&5
4886 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 CFLAGS="${save_CFLAGS} -Wall -Werror"
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <sys/param.h>
4895 void foo() { int meuh; ntohl(meuh); }
4898 if { (eval echo configure:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4900 ac_cv_c_ntohl_sys_param_h=yes
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 ac_cv_c_ntohl_sys_param_h=no
4910 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4911 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4912 cat >> confdefs.h <<\EOF
4913 #define NTOHL_IN_SYS_PARAM_H 1
4918 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4919 echo "configure:4920: checking if \$CC accepts -finline-limit" >&5
4920 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4932 if { (eval echo configure:4933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934 ac_cv_c_inline_limit=yes
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4939 ac_cv_c_inline_limit=no
4944 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4945 if test x"$ac_cv_c_inline_limit" != x"no"; then
4946 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4949 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4950 echo "configure:4951: checking if \$CC accepts -Wall -Winline" >&5
4951 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 CFLAGS="${save_CFLAGS} -Wall -Winline"
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4963 if { (eval echo configure:4964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4965 ac_cv_c_Wall_Winline=yes
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 ac_cv_c_Wall_Winline=no
4975 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4976 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4977 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4979 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4980 echo "configure:4981: checking if \$CC accepts -wall -winline" >&5
4981 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 CFLAGS="${save_CFLAGS} -wall -winline"
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4993 if { (eval echo configure:4994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4995 ac_cv_c_wall_winline=yes
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
5000 ac_cv_c_wall_winline=no
5005 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5006 if test x"$ac_cv_c_wall_winline" != x"no"; then
5007 save_CFLAGS="${save_CFLAGS} -wall -winline"
5011 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5012 echo "configure:5013: checking if \$CC accepts -pipe" >&5
5013 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 CFLAGS="${save_CFLAGS} -pipe"
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5025 if { (eval echo configure:5026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5037 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5038 if test x"$ac_cv_c_pipe" != x"no"; then
5039 save_CFLAGS="${save_CFLAGS} -pipe"
5042 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5043 echo "configure:5044: checking if \$CC accepts -O3" >&5
5044 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 CFLAGS="${save_CFLAGS} -O3"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5056 if { (eval echo configure:5057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5068 echo "$ac_t""$ac_cv_c_o3" 1>&6
5069 if test x"$ac_cv_c_o3" != x"no"; then
5070 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5072 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5073 echo "configure:5074: checking if \$CC accepts -O2" >&5
5074 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 CFLAGS="${save_CFLAGS} -O2"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5086 if { (eval echo configure:5087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5098 echo "$ac_t""$ac_cv_c_o2" 1>&6
5099 if test x"$ac_cv_c_o2" != x"no"; then
5100 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5102 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5103 echo "configure:5104: checking if \$CC accepts -O" >&5
5104 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5107 CFLAGS="${save_CFLAGS} -O"
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5116 if { (eval echo configure:5117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5128 echo "$ac_t""$ac_cv_c_o" 1>&6
5129 if test x"$ac_cv_c_o" != x"no"; then
5130 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5135 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5136 echo "configure:5137: checking if \$CC accepts -ffast-math" >&5
5137 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 CFLAGS="${save_CFLAGS} -ffast-math"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5149 if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5151 ac_cv_c_fast_math=yes
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 ac_cv_c_fast_math=no
5161 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5162 if test x"$ac_cv_c_fast_math" != x"no"; then
5163 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5166 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5167 echo "configure:5168: checking if \$CC accepts -funroll-loops" >&5
5168 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 CFLAGS="${save_CFLAGS} -funroll-loops"
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 ac_cv_c_unroll_loops=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 ac_cv_c_unroll_loops=no
5192 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5193 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5194 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5197 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5198 echo "configure:5199: checking if \$CC accepts -fomit-frame-pointer" >&5
5199 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5211 if { (eval echo configure:5212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5213 ac_cv_c_omit_frame_pointer=yes
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 ac_cv_c_omit_frame_pointer=no
5223 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5224 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5225 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5228 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5229 echo "configure:5230: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5230 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5242 if { (eval echo configure:5243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5254 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5255 if test x"$ac_cv_ld_darwin" != x"no"; then
5256 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5259 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5260 echo "configure:5261: checking if \$CC accepts -shared" >&5
5261 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 CFLAGS="${save_CFLAGS} -shared"
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5273 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5275 ac_cv_ld_plugins=yes
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5285 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5286 if test x"$ac_cv_ld_plugins" != x"no"; then
5287 PLDFLAGS="${PLDFLAGS} -shared"
5290 if test x"${SOFLAGS}" = x; then
5291 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5292 echo "configure:5293: checking for soname setting" >&5
5293 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5298 try_SOFLAGS="-Wl,-soname -Wl,"
5299 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 ac_cv_ld_soname="${try_SOFLAGS}"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5317 try_SOFLAGS="-Wl,-h -Wl,"
5318 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5329 ac_cv_ld_soname="${try_SOFLAGS}"
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5334 ac_cv_ld_soname=none
5342 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5343 if test x"$ac_cv_ld_soname" != x"none"; then
5344 SOFLAGS=$ac_cv_ld_soname
5348 Your system doesn't seem to have support for dynamic linking. You may
5349 have problems using libdvdcss.
5355 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5356 echo "configure:5357: checking __attribute__ ((aligned ())) support" >&5
5357 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 ac_cv_c_attribute_aligned=0
5361 CFLAGS="${save_CFLAGS} -Werror"
5362 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5368 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5373 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5382 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5383 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5384 cat >> confdefs.h <<EOF
5385 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5390 CFLAGS="${save_CFLAGS}"
5391 LDFLAGS="${save_LDFLAGS}"
5393 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5394 echo "configure:5395: checking for boolean_t in sys/types.h" >&5
5395 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 #include <sys/types.h>
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5408 ac_cv_c_boolean_t_sys_types_h=yes
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 ac_cv_c_boolean_t_sys_types_h=no
5418 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5419 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5420 cat >> confdefs.h <<\EOF
5421 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5426 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5427 echo "configure:5428: checking for boolean_t in pthread.h" >&5
5428 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 #include <pthread.h>
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5441 ac_cv_c_boolean_t_pthread_h=yes
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 ac_cv_c_boolean_t_pthread_h=no
5451 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5452 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5453 cat >> confdefs.h <<\EOF
5454 #define BOOLEAN_T_IN_PTHREAD_H 1
5459 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5460 echo "configure:5461: checking for boolean_t in cthreads.h" >&5
5461 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 #include <cthreads.h>
5472 if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 ac_cv_c_boolean_t_cthreads_h=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 ac_cv_c_boolean_t_cthreads_h=no
5484 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5485 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5486 cat >> confdefs.h <<\EOF
5487 #define BOOLEAN_T_IN_CTHREADS_H 1
5492 case x"${target_cpu}" in
5501 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"
5502 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"
5504 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5505 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5506 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5507 SSE_MODULES="imdctsse downmixsse"
5508 ALTIVEC_MODULES="idctaltivec motionaltivec"
5510 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5511 echo "configure:5512: checking if \$CC groks MMX inline assembly" >&5
5512 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5520 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5525 ac_cv_mmx_inline=yes
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5535 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5536 if test x"$ac_cv_mmx_inline" != x"no"; then
5537 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5540 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5541 echo "configure:5542: checking if \$CC groks MMX EXT inline assembly" >&5
5542 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5550 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5553 if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5555 ac_cv_mmxext_inline=yes
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 ac_cv_mmxext_inline=no
5565 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5566 if test x"$ac_cv_mmxext_inline" != x"no"; then
5567 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5570 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5571 echo "configure:5572: checking if \$CC groks 3D Now! inline assembly" >&5
5572 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5580 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5583 if { (eval echo configure:5584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5585 ac_cv_3dnow_inline=yes
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 ac_cv_3dnow_inline=no
5595 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5596 if test x"$ac_cv_3dnow_inline" != x"no"; then
5597 cat >> confdefs.h <<\EOF
5598 #define CAN_COMPILE_3DNOW 1
5601 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5604 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5605 echo "configure:5606: checking if \$CC groks SSE inline assembly" >&5
5606 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5617 if { (eval echo configure:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 ac_cv_sse_inline=yes
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5629 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5630 if test x"$ac_cv_sse_inline" != x"no"; then
5631 cat >> confdefs.h <<\EOF
5632 #define CAN_COMPILE_SSE 1
5635 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5638 # don't try to grok altivec with native mingw32 it doesn't work right now
5639 # we should be able to remove this test with future versions of mingw32
5640 if test x$SYS != xmingw32; then
5641 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5642 echo "configure:5643: checking if \$CC groks Altivec inline assembly" >&5
5643 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 asm volatile("vperm 0,1,2,3");
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 ac_cv_altivec_inline=yes
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5662 CFLAGS="$CFLAGS -Wa,-m7400"
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5668 asm volatile("vperm 0,1,2,3");
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 ac_cv_altivec_inline="-Wa,-m7400"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 ac_cv_altivec_inline=no
5687 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5688 if test x"$ac_cv_altivec_inline" != x"no"; then
5689 cat >> confdefs.h <<\EOF
5690 #define CAN_COMPILE_ALTIVEC 1
5693 if test x"$ac_cv_altivec_inline" != x"yes"; then
5694 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5695 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5696 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5698 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5701 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5702 echo "configure:5703: checking if \$CC groks Altivec C extensions" >&5
5703 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5707 CFLAGS="$CFLAGS -faltivec"
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5714 vec_mtvscr((vector unsigned int)(0));
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5719 ac_cv_c_altivec=-faltivec
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5726 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5732 vec_mtvscr((vector unsigned int)(0));
5735 if { (eval echo configure:5736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5737 ac_cv_c_altivec="-fvec"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5752 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5753 if test x"$ac_cv_c_altivec" != x"no"; then
5754 cat >> confdefs.h <<\EOF
5755 #define CAN_COMPILE_C_ALTIVEC 1
5758 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5759 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5760 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5761 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5764 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5765 echo "configure:5766: checking if linker needs -framework vecLib" >&5
5766 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 save_LDFLAGS=$LDFLAGS
5770 LDFLAGS="$LDFLAGS -framework vecLib"
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5781 ac_cv_ld_altivec=yes
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5789 LDFLAGS=$save_LDFLAGS
5793 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5794 if test x"$ac_cv_ld_altivec" != x"no"; then
5795 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5796 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5797 LIB_VLC="${LIB_VLC} -framework vecLib"
5807 DVD_DEVICE="/dev/dvd"
5808 VCD_DEVICE="/dev/cdrom"
5812 cat >> confdefs.h <<EOF
5813 #define DVD_DEVICE "$DVD_DEVICE"
5816 cat >> confdefs.h <<EOF
5817 #define VCD_DEVICE "$VCD_DEVICE"
5823 CAN_BUILD_LIBDVDCSS=0
5825 for ac_hdr in winioctl.h
5827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_hdr" >&5
5830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5839 { (eval echo configure:5840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5841 if test -z "$ac_err"; then
5843 eval "ac_cv_header_$ac_safe=yes"
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 eval "ac_cv_header_$ac_safe=no"
5853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5856 cat >> confdefs.h <<EOF
5857 #define $ac_tr_hdr 1
5860 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5863 echo "$ac_t""no" 1>&6
5868 for ac_hdr in sys/ioctl.h
5870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_hdr" >&5
5873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5882 { (eval echo configure:5883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5884 if test -z "$ac_err"; then
5886 eval "ac_cv_header_$ac_safe=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_header_$ac_safe=no"
5896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5897 echo "$ac_t""yes" 1>&6
5898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5899 cat >> confdefs.h <<EOF
5900 #define $ac_tr_hdr 1
5903 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5904 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5908 echo "configure:5909: checking for $ac_hdr" >&5
5909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5918 { (eval echo configure:5919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5920 if test -z "$ac_err"; then
5922 eval "ac_cv_header_$ac_safe=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_header_$ac_safe=no"
5932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5935 cat >> confdefs.h <<EOF
5936 #define $ac_tr_hdr 1
5940 echo "$ac_t""no" 1>&6
5946 OPENBSD_DVD_STRUCT=0
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 #include <sys/cdio.h>
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 egrep "dvd_struct" >/dev/null 2>&1; then
5956 cat >> confdefs.h <<\EOF
5957 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include <sys/cdio.h>
5965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5966 egrep "struct dvd_struct" >/dev/null 2>&1; then
5972 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 #include <sys/dvdio.h>
5985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5986 egrep "dvd_struct" >/dev/null 2>&1; then
5989 cat >> confdefs.h <<\EOF
5990 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 #include <sys/dvdio.h>
5998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5999 egrep "struct dvd_struct" >/dev/null 2>&1; then
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 #include <linux/cdrom.h>
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 egrep "dvd_struct" >/dev/null 2>&1; then
6022 cat >> confdefs.h <<\EOF
6023 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 egrep "dvd_struct" >/dev/null 2>&1; then
6041 cat >> confdefs.h <<\EOF
6042 #define DVD_STRUCT_IN_DVD_H 1
6045 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6051 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_hdr" >&5
6056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6065 { (eval echo configure:6066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6067 if test -z "$ac_err"; then
6069 eval "ac_cv_header_$ac_safe=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_header_$ac_safe=no"
6079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6082 cat >> confdefs.h <<EOF
6083 #define $ac_tr_hdr 1
6087 cat >> confdefs.h <<\EOF
6088 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6091 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6095 echo "$ac_t""no" 1>&6
6103 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6105 echo "configure:6106: checking for sys/scsi/scsi_types.h" >&5
6106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 #include <sys/scsi/scsi_types.h>
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6117 if test -z "$ac_err"; then
6119 eval "ac_cv_header_$ac_safe=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_header_$ac_safe=no"
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6132 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6133 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6134 echo "configure:6135: checking for sys/scsi/impl/uscsi.h" >&5
6135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 #include <sys/scsi/impl/uscsi.h>
6143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6144 { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6146 if test -z "$ac_err"; then
6148 eval "ac_cv_header_$ac_safe=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 eval "ac_cv_header_$ac_safe=no"
6158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6161 cat >> confdefs.h <<\EOF
6162 #define SOLARIS_USCSI 1
6167 echo "$ac_t""no" 1>&6
6172 echo "$ac_t""no" 1>&6
6175 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6176 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6177 echo "configure:6178: checking for sys/scsi.h" >&5
6178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <sys/scsi.h>
6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6189 if test -z "$ac_err"; then
6191 eval "ac_cv_header_$ac_safe=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6197 eval "ac_cv_header_$ac_safe=no"
6201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 #include <sys/scsi.h>
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 egrep "sctl_io" >/dev/null 2>&1; then
6213 cat >> confdefs.h <<\EOF
6214 #define HPUX_SCTL_IO 1
6223 echo "$ac_t""no" 1>&6
6226 if test x$LINUX_DVD_STRUCT = x1; then
6227 cat >> confdefs.h <<\EOF
6228 #define HAVE_LINUX_DVD_STRUCT 1
6231 if test x$OPENBSD_DVD_STRUCT = x1; then
6232 cat >> confdefs.h <<\EOF
6233 #define HAVE_OPENBSD_DVD_STRUCT 1
6238 if test x$BSD_DVD_STRUCT = x1; then
6239 cat >> confdefs.h <<\EOF
6240 #define HAVE_BSD_DVD_STRUCT 1
6247 echo "$ac_t""no" 1>&6
6252 # Check whether --with- or --without- was given.
6253 if test "${with_+set}" = set; then
6258 # Check whether --with- or --without- was given.
6259 if test "${with_+set}" = set; then
6265 # Check whether --with-tuning or --without-tuning was given.
6266 if test "${with_tuning+set}" = set; then
6267 withval="$with_tuning"
6271 if test "x$withval" != "x"; then
6274 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6276 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6280 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6283 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6286 # Check whether --enable-optimizations or --disable-optimizations was given.
6287 if test "${enable_optimizations+set}" = set; then
6288 enableval="$enable_optimizations"
6289 if test x$enableval = xno; then OPTIMS=0; fi
6295 # Check whether --enable-altivec or --disable-altivec was given.
6296 if test "${enable_altivec+set}" = set; then
6297 enableval="$enable_altivec"
6298 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6299 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6301 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6302 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6307 # Check whether --enable-debug or --disable-debug was given.
6308 if test "${enable_debug+set}" = set; then
6309 enableval="$enable_debug"
6310 if test x$enableval = xyes; then DEBUG=1; fi
6314 # Check whether --enable-release or --disable-release was given.
6315 if test "${enable_release+set}" = set; then
6316 enableval="$enable_release"
6317 if test x$enableval = xyes; then RELEASE=1; fi
6319 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6320 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6325 # Check whether --with- or --without- was given.
6326 if test "${with_+set}" = set; then
6335 # Check whether --with-dvdcss or --without-dvdcss was given.
6336 if test "${with_dvdcss+set}" = set; then
6337 withval="$with_dvdcss"
6338 case "x${withval}" in
6340 # local libdvdcss, statically linked
6341 BUILTINS="${BUILTINS} dvd"
6342 if test x${CAN_BUILD_LIBDVDCSS} = x1
6346 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6347 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6351 # local libdvdcss, dynamically linked
6352 PLUGINS="${PLUGINS} dvd"
6353 if test x${CAN_BUILD_LIBDVDCSS} = x1
6356 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6357 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6361 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6362 PLUGINS="${PLUGINS} dvd"
6364 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6365 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6366 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6367 LIB_DVD="${LIB_DVD} -ldl"
6370 # existing libdvdcss
6371 PLUGINS="${PLUGINS} dvd"
6372 if test "x$withval" != "xyes"
6374 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6375 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6377 LIB_DVD="${LIB_DVD} -ldvdcss"
6380 # user didn't decide, we choose to use local libdvdcss and link statically
6381 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6382 if test x${CAN_BUILD_LIBDVDCSS} = x1
6384 BUILTINS="${BUILTINS} dvd"
6387 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6388 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6390 # XXX: no check for libdl is done, don't try this at home !
6391 PLUGINS="${PLUGINS} dvd"
6393 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6394 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6395 LIB_DVD="${LIB_DVD} -ldl"
6400 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6401 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6402 # Check whether --with-dvdread or --without-dvdread was given.
6403 if test "${with_dvdread+set}" = set; then
6404 withval="$with_dvdread"
6405 case "x${withval}" in
6407 if test x${STATIC_LIBDVDREAD} = x1
6409 BUILTINS="${BUILTINS} dvdread"
6410 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6411 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6413 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6419 if test x${STATIC_LIBDVDREAD} = x1
6421 #BUILTINS="${BUILTINS} dvdread"
6422 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6423 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6425 #PLUGINS="${PLUGINS} dvdread"
6426 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6427 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6431 if test "x$withval" != "xlocal-shared"
6433 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6434 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6436 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6437 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6439 if test x${STATIC_LIBDVDCSS} = x1
6441 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6443 #PLUGINS="${PLUGINS} dvdread"
6444 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6445 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6448 if test x${DUMMY_LIBDVDCSS} = x1
6450 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6452 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6457 # Check whether --enable-vcd or --disable-vcd was given.
6458 if test "${enable_vcd+set}" = set; then
6459 enableval="$enable_vcd"
6464 if test x$enable_vcd != xno
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 #include <linux/cdrom.h>
6471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6472 egrep "cdrom_msf0" >/dev/null 2>&1; then
6475 PLUGINS="${PLUGINS} vcd"
6481 if test "x${SYS}" = "xbsdi"
6483 PLUGINS="${PLUGINS} vcd"
6486 if test "x${SYS}" = "xdarwin"
6488 PLUGINS="${PLUGINS} vcd"
6489 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6493 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6494 echo "configure:6495: checking for inet_pton" >&5
6495 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* System header to define __stub macros and hopefully few prototypes,
6502 which can conflict with char inet_pton(); below. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 eval "ac_cv_func_inet_pton=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 eval "ac_cv_func_inet_pton=no"
6534 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 PLUGINS="${PLUGINS} ipv6"
6538 echo "$ac_t""no" 1>&6
6543 # Check whether --with- or --without- was given.
6544 if test "${with_+set}" = set; then
6550 # Check whether --enable-mad or --disable-mad was given.
6551 if test "${enable_mad+set}" = set; then
6552 enableval="$enable_mad"
6556 if test x$enable_mad = xyes
6558 PLUGINS="${PLUGINS} mad"
6559 LIB_MAD="${LIB_MAD} -lmad"
6560 # Check whether --with-mad or --without-mad was given.
6561 if test "${with_mad+set}" = set; then
6563 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6565 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6566 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6571 save_LDFLAGS=$LDFLAGS
6572 CFLAGS="$CFLAGS $CFLAGS_MAD"
6573 LDFLAGS="$LDFLAGS $LIB_MAD"
6576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_hdr" >&5
6579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6588 { (eval echo configure:6589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6590 if test -z "$ac_err"; then
6592 eval "ac_cv_header_$ac_safe=yes"
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6598 eval "ac_cv_header_$ac_safe=no"
6602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6605 cat >> confdefs.h <<EOF
6606 #define $ac_tr_hdr 1
6610 echo "$ac_t""no" 1>&6
6611 echo "Cannot find development headers for libmad..."
6617 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6618 echo "configure:6619: checking for mad_bit_init in -lmad" >&5
6619 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 ac_save_LIBS="$LIBS"
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6631 char mad_bit_init();
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639 eval "ac_cv_lib_$ac_lib_var=yes"
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6644 eval "ac_cv_lib_$ac_lib_var=no"
6647 LIBS="$ac_save_LIBS"
6650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6651 echo "$ac_t""yes" 1>&6
6652 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6654 cat >> confdefs.h <<EOF
6655 #define $ac_tr_lib 1
6661 echo "$ac_t""no" 1>&6
6662 echo "Cannot find libmad library..."
6668 LDFLAGS=$save_LDFLAGS
6671 if test x$SYS = xbeos
6673 PLUGINS="${PLUGINS} beos"
6677 # Check whether --enable-a52 or --disable-a52 was given.
6678 if test "${enable_a52+set}" = set; then
6679 enableval="$enable_a52"
6683 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6685 for ac_hdr in a52dec/a52.h
6687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_hdr" >&5
6690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6699 { (eval echo configure:6700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6701 if test -z "$ac_err"; then
6703 eval "ac_cv_header_$ac_safe=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 eval "ac_cv_header_$ac_safe=no"
6713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6716 cat >> confdefs.h <<EOF
6717 #define $ac_tr_hdr 1
6720 BUILTINS="${BUILTINS} a52"
6721 LIB_A52="${LIB_A52} -la52"
6724 echo "$ac_t""no" 1>&6
6731 # Check whether --with- or --without- was given.
6732 if test "${with_+set}" = set; then
6738 # Check whether --enable-x11 or --disable-x11 was given.
6739 if test "${enable_x11+set}" = set; then
6740 enableval="$enable_x11"
6744 if test x$enable_x11 != xno &&
6745 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6746 if test x$x_includes = xNONE; then
6747 x_includes=/usr/X11R6/include
6749 if test x$x_libraries = xNONE; then
6750 x_libraries=/usr/X11R6/lib
6752 saved_CPPFLAGS=$CPPFLAGS
6753 CPPFLAGS="$CPPFLAGS -I$x_includes"
6754 for ac_hdr in X11/Xlib.h
6756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_hdr" >&5
6759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6768 { (eval echo configure:6769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6770 if test -z "$ac_err"; then
6772 eval "ac_cv_header_$ac_safe=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_header_$ac_safe=no"
6782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6785 cat >> confdefs.h <<EOF
6786 #define $ac_tr_hdr 1
6789 PLUGINS="${PLUGINS} x11"
6790 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6791 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6794 echo "$ac_t""no" 1>&6
6798 CPPFLAGS=$saved_CPPFLAGS
6801 # Check whether --enable-xvideo or --disable-xvideo was given.
6802 if test "${enable_xvideo+set}" = set; then
6803 enableval="$enable_xvideo"
6807 if test x$enable_xvideo != xno &&
6808 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6809 if test x$x_includes = xNONE; then
6810 x_includes=/usr/X11R6/include
6812 if test x$x_libraries = xNONE; then
6813 x_libraries=/usr/X11R6/lib
6815 saved_CPPFLAGS=$CPPFLAGS
6816 CPPFLAGS="$CPPFLAGS -I$x_includes"
6817 for ac_hdr in X11/extensions/Xv.h
6819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6821 echo "configure:6822: checking for $ac_hdr" >&5
6822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6831 { (eval echo configure:6832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6833 if test -z "$ac_err"; then
6835 eval "ac_cv_header_$ac_safe=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 eval "ac_cv_header_$ac_safe=no"
6845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6848 cat >> confdefs.h <<EOF
6849 #define $ac_tr_hdr 1
6852 saved_CFLAGS=$CFLAGS
6853 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6854 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6855 echo "configure:6856: checking for XvSetPortAttribute in -lXv_pic" >&5
6856 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 ac_save_LIBS="$LIBS"
6861 LIBS="-lXv_pic $LIBS"
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868 char XvSetPortAttribute();
6871 XvSetPortAttribute()
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 eval "ac_cv_lib_$ac_lib_var=no"
6884 LIBS="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6890 PLUGINS="${PLUGINS} xvideo"
6891 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6892 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6894 echo "$ac_t""no" 1>&6
6895 # We don't have Xv_pic, let's make xvideo.a as builtin
6896 BUILTINS="${BUILTINS} xvideo"
6897 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6898 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6901 CFLAGS=$saved_CFLAGS
6903 CPPFLAGS=$saved_CPPFLAGS
6905 echo "$ac_t""no" 1>&6
6911 # Check whether --enable-sdl or --disable-sdl was given.
6912 if test "${enable_sdl+set}" = set; then
6913 enableval="$enable_sdl"
6917 if test "x$enable_sdl" != "xno"
6920 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6921 if test "${with_sdl_config_path+set}" = set; then
6922 withval="$with_sdl_config_path"
6923 if test "x$withval" != "xno"
6925 SDL_PATH=$withval:$PATH
6929 # Extract the first word of "sdl12-config", so it can be a program name with args.
6930 set dummy sdl12-config; ac_word=$2
6931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6932 echo "configure:6933: checking for $ac_word" >&5
6933 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6934 echo $ac_n "(cached) $ac_c" 1>&6
6936 case "$SDL12_CONFIG" in
6938 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6941 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6945 ac_dummy="$SDL_PATH"
6946 for ac_dir in $ac_dummy; do
6947 test -z "$ac_dir" && ac_dir=.
6948 if test -f $ac_dir/$ac_word; then
6949 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6954 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6958 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6959 if test -n "$SDL12_CONFIG"; then
6960 echo "$ac_t""$SDL12_CONFIG" 1>&6
6962 echo "$ac_t""no" 1>&6
6965 SDL_CONFIG=${SDL12_CONFIG}
6966 SDL_HEADER="SDL12/SDL.h"
6967 if test x${SDL_CONFIG} = xno
6969 # Extract the first word of "sdl11-config", so it can be a program name with args.
6970 set dummy sdl11-config; ac_word=$2
6971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6972 echo "configure:6973: checking for $ac_word" >&5
6973 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 case "$SDL11_CONFIG" in
6978 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6981 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6985 ac_dummy="$SDL_PATH"
6986 for ac_dir in $ac_dummy; do
6987 test -z "$ac_dir" && ac_dir=.
6988 if test -f $ac_dir/$ac_word; then
6989 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6994 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6998 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6999 if test -n "$SDL11_CONFIG"; then
7000 echo "$ac_t""$SDL11_CONFIG" 1>&6
7002 echo "$ac_t""no" 1>&6
7005 SDL_CONFIG=${SDL11_CONFIG}
7006 SDL_HEADER="SDL11/SDL.h"
7008 if test x${SDL_CONFIG} = xno
7010 # Extract the first word of "sdl-config", so it can be a program name with args.
7011 set dummy sdl-config; ac_word=$2
7012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_word" >&5
7014 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 case "$SDL_CONFIG" in
7019 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7022 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7026 ac_dummy="$SDL_PATH"
7027 for ac_dir in $ac_dummy; do
7028 test -z "$ac_dir" && ac_dir=.
7029 if test -f $ac_dir/$ac_word; then
7030 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7035 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7039 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7040 if test -n "$SDL_CONFIG"; then
7041 echo "$ac_t""$SDL_CONFIG" 1>&6
7043 echo "$ac_t""no" 1>&6
7046 SDL_HEADER="SDL/SDL.h"
7048 if test x${SDL_CONFIG} != xno
7050 PLUGINS="${PLUGINS} sdl"
7051 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7052 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7053 save_CPPFLAGS=$CPPFLAGS
7054 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7055 for ac_hdr in ${SDL_HEADER}
7057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7059 echo "configure:7060: checking for $ac_hdr" >&5
7060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7069 { (eval echo configure:7070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7071 if test -z "$ac_err"; then
7073 eval "ac_cv_header_$ac_safe=yes"
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 eval "ac_cv_header_$ac_safe=no"
7083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7086 cat >> confdefs.h <<EOF
7087 #define $ac_tr_hdr 1
7089 cat >> confdefs.h <<EOF
7090 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7094 echo "$ac_t""no" 1>&6
7095 { echo "configure: error: The development package for SDL is not installed.
7096 Please install it and try again. Alternatively you can also configure with
7097 --disable-sdl." 1>&2; exit 1; }
7102 CPPFLAGS=$save_CPPFLAGS
7103 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7105 { echo "configure: error: The development package for SDL is not installed.
7106 Please install it and try again. Alternatively you can also configure with
7107 --disable-sdl." 1>&2; exit 1; }
7109 elif test "x$enable_sdl" = "xyes"
7111 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7112 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7117 # Check whether --enable-directx or --disable-directx was given.
7118 if test "${enable_directx+set}" = set; then
7119 enableval="$enable_directx"
7123 if test "x$enableval" != "xno"
7125 if test x$SYS = xmingw32
7127 # Check whether --with-directx or --without-directx was given.
7128 if test "${with_directx+set}" = set; then
7129 withval="$with_directx"
7133 if test "x$with_directx" = "x"
7135 for ac_hdr in ddraw.h
7137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7139 echo "configure:7140: checking for $ac_hdr" >&5
7140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7149 { (eval echo configure:7150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7151 if test -z "$ac_err"; then
7153 eval "ac_cv_header_$ac_safe=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_header_$ac_safe=no"
7163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7164 echo "$ac_t""yes" 1>&6
7165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7166 cat >> confdefs.h <<EOF
7167 #define $ac_tr_hdr 1
7169 PLUGINS="${PLUGINS} directx"
7170 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7172 echo "$ac_t""no" 1>&6
7177 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7178 echo "configure:7179: checking for directX headers in ${withval}" >&5
7179 if test -f ${withval}/ddraw.h
7181 PLUGINS="${PLUGINS} directx"
7182 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7183 INCLUDE="${INCLUDE} -I${withval}"
7184 echo "$ac_t""yes" 1>&6
7186 echo "$ac_t""no" 1>&6
7187 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7193 # Check whether --enable-fb or --disable-fb was given.
7194 if test "${enable_fb+set}" = set; then
7195 enableval="$enable_fb"
7199 if test x$enable_fb != xno
7201 for ac_hdr in linux/fb.h
7203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7205 echo "configure:7206: checking for $ac_hdr" >&5
7206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7217 if test -z "$ac_err"; then
7219 eval "ac_cv_header_$ac_safe=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_header_$ac_safe=no"
7229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7230 echo "$ac_t""yes" 1>&6
7231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7232 cat >> confdefs.h <<EOF
7233 #define $ac_tr_hdr 1
7236 PLUGINS="${PLUGINS} fb"
7239 echo "$ac_t""no" 1>&6
7245 # Check whether --enable-mga or --disable-mga was given.
7246 if test "${enable_mga+set}" = set; then
7247 enableval="$enable_mga"
7248 if test x$enable_mga = xyes
7250 PLUGINS="${PLUGINS} mga xmga"
7255 # Check whether --enable-ggi or --disable-ggi was given.
7256 if test "${enable_ggi+set}" = set; then
7257 enableval="$enable_ggi"
7261 if test x$enable_ggi = xyes
7263 PLUGINS="${PLUGINS} ggi"
7264 LIB_GGI="${LIB_GGI} -lggi"
7265 # Check whether --with-ggi or --without-ggi was given.
7266 if test "${with_ggi+set}" = set; then
7268 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7270 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7271 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7277 # Check whether --enable-glide or --disable-glide was given.
7278 if test "${enable_glide+set}" = set; then
7279 enableval="$enable_glide"
7283 if test x$enable_glide = xyes
7285 PLUGINS="${PLUGINS} glide"
7286 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7287 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7288 # Check whether --with-glide or --without-glide was given.
7289 if test "${with_glide+set}" = set; then
7290 withval="$with_glide"
7291 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7293 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7294 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7300 # Check whether --enable-aa or --disable-aa was given.
7301 if test "${enable_aa+set}" = set; then
7302 enableval="$enable_aa"
7306 if test x$enable_aa = xyes
7308 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7309 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7310 echo "configure:7311: checking for aalib.h" >&5
7311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7320 { (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7322 if test -z "$ac_err"; then
7324 eval "ac_cv_header_$ac_safe=yes"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 eval "ac_cv_header_$ac_safe=no"
7334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7335 echo "$ac_t""yes" 1>&6
7338 echo "$ac_t""no" 1>&6
7342 if test x$have_aa = xtrue
7344 PLUGINS="${PLUGINS} aa"
7345 LIB_AA="${LIB_AA} -laa"
7350 # Check whether --with- or --without- was given.
7351 if test "${with_+set}" = set; then
7357 # Check whether --enable-dsp or --disable-dsp was given.
7358 if test "${enable_dsp+set}" = set; then
7359 enableval="$enable_dsp"
7364 if test x$enable_dsp != xno &&
7365 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7367 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7371 echo "configure:7372: checking for $ac_hdr" >&5
7372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7381 { (eval echo configure:7382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7383 if test -z "$ac_err"; then
7385 eval "ac_cv_header_$ac_safe=yes"
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 eval "ac_cv_header_$ac_safe=no"
7395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7396 echo "$ac_t""yes" 1>&6
7397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7398 cat >> confdefs.h <<EOF
7399 #define $ac_tr_hdr 1
7402 PLUGINS="${PLUGINS} dsp"
7403 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7404 echo "configure:7405: checking for main in -lossaudio" >&5
7405 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7407 echo $ac_n "(cached) $ac_c" 1>&6
7409 ac_save_LIBS="$LIBS"
7410 LIBS="-lossaudio $LIBS"
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7421 eval "ac_cv_lib_$ac_lib_var=yes"
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 eval "ac_cv_lib_$ac_lib_var=no"
7429 LIBS="$ac_save_LIBS"
7432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 LIB_DSP="${LIB_DSP} -lossaudio"
7436 echo "$ac_t""no" 1>&6
7441 echo "$ac_t""no" 1>&6
7447 # Check whether --enable-esd or --disable-esd was given.
7448 if test "${enable_esd+set}" = set; then
7449 enableval="$enable_esd"
7450 if test x$enable_esd = xyes
7452 # Extract the first word of "esd-config", so it can be a program name with args.
7453 set dummy esd-config; ac_word=$2
7454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7455 echo "configure:7456: checking for $ac_word" >&5
7456 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 case "$ESD_CONFIG" in
7461 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7464 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7469 for ac_dir in $ac_dummy; do
7470 test -z "$ac_dir" && ac_dir=.
7471 if test -f $ac_dir/$ac_word; then
7472 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7477 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7481 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7482 if test -n "$ESD_CONFIG"; then
7483 echo "$ac_t""$ESD_CONFIG" 1>&6
7485 echo "$ac_t""no" 1>&6
7488 if test x${ESD_CONFIG} != xno
7490 PLUGINS="${PLUGINS} esd"
7491 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7492 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7498 # Check whether --enable-arts or --disable-arts was given.
7499 if test "${enable_arts+set}" = set; then
7500 enableval="$enable_arts"
7501 if test x$enable_arts = xyes
7503 # Extract the first word of "artsc-config", so it can be a program name with args.
7504 set dummy artsc-config; ac_word=$2
7505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7506 echo "configure:7507: checking for $ac_word" >&5
7507 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 case "$ARTS_CONFIG" in
7512 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7515 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7520 for ac_dir in $ac_dummy; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f $ac_dir/$ac_word; then
7523 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7528 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7532 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7533 if test -n "$ARTS_CONFIG"; then
7534 echo "$ac_t""$ARTS_CONFIG" 1>&6
7536 echo "$ac_t""no" 1>&6
7539 if test x${ARTS_CONFIG} != xno
7541 PLUGINS="${PLUGINS} arts"
7542 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7543 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7549 # Check whether --enable-alsa or --disable-alsa was given.
7550 if test "${enable_alsa+set}" = set; then
7551 enableval="$enable_alsa"
7552 if test x$enable_alsa = xyes
7554 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7555 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7556 echo "configure:7557: checking for alsa/asoundlib.h" >&5
7557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 #include <alsa/asoundlib.h>
7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7568 if test -z "$ac_err"; then
7570 eval "ac_cv_header_$ac_safe=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_header_$ac_safe=no"
7580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7582 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7583 echo "configure:7584: checking for main in -lasound" >&5
7584 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 ac_save_LIBS="$LIBS"
7589 LIBS="-lasound $LIBS"
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 eval "ac_cv_lib_$ac_lib_var=yes"
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7605 eval "ac_cv_lib_$ac_lib_var=no"
7608 LIBS="$ac_save_LIBS"
7611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7612 echo "$ac_t""yes" 1>&6
7615 echo "$ac_t""no" 1>&6
7620 echo "$ac_t""no" 1>&6
7624 if test x$have_alsa = xtrue
7626 PLUGINS="${PLUGINS} alsa"
7627 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7633 # Check whether --enable-waveout or --disable-waveout was given.
7634 if test "${enable_waveout+set}" = set; then
7635 enableval="$enable_waveout"
7639 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7641 PLUGINS="${PLUGINS} waveout"
7642 LIB_WAVEOUT="-lwinmm"
7646 # Check whether --with- or --without- was given.
7647 if test "${with_+set}" = set; then
7653 # Check whether --enable-gtk or --disable-gtk was given.
7654 if test "${enable_gtk+set}" = set; then
7655 enableval="$enable_gtk"
7659 if test x$enable_gtk != xno
7662 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7663 if test "${with_gtk_config_path+set}" = set; then
7664 withval="$with_gtk_config_path"
7665 if test "x$withval" != "xno"
7667 GTK_PATH=$withval:$PATH
7671 # look for gtk-config
7672 # Extract the first word of "gtk12-config", so it can be a program name with args.
7673 set dummy gtk12-config; ac_word=$2
7674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_word" >&5
7676 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 case "$GTK12_CONFIG" in
7681 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7684 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7688 ac_dummy="$GTK_PATH"
7689 for ac_dir in $ac_dummy; do
7690 test -z "$ac_dir" && ac_dir=.
7691 if test -f $ac_dir/$ac_word; then
7692 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7697 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7701 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7702 if test -n "$GTK12_CONFIG"; then
7703 echo "$ac_t""$GTK12_CONFIG" 1>&6
7705 echo "$ac_t""no" 1>&6
7708 GTK_CONFIG=${GTK12_CONFIG}
7709 if test x${GTK_CONFIG} = xno
7711 # Extract the first word of "gtk-config", so it can be a program name with args.
7712 set dummy gtk-config; ac_word=$2
7713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7714 echo "configure:7715: checking for $ac_word" >&5
7715 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 case "$GTK_CONFIG" in
7720 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7723 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7727 ac_dummy="$GTK_PATH"
7728 for ac_dir in $ac_dummy; do
7729 test -z "$ac_dir" && ac_dir=.
7730 if test -f $ac_dir/$ac_word; then
7731 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7736 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7740 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7741 if test -n "$GTK_CONFIG"; then
7742 echo "$ac_t""$GTK_CONFIG" 1>&6
7744 echo "$ac_t""no" 1>&6
7748 if test x${GTK_CONFIG} != xno
7750 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7752 { 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; }
7754 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7755 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7756 # now look for the gtk.h header
7757 saved_CPPFLAGS=$CPPFLAGS
7758 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7759 ac_cv_gtk_headers=yes
7760 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7764 echo "configure:7765: checking for $ac_hdr" >&5
7765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7774 { (eval echo configure:7775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7776 if test -z "$ac_err"; then
7778 eval "ac_cv_header_$ac_safe=yes"
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 eval "ac_cv_header_$ac_safe=no"
7788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7789 echo "$ac_t""yes" 1>&6
7790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7791 cat >> confdefs.h <<EOF
7792 #define $ac_tr_hdr 1
7796 echo "$ac_t""no" 1>&6
7797 ac_cv_gtk_headers=no
7798 echo "Cannot find gtk development headers."
7803 if test "x$ac_cv_gtk_headers" = xyes
7805 PLUGINS="${PLUGINS} gtk"
7806 ALIASES="${ALIASES} gvlc"
7808 CPPFLAGS=$saved_CPPFLAGS
7812 # Check whether --enable-gnome or --disable-gnome was given.
7813 if test "${enable_gnome+set}" = set; then
7814 enableval="$enable_gnome"
7815 if test x$enable_gnome = xyes; then
7816 # look for gnome-config
7817 # Extract the first word of "gnome-config", so it can be a program name with args.
7818 set dummy gnome-config; ac_word=$2
7819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7820 echo "configure:7821: checking for $ac_word" >&5
7821 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 case "$GNOME_CONFIG" in
7826 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7829 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7834 for ac_dir in $ac_dummy; do
7835 test -z "$ac_dir" && ac_dir=.
7836 if test -f $ac_dir/$ac_word; then
7837 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7842 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7846 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7847 if test -n "$GNOME_CONFIG"; then
7848 echo "$ac_t""$GNOME_CONFIG" 1>&6
7850 echo "$ac_t""no" 1>&6
7853 if test -x ${GNOME_CONFIG}
7855 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7856 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7858 # now look for the gnome.h header
7859 saved_CPPFLAGS=$CPPFLAGS
7860 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7861 for ac_hdr in gnome.h
7863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7865 echo "configure:7866: checking for $ac_hdr" >&5
7866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7877 if test -z "$ac_err"; then
7879 eval "ac_cv_header_$ac_safe=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_header_$ac_safe=no"
7889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7890 echo "$ac_t""yes" 1>&6
7891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7892 cat >> confdefs.h <<EOF
7893 #define $ac_tr_hdr 1
7896 PLUGINS="${PLUGINS} gnome"
7897 ALIASES="${ALIASES} gnome-vlc"
7900 echo "$ac_t""no" 1>&6
7901 { echo "configure: error: Can't find gnome headers. Please install the gnome
7902 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7908 CPPFLAGS=$saved_CPPFLAGS
7913 # Check whether --enable-qt or --disable-qt was given.
7914 if test "${enable_qt+set}" = set; then
7915 enableval="$enable_qt"
7916 if test x$enable_qt = xyes; then
7917 PLUGINS="${PLUGINS} qt"
7918 ALIASES="${ALIASES} qvlc"
7919 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7920 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7921 if test -x ${QTDIR}/bin/moc
7923 MOC=${QTDIR}/bin/moc
7931 # Check whether --enable-kde or --disable-kde was given.
7932 if test "${enable_kde+set}" = set; then
7933 enableval="$enable_kde"
7934 if test x$enable_kde = xyes; then
7935 PLUGINS="${PLUGINS} kde"
7936 ALIASES="${ALIASES} kvlc"
7937 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7938 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7939 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7940 if test -x ${QTDIR}/bin/moc
7942 MOC=${QTDIR}/bin/moc
7950 # Check whether --enable-macosx or --disable-macosx was given.
7951 if test "${enable_macosx+set}" = set; then
7952 enableval="$enable_macosx"
7953 if test x$enable_macosx = xyes
7955 BUILTINS="${BUILTINS} macosx"
7956 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7957 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7958 LIB_COMMON="${LIB_COMMON} -ObjC"
7961 for ac_hdr in Cocoa/Cocoa.h
7963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7965 echo "configure:7966: checking for $ac_hdr" >&5
7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977 if test -z "$ac_err"; then
7979 eval "ac_cv_header_$ac_safe=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 eval "ac_cv_header_$ac_safe=no"
7989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7990 echo "$ac_t""yes" 1>&6
7991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7992 cat >> confdefs.h <<EOF
7993 #define $ac_tr_hdr 1
7995 BUILTINS="${BUILTINS} macosx"
7996 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7997 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7998 LIB_COMMON="${LIB_COMMON} -ObjC"
8001 echo "$ac_t""no" 1>&6
8008 # Check whether --enable-qnx or --disable-qnx was given.
8009 if test "${enable_qnx+set}" = set; then
8010 enableval="$enable_qnx"
8014 if test x$enable_qnx != xno
8018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8020 echo "configure:8021: checking for $ac_hdr" >&5
8021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8030 { (eval echo configure:8031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8032 if test -z "$ac_err"; then
8034 eval "ac_cv_header_$ac_safe=yes"
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8040 eval "ac_cv_header_$ac_safe=no"
8044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8047 cat >> confdefs.h <<EOF
8048 #define $ac_tr_hdr 1
8051 PLUGINS="${PLUGINS} qnx"
8052 LIB_QNX="${LIB_QNX} -lasound -lph"
8055 echo "$ac_t""no" 1>&6
8061 # Check whether --enable-win32 or --disable-win32 was given.
8062 if test "${enable_win32+set}" = set; then
8063 enableval="$enable_win32"
8064 if test "x$enableval" != "xno"
8066 PLUGINS="${PLUGINS} win32"
8071 # Check whether --enable-ncurses or --disable-ncurses was given.
8072 if test "${enable_ncurses+set}" = set; then
8073 enableval="$enable_ncurses"
8074 if test x$enable_ncurses = xyes; then
8075 PLUGINS="${PLUGINS} ncurses"
8076 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8081 # Check whether --enable-lirc or --disable-lirc was given.
8082 if test "${enable_lirc+set}" = set; then
8083 enableval="$enable_lirc"
8087 if test x$enable_lirc = xyes
8089 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8090 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8091 echo "configure:8092: checking for lirc/lirc_client.h" >&5
8092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 #include <lirc/lirc_client.h>
8100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8101 { (eval echo configure:8102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8103 if test -z "$ac_err"; then
8105 eval "ac_cv_header_$ac_safe=yes"
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8111 eval "ac_cv_header_$ac_safe=no"
8115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8116 echo "$ac_t""yes" 1>&6
8117 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8118 echo "configure:8119: checking for lirc_init in -llirc_client" >&5
8119 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 ac_save_LIBS="$LIBS"
8124 LIBS="-llirc_client $LIBS"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 eval "ac_cv_lib_$ac_lib_var=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_lib_$ac_lib_var=no"
8147 LIBS="$ac_save_LIBS"
8150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8154 echo "$ac_t""no" 1>&6
8159 echo "$ac_t""no" 1>&6
8163 if test x$have_lirc = xtrue
8165 PLUGINS="${PLUGINS} lirc"
8166 LIB_LIRC="${LIB_LIRC} -llirc_client"
8172 # Check whether --with- or --without- was given.
8173 if test "${with_+set}" = set; then
8179 # Check whether --with-words or --without-words was given.
8180 if test "${with_words+set}" = set; then
8181 withval="$with_words"
8187 ac_cv_c_bigendian=yes
8190 ac_cv_c_bigendian=no
8193 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8194 echo "configure:8195: checking whether the byte order is big-endian" >&5
8195 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8198 ac_cv_c_bigendian=unknown
8199 cat >conftest.c <<EOF
8200 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8201 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8202 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8203 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8204 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8205 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8206 int main(void) { _a(); _e(); return 0; }
8209 if test -f conftest.c
8211 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8212 && test -f conftest.o
8214 if test "`strings conftest.o | grep BIGenDianSyS`"
8216 ac_cv_c_bigendian=yes
8218 if test "`strings conftest.o | grep LiTTleEnDian`"
8220 ac_cv_c_bigendian=no
8227 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8228 if test x$ac_cv_c_bigendian = xunknown
8230 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8234 if test $ac_cv_c_bigendian = yes
8236 cat >> confdefs.h <<\EOF
8237 #define WORDS_BIGENDIAN 1
8243 # Check whether --with-dll-path or --without-dll-path was given.
8244 if test "${with_dll_path+set}" = set; then
8245 withval="$with_dll_path"
8246 if test "x$withval" != "xno"
8254 # Check whether --enable-gprof or --disable-gprof was given.
8255 if test "${enable_gprof+set}" = set; then
8256 enableval="$enable_gprof"
8257 if test x$enableval = xyes; then GPROF=1; fi
8262 # Check whether --enable-cprof or --disable-cprof was given.
8263 if test "${enable_cprof+set}" = set; then
8264 enableval="$enable_cprof"
8265 if test x$enableval = xyes;
8267 LIB_COMMON="${LIB_COMMON} -lcprof"
8274 # Check whether --enable-pth or --disable-pth was given.
8275 if test "${enable_pth+set}" = set; then
8276 enableval="$enable_pth"
8277 if test x$enableval = xyes; then
8278 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8279 echo "configure:8280: checking for pth_init in -lpth" >&5
8280 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8284 ac_save_LIBS="$LIBS"
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8289 /* Override any gcc2 internal prototype to avoid an error. */
8290 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8298 if { (eval echo configure:8299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8300 eval "ac_cv_lib_$ac_lib_var=yes"
8302 echo "configure: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8305 eval "ac_cv_lib_$ac_lib_var=no"
8308 LIBS="$ac_save_LIBS"
8311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8312 echo "$ac_t""yes" 1>&6
8313 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8315 cat >> confdefs.h <<EOF
8316 #define $ac_tr_lib 1
8322 echo "$ac_t""no" 1>&6
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8331 egrep "pth_init" >/dev/null 2>&1; then
8334 cat >> confdefs.h <<\EOF
8335 #define PTH_INIT_IN_PTH_H 1
8347 # Check whether --enable-st or --disable-st was given.
8348 if test "${enable_st+set}" = set; then
8349 enableval="$enable_st"
8350 if test x$enableval = xyes; then
8351 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8352 echo "configure:8353: checking for st_init in -lst" >&5
8353 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 ac_save_LIBS="$LIBS"
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 /* Override any gcc2 internal prototype to avoid an error. */
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8371 if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8373 eval "ac_cv_lib_$ac_lib_var=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_lib_$ac_lib_var=no"
8381 LIBS="$ac_save_LIBS"
8384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8385 echo "$ac_t""yes" 1>&6
8386 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8388 cat >> confdefs.h <<EOF
8389 #define $ac_tr_lib 1
8395 echo "$ac_t""no" 1>&6
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8404 egrep "st_init" >/dev/null 2>&1; then
8407 cat >> confdefs.h <<\EOF
8408 #define ST_INIT_IN_ST_H 1
8420 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8422 # Check whether --enable-plugins or --disable-plugins was given.
8423 if test "${enable_plugins+set}" = set; then
8424 enableval="$enable_plugins"
8425 if test x$enable_plugins = xno
8427 BUILTINS="${BUILTINS} ${PLUGINS}"
8433 cat >> confdefs.h <<EOF
8434 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8437 cat >> confdefs.h <<EOF
8438 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8442 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8443 cat >> confdefs.h <<EOF
8444 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8447 cat >> confdefs.h <<EOF
8448 #define MODULE_SYMBOL $VLC_SYMBOL
8452 DATA_PATH="${ac_tool_prefix}/share/videolan"
8454 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8557 cat > confcache <<\EOF
8558 # This file is a shell script that caches the results of configure
8559 # tests run on this system so they can be shared between configure
8560 # scripts and configure runs. It is not useful on other systems.
8561 # If it contains results you don't want to keep, you may remove or edit it.
8563 # By default, configure uses ./config.cache as the cache file,
8564 # creating it if it does not exist already. You can give configure
8565 # the --cache-file=FILE option to use a different cache file; that is
8566 # what configure does when it calls configure scripts in
8567 # subdirectories, so they share the cache.
8568 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8569 # config.status only pays attention to the cache file if you give it the
8570 # --recheck option to rerun configure.
8573 # The following way of writing the cache mishandles newlines in values,
8574 # but we know of no workaround that is simple, portable, and efficient.
8575 # So, don't put newlines in cache variables' values.
8576 # Ultrix sh set writes to stderr and can't be redirected directly,
8577 # and sets the high bit in the cache file unless we assign to the vars.
8579 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8581 # `set' does not quote correctly, so add quotes (double-quote substitution
8582 # turns \\\\ into \\, and sed turns \\ into \).
8584 -e "s/'/'\\\\''/g" \
8585 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8588 # `set' quotes correctly as required by POSIX, so do not add quotes.
8589 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8592 if cmp -s $cache_file confcache; then
8595 if test -w $cache_file; then
8596 echo "updating cache $cache_file"
8597 cat confcache > $cache_file
8599 echo "not updating unwritable cache $cache_file"
8604 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8607 # Let make expand exec_prefix.
8608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8610 # Any assignment to VPATH causes Sun make to only execute
8611 # the first set of double-colon rules, so remove it if not needed.
8612 # If there is a colon in the path, we need to keep it.
8613 if test "x$srcdir" = x.; then
8614 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8617 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8619 DEFS=-DHAVE_CONFIG_H
8621 # Without the "./", some shells look in PATH for config.status.
8622 : ${CONFIG_STATUS=./config.status}
8624 echo creating $CONFIG_STATUS
8625 rm -f $CONFIG_STATUS
8626 cat > $CONFIG_STATUS <<EOF
8628 # Generated automatically by configure.
8629 # Run this file to recreate the current configuration.
8630 # This directory was configured as follows,
8631 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8633 # $0 $ac_configure_args
8635 # Compiler output produced by configure, useful for debugging
8636 # configure, is in ./config.log if it exists.
8638 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8641 case "\$ac_option" in
8642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8643 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8644 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8645 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8646 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8648 -help | --help | --hel | --he | --h)
8649 echo "\$ac_cs_usage"; exit 0 ;;
8650 *) echo "\$ac_cs_usage"; exit 1 ;;
8654 ac_given_srcdir=$srcdir
8655 ac_given_INSTALL="$INSTALL"
8657 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8659 cat >> $CONFIG_STATUS <<EOF
8661 # Protect against being on the right side of a sed subst in config.status.
8662 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8663 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8667 s%@CFLAGS@%$CFLAGS%g
8668 s%@CPPFLAGS@%$CPPFLAGS%g
8669 s%@CXXFLAGS@%$CXXFLAGS%g
8670 s%@FFLAGS@%$FFLAGS%g
8672 s%@LDFLAGS@%$LDFLAGS%g
8674 s%@exec_prefix@%$exec_prefix%g
8675 s%@prefix@%$prefix%g
8676 s%@program_transform_name@%$program_transform_name%g
8677 s%@bindir@%$bindir%g
8678 s%@sbindir@%$sbindir%g
8679 s%@libexecdir@%$libexecdir%g
8680 s%@datadir@%$datadir%g
8681 s%@sysconfdir@%$sysconfdir%g
8682 s%@sharedstatedir@%$sharedstatedir%g
8683 s%@localstatedir@%$localstatedir%g
8684 s%@libdir@%$libdir%g
8685 s%@includedir@%$includedir%g
8686 s%@oldincludedir@%$oldincludedir%g
8687 s%@infodir@%$infodir%g
8688 s%@mandir@%$mandir%g
8690 s%@host_alias@%$host_alias%g
8691 s%@host_cpu@%$host_cpu%g
8692 s%@host_vendor@%$host_vendor%g
8693 s%@host_os@%$host_os%g
8694 s%@target@%$target%g
8695 s%@target_alias@%$target_alias%g
8696 s%@target_cpu@%$target_cpu%g
8697 s%@target_vendor@%$target_vendor%g
8698 s%@target_os@%$target_os%g
8700 s%@build_alias@%$build_alias%g
8701 s%@build_cpu@%$build_cpu%g
8702 s%@build_vendor@%$build_vendor%g
8703 s%@build_os@%$build_os%g
8704 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8705 s%@SET_MAKE@%$SET_MAKE%g
8708 s%@RANLIB@%$RANLIB%g
8709 s%@ALLOCA@%$ALLOCA%g
8710 s%@GLIBC21@%$GLIBC21%g
8711 s%@LIBICONV@%$LIBICONV%g
8712 s%@USE_NLS@%$USE_NLS%g
8713 s%@MSGFMT@%$MSGFMT%g
8714 s%@GMSGFMT@%$GMSGFMT%g
8715 s%@XGETTEXT@%$XGETTEXT%g
8716 s%@INTLBISON@%$INTLBISON%g
8717 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8718 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8719 s%@CATALOGS@%$CATALOGS%g
8720 s%@CATOBJEXT@%$CATOBJEXT%g
8721 s%@GMOFILES@%$GMOFILES%g
8722 s%@INTLLIBS@%$INTLLIBS%g
8723 s%@INTLOBJS@%$INTLOBJS%g
8724 s%@POFILES@%$POFILES%g
8726 s%@DATADIRNAME@%$DATADIRNAME%g
8727 s%@INSTOBJEXT@%$INSTOBJEXT%g
8728 s%@GENCAT@%$GENCAT%g
8729 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8730 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8731 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8732 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8733 s%@INSTALL_DATA@%$INSTALL_DATA%g
8734 s%@WINDRES@%$WINDRES%g
8735 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8736 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8737 s%@SDL_CONFIG@%$SDL_CONFIG%g
8738 s%@ESD_CONFIG@%$ESD_CONFIG%g
8739 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8740 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8741 s%@GTK_CONFIG@%$GTK_CONFIG%g
8742 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8743 s%@DATA_PATH@%$DATA_PATH%g
8744 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8747 s%@PLUGINS@%$PLUGINS%g
8748 s%@BUILTINS@%$BUILTINS%g
8749 s%@ALIASES@%$ALIASES%g
8750 s%@INCLUDE@%$INCLUDE%g
8755 s%@OPTIMS@%$OPTIMS%g
8756 s%@TUNING@%$TUNING%g
8757 s%@RELEASE@%$RELEASE%g
8759 s%@DLL_PATH@%$DLL_PATH%g
8760 s%@PACKAGE@%$PACKAGE%g
8761 s%@VERSION@%$VERSION%g
8762 s%@VCD_DEVICE@%$VCD_DEVICE%g
8763 s%@DVD_DEVICE@%$DVD_DEVICE%g
8764 s%@PLDFLAGS@%$PLDFLAGS%g
8765 s%@SOFLAGS@%$SOFLAGS%g
8766 s%@LIB_COMMON@%$LIB_COMMON%g
8767 s%@LIB_VLC@%$LIB_VLC%g
8768 s%@LIB_A52@%$LIB_A52%g
8769 s%@LIB_AA@%$LIB_AA%g
8770 s%@LIB_ALSA@%$LIB_ALSA%g
8771 s%@LIB_ARTS@%$LIB_ARTS%g
8772 s%@LIB_BEOS@%$LIB_BEOS%g
8773 s%@LIB_DARWIN@%$LIB_DARWIN%g
8774 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8775 s%@LIB_DSP@%$LIB_DSP%g
8776 s%@LIB_DVD@%$LIB_DVD%g
8777 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8778 s%@LIB_ESD@%$LIB_ESD%g
8779 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8780 s%@LIB_GGI@%$LIB_GGI%g
8781 s%@LIB_GLIDE@%$LIB_GLIDE%g
8782 s%@LIB_GNOME@%$LIB_GNOME%g
8783 s%@LIB_GTK@%$LIB_GTK%g
8784 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8785 s%@LIB_IMDCT@%$LIB_IMDCT%g
8786 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8787 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8788 s%@LIB_IPV4@%$LIB_IPV4%g
8789 s%@LIB_IPV6@%$LIB_IPV6%g
8790 s%@LIB_KDE@%$LIB_KDE%g
8791 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8792 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8793 s%@LIB_LIRC@%$LIB_LIRC%g
8794 s%@LIB_MACOSX@%$LIB_MACOSX%g
8795 s%@LIB_MAD@%$LIB_MAD%g
8796 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8797 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8798 s%@LIB_NCURSES@%$LIB_NCURSES%g
8799 s%@LIB_QNX@%$LIB_QNX%g
8800 s%@LIB_QT@%$LIB_QT%g
8801 s%@LIB_RC@%$LIB_RC%g
8802 s%@LIB_SDL@%$LIB_SDL%g
8803 s%@LIB_VCD@%$LIB_VCD%g
8804 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8805 s%@LIB_WIN32@%$LIB_WIN32%g
8806 s%@LIB_X11@%$LIB_X11%g
8807 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8808 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8809 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8810 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8811 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8812 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8813 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8814 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8815 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8816 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8817 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8818 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8819 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8820 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8821 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8822 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8823 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8824 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8825 s%@CFLAGS_QT@%$CFLAGS_QT%g
8826 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8827 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8828 s%@CFLAGS_X11@%$CFLAGS_X11%g
8829 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8830 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8831 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8832 s%@NEED_GETOPT@%$NEED_GETOPT%g
8833 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8838 cat >> $CONFIG_STATUS <<\EOF
8840 # Split the substitutions into bite-sized pieces for seds with
8841 # small command number limits, like on Digital OSF/1 and HP-UX.
8842 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8843 ac_file=1 # Number of current file.
8844 ac_beg=1 # First line for current file.
8845 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8848 while $ac_more_lines; do
8849 if test $ac_beg -gt 1; then
8850 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8852 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8854 if test ! -s conftest.s$ac_file; then
8856 rm -f conftest.s$ac_file
8858 if test -z "$ac_sed_cmds"; then
8859 ac_sed_cmds="sed -f conftest.s$ac_file"
8861 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8863 ac_file=`expr $ac_file + 1`
8865 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8868 if test -z "$ac_sed_cmds"; then
8873 cat >> $CONFIG_STATUS <<EOF
8875 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8877 cat >> $CONFIG_STATUS <<\EOF
8878 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8881 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8882 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8883 *) ac_file_in="${ac_file}.in" ;;
8886 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8888 # Remove last slash and all that follows it. Not all systems have dirname.
8889 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8891 # The file is in a subdirectory.
8892 test ! -d "$ac_dir" && mkdir "$ac_dir"
8893 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8894 # A "../" for each directory in $ac_dir_suffix.
8895 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8897 ac_dir_suffix= ac_dots=
8900 case "$ac_given_srcdir" in
8902 if test -z "$ac_dots"; then top_srcdir=.
8903 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8904 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8906 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8907 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8910 case "$ac_given_INSTALL" in
8911 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8912 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8915 echo creating "$ac_file"
8917 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8919 *Makefile*) ac_comsub="1i\\
8920 # $configure_input" ;;
8924 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8926 s%@configure_input@%$configure_input%g
8927 s%@srcdir@%$srcdir%g
8928 s%@top_srcdir@%$top_srcdir%g
8929 s%@INSTALL@%$INSTALL%g
8930 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8937 # ac_d sets the value in "#define NAME VALUE" lines.
8938 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8939 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8942 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8943 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8944 ac_uB='\([ ]\)%\1#\2define\3'
8947 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8948 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8949 ac_eB='$%\1#\2define\3'
8953 if test "${CONFIG_HEADERS+set}" != set; then
8955 cat >> $CONFIG_STATUS <<EOF
8956 CONFIG_HEADERS="include/defs.h"
8958 cat >> $CONFIG_STATUS <<\EOF
8960 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8963 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8964 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8965 *) ac_file_in="${ac_file}.in" ;;
8968 echo creating $ac_file
8970 rm -f conftest.frag conftest.in conftest.out
8971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8972 cat $ac_file_inputs > conftest.in
8976 # Transform confdefs.h into a sed script conftest.vals that substitutes
8977 # the proper values into config.h.in to produce config.h. And first:
8978 # Protect against being on the right side of a sed subst in config.status.
8979 # Protect against being in an unquoted here document in config.status.
8981 cat > conftest.hdr <<\EOF
8984 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8988 sed -n -f conftest.hdr confdefs.h > conftest.vals
8991 # This sed command replaces #undef with comments. This is necessary, for
8992 # example, in the case of _POSIX_SOURCE, which is predefined and required
8993 # on some systems where configure will not decide to define it.
8994 cat >> conftest.vals <<\EOF
8995 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8998 # Break up conftest.vals because some shells have a limit on
8999 # the size of here documents, and old seds have small limits too.
9004 ac_lines=`grep -c . conftest.vals`
9005 # grep -c gives empty output for an empty file on some AIX systems.
9006 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9007 # Write a limited-size here document to conftest.frag.
9008 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9009 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9011 sed -f conftest.frag conftest.in > conftest.out
9013 mv conftest.out conftest.in
9015 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9017 mv conftest.tail conftest.vals
9021 cat >> $CONFIG_STATUS <<\EOF
9022 rm -f conftest.frag conftest.h
9023 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9024 cat conftest.in >> conftest.h
9026 if cmp -s $ac_file conftest.h 2>/dev/null; then
9027 echo "$ac_file is unchanged"
9030 # Remove last slash and all that follows it. Not all systems have dirname.
9031 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9033 # The file is in a subdirectory.
9034 test ! -d "$ac_dir" && mkdir "$ac_dir"
9037 mv conftest.h $ac_file
9042 cat >> $CONFIG_STATUS <<EOF
9046 cat >> $CONFIG_STATUS <<\EOF
9047 for ac_file in $CONFIG_FILES; do
9048 # Support "outfile[:infile[:infile...]]"
9050 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9052 # PO directories have a Makefile.in generated from Makefile.in.in.
9053 case "$ac_file" in */Makefile.in)
9054 # Adjust a relative srcdir.
9055 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9056 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9057 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9058 # In autoconf-2.13 it is called $ac_given_srcdir.
9059 # In autoconf-2.50 it is called $srcdir.
9060 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9061 case "$ac_given_srcdir" in
9062 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9063 /*) top_srcdir="$ac_given_srcdir" ;;
9064 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9066 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9067 rm -f "$ac_dir/POTFILES"
9068 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9069 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9070 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9071 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9079 chmod +x $CONFIG_STATUS
9080 rm -fr confdefs* $ac_clean_files
9081 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9085 global configuration
9086 --------------------
9088 architecture : ${ARCH}
9089 optimizations : ${OPTIMS}
9091 release: : ${RELEASE}"
9093 if test x${HAVE_VLC} = x1
9098 vlc version : ${VLC_VERSION}
9099 debug mode : ${DEBUG}
9100 cprof/gprof support : ${CPROF}/${GPROF}
9101 need builtin getopt : ${NEED_GETOPT}
9102 built-in modules :${BUILTINS}
9103 plug-in modules :${PLUGINS}
9104 vlc aliases :${ALIASES}"
9108 libdvdcss configuration
9109 -----------------------
9110 can be built : ${CAN_BUILD_LIBDVDCSS}
9111 will be built : ${NEED_LIBDVDCSS}"
9112 if test x${NEED_LIBDVDCSS} = x1
9114 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9115 echo "link statically : ${STATIC_LIBDVDCSS}"
9117 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9121 You may now tune Makefile.opts at your convenience, for instance to choose
9122 which modules get compiled as plugins.
9124 if test x${HAVE_VLC} = x1
9126 echo "To build vlc and its plugins, type \`make'."
9128 if test x${NEED_LIBDVDCSS} = x1
9130 echo "To build libdvdcss only, type \`make libdvdcss'."