3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
46 --enable-satellite Satellite card support (default disabled)"
50 --enable-mad libmad module (default disabled)"
52 --with-mad=PATH path to libmad"
54 --disable-a52 AC3 support with liba52 (default enabled)"
58 --disable-x11 X11 support (default enabled)"
60 --disable-xvideo XVideo support (default enabled)"
62 --disable-sdl SDL support (default enabled)"
64 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
66 --enable-directx Win32 DirectX support (default enabled on Win32)"
68 --with-directx=PATH Win32 DirectX headers and libraries"
70 --enable-fb Linux framebuffer support (default enabled on Linux)"
72 --enable-mga Linux kernel Matrox support (default disabled)"
74 --enable-ggi GGI support (default disabled)"
76 --with-ggi=PATH path to libggi"
78 --enable-glide Glide (3dfx) support (default disabled)"
80 --with-glide=PATH path to libglide"
82 --enable-aa aalib output (default disabled)"
86 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
88 --enable-esd Esound library support (default disabled)"
90 --enable-arts aRts sound server (default disabled)"
92 --enable-alsa ALSA sound support for Linux (default disabled)"
94 --enable-waveout Win32 waveOut module (default enabled on Win32)"
98 --disable-gtk Gtk+ support (default enabled)"
100 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
102 --enable-gnome Gnome interface support (default disabled)"
104 --enable-qt Qt interface support (default disabled)"
106 --enable-kde KDE interface support (default disabled)"
108 --enable-macosx MacOS X support (default enabled on MacOS X)"
110 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
112 --enable-win32 Win32 interface support (default disabled)"
114 --enable-ncurses ncurses interface support (default disabled)"
116 --enable-lirc lirc support (default disabled)"
120 --with-words=endianness set endianness (big or little)"
122 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
124 --enable-gprof gprof profiling (default disabled)"
126 --enable-cprof cprof profiling (default disabled)"
128 --enable-pth GNU Pth support (default disabled)"
130 --enable-st State Threads (default disabled)"
132 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
134 # Initialize some variables set by options.
135 # The variables have the same names as the options, with
136 # dashes changed to underlines.
138 cache_file=./config.cache
147 program_transform_name=s,x,x,
155 bindir='${exec_prefix}/bin'
156 sbindir='${exec_prefix}/sbin'
157 libexecdir='${exec_prefix}/libexec'
158 datadir='${prefix}/share'
159 sysconfdir='${prefix}/etc'
160 sharedstatedir='${prefix}/com'
161 localstatedir='${prefix}/var'
162 libdir='${exec_prefix}/lib'
163 includedir='${prefix}/include'
164 oldincludedir='/usr/include'
165 infodir='${prefix}/info'
166 mandir='${prefix}/man'
168 # Initialize some other variables.
171 SHELL=${CONFIG_SHELL-/bin/sh}
172 # Maximum number of lines to put in a shell here document.
179 # If the previous option needs an argument, assign it.
180 if test -n "$ac_prev"; then
181 eval "$ac_prev=\$ac_option"
187 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
191 # Accept the important Cygnus configure options, so we can diagnose typos.
195 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
198 bindir="$ac_optarg" ;;
200 -build | --build | --buil | --bui | --bu)
202 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
203 build="$ac_optarg" ;;
205 -cache-file | --cache-file | --cache-fil | --cache-fi \
206 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
207 ac_prev=cache_file ;;
208 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
209 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
210 cache_file="$ac_optarg" ;;
212 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
214 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
216 datadir="$ac_optarg" ;;
218 -disable-* | --disable-*)
219 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
220 # Reject names that are not valid shell variable names.
221 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
222 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
224 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
225 eval "enable_${ac_feature}=no" ;;
227 -enable-* | --enable-*)
228 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
238 eval "enable_${ac_feature}='$ac_optarg'" ;;
240 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
241 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
242 | --exec | --exe | --ex)
243 ac_prev=exec_prefix ;;
244 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
245 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
246 | --exec=* | --exe=* | --ex=*)
247 exec_prefix="$ac_optarg" ;;
249 -gas | --gas | --ga | --g)
250 # Obsolete; use --with-gas.
253 -help | --help | --hel | --he)
254 # Omit some internal or obsolete options to make the list less imposing.
255 # This message is too long to be a string in the A/UX 3.1 sh.
257 Usage: configure [options] [host]
258 Options: [defaults in brackets after descriptions]
260 --cache-file=FILE cache test results in FILE
261 --help print this message
262 --no-create do not create output files
263 --quiet, --silent do not print \`checking...' messages
264 --version print the version of autoconf that created configure
265 Directory and file names:
266 --prefix=PREFIX install architecture-independent files in PREFIX
268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
270 --bindir=DIR user executables in DIR [EPREFIX/bin]
271 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
272 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
273 --datadir=DIR read-only architecture-independent data in DIR
275 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
276 --sharedstatedir=DIR modifiable architecture-independent data in DIR
278 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
279 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
280 --includedir=DIR C header files in DIR [PREFIX/include]
281 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
282 --infodir=DIR info documentation in DIR [PREFIX/info]
283 --mandir=DIR man documentation in DIR [PREFIX/man]
284 --srcdir=DIR find the sources in DIR [configure dir or ..]
285 --program-prefix=PREFIX prepend PREFIX to installed program names
286 --program-suffix=SUFFIX append SUFFIX to installed program names
287 --program-transform-name=PROGRAM
288 run sed PROGRAM on installed program names
292 --build=BUILD configure for building on BUILD [BUILD=HOST]
293 --host=HOST configure for HOST [guessed]
294 --target=TARGET configure for TARGET [TARGET=HOST]
295 Features and packages:
296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
300 --x-includes=DIR X include files are in DIR
301 --x-libraries=DIR X library files are in DIR
303 if test -n "$ac_help"; then
304 echo "--enable and --with options recognized:$ac_help"
308 -host | --host | --hos | --ho)
310 -host=* | --host=* | --hos=* | --ho=*)
313 -includedir | --includedir | --includedi | --included | --include \
314 | --includ | --inclu | --incl | --inc)
315 ac_prev=includedir ;;
316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
317 | --includ=* | --inclu=* | --incl=* | --inc=*)
318 includedir="$ac_optarg" ;;
320 -infodir | --infodir | --infodi | --infod | --info | --inf)
322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
323 infodir="$ac_optarg" ;;
325 -libdir | --libdir | --libdi | --libd)
327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
328 libdir="$ac_optarg" ;;
330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
331 | --libexe | --libex | --libe)
332 ac_prev=libexecdir ;;
333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
334 | --libexe=* | --libex=* | --libe=*)
335 libexecdir="$ac_optarg" ;;
337 -localstatedir | --localstatedir | --localstatedi | --localstated \
338 | --localstate | --localstat | --localsta | --localst \
339 | --locals | --local | --loca | --loc | --lo)
340 ac_prev=localstatedir ;;
341 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
342 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
343 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
344 localstatedir="$ac_optarg" ;;
346 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
348 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
349 mandir="$ac_optarg" ;;
352 # Obsolete; use --without-fp.
355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
359 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
360 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
363 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
364 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
365 | --oldin | --oldi | --old | --ol | --o)
366 ac_prev=oldincludedir ;;
367 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
368 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
369 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
370 oldincludedir="$ac_optarg" ;;
372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
375 prefix="$ac_optarg" ;;
377 -program-prefix | --program-prefix | --program-prefi | --program-pref \
378 | --program-pre | --program-pr | --program-p)
379 ac_prev=program_prefix ;;
380 -program-prefix=* | --program-prefix=* | --program-prefi=* \
381 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
382 program_prefix="$ac_optarg" ;;
384 -program-suffix | --program-suffix | --program-suffi | --program-suff \
385 | --program-suf | --program-su | --program-s)
386 ac_prev=program_suffix ;;
387 -program-suffix=* | --program-suffix=* | --program-suffi=* \
388 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
389 program_suffix="$ac_optarg" ;;
391 -program-transform-name | --program-transform-name \
392 | --program-transform-nam | --program-transform-na \
393 | --program-transform-n | --program-transform- \
394 | --program-transform | --program-transfor \
395 | --program-transfo | --program-transf \
396 | --program-trans | --program-tran \
397 | --progr-tra | --program-tr | --program-t)
398 ac_prev=program_transform_name ;;
399 -program-transform-name=* | --program-transform-name=* \
400 | --program-transform-nam=* | --program-transform-na=* \
401 | --program-transform-n=* | --program-transform-=* \
402 | --program-transform=* | --program-transfor=* \
403 | --program-transfo=* | --program-transf=* \
404 | --program-trans=* | --program-tran=* \
405 | --progr-tra=* | --program-tr=* | --program-t=*)
406 program_transform_name="$ac_optarg" ;;
408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
409 | -silent | --silent | --silen | --sile | --sil)
412 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
414 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
416 sbindir="$ac_optarg" ;;
418 -sharedstatedir | --sharedstatedir | --sharedstatedi \
419 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
420 | --sharedst | --shareds | --shared | --share | --shar \
422 ac_prev=sharedstatedir ;;
423 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
424 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
425 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
427 sharedstatedir="$ac_optarg" ;;
429 -site | --site | --sit)
431 -site=* | --site=* | --sit=*)
434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
437 srcdir="$ac_optarg" ;;
439 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
440 | --syscon | --sysco | --sysc | --sys | --sy)
441 ac_prev=sysconfdir ;;
442 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
443 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
444 sysconfdir="$ac_optarg" ;;
446 -target | --target | --targe | --targ | --tar | --ta | --t)
448 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
449 target="$ac_optarg" ;;
451 -v | -verbose | --verbose | --verbos | --verbo | --verb)
454 -version | --version | --versio | --versi | --vers)
455 echo "configure generated by autoconf version 2.13"
459 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
460 # Reject names that are not valid shell variable names.
461 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
462 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
464 ac_package=`echo $ac_package| sed 's/-/_/g'`
469 eval "with_${ac_package}='$ac_optarg'" ;;
471 -without-* | --without-*)
472 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
477 ac_package=`echo $ac_package| sed 's/-/_/g'`
478 eval "with_${ac_package}=no" ;;
481 # Obsolete; use --with-x.
484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
485 | --x-incl | --x-inc | --x-in | --x-i)
486 ac_prev=x_includes ;;
487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
489 x_includes="$ac_optarg" ;;
491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
493 ac_prev=x_libraries ;;
494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
496 x_libraries="$ac_optarg" ;;
498 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
502 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
503 echo "configure: warning: $ac_option: invalid host type" 1>&2
505 if test "x$nonopt" != xNONE; then
506 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
514 if test -n "$ac_prev"; then
515 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
520 # File descriptor usage:
523 # 2 errors and warnings
524 # 3 some systems may open it to /dev/tty
525 # 4 used on the Kubota Titan
526 # 6 checking for... messages and results
527 # 5 compiler messages saved in config.log
528 if test "$silent" = yes; then
536 This file contains any messages produced by compilers while
537 running configure, to aid debugging if configure makes a mistake.
540 # Strip out --no-create and --no-recursion so they do not pile up.
541 # Also quote any args containing shell metacharacters.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 | --no-cr | --no-c) ;;
548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
551 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
552 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
557 # Only set these to C if already set. These must not be set unconditionally
558 # because not all systems understand e.g. LANG=C (notably SCO).
559 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
560 # Non-C LC_CTYPE values break the ctype check.
561 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
562 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
563 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
564 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
567 rm -rf conftest* confdefs.h
568 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
571 # A filename unique to this package, relative to the directory that
572 # configure is in, which we can look for to find out if srcdir is correct.
573 ac_unique_file=include/main.h
575 # Find the source files, if location was not specified.
576 if test -z "$srcdir"; then
577 ac_srcdir_defaulted=yes
578 # Try the directory containing this script, then its parent.
580 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
581 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
583 if test ! -r $srcdir/$ac_unique_file; then
587 ac_srcdir_defaulted=no
589 if test ! -r $srcdir/$ac_unique_file; then
590 if test "$ac_srcdir_defaulted" = yes; then
591 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
593 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
596 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
598 # Prefer explicitly selected file to automatically selected ones.
599 if test -z "$CONFIG_SITE"; then
600 if test "x$prefix" != xNONE; then
601 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
603 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
606 for ac_site_file in $CONFIG_SITE; do
607 if test -r "$ac_site_file"; then
608 echo "loading site script $ac_site_file"
613 if test -r "$cache_file"; then
614 echo "loading cache $cache_file"
617 echo "creating cache $cache_file"
622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
623 ac_cpp='$CPP $CPPFLAGS'
624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
626 cross_compiling=$ac_cv_prog_cc_cross
630 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
631 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
632 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
639 ac_n= ac_c='\c' ac_t=
646 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
647 if test -f $ac_dir/install-sh; then
649 ac_install_sh="$ac_aux_dir/install-sh -c"
651 elif test -f $ac_dir/install.sh; then
653 ac_install_sh="$ac_aux_dir/install.sh -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
660 ac_config_guess=$ac_aux_dir/config.guess
661 ac_config_sub=$ac_aux_dir/config.sub
662 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
755 if test -r src/interface/main.c; then
757 VLC_VERSION="0.2.92-dev"
762 if test -r extras/libdvdcss/libdvdcss.c; then
764 LIBDVDCSS_VERSION="1.0.1-dev"
766 if test -r extras/libdvdcss/csskeys.h; then
767 cat >> confdefs.h <<\EOF
768 #define HAVE_CSSKEYS 1
774 save_CFLAGS="${CFLAGS}"
775 save_LDFLAGS="${LDFLAGS}"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake <<\EOF
785 @echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_${ac_make}_set=yes
792 eval ac_cv_prog_make_${ac_make}_set=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE="MAKE=${MAKE-make}"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy "$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
942 ac_cv_prog_cc_cross=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c <<EOF
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 CPP="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1074 CPP="${CC-cc} -nologo -E"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1098 ac_cv_prog_CPP="$CPP"
1100 CPP="$ac_cv_prog_CPP"
1102 ac_cv_prog_CPP="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1107 if test $host != $build; then
1108 ac_tool_prefix=${host_alias}-
1113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1135 RANLIB="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1139 echo "$ac_t""no" 1>&6
1143 if test -z "$ac_cv_prog_RANLIB"; then
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "ranlib", so it can be a program name with args.
1146 set dummy ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="ranlib"
1165 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1168 RANLIB="$ac_cv_prog_RANLIB"
1169 if test -n "$RANLIB"; then
1170 echo "$ac_t""$RANLIB" 1>&6
1172 echo "$ac_t""no" 1>&6
1181 ALL_LINGUAS="de fr no ru"
1183 cat >> confdefs.h <<EOF
1184 #define PACKAGE "vlc"
1187 cat >> confdefs.h <<EOF
1188 #define VERSION "$VLC_VERSION"
1191 # Extract the first word of "ranlib", so it can be a program name with args.
1192 set dummy ranlib; ac_word=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$RANLIB"; then
1199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_prog_RANLIB="ranlib"
1211 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1214 RANLIB="$ac_cv_prog_RANLIB"
1215 if test -n "$RANLIB"; then
1216 echo "$ac_t""$RANLIB" 1>&6
1218 echo "$ac_t""no" 1>&6
1222 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1223 echo "configure:1224: checking for strerror in -lcposix" >&5
1224 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 ac_save_LIBS="$LIBS"
1229 LIBS="-lcposix $LIBS"
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233 /* Override any gcc2 internal prototype to avoid an error. */
1234 /* We use char because int might match the return type of a gcc2
1235 builtin and then its argument prototype would still apply. */
1242 if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1244 eval "ac_cv_lib_$ac_lib_var=yes"
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1249 eval "ac_cv_lib_$ac_lib_var=no"
1252 LIBS="$ac_save_LIBS"
1255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1256 echo "$ac_t""yes" 1>&6
1257 LIBS="$LIBS -lcposix"
1259 echo "$ac_t""no" 1>&6
1264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1265 echo "configure:1266: checking for ANSI C header files" >&5
1266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1282 ac_cv_header_stdc=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 ac_cv_header_stdc=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "memchr" >/dev/null 2>&1; then
1304 ac_cv_header_stdc=no
1310 if test $ac_cv_header_stdc = yes; then
1311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "free" >/dev/null 2>&1; then
1322 ac_cv_header_stdc=no
1328 if test $ac_cv_header_stdc = yes; then
1329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1330 if test "$cross_compiling" = yes; then
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1340 int main () { int i; for (i = 0; i < 256; i++)
1341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 ac_cv_header_stdc=no
1360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1361 if test $ac_cv_header_stdc = yes; then
1362 cat >> confdefs.h <<\EOF
1363 #define STDC_HEADERS 1
1368 echo $ac_n "checking for working const""... $ac_c" 1>&6
1369 echo "configure:1370: checking for working const" >&5
1370 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1379 /* Ultrix mips cc rejects this. */
1380 typedef int charset[2]; const charset x;
1381 /* SunOS 4.1.1 cc rejects this. */
1382 char const *const *ccp;
1384 /* NEC SVR4.0.2 mips cc rejects this. */
1385 struct point {int x, y;};
1386 static struct point const zero = {0,0};
1387 /* AIX XL C 1.02.0.0 rejects this.
1388 It does not let you subtract one const X* pointer from another in an arm
1389 of an if-expression whose if-part is not a constant expression */
1390 const char *g = "string";
1391 ccp = &g + (g ? g-g : 0);
1392 /* HPUX 7.0 cc rejects these. */
1395 ccp = (char const *const *) p;
1396 { /* SCO 3.2v4 cc rejects this. */
1398 char const *s = 0 ? (char *) 0 : (char const *) 0;
1402 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1404 const int *foo = &x[0];
1407 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1408 typedef const int *iptr;
1412 { /* AIX XL C 1.02.0.0 rejects this saying
1413 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1414 struct s { int j; const int *ap[3]; };
1415 struct s *b; b->j = 5;
1417 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1423 if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1435 echo "$ac_t""$ac_cv_c_const" 1>&6
1436 if test $ac_cv_c_const = no; then
1437 cat >> confdefs.h <<\EOF
1443 echo $ac_n "checking for inline""... $ac_c" 1>&6
1444 echo "configure:1445: checking for inline" >&5
1445 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1449 for ac_kw in inline __inline__ __inline; do
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1458 if { (eval echo configure:1459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 ac_cv_c_inline=$ac_kw; break
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1470 echo "$ac_t""$ac_cv_c_inline" 1>&6
1471 case "$ac_cv_c_inline" in
1473 no) cat >> confdefs.h <<\EOF
1477 *) cat >> confdefs.h <<EOF
1478 #define inline $ac_cv_c_inline
1483 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1484 echo "configure:1485: checking for off_t" >&5
1485 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1491 #include <sys/types.h>
1497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1498 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1500 ac_cv_type_off_t=yes
1508 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1509 if test $ac_cv_type_off_t = no; then
1510 cat >> confdefs.h <<\EOF
1516 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1517 echo "configure:1518: checking for size_t" >&5
1518 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 #include <sys/types.h>
1530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1531 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1533 ac_cv_type_size_t=yes
1536 ac_cv_type_size_t=no
1541 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1542 if test $ac_cv_type_size_t = no; then
1543 cat >> confdefs.h <<\EOF
1544 #define size_t unsigned
1549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1550 # for constant arguments. Useless!
1551 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1552 echo "configure:1553: checking for working alloca.h" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1561 char *p = alloca(2 * sizeof(int));
1564 if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1566 ac_cv_header_alloca_h=yes
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1571 ac_cv_header_alloca_h=no
1576 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1577 if test $ac_cv_header_alloca_h = yes; then
1578 cat >> confdefs.h <<\EOF
1579 #define HAVE_ALLOCA_H 1
1584 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1585 echo "configure:1586: checking for alloca" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1594 # define alloca __builtin_alloca
1597 # include <malloc.h>
1598 # define alloca _alloca
1601 # include <alloca.h>
1606 # ifndef alloca /* predefined by HP cc +Olibcalls */
1615 char *p = (char *) alloca(1);
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620 ac_cv_func_alloca_works=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 ac_cv_func_alloca_works=no
1630 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1631 if test $ac_cv_func_alloca_works = yes; then
1632 cat >> confdefs.h <<\EOF
1633 #define HAVE_ALLOCA 1
1638 if test $ac_cv_func_alloca_works = no; then
1639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1640 # that cause trouble. Some versions do not even contain alloca or
1641 # contain a buggy version. If you still want to use their alloca,
1642 # use ar to extract alloca.o from them instead of compiling alloca.c.
1643 ALLOCA=alloca.${ac_objext}
1644 cat >> confdefs.h <<\EOF
1649 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether alloca needs Cray hooks" >&5
1651 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #if defined(CRAY) && ! defined(CRAY2)
1664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1665 egrep "webecray" >/dev/null 2>&1; then
1676 echo "$ac_t""$ac_cv_os_cray" 1>&6
1677 if test $ac_cv_os_cray = yes; then
1678 for ac_func in _getb67 GETB67 getb67; do
1679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_func" >&5
1681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $ac_func(); below. */
1690 /* Override any gcc2 internal prototype to avoid an error. */
1691 /* We use char because int might match the return type of a gcc2
1692 builtin and then its argument prototype would still apply. */
1697 /* The GNU C library defines this for functions which it implements
1698 to always fail with ENOSYS. Some functions are actually named
1699 something starting with __ and the normal name is an alias. */
1700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 eval "ac_cv_func_$ac_func=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_func_$ac_func=no"
1720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 cat >> confdefs.h <<EOF
1723 #define CRAY_STACKSEG_END $ac_func
1728 echo "$ac_t""no" 1>&6
1734 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1735 echo "configure:1736: checking stack direction for C alloca" >&5
1736 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 if test "$cross_compiling" = yes; then
1740 ac_cv_c_stack_direction=0
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 find_stack_direction ()
1747 static char *addr = 0;
1752 return find_stack_direction ();
1755 return (&dummy > addr) ? 1 : -1;
1759 exit (find_stack_direction() < 0);
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1764 ac_cv_c_stack_direction=1
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 ac_cv_c_stack_direction=-1
1776 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1777 cat >> confdefs.h <<EOF
1778 #define STACK_DIRECTION $ac_cv_c_stack_direction
1783 for ac_hdr in unistd.h
1785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_hdr" >&5
1788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1799 if test -z "$ac_err"; then
1801 eval "ac_cv_header_$ac_safe=yes"
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 eval "ac_cv_header_$ac_safe=no"
1811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_hdr 1
1819 echo "$ac_t""no" 1>&6
1823 for ac_func in getpagesize
1825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_func" >&5
1827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $ac_func(); below. */
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1843 /* The GNU C library defines this for functions which it implements
1844 to always fail with ENOSYS. Some functions are actually named
1845 something starting with __ and the normal name is an alias. */
1846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856 eval "ac_cv_func_$ac_func=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_func_$ac_func=no"
1866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1869 cat >> confdefs.h <<EOF
1870 #define $ac_tr_func 1
1874 echo "$ac_t""no" 1>&6
1878 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1879 echo "configure:1880: checking for working mmap" >&5
1880 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test "$cross_compiling" = yes; then
1884 ac_cv_func_mmap_fixed_mapped=no
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1890 /* Thanks to Mike Haertel and Jim Avera for this test.
1891 Here is a matrix of mmap possibilities:
1892 mmap private not fixed
1893 mmap private fixed at somewhere currently unmapped
1894 mmap private fixed at somewhere already mapped
1895 mmap shared not fixed
1896 mmap shared fixed at somewhere currently unmapped
1897 mmap shared fixed at somewhere already mapped
1898 For private mappings, we should verify that changes cannot be read()
1899 back from the file, nor mmap's back from the file at a different
1900 address. (There have been systems where private was not correctly
1901 implemented like the infamous i386 svr4.0, and systems where the
1902 VM page cache was not coherent with the filesystem buffer cache
1903 like early versions of FreeBSD and possibly contemporary NetBSD.)
1904 For shared mappings, we should conversely verify that changes get
1905 propogated back to all the places they're supposed to be.
1907 Grep wants private fixed already mapped.
1908 The main things grep needs to know about mmap are:
1909 * does it exist and is it safe to write into the mmap'd area
1910 * how to use it (BSD variants) */
1911 #include <sys/types.h>
1913 #include <sys/mman.h>
1915 /* This mess was copied from the GNU getpagesize.h. */
1916 #ifndef HAVE_GETPAGESIZE
1917 # ifdef HAVE_UNISTD_H
1918 # include <unistd.h>
1921 /* Assume that all systems that can run configure have sys/param.h. */
1922 # ifndef HAVE_SYS_PARAM_H
1923 # define HAVE_SYS_PARAM_H 1
1926 # ifdef _SC_PAGESIZE
1927 # define getpagesize() sysconf(_SC_PAGESIZE)
1928 # else /* no _SC_PAGESIZE */
1929 # ifdef HAVE_SYS_PARAM_H
1930 # include <sys/param.h>
1931 # ifdef EXEC_PAGESIZE
1932 # define getpagesize() EXEC_PAGESIZE
1933 # else /* no EXEC_PAGESIZE */
1935 # define getpagesize() NBPG * CLSIZE
1938 # endif /* no CLSIZE */
1939 # else /* no NBPG */
1941 # define getpagesize() NBPC
1942 # else /* no NBPC */
1944 # define getpagesize() PAGESIZE
1945 # endif /* PAGESIZE */
1946 # endif /* no NBPC */
1947 # endif /* no NBPG */
1948 # endif /* no EXEC_PAGESIZE */
1949 # else /* no HAVE_SYS_PARAM_H */
1950 # define getpagesize() 8192 /* punt totally */
1951 # endif /* no HAVE_SYS_PARAM_H */
1952 # endif /* no _SC_PAGESIZE */
1954 #endif /* no HAVE_GETPAGESIZE */
1957 extern "C" { void *malloc(unsigned); }
1965 char *data, *data2, *data3;
1969 pagesize = getpagesize();
1972 * First, make a file with some known garbage in it.
1974 data = malloc(pagesize);
1977 for (i = 0; i < pagesize; ++i)
1978 *(data + i) = rand();
1980 fd = creat("conftestmmap", 0600);
1983 if (write(fd, data, pagesize) != pagesize)
1988 * Next, try to mmap the file at a fixed address which
1989 * already has something else allocated at it. If we can,
1990 * also make sure that we see the same garbage.
1992 fd = open("conftestmmap", O_RDWR);
1995 data2 = malloc(2 * pagesize);
1998 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1999 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2000 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2002 for (i = 0; i < pagesize; ++i)
2003 if (*(data + i) != *(data2 + i))
2007 * Finally, make sure that changes to the mapped area
2008 * do not percolate back to the file as seen by read().
2009 * (This is a bug on some variants of i386 svr4.0.)
2011 for (i = 0; i < pagesize; ++i)
2012 *(data2 + i) = *(data2 + i) + 1;
2013 data3 = malloc(pagesize);
2016 if (read(fd, data3, pagesize) != pagesize)
2018 for (i = 0; i < pagesize; ++i)
2019 if (*(data + i) != *(data3 + i))
2022 unlink("conftestmmap");
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2029 ac_cv_func_mmap_fixed_mapped=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 ac_cv_func_mmap_fixed_mapped=no
2041 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2043 cat >> confdefs.h <<\EOF
2050 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether we are using the GNU C Library 2.1 or newer" >&5
2052 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2059 #include <features.h>
2060 #ifdef __GNU_LIBRARY__
2061 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2068 egrep "Lucky GNU user" >/dev/null 2>&1; then
2070 ac_cv_gnu_library_2_1=yes
2073 ac_cv_gnu_library_2_1=no
2081 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2083 GLIBC21="$ac_cv_gnu_library_2_1"
2087 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2088 stdlib.h string.h unistd.h sys/param.h
2090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_hdr" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_hdr 1
2124 echo "$ac_t""no" 1>&6
2128 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2129 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2130 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_func" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $ac_func(); below. */
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2150 /* The GNU C library defines this for functions which it implements
2151 to always fail with ENOSYS. Some functions are actually named
2152 something starting with __ and the normal name is an alias. */
2153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2163 eval "ac_cv_func_$ac_func=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_func_$ac_func=no"
2173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_func 1
2181 echo "$ac_t""no" 1>&6
2188 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2189 if test "${with_libiconv_prefix+set}" = set; then
2190 withval="$with_libiconv_prefix"
2192 for dir in `echo "$withval" | tr : ' '`; do
2193 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2194 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2200 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2201 echo "configure:2202: checking for iconv" >&5
2202 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2206 am_cv_func_iconv="no, consider installing GNU libiconv"
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2214 iconv_t cd = iconv_open("","");
2215 iconv(cd,NULL,NULL,NULL,NULL);
2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2221 am_cv_func_iconv=yes
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2227 if test "$am_cv_func_iconv" != yes; then
2228 am_save_LIBS="$LIBS"
2229 LIBS="$LIBS -liconv"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2236 iconv_t cd = iconv_open("","");
2237 iconv(cd,NULL,NULL,NULL,NULL);
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 am_cv_func_iconv=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2250 LIBS="$am_save_LIBS"
2255 echo "$ac_t""$am_cv_func_iconv" 1>&6
2256 if test "$am_cv_func_iconv" = yes; then
2257 cat >> confdefs.h <<\EOF
2258 #define HAVE_ICONV 1
2261 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2262 echo "configure:2263: checking for iconv declaration" >&5
2263 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2277 #if defined(__STDC__) || defined(__cplusplus)
2278 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2287 if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2289 am_cv_proto_iconv_arg1=""
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 am_cv_proto_iconv_arg1="const"
2297 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2300 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2301 echo "$ac_t""${ac_t:-
2302 }$am_cv_proto_iconv" 1>&6
2303 cat >> confdefs.h <<EOF
2304 #define ICONV_CONST $am_cv_proto_iconv_arg1
2309 if test "$am_cv_lib_iconv" = yes; then
2315 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2316 echo "configure:2317: checking for nl_langinfo and CODESET" >&5
2317 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <langinfo.h>
2325 char* cs = nl_langinfo(CODESET);
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2330 am_cv_langinfo_codeset=yes
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 am_cv_langinfo_codeset=no
2341 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2342 if test $am_cv_langinfo_codeset = yes; then
2343 cat >> confdefs.h <<\EOF
2344 #define HAVE_LANGINFO_CODESET 1
2349 if test $ac_cv_header_locale_h = yes; then
2350 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2351 echo "configure:2352: checking for LC_MESSAGES" >&5
2352 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 am_cv_val_LC_MESSAGES=yes
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 am_cv_val_LC_MESSAGES=no
2375 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2376 if test $am_cv_val_LC_MESSAGES = yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define HAVE_LC_MESSAGES 1
2383 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2384 echo "configure:2385: checking whether NLS is requested" >&5
2385 # Check whether --enable-nls or --disable-nls was given.
2386 if test "${enable_nls+set}" = set; then
2387 enableval="$enable_nls"
2393 echo "$ac_t""$USE_NLS" 1>&6
2396 BUILD_INCLUDED_LIBINTL=no
2397 USE_INCLUDED_LIBINTL=no
2400 if test "$USE_NLS" = "yes"; then
2401 cat >> confdefs.h <<\EOF
2402 #define ENABLE_NLS 1
2405 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2406 echo "configure:2407: checking whether included gettext is requested" >&5
2407 # Check whether --with-included-gettext or --without-included-gettext was given.
2408 if test "${with_included_gettext+set}" = set; then
2409 withval="$with_included_gettext"
2410 nls_cv_force_use_gnu_gettext=$withval
2412 nls_cv_force_use_gnu_gettext=no
2415 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2417 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2418 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2424 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2426 echo "configure:2427: checking for libintl.h" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <libintl.h>
2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2453 echo "configure:2454: checking for GNU gettext in libc" >&5
2454 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 #include <libintl.h>
2461 extern int _nl_msg_cat_cntr;
2463 bindtextdomain ("", "");
2464 return (int) gettext ("") + _nl_msg_cat_cntr
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2469 gt_cv_func_gnugettext1_libc=yes
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 gt_cv_func_gnugettext1_libc=no
2479 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2481 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2482 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2483 echo "configure:2484: checking for GNU gettext in libintl" >&5
2484 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 gt_save_LIBS="$LIBS"
2488 LIBS="$LIBS -lintl $LIBICONV"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <libintl.h>
2493 extern int _nl_msg_cat_cntr;
2495 bindtextdomain ("", "");
2496 return (int) gettext ("") + _nl_msg_cat_cntr
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 gt_cv_func_gnugettext1_libintl=yes
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 gt_cv_func_gnugettext1_libintl=no
2509 LIBS="$gt_save_LIBS"
2512 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2515 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2516 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2517 && test "$PACKAGE" != gettext; }; then
2518 cat >> confdefs.h <<\EOF
2519 #define HAVE_GETTEXT 1
2523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2524 INTLLIBS="-lintl $LIBICONV"
2527 gt_save_LIBS="$LIBS"
2528 LIBS="$LIBS $INTLLIBS"
2529 for ac_func in dcgettext
2531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_func" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char $ac_func(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2562 eval "ac_cv_func_$ac_func=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_func_$ac_func=no"
2572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2575 cat >> confdefs.h <<EOF
2576 #define $ac_tr_func 1
2580 echo "$ac_t""no" 1>&6
2584 LIBS="$gt_save_LIBS"
2586 # Extract the first word of "msgfmt", so it can be a program name with args.
2587 set dummy msgfmt; ac_word=$2
2588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_word" >&5
2590 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2599 for ac_dir in $PATH; do
2600 test -z "$ac_dir" && ac_dir=.
2601 if test -f $ac_dir/$ac_word; then
2602 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2603 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2609 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2613 MSGFMT="$ac_cv_path_MSGFMT"
2614 if test "$MSGFMT" != ":"; then
2615 echo "$ac_t""$MSGFMT" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2621 set dummy gmsgfmt; ac_word=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2632 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2637 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if test -f $ac_dir/$ac_word; then
2640 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2645 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2649 GMSGFMT="$ac_cv_path_GMSGFMT"
2650 if test -n "$GMSGFMT"; then
2651 echo "$ac_t""$GMSGFMT" 1>&6
2653 echo "$ac_t""no" 1>&6
2657 # Extract the first word of "xgettext", so it can be a program name with args.
2658 set dummy xgettext; ac_word=$2
2659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_word" >&5
2661 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2670 for ac_dir in $PATH; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2673 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2674 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2680 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2684 XGETTEXT="$ac_cv_path_XGETTEXT"
2685 if test "$XGETTEXT" != ":"; then
2686 echo "$ac_t""$XGETTEXT" 1>&6
2688 echo "$ac_t""no" 1>&6
2696 echo "$ac_t""no" 1>&6
2700 if test "$CATOBJEXT" = "NONE"; then
2701 nls_cv_use_gnu_gettext=yes
2705 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2706 INTLOBJS="\$(GETTOBJS)"
2707 # Extract the first word of "msgfmt", so it can be a program name with args.
2708 set dummy msgfmt; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2720 for ac_dir in $PATH; do
2721 test -z "$ac_dir" && ac_dir=.
2722 if test -f $ac_dir/$ac_word; then
2723 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2724 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2730 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2734 MSGFMT="$ac_cv_path_MSGFMT"
2735 if test "$MSGFMT" != ":"; then
2736 echo "$ac_t""$MSGFMT" 1>&6
2738 echo "$ac_t""no" 1>&6
2741 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2742 set dummy gmsgfmt; ac_word=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2758 for ac_dir in $ac_dummy; do
2759 test -z "$ac_dir" && ac_dir=.
2760 if test -f $ac_dir/$ac_word; then
2761 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2766 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2770 GMSGFMT="$ac_cv_path_GMSGFMT"
2771 if test -n "$GMSGFMT"; then
2772 echo "$ac_t""$GMSGFMT" 1>&6
2774 echo "$ac_t""no" 1>&6
2777 # Extract the first word of "xgettext", so it can be a program name with args.
2778 set dummy xgettext; ac_word=$2
2779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_word" >&5
2781 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2786 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2790 for ac_dir in $PATH; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f $ac_dir/$ac_word; then
2793 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2794 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2804 XGETTEXT="$ac_cv_path_XGETTEXT"
2805 if test "$XGETTEXT" != ":"; then
2806 echo "$ac_t""$XGETTEXT" 1>&6
2808 echo "$ac_t""no" 1>&6
2812 BUILD_INCLUDED_LIBINTL=yes
2813 USE_INCLUDED_LIBINTL=yes
2815 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2816 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2819 if test "$GMSGFMT" != ":"; then
2820 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2823 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2828 if test "$XGETTEXT" != ":"; then
2829 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2832 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2842 if test "$PACKAGE" = gettext; then
2843 BUILD_INCLUDED_LIBINTL=yes
2846 for ac_prog in bison
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_word" >&5
2852 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 if test -n "$INTLBISON"; then
2856 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2860 for ac_dir in $ac_dummy; do
2861 test -z "$ac_dir" && ac_dir=.
2862 if test -f $ac_dir/$ac_word; then
2863 ac_cv_prog_INTLBISON="$ac_prog"
2870 INTLBISON="$ac_cv_prog_INTLBISON"
2871 if test -n "$INTLBISON"; then
2872 echo "$ac_t""$INTLBISON" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 test -n "$INTLBISON" && break
2880 if test -z "$INTLBISON"; then
2883 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2884 echo "configure:2885: checking version of bison" >&5
2885 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2886 case $ac_prog_version in
2887 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2888 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2889 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2890 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2892 echo "$ac_t""$ac_prog_version" 1>&6
2894 if test $ac_verc_fail = yes; then
2898 for lang in $ALL_LINGUAS; do
2899 GMOFILES="$GMOFILES $lang.gmo"
2900 POFILES="$POFILES $lang.po"
2914 nls_cv_header_libgt=
2926 if test "x$CATOBJEXT" != "x"; then
2927 if test "x$ALL_LINGUAS" = "x"; then
2930 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2931 echo "configure:2932: checking for catalogs to be installed" >&5
2933 for presentlang in $ALL_LINGUAS; do
2935 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2936 # Use the presentlang catalog if desiredlang is
2937 # a. equal to presentlang, or
2938 # b. a variant of presentlang (because in this case,
2939 # presentlang can be used as a fallback for messages
2940 # which are not translated in the desiredlang catalog).
2941 case "$desiredlang" in
2942 "$presentlang"*) useit=yes;;
2945 if test $useit = yes; then
2946 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2949 LINGUAS=$NEW_LINGUAS
2950 echo "$ac_t""$LINGUAS" 1>&6
2953 if test -n "$LINGUAS"; then
2954 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2959 if test -n "$ac_aux_dir"; then
2960 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2962 if test -z "$MKINSTALLDIRS"; then
2963 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2967 INTL_LIBTOOL_SUFFIX_PREFIX=
2971 # Find a good install program. We prefer a C program (faster),
2972 # so one script is as good as another. But avoid the broken or
2973 # incompatible versions:
2974 # SysV /etc/install, /usr/sbin/install
2975 # SunOS /usr/etc/install
2976 # IRIX /sbin/install
2978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981 # ./install, which can be erroneously created by make from ./install.sh.
2982 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2983 echo "configure:2984: checking for a BSD compatible install" >&5
2984 if test -z "$INSTALL"; then
2985 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2989 for ac_dir in $PATH; do
2990 # Account for people who put trailing slashes in PATH elements.
2992 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2994 # OSF1 and SCO ODT 3.0 have their own names for install.
2995 # Don't use installbsd from OSF since it installs stuff as root
2997 for ac_prog in ginstall scoinst install; do
2998 if test -f $ac_dir/$ac_prog; then
2999 if test $ac_prog = install &&
3000 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3001 # AIX install. It has an incompatible calling convention.
3004 ac_cv_path_install="$ac_dir/$ac_prog -c"
3015 if test "${ac_cv_path_install+set}" = set; then
3016 INSTALL="$ac_cv_path_install"
3018 # As a last resort, use the slow shell script. We don't cache a
3019 # path for INSTALL within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the path is relative.
3022 INSTALL="$ac_install_sh"
3025 echo "$ac_t""$INSTALL" 1>&6
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3036 case x"${target_os}" in
3051 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}windres; ac_word=$2
3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_word" >&5
3055 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 if test -n "$WINDRES"; then
3059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3063 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if test -f $ac_dir/$ac_word; then
3066 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3073 WINDRES="$ac_cv_prog_WINDRES"
3074 if test -n "$WINDRES"; then
3075 echo "$ac_t""$WINDRES" 1>&6
3077 echo "$ac_t""no" 1>&6
3081 if test -z "$ac_cv_prog_WINDRES"; then
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "windres", so it can be a program name with args.
3084 set dummy windres; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$WINDRES"; then
3091 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_WINDRES="windres"
3103 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3106 WINDRES="$ac_cv_prog_WINDRES"
3107 if test -n "$WINDRES"; then
3108 echo "$ac_t""$WINDRES" 1>&6
3110 echo "$ac_t""no" 1>&6
3118 LIB_IPV4="${LIB_IPV4} -lws2_32"
3119 LIB_RC="${LIB_RC} -lws2_32"
3123 LIB_X11="${LIB_X11} -lsocket"
3124 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3128 LIB_IPV4="${LIB_IPV4} -lbind"
3129 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3130 PLDFLAGS="${PLDFLAGS} -nostart"
3137 for ac_func in gettimeofday select strerror strtod strtol isatty
3139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_func" >&5
3141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 /* System header to define __stub macros and hopefully few prototypes,
3148 which can conflict with char $ac_func(); below. */
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3157 /* The GNU C library defines this for functions which it implements
3158 to always fail with ENOSYS. Some functions are actually named
3159 something starting with __ and the normal name is an alias. */
3160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 eval "ac_cv_func_$ac_func=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 eval "ac_cv_func_$ac_func=no"
3180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_func 1
3188 echo "$ac_t""no" 1>&6
3192 echo $ac_n "checking for connect""... $ac_c" 1>&6
3193 echo "configure:3194: checking for connect" >&5
3194 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char connect(); below. */
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_connect) || defined (__stub___connect)
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 eval "ac_cv_func_connect=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 eval "ac_cv_func_connect=no"
3233 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3237 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3240 echo "configure:3241: checking for connect in -lsocket" >&5
3241 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_save_LIBS="$LIBS"
3246 LIBS="-lsocket $LIBS"
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_lib_$ac_lib_var=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_lib_$ac_lib_var=no"
3269 LIBS="$ac_save_LIBS"
3272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 LIB_IPV4="${LIB_IPV4} -lsocket"
3275 LIB_VLC="${LIB_VLC} -lsocket"
3278 echo "$ac_t""no" 1>&6
3283 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3284 echo "configure:3285: checking for gethostbyname" >&5
3285 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* System header to define __stub macros and hopefully few prototypes,
3292 which can conflict with char gethostbyname(); below. */
3294 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3297 char gethostbyname();
3301 /* The GNU C library defines this for functions which it implements
3302 to always fail with ENOSYS. Some functions are actually named
3303 something starting with __ and the normal name is an alias. */
3304 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3314 eval "ac_cv_func_gethostbyname=yes"
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3319 eval "ac_cv_func_gethostbyname=no"
3324 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3328 echo "$ac_t""no" 1>&6
3330 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3331 echo "configure:3332: checking for gethostbyname in -lnsl" >&5
3332 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 ac_save_LIBS="$LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gethostbyname();
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 eval "ac_cv_lib_$ac_lib_var=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 eval "ac_cv_lib_$ac_lib_var=no"
3360 LIBS="$ac_save_LIBS"
3363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3364 echo "$ac_t""yes" 1>&6
3365 LIB_IPV4="${LIB_IPV4} -lnsl"
3367 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3374 echo "configure:3375: checking for gethostbyname" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char gethostbyname(); below. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char gethostbyname();
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_func_gethostbyname=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_func_gethostbyname=no"
3414 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3418 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3421 echo "configure:3422: checking for gethostbyname in -lbind" >&5
3422 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3434 char gethostbyname();
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 LIB_IPV4="${LIB_IPV4} -lbind"
3457 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3464 echo "configure:3465: checking for nanosleep" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char nanosleep(); below. */
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_func_nanosleep=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_func_nanosleep=no"
3504 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3508 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3511 echo "configure:3512: checking for nanosleep in -lrt" >&5
3512 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 LIB_VLC="${LIB_VLC} -lrt"
3547 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3550 echo "configure:3551: checking for nanosleep in -lposix4" >&5
3551 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lposix4 $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 LIB_VLC="${LIB_VLC} -lposix4"
3586 echo "$ac_t""no" 1>&6
3595 for ac_func in usleep
3597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_func" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char $ac_func(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_$ac_func=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_$ac_func=no"
3638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_func 1
3646 echo "$ac_t""no" 1>&6
3650 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3651 echo "configure:3652: checking for inet_aton" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char inet_aton(); below. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3668 /* The GNU C library defines this for functions which it implements
3669 to always fail with ENOSYS. Some functions are actually named
3670 something starting with __ and the normal name is an alias. */
3671 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_func_inet_aton=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_func_inet_aton=no"
3691 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3695 echo "$ac_t""no" 1>&6
3697 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3698 echo "configure:3699: checking for inet_aton in -lresolv" >&5
3699 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS="$LIBS"
3704 LIBS="-lresolv $LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 LIB_VLC="${LIB_IPV4} -lresolv"
3734 echo "$ac_t""no" 1>&6
3740 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3741 echo "configure:3742: checking for textdomain" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char textdomain(); below. */
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 eval "ac_cv_func_textdomain=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 eval "ac_cv_func_textdomain=no"
3781 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3785 echo "$ac_t""no" 1>&6
3787 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3788 echo "configure:3789: checking for textdomain in -lintl" >&5
3789 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 ac_save_LIBS="$LIBS"
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 LIB_VLC="${LIB_VLC} -lintl"
3824 echo "$ac_t""no" 1>&6
3830 for ac_func in vasprintf
3832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_func" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char $ac_func(); below. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 eval "ac_cv_func_$ac_func=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "ac_cv_func_$ac_func=no"
3873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3876 cat >> confdefs.h <<EOF
3877 #define $ac_tr_func 1
3881 echo "$ac_t""no" 1>&6
3887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3888 echo "configure:3889: checking for $ac_func" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char $ac_func(); below. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3905 /* The GNU C library defines this for functions which it implements
3906 to always fail with ENOSYS. Some functions are actually named
3907 something starting with __ and the normal name is an alias. */
3908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918 eval "ac_cv_func_$ac_func=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_func_$ac_func=no"
3928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3931 cat >> confdefs.h <<EOF
3932 #define $ac_tr_func 1
3936 echo "$ac_t""no" 1>&6
3940 for ac_func in memalign valloc
3942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3943 echo "configure:3944: checking for $ac_func" >&5
3944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char $ac_func(); below. */
3953 /* Override any gcc2 internal prototype to avoid an error. */
3954 /* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */
3960 /* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */
3963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_func_$ac_func=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_func_$ac_func=no"
3983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3986 cat >> confdefs.h <<EOF
3987 #define $ac_tr_func 1
3991 echo "$ac_t""no" 1>&6
3996 for ac_func in sigrelse
3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_func" >&5
4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* System header to define __stub macros and hopefully few prototypes,
4007 which can conflict with char $ac_func(); below. */
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4029 eval "ac_cv_func_$ac_func=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 eval "ac_cv_func_$ac_func=no"
4039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4042 cat >> confdefs.h <<EOF
4043 #define $ac_tr_func 1
4047 echo "$ac_t""no" 1>&6
4051 for ac_func in getpwuid
4053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_func" >&5
4055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* System header to define __stub macros and hopefully few prototypes,
4062 which can conflict with char $ac_func(); below. */
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4071 /* The GNU C library defines this for functions which it implements
4072 to always fail with ENOSYS. Some functions are actually named
4073 something starting with __ and the normal name is an alias. */
4074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084 eval "ac_cv_func_$ac_func=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 eval "ac_cv_func_$ac_func=no"
4094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4097 cat >> confdefs.h <<EOF
4098 #define $ac_tr_func 1
4102 echo "$ac_t""no" 1>&6
4108 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4109 echo "configure:4110: checking for getopt_long" >&5
4110 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char getopt_long(); below. */
4119 /* Override any gcc2 internal prototype to avoid an error. */
4120 /* We use char because int might match the return type of a gcc2
4121 builtin and then its argument prototype would still apply. */
4126 /* The GNU C library defines this for functions which it implements
4127 to always fail with ENOSYS. Some functions are actually named
4128 something starting with __ and the normal name is an alias. */
4129 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4139 eval "ac_cv_func_getopt_long=yes"
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 eval "ac_cv_func_getopt_long=no"
4149 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4151 cat >> confdefs.h <<\EOF
4152 #define HAVE_GETOPT_LONG 1
4156 echo "$ac_t""no" 1>&6
4157 # FreeBSD has a gnugetopt library for this:
4158 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4159 echo "configure:4160: checking for getopt_long in -lgnugetopt" >&5
4160 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4165 LIBS="-lgnugetopt $LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_lib_$ac_lib_var=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_lib_$ac_lib_var=no"
4188 LIBS="$ac_save_LIBS"
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 cat >> confdefs.h <<\EOF
4194 #define HAVE_GETOPT_LONG 1
4196 LIB_VLC="${LIB_VLC} -lgnugetopt"
4198 echo "$ac_t""no" 1>&6
4205 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4206 echo "configure:4207: checking return type of signal handlers" >&5
4207 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 #include <sys/types.h>
4219 extern "C" void (*signal (int, void (*)(int)))(int);
4221 void (*signal ()) ();
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 ac_cv_type_signal=void
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 ac_cv_type_signal=int
4240 echo "$ac_t""$ac_cv_type_signal" 1>&6
4241 cat >> confdefs.h <<EOF
4242 #define RETSIGTYPE $ac_cv_type_signal
4246 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4247 echo "configure:4248: checking for dlopen in -ldl" >&5
4248 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS="$LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 LIB_VLC="${LIB_VLC} -ldl"
4283 echo "$ac_t""no" 1>&6
4286 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4287 echo "configure:4288: checking for cos in -lm" >&5
4288 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 ac_save_LIBS="$LIBS"
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* Override any gcc2 internal prototype to avoid an error. */
4298 /* We use char because int might match the return type of a gcc2
4299 builtin and then its argument prototype would still apply. */
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4308 eval "ac_cv_lib_$ac_lib_var=yes"
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4313 eval "ac_cv_lib_$ac_lib_var=no"
4316 LIBS="$ac_save_LIBS"
4319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 LIB_IMDCT="${LIB_IMDCT} -lm"
4322 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4324 echo "$ac_t""no" 1>&6
4327 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4328 echo "configure:4329: checking for pow in -lm" >&5
4329 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 ac_save_LIBS="$LIBS"
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4349 eval "ac_cv_lib_$ac_lib_var=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 eval "ac_cv_lib_$ac_lib_var=no"
4357 LIBS="$ac_save_LIBS"
4360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4361 echo "$ac_t""yes" 1>&6
4362 LIB_IMDCT="${LIB_IMDCT} -lm"
4363 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4364 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4367 echo "$ac_t""no" 1>&6
4372 if test "x${THREAD_LIB}" = xerror; then
4373 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4374 echo "configure:4375: checking for pthread_attr_init in -lpthread" >&5
4375 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 ac_save_LIBS="$LIBS"
4380 LIBS="-lpthread $LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4387 char pthread_attr_init();
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 THREAD_LIB="-lpthread"
4410 echo "$ac_t""no" 1>&6
4414 if test "x${THREAD_LIB}" = xerror; then
4415 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4416 echo "configure:4417: checking for pthread_attr_init in -lpthreads" >&5
4417 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4422 LIBS="-lpthreads $LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char pthread_attr_init();
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 THREAD_LIB="-lpthreads"
4452 echo "$ac_t""no" 1>&6
4456 if test "x${THREAD_LIB}" = xerror; then
4457 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4458 echo "configure:4459: checking for pthread_attr_init in -lc_r" >&5
4459 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_save_LIBS="$LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char pthread_attr_init();
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 eval "ac_cv_lib_$ac_lib_var=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4484 eval "ac_cv_lib_$ac_lib_var=no"
4487 LIBS="$ac_save_LIBS"
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4494 echo "$ac_t""no" 1>&6
4498 if test "x${THREAD_LIB}" = xerror; then
4499 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4500 echo "configure:4501: checking for pthread_attr_init" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508 which can conflict with char pthread_attr_init(); below. */
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4513 char pthread_attr_init();
4517 /* The GNU C library defines this for functions which it implements
4518 to always fail with ENOSYS. Some functions are actually named
4519 something starting with __ and the normal name is an alias. */
4520 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4523 pthread_attr_init();
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 eval "ac_cv_func_pthread_attr_init=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_func_pthread_attr_init=no"
4540 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4544 echo "$ac_t""no" 1>&6
4550 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4551 echo "configure:4552: checking for cthread_fork in -lthreads" >&5
4552 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 ac_save_LIBS="$LIBS"
4557 LIBS="-lthreads $LIBS"
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4564 char cthread_fork();
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4572 eval "ac_cv_lib_$ac_lib_var=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_lib_$ac_lib_var=no"
4580 LIBS="$ac_save_LIBS"
4583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4585 THREAD_LIB="-lthreads"
4587 echo "$ac_t""no" 1>&6
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 #include <pthread.h>
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 egrep "pthread_cond_t" >/dev/null 2>&1; then
4600 cat >> confdefs.h <<\EOF
4601 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <strings.h>
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 egrep "strncasecmp" >/dev/null 2>&1; then
4616 cat >> confdefs.h <<\EOF
4617 #define STRNCASECMP_IN_STRINGS_H 1
4624 for ac_hdr in getopt.h strings.h
4626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_hdr" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4638 { (eval echo configure:4639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4640 if test -z "$ac_err"; then
4642 eval "ac_cv_header_$ac_safe=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_header_$ac_safe=no"
4652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4655 cat >> confdefs.h <<EOF
4656 #define $ac_tr_hdr 1
4660 echo "$ac_t""no" 1>&6
4664 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_hdr" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4682 eval "ac_cv_header_$ac_safe=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_header_$ac_safe=no"
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4695 cat >> confdefs.h <<EOF
4696 #define $ac_tr_hdr 1
4700 echo "$ac_t""no" 1>&6
4704 for ac_hdr in dlfcn.h image.h
4706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_hdr" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4718 { (eval echo configure:4719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4720 if test -z "$ac_err"; then
4722 eval "ac_cv_header_$ac_safe=yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 eval "ac_cv_header_$ac_safe=no"
4732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4735 cat >> confdefs.h <<EOF
4736 #define $ac_tr_hdr 1
4740 echo "$ac_t""no" 1>&6
4744 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_hdr" >&5
4749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4758 { (eval echo configure:4759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4760 if test -z "$ac_err"; then
4762 eval "ac_cv_header_$ac_safe=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 eval "ac_cv_header_$ac_safe=no"
4772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4775 cat >> confdefs.h <<EOF
4776 #define $ac_tr_hdr 1
4780 echo "$ac_t""no" 1>&6
4784 for ac_hdr in machine/param.h sys/shm.h
4786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4802 eval "ac_cv_header_$ac_safe=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 eval "ac_cv_header_$ac_safe=no"
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_hdr 1
4820 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4826 echo "configure:4827: checking whether time.h and sys/time.h may both be included" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #include <sys/time.h>
4840 if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4842 ac_cv_header_time=yes
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 ac_cv_header_time=no
4852 echo "$ac_t""$ac_cv_header_time" 1>&6
4853 if test $ac_cv_header_time = yes; then
4854 cat >> confdefs.h <<\EOF
4855 #define TIME_WITH_SYS_TIME 1
4861 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4877 if test -z "$ac_err"; then
4879 eval "ac_cv_header_$ac_safe=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_header_$ac_safe=no"
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_hdr 1
4897 echo "$ac_t""no" 1>&6
4902 if test x$SYS != xmingw32
4904 if test x$x_includes = xNONE; then
4905 x_includes=/usr/X11R6/include
4907 if test x$x_libraries = xNONE; then
4908 x_libraries=/usr/X11R6/lib
4910 saved_CPPFLAGS=$CPPFLAGS
4911 CPPFLAGS="$CPPFLAGS -I$x_includes"
4912 for ac_hdr in X11/extensions/dpms.h
4914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_hdr" >&5
4917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4926 { (eval echo configure:4927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4928 if test -z "$ac_err"; then
4930 eval "ac_cv_header_$ac_safe=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_header_$ac_safe=no"
4940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4943 cat >> confdefs.h <<EOF
4944 #define $ac_tr_hdr 1
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 #include <X11/extensions/dpms.h>
4952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953 egrep "DPMSInfo" >/dev/null 2>&1; then
4956 cat >> confdefs.h <<\EOF
4957 #define DPMSINFO_IN_DPMS_H 1
4966 echo "$ac_t""no" 1>&6
4970 CPPFLAGS=$saved_CPPFLAGS
4973 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4974 echo "configure:4975: checking for ntohl in sys/param.h" >&5
4975 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 CFLAGS="${save_CFLAGS} -Wall -Werror"
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 #include <sys/param.h>
4984 void foo() { int meuh; ntohl(meuh); }
4987 if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4989 ac_cv_c_ntohl_sys_param_h=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 ac_cv_c_ntohl_sys_param_h=no
4999 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5000 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5001 cat >> confdefs.h <<\EOF
5002 #define NTOHL_IN_SYS_PARAM_H 1
5007 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5008 echo "configure:5009: checking if \$CC accepts -finline-limit" >&5
5009 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5021 if { (eval echo configure:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5023 ac_cv_c_inline_limit=yes
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 ac_cv_c_inline_limit=no
5033 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5034 if test x"$ac_cv_c_inline_limit" != x"no"; then
5035 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5038 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5039 echo "configure:5040: checking if \$CC accepts -Wall -Winline" >&5
5040 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 CFLAGS="${save_CFLAGS} -Wall -Winline"
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5052 if { (eval echo configure:5053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054 ac_cv_c_Wall_Winline=yes
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5059 ac_cv_c_Wall_Winline=no
5064 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5065 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5066 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5068 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5069 echo "configure:5070: checking if \$CC accepts -wall -winline" >&5
5070 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 CFLAGS="${save_CFLAGS} -wall -winline"
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5082 if { (eval echo configure:5083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 ac_cv_c_wall_winline=yes
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5089 ac_cv_c_wall_winline=no
5094 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5095 if test x"$ac_cv_c_wall_winline" != x"no"; then
5096 save_CFLAGS="${save_CFLAGS} -wall -winline"
5100 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5101 echo "configure:5102: checking if \$CC accepts -pipe" >&5
5102 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 CFLAGS="${save_CFLAGS} -pipe"
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5114 if { (eval echo configure:5115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5126 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5127 if test x"$ac_cv_c_pipe" != x"no"; then
5128 save_CFLAGS="${save_CFLAGS} -pipe"
5131 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5132 echo "configure:5133: checking if \$CC accepts -O3" >&5
5133 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 CFLAGS="${save_CFLAGS} -O3"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5145 if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5157 echo "$ac_t""$ac_cv_c_o3" 1>&6
5158 if test x"$ac_cv_c_o3" != x"no"; then
5159 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5161 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5162 echo "configure:5163: checking if \$CC accepts -O2" >&5
5163 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 CFLAGS="${save_CFLAGS} -O2"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5175 if { (eval echo configure:5176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5187 echo "$ac_t""$ac_cv_c_o2" 1>&6
5188 if test x"$ac_cv_c_o2" != x"no"; then
5189 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5191 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5192 echo "configure:5193: checking if \$CC accepts -O" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 CFLAGS="${save_CFLAGS} -O"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5217 echo "$ac_t""$ac_cv_c_o" 1>&6
5218 if test x"$ac_cv_c_o" != x"no"; then
5219 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5224 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5225 echo "configure:5226: checking if \$CC accepts -ffast-math" >&5
5226 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 CFLAGS="${save_CFLAGS} -ffast-math"
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 ac_cv_c_fast_math=yes
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 ac_cv_c_fast_math=no
5250 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5251 if test x"$ac_cv_c_fast_math" != x"no"; then
5252 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5255 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5256 echo "configure:5257: checking if \$CC accepts -funroll-loops" >&5
5257 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 CFLAGS="${save_CFLAGS} -funroll-loops"
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 ac_cv_c_unroll_loops=yes
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 ac_cv_c_unroll_loops=no
5281 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5282 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5283 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5286 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5287 echo "configure:5288: checking if \$CC accepts -fomit-frame-pointer" >&5
5288 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5291 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5300 if { (eval echo configure:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5302 ac_cv_c_omit_frame_pointer=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 ac_cv_c_omit_frame_pointer=no
5312 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5313 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5314 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5317 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5318 echo "configure:5319: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5319 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5343 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5344 if test x"$ac_cv_ld_darwin" != x"no"; then
5345 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5348 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5349 echo "configure:5350: checking if \$CC accepts -shared" >&5
5350 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 CFLAGS="${save_CFLAGS} -shared"
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5364 ac_cv_ld_plugins=yes
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5374 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5375 if test x"$ac_cv_ld_plugins" != x"no"; then
5376 PLDFLAGS="${PLDFLAGS} -shared"
5379 if test x"${SOFLAGS}" = x; then
5380 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5381 echo "configure:5382: checking for soname setting" >&5
5382 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5387 try_SOFLAGS="-Wl,-soname -Wl,"
5388 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5399 ac_cv_ld_soname="${try_SOFLAGS}"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5406 try_SOFLAGS="-Wl,-h -Wl,"
5407 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 ac_cv_ld_soname="${try_SOFLAGS}"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 ac_cv_ld_soname=none
5431 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5432 if test x"$ac_cv_ld_soname" != x"none"; then
5433 SOFLAGS=$ac_cv_ld_soname
5437 Your system doesn't seem to have support for dynamic linking. You may
5438 have problems using libdvdcss.
5444 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5445 echo "configure:5446: checking __attribute__ ((aligned ())) support" >&5
5446 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 ac_cv_c_attribute_aligned=0
5450 CFLAGS="${save_CFLAGS} -Werror"
5451 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5457 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5462 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5471 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5472 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5473 cat >> confdefs.h <<EOF
5474 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5479 CFLAGS="${save_CFLAGS}"
5480 LDFLAGS="${save_LDFLAGS}"
5482 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5483 echo "configure:5484: checking for boolean_t in sys/types.h" >&5
5484 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 #include <sys/types.h>
5495 if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 ac_cv_c_boolean_t_sys_types_h=yes
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 ac_cv_c_boolean_t_sys_types_h=no
5507 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5508 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5509 cat >> confdefs.h <<\EOF
5510 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5515 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5516 echo "configure:5517: checking for boolean_t in pthread.h" >&5
5517 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 #include <pthread.h>
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5530 ac_cv_c_boolean_t_pthread_h=yes
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 ac_cv_c_boolean_t_pthread_h=no
5540 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5541 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5542 cat >> confdefs.h <<\EOF
5543 #define BOOLEAN_T_IN_PTHREAD_H 1
5548 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5549 echo "configure:5550: checking for boolean_t in cthreads.h" >&5
5550 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 #include <cthreads.h>
5561 if { (eval echo configure:5562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5563 ac_cv_c_boolean_t_cthreads_h=yes
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5568 ac_cv_c_boolean_t_cthreads_h=no
5573 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5574 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5575 cat >> confdefs.h <<\EOF
5576 #define BOOLEAN_T_IN_CTHREADS_H 1
5581 case x"${target_cpu}" in
5590 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"
5591 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"
5593 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5594 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5595 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5596 SSE_MODULES="imdctsse downmixsse"
5597 ALTIVEC_MODULES="idctaltivec motionaltivec"
5599 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5600 echo "configure:5601: checking if \$CC groks MMX inline assembly" >&5
5601 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5609 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 ac_cv_mmx_inline=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5624 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5625 if test x"$ac_cv_mmx_inline" != x"no"; then
5626 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5629 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5630 echo "configure:5631: checking if \$CC groks MMX EXT inline assembly" >&5
5631 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5639 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5642 if { (eval echo configure:5643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5644 ac_cv_mmxext_inline=yes
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5649 ac_cv_mmxext_inline=no
5654 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5655 if test x"$ac_cv_mmxext_inline" != x"no"; then
5656 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5659 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5660 echo "configure:5661: checking if \$CC groks 3D Now! inline assembly" >&5
5661 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5669 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5672 if { (eval echo configure:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5674 ac_cv_3dnow_inline=yes
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 ac_cv_3dnow_inline=no
5684 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5685 if test x"$ac_cv_3dnow_inline" != x"no"; then
5686 cat >> confdefs.h <<\EOF
5687 #define CAN_COMPILE_3DNOW 1
5690 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5693 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5694 echo "configure:5695: checking if \$CC groks SSE inline assembly" >&5
5695 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5703 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5706 if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5708 ac_cv_sse_inline=yes
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5718 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5719 if test x"$ac_cv_sse_inline" != x"no"; then
5720 cat >> confdefs.h <<\EOF
5721 #define CAN_COMPILE_SSE 1
5724 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5727 # don't try to grok altivec with native mingw32 it doesn't work right now
5728 # we should be able to remove this test with future versions of mingw32
5729 if test x$SYS != xmingw32; then
5730 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5731 echo "configure:5732: checking if \$CC groks Altivec inline assembly" >&5
5732 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5740 asm volatile("vperm 0,1,2,3");
5743 if { (eval echo configure:5744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5745 ac_cv_altivec_inline=yes
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5751 CFLAGS="$CFLAGS -Wa,-m7400"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5757 asm volatile("vperm 0,1,2,3");
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762 ac_cv_altivec_inline="-Wa,-m7400"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 ac_cv_altivec_inline=no
5776 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5777 if test x"$ac_cv_altivec_inline" != x"no"; then
5778 cat >> confdefs.h <<\EOF
5779 #define CAN_COMPILE_ALTIVEC 1
5782 if test x"$ac_cv_altivec_inline" != x"yes"; then
5783 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5784 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5785 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5787 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5790 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5791 echo "configure:5792: checking if \$CC groks Altivec C extensions" >&5
5792 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5796 CFLAGS="$CFLAGS -faltivec"
5798 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5803 vec_mtvscr((vector unsigned int)(0));
5806 if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5808 ac_cv_c_altivec=-faltivec
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5815 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5821 vec_mtvscr((vector unsigned int)(0));
5824 if { (eval echo configure:5825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 ac_cv_c_altivec="-fvec"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5841 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5842 if test x"$ac_cv_c_altivec" != x"no"; then
5843 cat >> confdefs.h <<\EOF
5844 #define CAN_COMPILE_C_ALTIVEC 1
5847 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5848 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5849 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5850 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5853 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5854 echo "configure:5855: checking if linker needs -framework vecLib" >&5
5855 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5858 save_LDFLAGS=$LDFLAGS
5859 LDFLAGS="$LDFLAGS -framework vecLib"
5860 cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5870 ac_cv_ld_altivec=yes
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5878 LDFLAGS=$save_LDFLAGS
5882 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5883 if test x"$ac_cv_ld_altivec" != x"no"; then
5884 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5885 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5886 LIB_VLC="${LIB_VLC} -framework vecLib"
5896 DVD_DEVICE="/dev/dvd"
5897 VCD_DEVICE="/dev/cdrom"
5901 cat >> confdefs.h <<EOF
5902 #define DVD_DEVICE "$DVD_DEVICE"
5905 cat >> confdefs.h <<EOF
5906 #define VCD_DEVICE "$VCD_DEVICE"
5912 CAN_BUILD_LIBDVDCSS=0
5914 for ac_hdr in winioctl.h
5916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_hdr" >&5
5919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5928 { (eval echo configure:5929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5930 if test -z "$ac_err"; then
5932 eval "ac_cv_header_$ac_safe=yes"
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 eval "ac_cv_header_$ac_safe=no"
5942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5943 echo "$ac_t""yes" 1>&6
5944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5945 cat >> confdefs.h <<EOF
5946 #define $ac_tr_hdr 1
5949 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5952 echo "$ac_t""no" 1>&6
5957 for ac_hdr in sys/ioctl.h
5959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5961 echo "configure:5962: checking for $ac_hdr" >&5
5962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5963 echo $ac_n "(cached) $ac_c" 1>&6
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5971 { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5973 if test -z "$ac_err"; then
5975 eval "ac_cv_header_$ac_safe=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 eval "ac_cv_header_$ac_safe=no"
5985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5988 cat >> confdefs.h <<EOF
5989 #define $ac_tr_hdr 1
5992 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5993 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_hdr" >&5
5998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6007 { (eval echo configure:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6009 if test -z "$ac_err"; then
6011 eval "ac_cv_header_$ac_safe=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_header_$ac_safe=no"
6021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6024 cat >> confdefs.h <<EOF
6025 #define $ac_tr_hdr 1
6029 echo "$ac_t""no" 1>&6
6035 OPENBSD_DVD_STRUCT=0
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 #include <sys/cdio.h>
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 egrep "dvd_struct" >/dev/null 2>&1; then
6045 cat >> confdefs.h <<\EOF
6046 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 #include <sys/cdio.h>
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 egrep "struct dvd_struct" >/dev/null 2>&1; then
6061 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <sys/dvdio.h>
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 egrep "dvd_struct" >/dev/null 2>&1; then
6078 cat >> confdefs.h <<\EOF
6079 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 #include <sys/dvdio.h>
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 egrep "struct dvd_struct" >/dev/null 2>&1; then
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 #include <linux/cdrom.h>
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 egrep "dvd_struct" >/dev/null 2>&1; then
6111 cat >> confdefs.h <<\EOF
6112 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6121 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 egrep "dvd_struct" >/dev/null 2>&1; then
6130 cat >> confdefs.h <<\EOF
6131 #define DVD_STRUCT_IN_DVD_H 1
6134 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6140 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_hdr" >&5
6145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then
6158 eval "ac_cv_header_$ac_safe=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_header_$ac_safe=no"
6168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_hdr 1
6176 cat >> confdefs.h <<\EOF
6177 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6180 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6184 echo "$ac_t""no" 1>&6
6192 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6193 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6194 echo "configure:6195: checking for sys/scsi/scsi_types.h" >&5
6195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 #include <sys/scsi/scsi_types.h>
6203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6204 { (eval echo configure:6205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6206 if test -z "$ac_err"; then
6208 eval "ac_cv_header_$ac_safe=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_header_$ac_safe=no"
6218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6221 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6223 echo "configure:6224: checking for sys/scsi/impl/uscsi.h" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <sys/scsi/impl/uscsi.h>
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6237 eval "ac_cv_header_$ac_safe=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_header_$ac_safe=no"
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6250 cat >> confdefs.h <<\EOF
6251 #define SOLARIS_USCSI 1
6256 echo "$ac_t""no" 1>&6
6261 echo "$ac_t""no" 1>&6
6264 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6265 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6266 echo "configure:6267: checking for sys/scsi.h" >&5
6267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6270 cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6273 #include <sys/scsi.h>
6275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6276 { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6278 if test -z "$ac_err"; then
6280 eval "ac_cv_header_$ac_safe=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6286 eval "ac_cv_header_$ac_safe=no"
6290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <sys/scsi.h>
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 egrep "sctl_io" >/dev/null 2>&1; then
6302 cat >> confdefs.h <<\EOF
6303 #define HPUX_SCTL_IO 1
6312 echo "$ac_t""no" 1>&6
6315 if test x$LINUX_DVD_STRUCT = x1; then
6316 cat >> confdefs.h <<\EOF
6317 #define HAVE_LINUX_DVD_STRUCT 1
6320 if test x$OPENBSD_DVD_STRUCT = x1; then
6321 cat >> confdefs.h <<\EOF
6322 #define HAVE_OPENBSD_DVD_STRUCT 1
6327 if test x$BSD_DVD_STRUCT = x1; then
6328 cat >> confdefs.h <<\EOF
6329 #define HAVE_BSD_DVD_STRUCT 1
6336 echo "$ac_t""no" 1>&6
6341 # Check whether --with- or --without- was given.
6342 if test "${with_+set}" = set; then
6347 # Check whether --with- or --without- was given.
6348 if test "${with_+set}" = set; then
6354 # Check whether --with-tuning or --without-tuning was given.
6355 if test "${with_tuning+set}" = set; then
6356 withval="$with_tuning"
6360 if test "x$withval" != "x"; then
6363 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6365 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6369 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6372 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6375 # Check whether --enable-optimizations or --disable-optimizations was given.
6376 if test "${enable_optimizations+set}" = set; then
6377 enableval="$enable_optimizations"
6378 if test x$enableval = xno; then OPTIMS=0; fi
6384 # Check whether --enable-altivec or --disable-altivec was given.
6385 if test "${enable_altivec+set}" = set; then
6386 enableval="$enable_altivec"
6387 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6388 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6390 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6391 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6396 # Check whether --enable-debug or --disable-debug was given.
6397 if test "${enable_debug+set}" = set; then
6398 enableval="$enable_debug"
6399 if test x$enableval = xyes; then DEBUG=1; fi
6403 # Check whether --enable-release or --disable-release was given.
6404 if test "${enable_release+set}" = set; then
6405 enableval="$enable_release"
6406 if test x$enableval = xyes; then RELEASE=1; fi
6408 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6409 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6414 # Check whether --with- or --without- was given.
6415 if test "${with_+set}" = set; then
6424 # Check whether --with-dvdcss or --without-dvdcss was given.
6425 if test "${with_dvdcss+set}" = set; then
6426 withval="$with_dvdcss"
6427 case "x${withval}" in
6429 # local libdvdcss, statically linked
6430 BUILTINS="${BUILTINS} dvd"
6431 if test x${CAN_BUILD_LIBDVDCSS} = x1
6435 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6436 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6440 # local libdvdcss, dynamically linked
6441 PLUGINS="${PLUGINS} dvd"
6442 if test x${CAN_BUILD_LIBDVDCSS} = x1
6445 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6446 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6450 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6451 PLUGINS="${PLUGINS} dvd"
6453 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6454 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6455 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6456 LIB_DVD="${LIB_DVD} -ldl"
6459 # existing libdvdcss
6460 PLUGINS="${PLUGINS} dvd"
6461 if test "x$withval" != "xyes"
6463 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6464 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6466 LIB_DVD="${LIB_DVD} -ldvdcss"
6469 # user didn't decide, we choose to use local libdvdcss and link statically
6470 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6471 if test x${CAN_BUILD_LIBDVDCSS} = x1
6473 BUILTINS="${BUILTINS} dvd"
6476 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6477 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6479 # XXX: no check for libdl is done, don't try this at home !
6480 PLUGINS="${PLUGINS} dvd"
6482 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6483 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6484 LIB_DVD="${LIB_DVD} -ldl"
6489 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6490 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6491 # Check whether --with-dvdread or --without-dvdread was given.
6492 if test "${with_dvdread+set}" = set; then
6493 withval="$with_dvdread"
6494 case "x${withval}" in
6496 if test x${STATIC_LIBDVDREAD} = x1
6498 BUILTINS="${BUILTINS} dvdread"
6499 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6500 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6502 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6508 if test x${STATIC_LIBDVDREAD} = x1
6510 #BUILTINS="${BUILTINS} dvdread"
6511 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6512 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6514 #PLUGINS="${PLUGINS} dvdread"
6515 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6516 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6520 if test "x$withval" != "xlocal-shared"
6522 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6523 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6525 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6526 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6528 if test x${STATIC_LIBDVDCSS} = x1
6530 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6532 #PLUGINS="${PLUGINS} dvdread"
6533 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6534 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6537 if test x${DUMMY_LIBDVDCSS} = x1
6539 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6541 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6546 # Check whether --enable-vcd or --disable-vcd was given.
6547 if test "${enable_vcd+set}" = set; then
6548 enableval="$enable_vcd"
6553 if test x$enable_vcd != xno
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <linux/cdrom.h>
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "cdrom_msf0" >/dev/null 2>&1; then
6564 PLUGINS="${PLUGINS} vcd"
6570 if test "x${SYS}" = "xbsdi"
6572 PLUGINS="${PLUGINS} vcd"
6575 if test "x${SYS}" = "xdarwin"
6577 PLUGINS="${PLUGINS} vcd"
6578 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6582 # Check whether --enable-satellite or --disable-satellite was given.
6583 if test "${enable_satellite+set}" = set; then
6584 enableval="$enable_satellite"
6585 if test x$enable_satellite = xyes
6587 BUILTINS="${BUILTINS} satellite"
6588 cat >> confdefs.h <<\EOF
6589 #define HAVE_SATELLITE 1
6596 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6597 echo "configure:6598: checking for inet_pton" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char inet_pton(); below. */
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 eval "ac_cv_func_inet_pton=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_func_inet_pton=no"
6637 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6639 PLUGINS="${PLUGINS} ipv6"
6641 echo "$ac_t""no" 1>&6
6646 # Check whether --with- or --without- was given.
6647 if test "${with_+set}" = set; then
6653 # Check whether --enable-mad or --disable-mad was given.
6654 if test "${enable_mad+set}" = set; then
6655 enableval="$enable_mad"
6659 if test x$enable_mad = xyes
6661 PLUGINS="${PLUGINS} mad"
6662 LIB_MAD="${LIB_MAD} -lmad"
6663 # Check whether --with-mad or --without-mad was given.
6664 if test "${with_mad+set}" = set; then
6666 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6668 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6669 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6674 save_LDFLAGS=$LDFLAGS
6675 CFLAGS="$CFLAGS $CFLAGS_MAD"
6676 LDFLAGS="$LDFLAGS $LIB_MAD"
6679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_hdr" >&5
6682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6691 { (eval echo configure:6692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6693 if test -z "$ac_err"; then
6695 eval "ac_cv_header_$ac_safe=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_header_$ac_safe=no"
6705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_hdr 1
6713 echo "$ac_t""no" 1>&6
6714 echo "Cannot find development headers for libmad..."
6720 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6721 echo "configure:6722: checking for mad_bit_init in -lmad" >&5
6722 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 ac_save_LIBS="$LIBS"
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6734 char mad_bit_init();
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6742 eval "ac_cv_lib_$ac_lib_var=yes"
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6747 eval "ac_cv_lib_$ac_lib_var=no"
6750 LIBS="$ac_save_LIBS"
6753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6754 echo "$ac_t""yes" 1>&6
6755 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6757 cat >> confdefs.h <<EOF
6758 #define $ac_tr_lib 1
6764 echo "$ac_t""no" 1>&6
6765 echo "Cannot find libmad library..."
6771 LDFLAGS=$save_LDFLAGS
6774 if test x$SYS = xbeos
6776 PLUGINS="${PLUGINS} beos"
6780 # Check whether --enable-a52 or --disable-a52 was given.
6781 if test "${enable_a52+set}" = set; then
6782 enableval="$enable_a52"
6786 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6788 for ac_hdr in a52dec/a52.h
6790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6792 echo "configure:6793: checking for $ac_hdr" >&5
6793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6802 { (eval echo configure:6803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6804 if test -z "$ac_err"; then
6806 eval "ac_cv_header_$ac_safe=yes"
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6812 eval "ac_cv_header_$ac_safe=no"
6816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6819 cat >> confdefs.h <<EOF
6820 #define $ac_tr_hdr 1
6823 BUILTINS="${BUILTINS} a52"
6824 LIB_A52="${LIB_A52} -la52"
6827 echo "$ac_t""no" 1>&6
6834 # Check whether --with- or --without- was given.
6835 if test "${with_+set}" = set; then
6841 # Check whether --enable-x11 or --disable-x11 was given.
6842 if test "${enable_x11+set}" = set; then
6843 enableval="$enable_x11"
6847 if test x$enable_x11 != xno &&
6848 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6849 if test x$x_includes = xNONE; then
6850 x_includes=/usr/X11R6/include
6852 if test x$x_libraries = xNONE; then
6853 x_libraries=/usr/X11R6/lib
6855 saved_CPPFLAGS=$CPPFLAGS
6856 CPPFLAGS="$CPPFLAGS -I$x_includes"
6857 for ac_hdr in X11/Xlib.h
6859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_hdr" >&5
6862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6871 { (eval echo configure:6872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6873 if test -z "$ac_err"; then
6875 eval "ac_cv_header_$ac_safe=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 eval "ac_cv_header_$ac_safe=no"
6885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6888 cat >> confdefs.h <<EOF
6889 #define $ac_tr_hdr 1
6892 PLUGINS="${PLUGINS} x11"
6893 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6894 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6897 echo "$ac_t""no" 1>&6
6901 CPPFLAGS=$saved_CPPFLAGS
6904 # Check whether --enable-xvideo or --disable-xvideo was given.
6905 if test "${enable_xvideo+set}" = set; then
6906 enableval="$enable_xvideo"
6910 if test x$enable_xvideo != xno &&
6911 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6912 if test x$x_includes = xNONE; then
6913 x_includes=/usr/X11R6/include
6915 if test x$x_libraries = xNONE; then
6916 x_libraries=/usr/X11R6/lib
6918 saved_CPPFLAGS=$CPPFLAGS
6919 CPPFLAGS="$CPPFLAGS -I$x_includes"
6920 for ac_hdr in X11/extensions/Xv.h
6922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6924 echo "configure:6925: checking for $ac_hdr" >&5
6925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6934 { (eval echo configure:6935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6936 if test -z "$ac_err"; then
6938 eval "ac_cv_header_$ac_safe=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 eval "ac_cv_header_$ac_safe=no"
6948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_hdr 1
6955 saved_CFLAGS=$CFLAGS
6956 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6957 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6958 echo "configure:6959: checking for XvSetPortAttribute in -lXv_pic" >&5
6959 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6963 ac_save_LIBS="$LIBS"
6964 LIBS="-lXv_pic $LIBS"
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* Override any gcc2 internal prototype to avoid an error. */
6969 /* We use char because int might match the return type of a gcc2
6970 builtin and then its argument prototype would still apply. */
6971 char XvSetPortAttribute();
6974 XvSetPortAttribute()
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6979 eval "ac_cv_lib_$ac_lib_var=yes"
6981 echo "configure: failed program was:" >&5
6982 cat conftest.$ac_ext >&5
6984 eval "ac_cv_lib_$ac_lib_var=no"
6987 LIBS="$ac_save_LIBS"
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6991 echo "$ac_t""yes" 1>&6
6992 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6993 PLUGINS="${PLUGINS} xvideo"
6994 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6995 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6997 echo "$ac_t""no" 1>&6
6998 # We don't have Xv_pic, let's make xvideo.a as builtin
6999 BUILTINS="${BUILTINS} xvideo"
7000 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7001 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7004 CFLAGS=$saved_CFLAGS
7006 CPPFLAGS=$saved_CPPFLAGS
7008 echo "$ac_t""no" 1>&6
7014 # Check whether --enable-sdl or --disable-sdl was given.
7015 if test "${enable_sdl+set}" = set; then
7016 enableval="$enable_sdl"
7020 if test "x$enable_sdl" != "xno"
7023 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7024 if test "${with_sdl_config_path+set}" = set; then
7025 withval="$with_sdl_config_path"
7026 if test "x$withval" != "xno"
7028 SDL_PATH=$withval:$PATH
7032 # Extract the first word of "sdl12-config", so it can be a program name with args.
7033 set dummy sdl12-config; ac_word=$2
7034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7035 echo "configure:7036: checking for $ac_word" >&5
7036 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 case "$SDL12_CONFIG" in
7041 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7044 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7048 ac_dummy="$SDL_PATH"
7049 for ac_dir in $ac_dummy; do
7050 test -z "$ac_dir" && ac_dir=.
7051 if test -f $ac_dir/$ac_word; then
7052 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7057 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7061 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7062 if test -n "$SDL12_CONFIG"; then
7063 echo "$ac_t""$SDL12_CONFIG" 1>&6
7065 echo "$ac_t""no" 1>&6
7068 SDL_CONFIG=${SDL12_CONFIG}
7069 SDL_HEADER="SDL12/SDL.h"
7070 if test x${SDL_CONFIG} = xno
7072 # Extract the first word of "sdl11-config", so it can be a program name with args.
7073 set dummy sdl11-config; ac_word=$2
7074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7075 echo "configure:7076: checking for $ac_word" >&5
7076 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 case "$SDL11_CONFIG" in
7081 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7084 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7088 ac_dummy="$SDL_PATH"
7089 for ac_dir in $ac_dummy; do
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f $ac_dir/$ac_word; then
7092 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7097 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7101 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7102 if test -n "$SDL11_CONFIG"; then
7103 echo "$ac_t""$SDL11_CONFIG" 1>&6
7105 echo "$ac_t""no" 1>&6
7108 SDL_CONFIG=${SDL11_CONFIG}
7109 SDL_HEADER="SDL11/SDL.h"
7111 if test x${SDL_CONFIG} = xno
7113 # Extract the first word of "sdl-config", so it can be a program name with args.
7114 set dummy sdl-config; ac_word=$2
7115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_word" >&5
7117 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 case "$SDL_CONFIG" in
7122 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7125 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7129 ac_dummy="$SDL_PATH"
7130 for ac_dir in $ac_dummy; do
7131 test -z "$ac_dir" && ac_dir=.
7132 if test -f $ac_dir/$ac_word; then
7133 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7138 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7142 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7143 if test -n "$SDL_CONFIG"; then
7144 echo "$ac_t""$SDL_CONFIG" 1>&6
7146 echo "$ac_t""no" 1>&6
7149 SDL_HEADER="SDL/SDL.h"
7151 if test x${SDL_CONFIG} != xno
7153 PLUGINS="${PLUGINS} sdl"
7154 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7155 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7156 save_CPPFLAGS=$CPPFLAGS
7157 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7158 for ac_hdr in ${SDL_HEADER}
7160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7162 echo "configure:7163: checking for $ac_hdr" >&5
7163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7172 { (eval echo configure:7173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7174 if test -z "$ac_err"; then
7176 eval "ac_cv_header_$ac_safe=yes"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 eval "ac_cv_header_$ac_safe=no"
7186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7187 echo "$ac_t""yes" 1>&6
7188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7189 cat >> confdefs.h <<EOF
7190 #define $ac_tr_hdr 1
7192 cat >> confdefs.h <<EOF
7193 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7197 echo "$ac_t""no" 1>&6
7198 { echo "configure: error: The development package for SDL is not installed.
7199 Please install it and try again. Alternatively you can also configure with
7200 --disable-sdl." 1>&2; exit 1; }
7205 CPPFLAGS=$save_CPPFLAGS
7206 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7208 { echo "configure: error: The development package for SDL is not installed.
7209 Please install it and try again. Alternatively you can also configure with
7210 --disable-sdl." 1>&2; exit 1; }
7212 elif test "x$enable_sdl" = "xyes"
7214 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7215 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7220 # Check whether --enable-directx or --disable-directx was given.
7221 if test "${enable_directx+set}" = set; then
7222 enableval="$enable_directx"
7226 if test "x$enableval" != "xno"
7228 if test x$SYS = xmingw32
7230 # Check whether --with-directx or --without-directx was given.
7231 if test "${with_directx+set}" = set; then
7232 withval="$with_directx"
7236 if test "x$with_directx" = "x"
7238 for ac_hdr in ddraw.h
7240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_hdr" >&5
7243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7252 { (eval echo configure:7253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7254 if test -z "$ac_err"; then
7256 eval "ac_cv_header_$ac_safe=yes"
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 eval "ac_cv_header_$ac_safe=no"
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7269 cat >> confdefs.h <<EOF
7270 #define $ac_tr_hdr 1
7272 PLUGINS="${PLUGINS} directx"
7273 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7275 echo "$ac_t""no" 1>&6
7280 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7281 echo "configure:7282: checking for directX headers in ${withval}" >&5
7282 if test -f ${withval}/ddraw.h
7284 PLUGINS="${PLUGINS} directx"
7285 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7286 INCLUDE="${INCLUDE} -I${withval}"
7287 echo "$ac_t""yes" 1>&6
7289 echo "$ac_t""no" 1>&6
7290 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7296 # Check whether --enable-fb or --disable-fb was given.
7297 if test "${enable_fb+set}" = set; then
7298 enableval="$enable_fb"
7302 if test x$enable_fb != xno
7304 for ac_hdr in linux/fb.h
7306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7308 echo "configure:7309: checking for $ac_hdr" >&5
7309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7318 { (eval echo configure:7319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7320 if test -z "$ac_err"; then
7322 eval "ac_cv_header_$ac_safe=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_header_$ac_safe=no"
7332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_hdr 1
7339 PLUGINS="${PLUGINS} fb"
7342 echo "$ac_t""no" 1>&6
7348 # Check whether --enable-mga or --disable-mga was given.
7349 if test "${enable_mga+set}" = set; then
7350 enableval="$enable_mga"
7351 if test x$enable_mga = xyes
7353 PLUGINS="${PLUGINS} mga xmga"
7358 # Check whether --enable-ggi or --disable-ggi was given.
7359 if test "${enable_ggi+set}" = set; then
7360 enableval="$enable_ggi"
7364 if test x$enable_ggi = xyes
7366 PLUGINS="${PLUGINS} ggi"
7367 LIB_GGI="${LIB_GGI} -lggi"
7368 # Check whether --with-ggi or --without-ggi was given.
7369 if test "${with_ggi+set}" = set; then
7371 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7373 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7374 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7380 # Check whether --enable-glide or --disable-glide was given.
7381 if test "${enable_glide+set}" = set; then
7382 enableval="$enable_glide"
7386 if test x$enable_glide = xyes
7388 PLUGINS="${PLUGINS} glide"
7389 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7390 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7391 # Check whether --with-glide or --without-glide was given.
7392 if test "${with_glide+set}" = set; then
7393 withval="$with_glide"
7394 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7396 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7397 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7403 # Check whether --enable-aa or --disable-aa was given.
7404 if test "${enable_aa+set}" = set; then
7405 enableval="$enable_aa"
7409 if test x$enable_aa = xyes
7411 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7412 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7413 echo "configure:7414: checking for aalib.h" >&5
7414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425 if test -z "$ac_err"; then
7427 eval "ac_cv_header_$ac_safe=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_header_$ac_safe=no"
7437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7441 echo "$ac_t""no" 1>&6
7445 if test x$have_aa = xtrue
7447 PLUGINS="${PLUGINS} aa"
7448 LIB_AA="${LIB_AA} -laa"
7453 # Check whether --with- or --without- was given.
7454 if test "${with_+set}" = set; then
7460 # Check whether --enable-dsp or --disable-dsp was given.
7461 if test "${enable_dsp+set}" = set; then
7462 enableval="$enable_dsp"
7467 if test x$enable_dsp != xno &&
7468 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7470 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_hdr" >&5
7475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7484 { (eval echo configure:7485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7486 if test -z "$ac_err"; then
7488 eval "ac_cv_header_$ac_safe=yes"
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7494 eval "ac_cv_header_$ac_safe=no"
7498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7501 cat >> confdefs.h <<EOF
7502 #define $ac_tr_hdr 1
7505 PLUGINS="${PLUGINS} dsp"
7506 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7507 echo "configure:7508: checking for main in -lossaudio" >&5
7508 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7512 ac_save_LIBS="$LIBS"
7513 LIBS="-lossaudio $LIBS"
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7524 eval "ac_cv_lib_$ac_lib_var=yes"
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7529 eval "ac_cv_lib_$ac_lib_var=no"
7532 LIBS="$ac_save_LIBS"
7535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7536 echo "$ac_t""yes" 1>&6
7537 LIB_DSP="${LIB_DSP} -lossaudio"
7539 echo "$ac_t""no" 1>&6
7544 echo "$ac_t""no" 1>&6
7550 # Check whether --enable-esd or --disable-esd was given.
7551 if test "${enable_esd+set}" = set; then
7552 enableval="$enable_esd"
7553 if test x$enable_esd = xyes
7555 # Extract the first word of "esd-config", so it can be a program name with args.
7556 set dummy esd-config; ac_word=$2
7557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7558 echo "configure:7559: checking for $ac_word" >&5
7559 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7562 case "$ESD_CONFIG" in
7564 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7567 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7572 for ac_dir in $ac_dummy; do
7573 test -z "$ac_dir" && ac_dir=.
7574 if test -f $ac_dir/$ac_word; then
7575 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7580 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7584 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7585 if test -n "$ESD_CONFIG"; then
7586 echo "$ac_t""$ESD_CONFIG" 1>&6
7588 echo "$ac_t""no" 1>&6
7591 if test x${ESD_CONFIG} != xno
7593 PLUGINS="${PLUGINS} esd"
7594 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7595 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7601 # Check whether --enable-arts or --disable-arts was given.
7602 if test "${enable_arts+set}" = set; then
7603 enableval="$enable_arts"
7604 if test x$enable_arts = xyes
7606 # Extract the first word of "artsc-config", so it can be a program name with args.
7607 set dummy artsc-config; ac_word=$2
7608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_word" >&5
7610 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 case "$ARTS_CONFIG" in
7615 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7618 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7623 for ac_dir in $ac_dummy; do
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f $ac_dir/$ac_word; then
7626 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7631 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7635 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7636 if test -n "$ARTS_CONFIG"; then
7637 echo "$ac_t""$ARTS_CONFIG" 1>&6
7639 echo "$ac_t""no" 1>&6
7642 if test x${ARTS_CONFIG} != xno
7644 PLUGINS="${PLUGINS} arts"
7645 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7646 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7652 # Check whether --enable-alsa or --disable-alsa was given.
7653 if test "${enable_alsa+set}" = set; then
7654 enableval="$enable_alsa"
7655 if test x$enable_alsa = xyes
7657 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7658 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7659 echo "configure:7660: checking for alsa/asoundlib.h" >&5
7660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 #include <alsa/asoundlib.h>
7668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7669 { (eval echo configure:7670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7671 if test -z "$ac_err"; then
7673 eval "ac_cv_header_$ac_safe=yes"
7676 echo "configure: failed program was:" >&5
7677 cat conftest.$ac_ext >&5
7679 eval "ac_cv_header_$ac_safe=no"
7683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7684 echo "$ac_t""yes" 1>&6
7685 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7686 echo "configure:7687: checking for main in -lasound" >&5
7687 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 ac_save_LIBS="$LIBS"
7692 LIBS="-lasound $LIBS"
7693 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7703 eval "ac_cv_lib_$ac_lib_var=yes"
7705 echo "configure: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7708 eval "ac_cv_lib_$ac_lib_var=no"
7711 LIBS="$ac_save_LIBS"
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7718 echo "$ac_t""no" 1>&6
7723 echo "$ac_t""no" 1>&6
7727 if test x$have_alsa = xtrue
7729 PLUGINS="${PLUGINS} alsa"
7730 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7736 # Check whether --enable-waveout or --disable-waveout was given.
7737 if test "${enable_waveout+set}" = set; then
7738 enableval="$enable_waveout"
7742 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7744 PLUGINS="${PLUGINS} waveout"
7745 LIB_WAVEOUT="-lwinmm"
7749 # Check whether --with- or --without- was given.
7750 if test "${with_+set}" = set; then
7756 # Check whether --enable-gtk or --disable-gtk was given.
7757 if test "${enable_gtk+set}" = set; then
7758 enableval="$enable_gtk"
7762 if test x$enable_gtk != xno
7765 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7766 if test "${with_gtk_config_path+set}" = set; then
7767 withval="$with_gtk_config_path"
7768 if test "x$withval" != "xno"
7770 GTK_PATH=$withval:$PATH
7774 # look for gtk-config
7775 # Extract the first word of "gtk12-config", so it can be a program name with args.
7776 set dummy gtk12-config; ac_word=$2
7777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_word" >&5
7779 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7782 case "$GTK12_CONFIG" in
7784 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7787 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7791 ac_dummy="$GTK_PATH"
7792 for ac_dir in $ac_dummy; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f $ac_dir/$ac_word; then
7795 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7800 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7804 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7805 if test -n "$GTK12_CONFIG"; then
7806 echo "$ac_t""$GTK12_CONFIG" 1>&6
7808 echo "$ac_t""no" 1>&6
7811 GTK_CONFIG=${GTK12_CONFIG}
7812 if test x${GTK_CONFIG} = xno
7814 # Extract the first word of "gtk-config", so it can be a program name with args.
7815 set dummy gtk-config; ac_word=$2
7816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_word" >&5
7818 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 case "$GTK_CONFIG" in
7823 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7826 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7830 ac_dummy="$GTK_PATH"
7831 for ac_dir in $ac_dummy; do
7832 test -z "$ac_dir" && ac_dir=.
7833 if test -f $ac_dir/$ac_word; then
7834 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7839 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7843 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7844 if test -n "$GTK_CONFIG"; then
7845 echo "$ac_t""$GTK_CONFIG" 1>&6
7847 echo "$ac_t""no" 1>&6
7851 if test x${GTK_CONFIG} != xno
7853 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7855 { 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; }
7857 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7858 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7859 # now look for the gtk.h header
7860 saved_CPPFLAGS=$CPPFLAGS
7861 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7862 ac_cv_gtk_headers=yes
7863 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7867 echo "configure:7868: checking for $ac_hdr" >&5
7868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7877 { (eval echo configure:7878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7879 if test -z "$ac_err"; then
7881 eval "ac_cv_header_$ac_safe=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7887 eval "ac_cv_header_$ac_safe=no"
7891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7892 echo "$ac_t""yes" 1>&6
7893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7894 cat >> confdefs.h <<EOF
7895 #define $ac_tr_hdr 1
7899 echo "$ac_t""no" 1>&6
7900 ac_cv_gtk_headers=no
7901 echo "Cannot find gtk development headers."
7906 if test "x$ac_cv_gtk_headers" = xyes
7908 PLUGINS="${PLUGINS} gtk"
7909 ALIASES="${ALIASES} gvlc"
7911 CPPFLAGS=$saved_CPPFLAGS
7915 # Check whether --enable-gnome or --disable-gnome was given.
7916 if test "${enable_gnome+set}" = set; then
7917 enableval="$enable_gnome"
7918 if test x$enable_gnome = xyes; then
7919 # look for gnome-config
7920 # Extract the first word of "gnome-config", so it can be a program name with args.
7921 set dummy gnome-config; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_word" >&5
7924 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 case "$GNOME_CONFIG" in
7929 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7932 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7937 for ac_dir in $ac_dummy; do
7938 test -z "$ac_dir" && ac_dir=.
7939 if test -f $ac_dir/$ac_word; then
7940 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7945 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7949 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7950 if test -n "$GNOME_CONFIG"; then
7951 echo "$ac_t""$GNOME_CONFIG" 1>&6
7953 echo "$ac_t""no" 1>&6
7956 if test -x ${GNOME_CONFIG}
7958 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7959 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7961 # now look for the gnome.h header
7962 saved_CPPFLAGS=$CPPFLAGS
7963 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7964 for ac_hdr in gnome.h
7966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7968 echo "configure:7969: checking for $ac_hdr" >&5
7969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7978 { (eval echo configure:7979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7980 if test -z "$ac_err"; then
7982 eval "ac_cv_header_$ac_safe=yes"
7985 echo "configure: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7988 eval "ac_cv_header_$ac_safe=no"
7992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_hdr 1
7999 PLUGINS="${PLUGINS} gnome"
8000 ALIASES="${ALIASES} gnome-vlc"
8003 echo "$ac_t""no" 1>&6
8004 { echo "configure: error: Can't find gnome headers. Please install the gnome
8005 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
8011 CPPFLAGS=$saved_CPPFLAGS
8016 # Check whether --enable-qt or --disable-qt was given.
8017 if test "${enable_qt+set}" = set; then
8018 enableval="$enable_qt"
8019 if test x$enable_qt = xyes; then
8020 PLUGINS="${PLUGINS} qt"
8021 ALIASES="${ALIASES} qvlc"
8022 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
8023 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
8024 if test -x ${QTDIR}/bin/moc
8026 MOC=${QTDIR}/bin/moc
8034 # Check whether --enable-kde or --disable-kde was given.
8035 if test "${enable_kde+set}" = set; then
8036 enableval="$enable_kde"
8037 if test x$enable_kde = xyes; then
8038 PLUGINS="${PLUGINS} kde"
8039 ALIASES="${ALIASES} kvlc"
8040 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
8041 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
8042 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
8043 if test -x ${QTDIR}/bin/moc
8045 MOC=${QTDIR}/bin/moc
8053 # Check whether --enable-macosx or --disable-macosx was given.
8054 if test "${enable_macosx+set}" = set; then
8055 enableval="$enable_macosx"
8056 if test x$enable_macosx = xyes
8058 BUILTINS="${BUILTINS} macosx"
8059 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8060 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8061 LIB_COMMON="${LIB_COMMON} -ObjC"
8064 for ac_hdr in Cocoa/Cocoa.h
8066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_hdr" >&5
8069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8082 eval "ac_cv_header_$ac_safe=yes"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8088 eval "ac_cv_header_$ac_safe=no"
8092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8095 cat >> confdefs.h <<EOF
8096 #define $ac_tr_hdr 1
8098 BUILTINS="${BUILTINS} macosx"
8099 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8100 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8101 LIB_COMMON="${LIB_COMMON} -ObjC"
8104 echo "$ac_t""no" 1>&6
8111 # Check whether --enable-qnx or --disable-qnx was given.
8112 if test "${enable_qnx+set}" = set; then
8113 enableval="$enable_qnx"
8117 if test x$enable_qnx != xno
8121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_hdr" >&5
8124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8133 { (eval echo configure:8134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8135 if test -z "$ac_err"; then
8137 eval "ac_cv_header_$ac_safe=yes"
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 eval "ac_cv_header_$ac_safe=no"
8147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8150 cat >> confdefs.h <<EOF
8151 #define $ac_tr_hdr 1
8154 PLUGINS="${PLUGINS} qnx"
8155 LIB_QNX="${LIB_QNX} -lasound -lph"
8158 echo "$ac_t""no" 1>&6
8164 # Check whether --enable-win32 or --disable-win32 was given.
8165 if test "${enable_win32+set}" = set; then
8166 enableval="$enable_win32"
8167 if test "x$enableval" != "xno"
8169 PLUGINS="${PLUGINS} win32"
8174 # Check whether --enable-ncurses or --disable-ncurses was given.
8175 if test "${enable_ncurses+set}" = set; then
8176 enableval="$enable_ncurses"
8177 if test x$enable_ncurses = xyes; then
8178 PLUGINS="${PLUGINS} ncurses"
8179 LIB_NCURSES="${LIB_NCURSES} -lncurses"
8184 # Check whether --enable-lirc or --disable-lirc was given.
8185 if test "${enable_lirc+set}" = set; then
8186 enableval="$enable_lirc"
8190 if test x$enable_lirc = xyes
8192 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8193 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8194 echo "configure:8195: checking for lirc/lirc_client.h" >&5
8195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8198 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 #include <lirc/lirc_client.h>
8203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8204 { (eval echo configure:8205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8206 if test -z "$ac_err"; then
8208 eval "ac_cv_header_$ac_safe=yes"
8211 echo "configure: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8214 eval "ac_cv_header_$ac_safe=no"
8218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8220 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8221 echo "configure:8222: checking for lirc_init in -llirc_client" >&5
8222 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_save_LIBS="$LIBS"
8227 LIBS="-llirc_client $LIBS"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8250 LIBS="$ac_save_LIBS"
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8257 echo "$ac_t""no" 1>&6
8262 echo "$ac_t""no" 1>&6
8266 if test x$have_lirc = xtrue
8268 PLUGINS="${PLUGINS} lirc"
8269 LIB_LIRC="${LIB_LIRC} -llirc_client"
8275 # Check whether --with- or --without- was given.
8276 if test "${with_+set}" = set; then
8282 # Check whether --with-words or --without-words was given.
8283 if test "${with_words+set}" = set; then
8284 withval="$with_words"
8290 ac_cv_c_bigendian=yes
8293 ac_cv_c_bigendian=no
8296 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8297 echo "configure:8298: checking whether the byte order is big-endian" >&5
8298 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 ac_cv_c_bigendian=unknown
8302 cat >conftest.c <<EOF
8303 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8304 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8305 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8306 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8307 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8308 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8309 int main(void) { _a(); _e(); return 0; }
8312 if test -f conftest.c
8314 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8315 && test -f conftest.o
8317 if test "`strings conftest.o | grep BIGenDianSyS`"
8319 ac_cv_c_bigendian=yes
8321 if test "`strings conftest.o | grep LiTTleEnDian`"
8323 ac_cv_c_bigendian=no
8330 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8331 if test x$ac_cv_c_bigendian = xunknown
8333 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8337 if test $ac_cv_c_bigendian = yes
8339 cat >> confdefs.h <<\EOF
8340 #define WORDS_BIGENDIAN 1
8346 # Check whether --with-dll-path or --without-dll-path was given.
8347 if test "${with_dll_path+set}" = set; then
8348 withval="$with_dll_path"
8349 if test "x$withval" != "xno"
8357 # Check whether --enable-gprof or --disable-gprof was given.
8358 if test "${enable_gprof+set}" = set; then
8359 enableval="$enable_gprof"
8360 if test x$enableval = xyes; then GPROF=1; fi
8365 # Check whether --enable-cprof or --disable-cprof was given.
8366 if test "${enable_cprof+set}" = set; then
8367 enableval="$enable_cprof"
8368 if test x$enableval = xyes;
8370 LIB_COMMON="${LIB_COMMON} -lcprof"
8377 # Check whether --enable-pth or --disable-pth was given.
8378 if test "${enable_pth+set}" = set; then
8379 enableval="$enable_pth"
8380 if test x$enableval = xyes; then
8381 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8382 echo "configure:8383: checking for pth_init in -lpth" >&5
8383 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8387 ac_save_LIBS="$LIBS"
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8401 if { (eval echo configure:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8403 eval "ac_cv_lib_$ac_lib_var=yes"
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8408 eval "ac_cv_lib_$ac_lib_var=no"
8411 LIBS="$ac_save_LIBS"
8414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8415 echo "$ac_t""yes" 1>&6
8416 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8418 cat >> confdefs.h <<EOF
8419 #define $ac_tr_lib 1
8425 echo "$ac_t""no" 1>&6
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434 egrep "pth_init" >/dev/null 2>&1; then
8437 cat >> confdefs.h <<\EOF
8438 #define PTH_INIT_IN_PTH_H 1
8450 # Check whether --enable-st or --disable-st was given.
8451 if test "${enable_st+set}" = set; then
8452 enableval="$enable_st"
8453 if test x$enableval = xyes; then
8454 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8455 echo "configure:8456: checking for st_init in -lst" >&5
8456 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8458 echo $ac_n "(cached) $ac_c" 1>&6
8460 ac_save_LIBS="$LIBS"
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 eval "ac_cv_lib_$ac_lib_var=yes"
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 eval "ac_cv_lib_$ac_lib_var=no"
8484 LIBS="$ac_save_LIBS"
8487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8488 echo "$ac_t""yes" 1>&6
8489 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8491 cat >> confdefs.h <<EOF
8492 #define $ac_tr_lib 1
8498 echo "$ac_t""no" 1>&6
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507 egrep "st_init" >/dev/null 2>&1; then
8510 cat >> confdefs.h <<\EOF
8511 #define ST_INIT_IN_ST_H 1
8523 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8525 # Check whether --enable-plugins or --disable-plugins was given.
8526 if test "${enable_plugins+set}" = set; then
8527 enableval="$enable_plugins"
8528 if test x$enable_plugins = xno
8530 BUILTINS="${BUILTINS} ${PLUGINS}"
8536 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8538 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8540 BUILTINS="${BUILTINS} ${PLUGINS}"
8544 cat >> confdefs.h <<EOF
8545 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8548 cat >> confdefs.h <<EOF
8549 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8553 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8554 cat >> confdefs.h <<EOF
8555 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8558 cat >> confdefs.h <<EOF
8559 #define MODULE_SYMBOL $VLC_SYMBOL
8563 DATA_PATH="${ac_tool_prefix}/share/videolan"
8565 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8668 cat > confcache <<\EOF
8669 # This file is a shell script that caches the results of configure
8670 # tests run on this system so they can be shared between configure
8671 # scripts and configure runs. It is not useful on other systems.
8672 # If it contains results you don't want to keep, you may remove or edit it.
8674 # By default, configure uses ./config.cache as the cache file,
8675 # creating it if it does not exist already. You can give configure
8676 # the --cache-file=FILE option to use a different cache file; that is
8677 # what configure does when it calls configure scripts in
8678 # subdirectories, so they share the cache.
8679 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8680 # config.status only pays attention to the cache file if you give it the
8681 # --recheck option to rerun configure.
8684 # The following way of writing the cache mishandles newlines in values,
8685 # but we know of no workaround that is simple, portable, and efficient.
8686 # So, don't put newlines in cache variables' values.
8687 # Ultrix sh set writes to stderr and can't be redirected directly,
8688 # and sets the high bit in the cache file unless we assign to the vars.
8690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8692 # `set' does not quote correctly, so add quotes (double-quote substitution
8693 # turns \\\\ into \\, and sed turns \\ into \).
8695 -e "s/'/'\\\\''/g" \
8696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8699 # `set' quotes correctly as required by POSIX, so do not add quotes.
8700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8703 if cmp -s $cache_file confcache; then
8706 if test -w $cache_file; then
8707 echo "updating cache $cache_file"
8708 cat confcache > $cache_file
8710 echo "not updating unwritable cache $cache_file"
8715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8718 # Let make expand exec_prefix.
8719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8721 # Any assignment to VPATH causes Sun make to only execute
8722 # the first set of double-colon rules, so remove it if not needed.
8723 # If there is a colon in the path, we need to keep it.
8724 if test "x$srcdir" = x.; then
8725 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8728 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8730 DEFS=-DHAVE_CONFIG_H
8732 # Without the "./", some shells look in PATH for config.status.
8733 : ${CONFIG_STATUS=./config.status}
8735 echo creating $CONFIG_STATUS
8736 rm -f $CONFIG_STATUS
8737 cat > $CONFIG_STATUS <<EOF
8739 # Generated automatically by configure.
8740 # Run this file to recreate the current configuration.
8741 # This directory was configured as follows,
8742 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8744 # $0 $ac_configure_args
8746 # Compiler output produced by configure, useful for debugging
8747 # configure, is in ./config.log if it exists.
8749 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8752 case "\$ac_option" in
8753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8754 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8755 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8756 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8757 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8759 -help | --help | --hel | --he | --h)
8760 echo "\$ac_cs_usage"; exit 0 ;;
8761 *) echo "\$ac_cs_usage"; exit 1 ;;
8765 ac_given_srcdir=$srcdir
8766 ac_given_INSTALL="$INSTALL"
8768 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8770 cat >> $CONFIG_STATUS <<EOF
8772 # Protect against being on the right side of a sed subst in config.status.
8773 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8774 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8778 s%@CFLAGS@%$CFLAGS%g
8779 s%@CPPFLAGS@%$CPPFLAGS%g
8780 s%@CXXFLAGS@%$CXXFLAGS%g
8781 s%@FFLAGS@%$FFLAGS%g
8783 s%@LDFLAGS@%$LDFLAGS%g
8785 s%@exec_prefix@%$exec_prefix%g
8786 s%@prefix@%$prefix%g
8787 s%@program_transform_name@%$program_transform_name%g
8788 s%@bindir@%$bindir%g
8789 s%@sbindir@%$sbindir%g
8790 s%@libexecdir@%$libexecdir%g
8791 s%@datadir@%$datadir%g
8792 s%@sysconfdir@%$sysconfdir%g
8793 s%@sharedstatedir@%$sharedstatedir%g
8794 s%@localstatedir@%$localstatedir%g
8795 s%@libdir@%$libdir%g
8796 s%@includedir@%$includedir%g
8797 s%@oldincludedir@%$oldincludedir%g
8798 s%@infodir@%$infodir%g
8799 s%@mandir@%$mandir%g
8801 s%@host_alias@%$host_alias%g
8802 s%@host_cpu@%$host_cpu%g
8803 s%@host_vendor@%$host_vendor%g
8804 s%@host_os@%$host_os%g
8805 s%@target@%$target%g
8806 s%@target_alias@%$target_alias%g
8807 s%@target_cpu@%$target_cpu%g
8808 s%@target_vendor@%$target_vendor%g
8809 s%@target_os@%$target_os%g
8811 s%@build_alias@%$build_alias%g
8812 s%@build_cpu@%$build_cpu%g
8813 s%@build_vendor@%$build_vendor%g
8814 s%@build_os@%$build_os%g
8815 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8816 s%@SET_MAKE@%$SET_MAKE%g
8819 s%@RANLIB@%$RANLIB%g
8820 s%@ALLOCA@%$ALLOCA%g
8821 s%@GLIBC21@%$GLIBC21%g
8822 s%@LIBICONV@%$LIBICONV%g
8823 s%@USE_NLS@%$USE_NLS%g
8824 s%@MSGFMT@%$MSGFMT%g
8825 s%@GMSGFMT@%$GMSGFMT%g
8826 s%@XGETTEXT@%$XGETTEXT%g
8827 s%@INTLBISON@%$INTLBISON%g
8828 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8829 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8830 s%@CATALOGS@%$CATALOGS%g
8831 s%@CATOBJEXT@%$CATOBJEXT%g
8832 s%@GMOFILES@%$GMOFILES%g
8833 s%@INTLLIBS@%$INTLLIBS%g
8834 s%@INTLOBJS@%$INTLOBJS%g
8835 s%@POFILES@%$POFILES%g
8837 s%@DATADIRNAME@%$DATADIRNAME%g
8838 s%@INSTOBJEXT@%$INSTOBJEXT%g
8839 s%@GENCAT@%$GENCAT%g
8840 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8841 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8843 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8844 s%@INSTALL_DATA@%$INSTALL_DATA%g
8845 s%@WINDRES@%$WINDRES%g
8846 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8847 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8848 s%@SDL_CONFIG@%$SDL_CONFIG%g
8849 s%@ESD_CONFIG@%$ESD_CONFIG%g
8850 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8851 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8852 s%@GTK_CONFIG@%$GTK_CONFIG%g
8853 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8854 s%@DATA_PATH@%$DATA_PATH%g
8855 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8858 s%@PLUGINS@%$PLUGINS%g
8859 s%@BUILTINS@%$BUILTINS%g
8860 s%@ALIASES@%$ALIASES%g
8861 s%@INCLUDE@%$INCLUDE%g
8866 s%@OPTIMS@%$OPTIMS%g
8867 s%@TUNING@%$TUNING%g
8868 s%@RELEASE@%$RELEASE%g
8870 s%@DLL_PATH@%$DLL_PATH%g
8871 s%@PACKAGE@%$PACKAGE%g
8872 s%@VERSION@%$VERSION%g
8873 s%@VCD_DEVICE@%$VCD_DEVICE%g
8874 s%@DVD_DEVICE@%$DVD_DEVICE%g
8875 s%@PLDFLAGS@%$PLDFLAGS%g
8876 s%@SOFLAGS@%$SOFLAGS%g
8877 s%@LIB_COMMON@%$LIB_COMMON%g
8878 s%@LIB_VLC@%$LIB_VLC%g
8879 s%@LIB_A52@%$LIB_A52%g
8880 s%@LIB_AA@%$LIB_AA%g
8881 s%@LIB_ALSA@%$LIB_ALSA%g
8882 s%@LIB_ARTS@%$LIB_ARTS%g
8883 s%@LIB_BEOS@%$LIB_BEOS%g
8884 s%@LIB_DARWIN@%$LIB_DARWIN%g
8885 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8886 s%@LIB_DSP@%$LIB_DSP%g
8887 s%@LIB_DVD@%$LIB_DVD%g
8888 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8889 s%@LIB_ESD@%$LIB_ESD%g
8890 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8891 s%@LIB_GGI@%$LIB_GGI%g
8892 s%@LIB_GLIDE@%$LIB_GLIDE%g
8893 s%@LIB_GNOME@%$LIB_GNOME%g
8894 s%@LIB_GTK@%$LIB_GTK%g
8895 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8896 s%@LIB_IMDCT@%$LIB_IMDCT%g
8897 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8898 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8899 s%@LIB_IPV4@%$LIB_IPV4%g
8900 s%@LIB_IPV6@%$LIB_IPV6%g
8901 s%@LIB_KDE@%$LIB_KDE%g
8902 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8903 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8904 s%@LIB_LIRC@%$LIB_LIRC%g
8905 s%@LIB_MACOSX@%$LIB_MACOSX%g
8906 s%@LIB_MAD@%$LIB_MAD%g
8907 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8908 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8909 s%@LIB_NCURSES@%$LIB_NCURSES%g
8910 s%@LIB_QNX@%$LIB_QNX%g
8911 s%@LIB_QT@%$LIB_QT%g
8912 s%@LIB_RC@%$LIB_RC%g
8913 s%@LIB_SDL@%$LIB_SDL%g
8914 s%@LIB_VCD@%$LIB_VCD%g
8915 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8916 s%@LIB_WIN32@%$LIB_WIN32%g
8917 s%@LIB_X11@%$LIB_X11%g
8918 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8919 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8920 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8921 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8922 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8923 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8924 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8925 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8926 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8927 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8928 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8929 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8930 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8931 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8932 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8933 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8934 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8935 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8936 s%@CFLAGS_QT@%$CFLAGS_QT%g
8937 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8938 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8939 s%@CFLAGS_X11@%$CFLAGS_X11%g
8940 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8941 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8942 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8943 s%@NEED_GETOPT@%$NEED_GETOPT%g
8944 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8949 cat >> $CONFIG_STATUS <<\EOF
8951 # Split the substitutions into bite-sized pieces for seds with
8952 # small command number limits, like on Digital OSF/1 and HP-UX.
8953 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8954 ac_file=1 # Number of current file.
8955 ac_beg=1 # First line for current file.
8956 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8959 while $ac_more_lines; do
8960 if test $ac_beg -gt 1; then
8961 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8963 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8965 if test ! -s conftest.s$ac_file; then
8967 rm -f conftest.s$ac_file
8969 if test -z "$ac_sed_cmds"; then
8970 ac_sed_cmds="sed -f conftest.s$ac_file"
8972 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8974 ac_file=`expr $ac_file + 1`
8976 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8979 if test -z "$ac_sed_cmds"; then
8984 cat >> $CONFIG_STATUS <<EOF
8986 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8988 cat >> $CONFIG_STATUS <<\EOF
8989 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8992 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8993 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8994 *) ac_file_in="${ac_file}.in" ;;
8997 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8999 # Remove last slash and all that follows it. Not all systems have dirname.
9000 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9001 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9002 # The file is in a subdirectory.
9003 test ! -d "$ac_dir" && mkdir "$ac_dir"
9004 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9005 # A "../" for each directory in $ac_dir_suffix.
9006 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9008 ac_dir_suffix= ac_dots=
9011 case "$ac_given_srcdir" in
9013 if test -z "$ac_dots"; then top_srcdir=.
9014 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9015 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9017 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9018 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9021 case "$ac_given_INSTALL" in
9022 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9023 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9026 echo creating "$ac_file"
9028 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9030 *Makefile*) ac_comsub="1i\\
9031 # $configure_input" ;;
9035 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9037 s%@configure_input@%$configure_input%g
9038 s%@srcdir@%$srcdir%g
9039 s%@top_srcdir@%$top_srcdir%g
9040 s%@INSTALL@%$INSTALL%g
9041 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9045 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9046 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9048 # ac_d sets the value in "#define NAME VALUE" lines.
9049 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9050 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9053 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9054 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9055 ac_uB='\([ ]\)%\1#\2define\3'
9058 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9059 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9060 ac_eB='$%\1#\2define\3'
9064 if test "${CONFIG_HEADERS+set}" != set; then
9066 cat >> $CONFIG_STATUS <<EOF
9067 CONFIG_HEADERS="include/defs.h"
9069 cat >> $CONFIG_STATUS <<\EOF
9071 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9074 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9075 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9076 *) ac_file_in="${ac_file}.in" ;;
9079 echo creating $ac_file
9081 rm -f conftest.frag conftest.in conftest.out
9082 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9083 cat $ac_file_inputs > conftest.in
9087 # Transform confdefs.h into a sed script conftest.vals that substitutes
9088 # the proper values into config.h.in to produce config.h. And first:
9089 # Protect against being on the right side of a sed subst in config.status.
9090 # Protect against being in an unquoted here document in config.status.
9092 cat > conftest.hdr <<\EOF
9095 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9099 sed -n -f conftest.hdr confdefs.h > conftest.vals
9102 # This sed command replaces #undef with comments. This is necessary, for
9103 # example, in the case of _POSIX_SOURCE, which is predefined and required
9104 # on some systems where configure will not decide to define it.
9105 cat >> conftest.vals <<\EOF
9106 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9109 # Break up conftest.vals because some shells have a limit on
9110 # the size of here documents, and old seds have small limits too.
9115 ac_lines=`grep -c . conftest.vals`
9116 # grep -c gives empty output for an empty file on some AIX systems.
9117 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9118 # Write a limited-size here document to conftest.frag.
9119 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9120 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9122 sed -f conftest.frag conftest.in > conftest.out
9124 mv conftest.out conftest.in
9126 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9128 mv conftest.tail conftest.vals
9132 cat >> $CONFIG_STATUS <<\EOF
9133 rm -f conftest.frag conftest.h
9134 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9135 cat conftest.in >> conftest.h
9137 if cmp -s $ac_file conftest.h 2>/dev/null; then
9138 echo "$ac_file is unchanged"
9141 # Remove last slash and all that follows it. Not all systems have dirname.
9142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9144 # The file is in a subdirectory.
9145 test ! -d "$ac_dir" && mkdir "$ac_dir"
9148 mv conftest.h $ac_file
9153 cat >> $CONFIG_STATUS <<EOF
9157 cat >> $CONFIG_STATUS <<\EOF
9158 for ac_file in $CONFIG_FILES; do
9159 # Support "outfile[:infile[:infile...]]"
9161 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9163 # PO directories have a Makefile.in generated from Makefile.in.in.
9164 case "$ac_file" in */Makefile.in)
9165 # Adjust a relative srcdir.
9166 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9167 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9168 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9169 # In autoconf-2.13 it is called $ac_given_srcdir.
9170 # In autoconf-2.50 it is called $srcdir.
9171 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9172 case "$ac_given_srcdir" in
9173 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9174 /*) top_srcdir="$ac_given_srcdir" ;;
9175 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9177 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9178 rm -f "$ac_dir/POTFILES"
9179 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9180 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9181 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9182 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9190 chmod +x $CONFIG_STATUS
9191 rm -fr confdefs* $ac_clean_files
9192 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9196 global configuration
9197 --------------------
9199 architecture : ${ARCH}
9200 optimizations : ${OPTIMS}
9202 release: : ${RELEASE}"
9204 if test x${HAVE_VLC} = x1
9209 vlc version : ${VLC_VERSION}
9210 debug mode : ${DEBUG}
9211 cprof/gprof support : ${CPROF}/${GPROF}
9212 need builtin getopt : ${NEED_GETOPT}
9213 built-in modules :${BUILTINS}
9214 plug-in modules :${PLUGINS}
9215 vlc aliases :${ALIASES}"
9219 libdvdcss configuration
9220 -----------------------
9221 can be built : ${CAN_BUILD_LIBDVDCSS}
9222 will be built : ${NEED_LIBDVDCSS}"
9223 if test x${NEED_LIBDVDCSS} = x1
9225 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9226 echo "link statically : ${STATIC_LIBDVDCSS}"
9228 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9232 You may now tune Makefile.opts at your convenience, for instance to choose
9233 which modules get compiled as plugins.
9235 if test x${HAVE_VLC} = x1
9237 echo "To build vlc and its plugins, type \`make'."
9239 if test x${NEED_LIBDVDCSS} = x1
9241 echo "To build libdvdcss only, type \`make libdvdcss'."