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-words=endianness Set endianness (big or little)"
17 --with-tuning=[arch] Enable special tuning for an architecture
18 (default i686 on IA-32 and 750 on PPC)"
20 --enable-release Activate extra optimizations (default disabled)"
22 --disable-mmx Disable MMX optimizations (default enabled for x86)"
24 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
26 --enable-debug Enable debug mode (default disabled)"
28 --enable-trace Enable trace mode (default disabled)"
30 --enable-gprof Enable gprof profiling (default disabled)"
32 --enable-cprof Enable cprof profiling (default disabled)"
34 --disable-optimizations Disable compiler optimizations (default enabled)"
36 --enable-pth Enable GNU Pth support (default disabled)"
38 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
39 or 'local-static', 'local-shared', or a path to
40 another libdvdcss such as '/usr/local'
41 (default 'local-static')"
43 --enable-dvdread Enable dvdread support (default disabled)"
45 --enable-vcd VCD support for Linux (default enabled)"
47 --disable-dummy dummy module (default enabled)"
49 --disable-null Null module (default enabled)"
51 --disable-rc rc module (default enabled)"
53 --with-mad[=PATH] libmad module (default disabled)"
55 --disable-dsp Linux /dev/dsp support (default enabled)"
57 --enable-esd Esound library support (default disabled)"
59 --enable-arts aRts sound server (default disabled)"
61 --disable-macosx disable MacOS X support (default everywhere except on Mac OSX)"
63 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
65 --enable-fb Linux framebuffer support (default disabled)"
67 --with-ggi[=name] GGI support (default disabled)"
69 --disable-x11 X11 support (default enabled)"
71 --disable-xvideo XVideo support (default enabled)"
73 --disable-sdl SDL support (default enabled)"
75 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
77 --disable-directx Windows DirectX support (default enabled on WIN32)"
79 --with-directx-path=path Windows DirectX headers and libraries"
81 --with-glide[=name] Glide (3dfx) support (default disabled)"
83 --enable-ncurses ncurses interface support (default disabled)"
85 --enable-qt Qt interface support (default disabled)"
87 --enable-kde KDE interface support (default disabled)"
89 --enable-gnome Gnome interface support (default disabled)"
91 --disable-gtk Gtk+ support (default enabled)"
93 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
95 --enable-alsa Alsa sound drivers support (Only for linux)
98 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
100 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=include/common.h
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
585 echo "creating cache $cache_file"
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp='$CPP $CPPFLAGS'
592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling=$ac_cv_prog_cc_cross
598 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
599 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
600 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
607 ac_n= ac_c='\c' ac_t=
614 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
615 if test -f $ac_dir/install-sh; then
617 ac_install_sh="$ac_aux_dir/install-sh -c"
619 elif test -f $ac_dir/install.sh; then
621 ac_install_sh="$ac_aux_dir/install.sh -c"
625 if test -z "$ac_aux_dir"; then
626 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
628 ac_config_guess=$ac_aux_dir/config.guess
629 ac_config_sub=$ac_aux_dir/config.sub
630 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
633 # Do some error checking and defaulting for the host and target type.
635 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
638 # 1. You are not allowed to specify --host, --target, and nonopt at the
640 # 2. Host defaults to nonopt.
641 # 3. If nonopt is not specified, then host defaults to the current host,
642 # as determined by config.guess.
643 # 4. Target and build default to nonopt.
644 # 5. If nonopt is not specified, then target and build default to host.
646 # The aliases save the names the user supplied, while $host etc.
647 # will get canonicalized.
648 case $host---$target---$nonopt in
649 NONE---*---* | *---NONE---* | *---*---NONE) ;;
650 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
654 # Make sure we can run config.sub.
655 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
656 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
659 echo $ac_n "checking host system type""... $ac_c" 1>&6
660 echo "configure:661: checking host system type" >&5
663 case "$host_alias" in
667 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) host_alias=$nonopt ;;
674 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
675 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&6
680 echo $ac_n "checking target system type""... $ac_c" 1>&6
681 echo "configure:682: checking target system type" >&5
684 case "$target_alias" in
687 NONE) target_alias=$host_alias ;;
688 *) target_alias=$nonopt ;;
692 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
693 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$target" 1>&6
698 echo $ac_n "checking build system type""... $ac_c" 1>&6
699 echo "configure:700: checking build system type" >&5
702 case "$build_alias" in
705 NONE) build_alias=$host_alias ;;
706 *) build_alias=$nonopt ;;
710 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
711 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$build" 1>&6
716 test "$host_alias" != "$target_alias" &&
717 test "$program_prefix$program_suffix$program_transform_name" = \
719 program_prefix=${target_alias}-
723 if test -r src/interface/main.c; then
732 if test -r extras/libdvdcss/libdvdcss.c; then
734 LIBDVDCSS_VERSION="1.0.1"
736 if test -r extras/libdvdcss/csskeys.h; then
737 cat >> confdefs.h <<\EOF
738 #define HAVE_CSSKEYS 1
744 save_CFLAGS="${CFLAGS}"
745 save_LDFLAGS="${LDFLAGS}"
747 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
748 echo "configure:749: checking whether ${MAKE-make} sets \${MAKE}" >&5
749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
750 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 cat > conftestmake <<\EOF
755 @echo 'ac_maketemp="${MAKE}"'
757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
758 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
759 if test -n "$ac_maketemp"; then
760 eval ac_cv_prog_make_${ac_make}_set=yes
762 eval ac_cv_prog_make_${ac_make}_set=no
766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
767 echo "$ac_t""yes" 1>&6
770 echo "$ac_t""no" 1>&6
771 SET_MAKE="MAKE=${MAKE-make}"
774 # Extract the first word of "gcc", so it can be a program name with args.
775 set dummy gcc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 for ac_dir in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
797 if test -n "$CC"; then
798 echo "$ac_t""$CC" 1>&6
800 echo "$ac_t""no" 1>&6
803 if test -z "$CC"; then
804 # Extract the first word of "cc", so it can be a program name with args.
805 set dummy cc; 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=":"
817 for ac_dir in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
820 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
829 if test $ac_prog_rejected = yes; then
830 # We found a bogon in the path, so make sure we never use it.
831 set dummy $ac_cv_prog_CC
833 if test $# -gt 0; then
834 # We chose a different compiler from the bogus one.
835 # However, it has the same basename, so the bogon will be chosen
836 # first if we set CC to just the basename; use the full file name.
838 set dummy "$ac_dir/$ac_word" "$@"
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
849 echo "$ac_t""no" 1>&6
852 if test -z "$CC"; then
855 # Extract the first word of "cl", so it can be a program name with args.
856 set dummy cl; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$CC"; then
863 ac_cv_prog_CC="$CC" # Let the user override the test.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
890 echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
894 ac_cpp='$CPP $CPPFLAGS'
895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
897 cross_compiling=$ac_cv_prog_cc_cross
899 cat > conftest.$ac_ext << EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 if { (eval echo configure:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
907 ac_cv_prog_cc_works=yes
908 # If we can't run a trivial program, we are probably using a cross compiler.
909 if (./conftest; exit) 2>/dev/null; then
910 ac_cv_prog_cc_cross=no
912 ac_cv_prog_cc_cross=yes
915 echo "configure: failed program was:" >&5
916 cat conftest.$ac_ext >&5
917 ac_cv_prog_cc_works=no
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
928 if test $ac_cv_prog_cc_works = no; then
929 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
933 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
934 cross_compiling=$ac_cv_prog_cc_cross
936 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
937 echo "configure:938: checking whether we are using GNU C" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 cat > conftest.c <<EOF
946 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
953 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
955 if test $ac_cv_prog_gcc = yes; then
961 ac_test_CFLAGS="${CFLAGS+set}"
962 ac_save_CFLAGS="$CFLAGS"
964 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
965 echo "configure:966: checking whether ${CC-cc} accepts -g" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 echo 'void f(){}' > conftest.c
970 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
979 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
980 if test "$ac_test_CFLAGS" = set; then
981 CFLAGS="$ac_save_CFLAGS"
982 elif test $ac_cv_prog_cc_g = yes; then
983 if test "$GCC" = yes; then
989 if test "$GCC" = yes; then
996 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
997 echo "configure:998: checking how to run the C preprocessor" >&5
998 # On Suns, sometimes $CPP names a directory.
999 if test -n "$CPP" && test -d "$CPP"; then
1002 if test -z "$CPP"; then
1003 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 # This must be in double quotes, not single quotes, because CPP may get
1007 # substituted into the Makefile and "${CC-cc}" will confuse make.
1009 # On the NeXT, cc -E runs the code through the compiler's parser,
1010 # not just through cpp.
1011 cat > conftest.$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1018 { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1020 if test -z "$ac_err"; then
1024 echo "configure: failed program was:" >&5
1025 cat conftest.$ac_ext >&5
1027 CPP="${CC-cc} -E -traditional-cpp"
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035 { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1037 if test -z "$ac_err"; then
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1044 CPP="${CC-cc} -nologo -E"
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1052 { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1054 if test -z "$ac_err"; then
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1068 ac_cv_prog_CPP="$CPP"
1070 CPP="$ac_cv_prog_CPP"
1072 ac_cv_prog_CPP="$CPP"
1074 echo "$ac_t""$CPP" 1>&6
1076 if test $host != $build; then
1077 ac_tool_prefix=${host_alias}-
1082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$RANLIB"; then
1090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1104 RANLIB="$ac_cv_prog_RANLIB"
1105 if test -n "$RANLIB"; then
1106 echo "$ac_t""$RANLIB" 1>&6
1108 echo "$ac_t""no" 1>&6
1112 if test -z "$ac_cv_prog_RANLIB"; then
1113 if test -n "$ac_tool_prefix"; then
1114 # Extract the first word of "ranlib", so it can be a program name with args.
1115 set dummy ranlib; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 if test -n "$RANLIB"; then
1122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 ac_cv_prog_RANLIB="ranlib"
1134 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1137 RANLIB="$ac_cv_prog_RANLIB"
1138 if test -n "$RANLIB"; then
1139 echo "$ac_t""$RANLIB" 1>&6
1141 echo "$ac_t""no" 1>&6
1150 # Find a good install program. We prefer a C program (faster),
1151 # so one script is as good as another. But avoid the broken or
1152 # incompatible versions:
1153 # SysV /etc/install, /usr/sbin/install
1154 # SunOS /usr/etc/install
1155 # IRIX /sbin/install
1157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1160 # ./install, which can be erroneously created by make from ./install.sh.
1161 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1162 echo "configure:1163: checking for a BSD compatible install" >&5
1163 if test -z "$INSTALL"; then
1164 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1168 for ac_dir in $PATH; do
1169 # Account for people who put trailing slashes in PATH elements.
1171 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1173 # OSF1 and SCO ODT 3.0 have their own names for install.
1174 # Don't use installbsd from OSF since it installs stuff as root
1176 for ac_prog in ginstall scoinst install; do
1177 if test -f $ac_dir/$ac_prog; then
1178 if test $ac_prog = install &&
1179 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1180 # AIX install. It has an incompatible calling convention.
1183 ac_cv_path_install="$ac_dir/$ac_prog -c"
1194 if test "${ac_cv_path_install+set}" = set; then
1195 INSTALL="$ac_cv_path_install"
1197 # As a last resort, use the slow shell script. We don't cache a
1198 # path for INSTALL within a source directory, because that will
1199 # break other packages using the cache if that directory is
1200 # removed, or if the path is relative.
1201 INSTALL="$ac_install_sh"
1204 echo "$ac_t""$INSTALL" 1>&6
1206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1207 # It thinks the first close brace ends the variable substitution.
1208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1215 if test x${cross_compiling} != xyes; then
1216 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether byte ordering is bigendian" >&5
1218 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 ac_cv_c_bigendian=unknown
1222 # See if sys/param.h defines the BYTE_ORDER macro.
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1226 #include <sys/types.h>
1227 #include <sys/param.h>
1230 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1235 if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1237 # It does; now see whether it defined to BIG_ENDIAN or not.
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 #include <sys/types.h>
1242 #include <sys/param.h>
1245 #if BYTE_ORDER != BIG_ENDIAN
1250 if { (eval echo configure:1251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1252 ac_cv_c_bigendian=yes
1254 echo "configure: failed program was:" >&5
1255 cat conftest.$ac_ext >&5
1257 ac_cv_c_bigendian=no
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1265 if test $ac_cv_c_bigendian = unknown; then
1266 if test "$cross_compiling" = yes; then
1267 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1273 /* Are we little or big endian? From Harbison&Steele. */
1277 char c[sizeof (long)];
1280 exit (u.c[sizeof (long) - 1] == 1);
1283 if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1285 ac_cv_c_bigendian=no
1287 echo "configure: failed program was:" >&5
1288 cat conftest.$ac_ext >&5
1290 ac_cv_c_bigendian=yes
1298 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1299 if test $ac_cv_c_bigendian = yes; then
1300 cat >> confdefs.h <<\EOF
1301 #define WORDS_BIGENDIAN 1
1307 # Check whether --with-words or --without-words was given.
1308 if test "${with_words+set}" = set; then
1309 withval="$with_words"
1315 ac_cv_c_bigendian=yes
1318 ac_cv_c_bigendian=no
1321 ac_cv_c_bigendian=unknown
1322 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1323 echo "configure:1324: checking what the byte order looks to be" >&5
1324 cat >conftest.c <<EOF
1325 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1326 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1327 void _a(void) { char*s = (char*)am; s = (char *)ai; }
1328 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1329 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1330 void _e(void) { char*s = (char*)em; s = (char*)ei; }
1331 int main(void) { _a(); _e(); return 0; }
1334 if test -f conftest.c
1336 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1337 && test -f conftest.o
1339 if test `grep -l BIGenDianSyS conftest.o`
1341 echo "$ac_t"""big endian"" 1>&6
1342 ac_cv_c_bigendian=yes
1344 if test `grep -l LiTTleEnDian conftest.o`
1346 echo "$ac_t"""little endian"" 1>&6
1347 ac_cv_c_bigendian=no
1351 if test $ac_cv_c_bigendian = xunknown
1353 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1355 if test $ac_cv_c_bigendian = yes
1357 cat >> confdefs.h <<\EOF
1358 #define WORDS_BIGENDIAN 1
1365 for ac_func in gettimeofday select strerror strtod strtol
1367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_func" >&5
1369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* System header to define __stub macros and hopefully few prototypes,
1376 which can conflict with char $ac_func(); below. */
1378 /* Override any gcc2 internal prototype to avoid an error. */
1379 /* We use char because int might match the return type of a gcc2
1380 builtin and then its argument prototype would still apply. */
1385 /* The GNU C library defines this for functions which it implements
1386 to always fail with ENOSYS. Some functions are actually named
1387 something starting with __ and the normal name is an alias. */
1388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 eval "ac_cv_func_$ac_func=yes"
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 eval "ac_cv_func_$ac_func=no"
1408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1411 cat >> confdefs.h <<EOF
1412 #define $ac_tr_func 1
1416 echo "$ac_t""no" 1>&6
1420 for ac_func in setenv putenv
1422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_func" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* System header to define __stub macros and hopefully few prototypes,
1431 which can conflict with char $ac_func(); below. */
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1440 /* The GNU C library defines this for functions which it implements
1441 to always fail with ENOSYS. Some functions are actually named
1442 something starting with __ and the normal name is an alias. */
1443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1453 eval "ac_cv_func_$ac_func=yes"
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1458 eval "ac_cv_func_$ac_func=no"
1463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1466 cat >> confdefs.h <<EOF
1467 #define $ac_tr_func 1
1471 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for connect""... $ac_c" 1>&6
1476 echo "configure:1477: checking for connect" >&5
1477 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 /* System header to define __stub macros and hopefully few prototypes,
1484 which can conflict with char connect(); below. */
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1493 /* The GNU C library defines this for functions which it implements
1494 to always fail with ENOSYS. Some functions are actually named
1495 something starting with __ and the normal name is an alias. */
1496 #if defined (__stub_connect) || defined (__stub___connect)
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1506 eval "ac_cv_func_connect=yes"
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1511 eval "ac_cv_func_connect=no"
1516 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1523 echo "configure:1524: checking for connect in -lsocket" >&5
1524 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 ac_save_LIBS="$LIBS"
1529 LIBS="-lsocket $LIBS"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 /* Override any gcc2 internal prototype to avoid an error. */
1534 /* We use char because int might match the return type of a gcc2
1535 builtin and then its argument prototype would still apply. */
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1544 eval "ac_cv_lib_$ac_lib_var=yes"
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 eval "ac_cv_lib_$ac_lib_var=no"
1552 LIBS="$ac_save_LIBS"
1555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1556 echo "$ac_t""yes" 1>&6
1557 LIB="${LIB} -lsocket"
1559 echo "$ac_t""no" 1>&6
1565 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1566 echo "configure:1567: checking for gethostbyname" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 /* System header to define __stub macros and hopefully few prototypes,
1574 which can conflict with char gethostbyname(); below. */
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1579 char gethostbyname();
1583 /* The GNU C library defines this for functions which it implements
1584 to always fail with ENOSYS. Some functions are actually named
1585 something starting with __ and the normal name is an alias. */
1586 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596 eval "ac_cv_func_gethostbyname=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_func_gethostbyname=no"
1606 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1610 echo "$ac_t""no" 1>&6
1612 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1613 echo "configure:1614: checking for gethostbyname in -lnsl" >&5
1614 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_save_LIBS="$LIBS"
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* Override any gcc2 internal prototype to avoid an error. */
1624 /* We use char because int might match the return type of a gcc2
1625 builtin and then its argument prototype would still apply. */
1626 char gethostbyname();
1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1634 eval "ac_cv_lib_$ac_lib_var=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1639 eval "ac_cv_lib_$ac_lib_var=no"
1642 LIBS="$ac_save_LIBS"
1645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1649 echo "$ac_t""no" 1>&6
1655 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1656 echo "configure:1657: checking for nanosleep" >&5
1657 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 /* System header to define __stub macros and hopefully few prototypes,
1664 which can conflict with char nanosleep(); below. */
1666 /* Override any gcc2 internal prototype to avoid an error. */
1667 /* We use char because int might match the return type of a gcc2
1668 builtin and then its argument prototype would still apply. */
1673 /* The GNU C library defines this for functions which it implements
1674 to always fail with ENOSYS. Some functions are actually named
1675 something starting with __ and the normal name is an alias. */
1676 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1686 eval "ac_cv_func_nanosleep=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 eval "ac_cv_func_nanosleep=no"
1696 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1700 echo "$ac_t""no" 1>&6
1702 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1703 echo "configure:1704: checking for nanosleep in -lrt" >&5
1704 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 ac_save_LIBS="$LIBS"
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* Override any gcc2 internal prototype to avoid an error. */
1714 /* We use char because int might match the return type of a gcc2
1715 builtin and then its argument prototype would still apply. */
1722 if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1724 eval "ac_cv_lib_$ac_lib_var=yes"
1726 echo "configure: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1729 eval "ac_cv_lib_$ac_lib_var=no"
1732 LIBS="$ac_save_LIBS"
1735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1736 echo "$ac_t""yes" 1>&6
1739 echo "$ac_t""no" 1>&6
1741 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1742 echo "configure:1743: checking for nanosleep in -lposix4" >&5
1743 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 ac_save_LIBS="$LIBS"
1748 LIBS="-lposix4 $LIBS"
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_lib_$ac_lib_var=no"
1771 LIBS="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 LIB="${LIB} -lposix4"
1778 echo "$ac_t""no" 1>&6
1787 for ac_func in usleep
1789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_func" >&5
1791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $ac_func(); below. */
1800 /* Override any gcc2 internal prototype to avoid an error. */
1801 /* We use char because int might match the return type of a gcc2
1802 builtin and then its argument prototype would still apply. */
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 eval "ac_cv_func_$ac_func=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 eval "ac_cv_func_$ac_func=no"
1830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1833 cat >> confdefs.h <<EOF
1834 #define $ac_tr_func 1
1838 echo "$ac_t""no" 1>&6
1842 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1843 echo "configure:1844: checking for inet_aton" >&5
1844 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char inet_aton(); below. */
1853 /* Override any gcc2 internal prototype to avoid an error. */
1854 /* We use char because int might match the return type of a gcc2
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1871 if { (eval echo configure:1872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873 eval "ac_cv_func_inet_aton=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1878 eval "ac_cv_func_inet_aton=no"
1883 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1887 echo "$ac_t""no" 1>&6
1889 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1890 echo "configure:1891: checking for inet_aton in -lresolv" >&5
1891 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 ac_save_LIBS="$LIBS"
1896 LIBS="-lresolv $LIBS"
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900 /* Override any gcc2 internal prototype to avoid an error. */
1901 /* We use char because int might match the return type of a gcc2
1902 builtin and then its argument prototype would still apply. */
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911 eval "ac_cv_lib_$ac_lib_var=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_lib_$ac_lib_var=no"
1919 LIBS="$ac_save_LIBS"
1922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 LIB="${LIB} -lresolv"
1926 echo "$ac_t""no" 1>&6
1932 for ac_func in vasprintf
1934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_func" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $ac_func(); below. */
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1952 /* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1965 eval "ac_cv_func_$ac_func=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 eval "ac_cv_func_$ac_func=no"
1975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_func 1
1983 echo "$ac_t""no" 1>&6
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2042 for ac_func in memalign valloc
2044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_func" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char $ac_func(); below. */
2055 /* Override any gcc2 internal prototype to avoid an error. */
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2062 /* The GNU C library defines this for functions which it implements
2063 to always fail with ENOSYS. Some functions are actually named
2064 something starting with __ and the normal name is an alias. */
2065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075 eval "ac_cv_func_$ac_func=yes"
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 eval "ac_cv_func_$ac_func=no"
2085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_func 1
2093 echo "$ac_t""no" 1>&6
2098 for ac_func in sigrelse
2100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_func" >&5
2102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* System header to define __stub macros and hopefully few prototypes,
2109 which can conflict with char $ac_func(); below. */
2111 /* Override any gcc2 internal prototype to avoid an error. */
2112 /* We use char because int might match the return type of a gcc2
2113 builtin and then its argument prototype would still apply. */
2118 /* The GNU C library defines this for functions which it implements
2119 to always fail with ENOSYS. Some functions are actually named
2120 something starting with __ and the normal name is an alias. */
2121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2131 eval "ac_cv_func_$ac_func=yes"
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 eval "ac_cv_func_$ac_func=no"
2141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2144 cat >> confdefs.h <<EOF
2145 #define $ac_tr_func 1
2149 echo "$ac_t""no" 1>&6
2155 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2156 echo "configure:2157: checking for getopt_long" >&5
2157 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 /* System header to define __stub macros and hopefully few prototypes,
2164 which can conflict with char getopt_long(); below. */
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2173 /* The GNU C library defines this for functions which it implements
2174 to always fail with ENOSYS. Some functions are actually named
2175 something starting with __ and the normal name is an alias. */
2176 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2186 eval "ac_cv_func_getopt_long=yes"
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2191 eval "ac_cv_func_getopt_long=no"
2196 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 cat >> confdefs.h <<\EOF
2199 #define HAVE_GETOPT_LONG 1
2203 echo "$ac_t""no" 1>&6
2204 # FreeBSD has a gnugetopt library for this:
2205 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2206 echo "configure:2207: checking for getopt_long in -lgnugetopt" >&5
2207 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 ac_save_LIBS="$LIBS"
2212 LIBS="-lgnugetopt $LIBS"
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 /* Override any gcc2 internal prototype to avoid an error. */
2217 /* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2225 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 eval "ac_cv_lib_$ac_lib_var=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_lib_$ac_lib_var=no"
2235 LIBS="$ac_save_LIBS"
2238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2239 echo "$ac_t""yes" 1>&6
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_GETOPT_LONG 1
2243 LIB="${LIB} -lgnugetopt"
2245 echo "$ac_t""no" 1>&6
2252 for ac_hdr in unistd.h
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_hdr" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2270 eval "ac_cv_header_$ac_safe=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_header_$ac_safe=no"
2280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_hdr 1
2288 echo "$ac_t""no" 1>&6
2292 for ac_func in getpagesize
2294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_func" >&5
2296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* System header to define __stub macros and hopefully few prototypes,
2303 which can conflict with char $ac_func(); below. */
2305 /* Override any gcc2 internal prototype to avoid an error. */
2306 /* We use char because int might match the return type of a gcc2
2307 builtin and then its argument prototype would still apply. */
2312 /* The GNU C library defines this for functions which it implements
2313 to always fail with ENOSYS. Some functions are actually named
2314 something starting with __ and the normal name is an alias. */
2315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 eval "ac_cv_func_$ac_func=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 eval "ac_cv_func_$ac_func=no"
2335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2338 cat >> confdefs.h <<EOF
2339 #define $ac_tr_func 1
2343 echo "$ac_t""no" 1>&6
2347 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2348 echo "configure:2349: checking for working mmap" >&5
2349 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 if test "$cross_compiling" = yes; then
2353 ac_cv_func_mmap_fixed_mapped=no
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2359 /* Thanks to Mike Haertel and Jim Avera for this test.
2360 Here is a matrix of mmap possibilities:
2361 mmap private not fixed
2362 mmap private fixed at somewhere currently unmapped
2363 mmap private fixed at somewhere already mapped
2364 mmap shared not fixed
2365 mmap shared fixed at somewhere currently unmapped
2366 mmap shared fixed at somewhere already mapped
2367 For private mappings, we should verify that changes cannot be read()
2368 back from the file, nor mmap's back from the file at a different
2369 address. (There have been systems where private was not correctly
2370 implemented like the infamous i386 svr4.0, and systems where the
2371 VM page cache was not coherent with the filesystem buffer cache
2372 like early versions of FreeBSD and possibly contemporary NetBSD.)
2373 For shared mappings, we should conversely verify that changes get
2374 propogated back to all the places they're supposed to be.
2376 Grep wants private fixed already mapped.
2377 The main things grep needs to know about mmap are:
2378 * does it exist and is it safe to write into the mmap'd area
2379 * how to use it (BSD variants) */
2380 #include <sys/types.h>
2382 #include <sys/mman.h>
2384 /* This mess was copied from the GNU getpagesize.h. */
2385 #ifndef HAVE_GETPAGESIZE
2386 # ifdef HAVE_UNISTD_H
2387 # include <unistd.h>
2390 /* Assume that all systems that can run configure have sys/param.h. */
2391 # ifndef HAVE_SYS_PARAM_H
2392 # define HAVE_SYS_PARAM_H 1
2395 # ifdef _SC_PAGESIZE
2396 # define getpagesize() sysconf(_SC_PAGESIZE)
2397 # else /* no _SC_PAGESIZE */
2398 # ifdef HAVE_SYS_PARAM_H
2399 # include <sys/param.h>
2400 # ifdef EXEC_PAGESIZE
2401 # define getpagesize() EXEC_PAGESIZE
2402 # else /* no EXEC_PAGESIZE */
2404 # define getpagesize() NBPG * CLSIZE
2407 # endif /* no CLSIZE */
2408 # else /* no NBPG */
2410 # define getpagesize() NBPC
2411 # else /* no NBPC */
2413 # define getpagesize() PAGESIZE
2414 # endif /* PAGESIZE */
2415 # endif /* no NBPC */
2416 # endif /* no NBPG */
2417 # endif /* no EXEC_PAGESIZE */
2418 # else /* no HAVE_SYS_PARAM_H */
2419 # define getpagesize() 8192 /* punt totally */
2420 # endif /* no HAVE_SYS_PARAM_H */
2421 # endif /* no _SC_PAGESIZE */
2423 #endif /* no HAVE_GETPAGESIZE */
2426 extern "C" { void *malloc(unsigned); }
2434 char *data, *data2, *data3;
2438 pagesize = getpagesize();
2441 * First, make a file with some known garbage in it.
2443 data = malloc(pagesize);
2446 for (i = 0; i < pagesize; ++i)
2447 *(data + i) = rand();
2449 fd = creat("conftestmmap", 0600);
2452 if (write(fd, data, pagesize) != pagesize)
2457 * Next, try to mmap the file at a fixed address which
2458 * already has something else allocated at it. If we can,
2459 * also make sure that we see the same garbage.
2461 fd = open("conftestmmap", O_RDWR);
2464 data2 = malloc(2 * pagesize);
2467 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2468 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2469 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2471 for (i = 0; i < pagesize; ++i)
2472 if (*(data + i) != *(data2 + i))
2476 * Finally, make sure that changes to the mapped area
2477 * do not percolate back to the file as seen by read().
2478 * (This is a bug on some variants of i386 svr4.0.)
2480 for (i = 0; i < pagesize; ++i)
2481 *(data2 + i) = *(data2 + i) + 1;
2482 data3 = malloc(pagesize);
2485 if (read(fd, data3, pagesize) != pagesize)
2487 for (i = 0; i < pagesize; ++i)
2488 if (*(data + i) != *(data3 + i))
2491 unlink("conftestmmap");
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2498 ac_cv_func_mmap_fixed_mapped=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 ac_cv_func_mmap_fixed_mapped=no
2510 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2511 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2512 cat >> confdefs.h <<\EOF
2518 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2519 echo "configure:2520: checking return type of signal handlers" >&5
2520 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 #include <sys/types.h>
2532 extern "C" void (*signal (int, void (*)(int)))(int);
2534 void (*signal ()) ();
2541 if { (eval echo configure:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2543 ac_cv_type_signal=void
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 ac_cv_type_signal=int
2553 echo "$ac_t""$ac_cv_type_signal" 1>&6
2554 cat >> confdefs.h <<EOF
2555 #define RETSIGTYPE $ac_cv_type_signal
2559 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2560 echo "configure:2561: checking for dlopen in -ldl" >&5
2561 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 ac_save_LIBS="$LIBS"
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2579 if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2581 eval "ac_cv_lib_$ac_lib_var=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2586 eval "ac_cv_lib_$ac_lib_var=no"
2589 LIBS="$ac_save_LIBS"
2592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2596 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2600 echo "configure:2601: checking for pow in -lm" >&5
2601 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_save_LIBS="$LIBS"
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_lib_$ac_lib_var=no"
2629 LIBS="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 LIB_YUV="${LIB_YUV} -lm"
2635 LIB_IMDCT="${LIB_IMDCT} -lm"
2636 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
2637 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
2640 echo "$ac_t""no" 1>&6
2645 if test "x${THREAD_LIB}" = xerror; then
2646 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2647 echo "configure:2648: checking for pthread_attr_init in -lpthread" >&5
2648 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 ac_save_LIBS="$LIBS"
2653 LIBS="-lpthread $LIBS"
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2657 /* Override any gcc2 internal prototype to avoid an error. */
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660 char pthread_attr_init();
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2668 eval "ac_cv_lib_$ac_lib_var=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_lib_$ac_lib_var=no"
2676 LIBS="$ac_save_LIBS"
2679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 THREAD_LIB="-lpthread"
2683 echo "$ac_t""no" 1>&6
2687 if test "x${THREAD_LIB}" = xerror; then
2688 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2689 echo "configure:2690: checking for pthread_attr_init in -lpthreads" >&5
2690 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 ac_save_LIBS="$LIBS"
2695 LIBS="-lpthreads $LIBS"
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2702 char pthread_attr_init();
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2710 eval "ac_cv_lib_$ac_lib_var=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 eval "ac_cv_lib_$ac_lib_var=no"
2718 LIBS="$ac_save_LIBS"
2721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 THREAD_LIB="-lpthreads"
2725 echo "$ac_t""no" 1>&6
2729 if test "x${THREAD_LIB}" = xerror; then
2730 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2731 echo "configure:2732: checking for pthread_attr_init in -lc_r" >&5
2732 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 ac_save_LIBS="$LIBS"
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 /* Override any gcc2 internal prototype to avoid an error. */
2742 /* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2744 char pthread_attr_init();
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 eval "ac_cv_lib_$ac_lib_var=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_lib_$ac_lib_var=no"
2760 LIBS="$ac_save_LIBS"
2763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2767 echo "$ac_t""no" 1>&6
2771 if test "x${THREAD_LIB}" = xerror; then
2772 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2773 echo "configure:2774: checking for pthread_attr_init" >&5
2774 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char pthread_attr_init(); below. */
2783 /* Override any gcc2 internal prototype to avoid an error. */
2784 /* We use char because int might match the return type of a gcc2
2785 builtin and then its argument prototype would still apply. */
2786 char pthread_attr_init();
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2796 pthread_attr_init();
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2803 eval "ac_cv_func_pthread_attr_init=yes"
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 eval "ac_cv_func_pthread_attr_init=no"
2813 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2817 echo "$ac_t""no" 1>&6
2823 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2824 echo "configure:2825: checking for cthread_fork in -lthreads" >&5
2825 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 ac_save_LIBS="$LIBS"
2830 LIBS="-lthreads $LIBS"
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2837 char cthread_fork();
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2845 eval "ac_cv_lib_$ac_lib_var=yes"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2850 eval "ac_cv_lib_$ac_lib_var=no"
2853 LIBS="$ac_save_LIBS"
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 THREAD_LIB="-lthreads"
2860 echo "$ac_t""no" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <pthread.h>
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2870 egrep "pthread_cond_t" >/dev/null 2>&1; then
2873 cat >> confdefs.h <<\EOF
2874 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <strings.h>
2885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2886 egrep "strncasecmp" >/dev/null 2>&1; then
2889 cat >> confdefs.h <<\EOF
2890 #define STRNCASECMP_IN_STRINGS_H 1
2897 for ac_hdr in stddef.h getopt.h strings.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2937 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h <<EOF
2969 #define $ac_tr_hdr 1
2973 echo "$ac_t""no" 1>&6
2977 for ac_hdr in sys/soundcard.h machine/soundcard.h
2979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_hdr" >&5
2982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2995 eval "ac_cv_header_$ac_safe=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 eval "ac_cv_header_$ac_safe=no"
3005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3008 cat >> confdefs.h <<EOF
3009 #define $ac_tr_hdr 1
3013 echo "$ac_t""no" 1>&6
3017 for ac_hdr in dlfcn.h image.h
3019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_hdr" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3031 { (eval echo configure:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3033 if test -z "$ac_err"; then
3035 eval "ac_cv_header_$ac_safe=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3041 eval "ac_cv_header_$ac_safe=no"
3045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3048 cat >> confdefs.h <<EOF
3049 #define $ac_tr_hdr 1
3053 echo "$ac_t""no" 1>&6
3057 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3061 echo "configure:3062: checking for $ac_hdr" >&5
3062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3071 { (eval echo configure:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3073 if test -z "$ac_err"; then
3075 eval "ac_cv_header_$ac_safe=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_header_$ac_safe=no"
3085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3088 cat >> confdefs.h <<EOF
3089 #define $ac_tr_hdr 1
3093 echo "$ac_t""no" 1>&6
3097 for ac_hdr in machine/param.h
3099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3101 echo "configure:3102: checking for $ac_hdr" >&5
3102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3111 { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3113 if test -z "$ac_err"; then
3115 eval "ac_cv_header_$ac_safe=yes"
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3121 eval "ac_cv_header_$ac_safe=no"
3125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3128 cat >> confdefs.h <<EOF
3129 #define $ac_tr_hdr 1
3133 echo "$ac_t""no" 1>&6
3138 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3142 echo "configure:3143: checking for $ac_hdr" >&5
3143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3152 { (eval echo configure:3153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3154 if test -z "$ac_err"; then
3156 eval "ac_cv_header_$ac_safe=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_header_$ac_safe=no"
3166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_hdr 1
3174 echo "$ac_t""no" 1>&6
3179 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3180 echo "configure:3181: checking for ntohl in sys/param.h" >&5
3181 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 CFLAGS="${save_CFLAGS} -Wall -Werror"
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <sys/param.h>
3190 void foo() { int meuh; ntohl(meuh); }
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 ac_cv_c_ntohl_sys_param_h=yes
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 ac_cv_c_ntohl_sys_param_h=no
3205 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3206 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3207 cat >> confdefs.h <<\EOF
3208 #define NTOHL_IN_SYS_PARAM_H 1
3213 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3214 echo "configure:3215: checking if \$CC accepts -finline-limit" >&5
3215 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 ac_cv_c_inline_limit=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 ac_cv_c_inline_limit=no
3239 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3240 if test x"$ac_cv_c_inline_limit" != x"no"; then
3241 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3244 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3245 echo "configure:3246: checking if \$CC accepts -bundle -undefined error" >&5
3246 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3270 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3271 if test x"$ac_cv_ld_darwin" != x"no"; then
3272 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3275 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3276 echo "configure:3277: checking if \$CC accepts -shared" >&5
3277 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 CFLAGS="${save_CFLAGS} -shared"
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3291 ac_cv_ld_plugins=yes
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3301 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3302 if test x"$ac_cv_ld_plugins" != x"no"; then
3303 PLCFLAGS="${PLCFLAGS} -shared"
3306 if test x"${SOFLAGS}" = x; then
3307 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3308 echo "configure:3309: checking for soname setting" >&5
3309 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3314 try_SOFLAGS="-Wl,-soname -Wl,"
3315 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 ac_cv_ld_soname="${try_SOFLAGS}"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3333 try_SOFLAGS="-Wl,-h -Wl,"
3334 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345 ac_cv_ld_soname="${try_SOFLAGS}"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 ac_cv_ld_soname=none
3358 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3359 if test x"$ac_cv_ld_soname" != x"none"; then
3360 SOFLAGS=$ac_cv_ld_soname
3364 Your system doesn't seem to have support for dynamic linking. You may
3365 have problems using libdvdcss.
3371 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3372 echo "configure:3373: checking __attribute__ ((aligned ())) support" >&5
3373 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 ac_cv_c_attribute_aligned=0
3377 CFLAGS="${save_CFLAGS} -Werror"
3378 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3384 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3398 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3399 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3400 cat >> confdefs.h <<EOF
3401 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3406 CFLAGS="${save_CFLAGS}"
3407 LDFLAGS="${save_LDFLAGS}"
3409 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3410 echo "configure:3411: checking for boolean_t in sys/types.h" >&5
3411 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424 ac_cv_c_boolean_t_sys_types_h=yes
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 ac_cv_c_boolean_t_sys_types_h=no
3434 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3435 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3436 cat >> confdefs.h <<\EOF
3437 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3442 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3443 echo "configure:3444: checking for boolean_t in pthread.h" >&5
3444 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 #include <pthread.h>
3455 if { (eval echo configure:3456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457 ac_cv_c_boolean_t_pthread_h=yes
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 ac_cv_c_boolean_t_pthread_h=no
3467 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3468 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3469 cat >> confdefs.h <<\EOF
3470 #define BOOLEAN_T_IN_PTHREAD_H 1
3475 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3476 echo "configure:3477: checking for boolean_t in cthreads.h" >&5
3477 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <cthreads.h>
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490 ac_cv_c_boolean_t_cthreads_h=yes
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3495 ac_cv_c_boolean_t_cthreads_h=no
3500 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3501 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3502 cat >> confdefs.h <<\EOF
3503 #define BOOLEAN_T_IN_CTHREADS_H 1
3508 echo $ac_n "checking for working const""... $ac_c" 1>&6
3509 echo "configure:3510: checking for working const" >&5
3510 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3519 /* Ultrix mips cc rejects this. */
3520 typedef int charset[2]; const charset x;
3521 /* SunOS 4.1.1 cc rejects this. */
3522 char const *const *ccp;
3524 /* NEC SVR4.0.2 mips cc rejects this. */
3525 struct point {int x, y;};
3526 static struct point const zero = {0,0};
3527 /* AIX XL C 1.02.0.0 rejects this.
3528 It does not let you subtract one const X* pointer from another in an arm
3529 of an if-expression whose if-part is not a constant expression */
3530 const char *g = "string";
3531 ccp = &g + (g ? g-g : 0);
3532 /* HPUX 7.0 cc rejects these. */
3535 ccp = (char const *const *) p;
3536 { /* SCO 3.2v4 cc rejects this. */
3538 char const *s = 0 ? (char *) 0 : (char const *) 0;
3542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3544 const int *foo = &x[0];
3547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3548 typedef const int *iptr;
3552 { /* AIX XL C 1.02.0.0 rejects this saying
3553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3554 struct s { int j; const int *ap[3]; };
3555 struct s *b; b->j = 5;
3557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3575 echo "$ac_t""$ac_cv_c_const" 1>&6
3576 if test $ac_cv_c_const = no; then
3577 cat >> confdefs.h <<\EOF
3583 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3584 echo "configure:3585: checking for ANSI C header files" >&5
3585 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3597 { (eval echo configure:3598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3599 if test -z "$ac_err"; then
3601 ac_cv_header_stdc=yes
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 ac_cv_header_stdc=no
3611 if test $ac_cv_header_stdc = yes; then
3612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619 egrep "memchr" >/dev/null 2>&1; then
3623 ac_cv_header_stdc=no
3629 if test $ac_cv_header_stdc = yes; then
3630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 egrep "free" >/dev/null 2>&1; then
3641 ac_cv_header_stdc=no
3647 if test $ac_cv_header_stdc = yes; then
3648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3649 if test "$cross_compiling" = yes; then
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3656 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3657 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3659 int main () { int i; for (i = 0; i < 256; i++)
3660 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 ac_cv_header_stdc=no
3679 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3680 if test $ac_cv_header_stdc = yes; then
3681 cat >> confdefs.h <<\EOF
3682 #define STDC_HEADERS 1
3687 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3688 echo "configure:3689: checking for size_t" >&5
3689 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <sys/types.h>
3701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3704 ac_cv_type_size_t=yes
3707 ac_cv_type_size_t=no
3712 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3713 if test $ac_cv_type_size_t = no; then
3714 cat >> confdefs.h <<\EOF
3715 #define size_t unsigned
3720 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3721 echo "configure:3722: checking whether time.h and sys/time.h may both be included" >&5
3722 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <sys/types.h>
3729 #include <sys/time.h>
3735 if { (eval echo configure:3736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3737 ac_cv_header_time=yes
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3742 ac_cv_header_time=no
3747 echo "$ac_t""$ac_cv_header_time" 1>&6
3748 if test $ac_cv_header_time = yes; then
3749 cat >> confdefs.h <<\EOF
3750 #define TIME_WITH_SYS_TIME 1
3759 BUILTINS="${BUILTINS} es ps ts memcpy yuv idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
3760 PLUGINS="${PLUGINS} ac3_spdif spu_dec"
3762 MMX_MODULES="memcpymmx yuvmmx idctmmx motionmmx"
3763 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
3764 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
3765 SSE_MODULES="imdctsse downmixsse"
3766 ALTIVEC_MODULES="idctaltivec motionaltivec"
3768 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3769 echo "configure:3770: checking if \$CC groks MMX inline assembly" >&5
3770 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3778 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
3781 if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 ac_cv_mmx_inline=yes
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3793 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3794 if test x"$ac_cv_mmx_inline" != x"no"; then
3795 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3798 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3799 echo "configure:3800: checking if \$CC groks MMX EXT inline assembly" >&5
3800 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3808 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3813 ac_cv_mmxext_inline=yes
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 ac_cv_mmxext_inline=no
3823 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3824 if test x"$ac_cv_mmxext_inline" != x"no"; then
3825 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3828 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3829 echo "configure:3830: checking if \$CC groks 3D Now! inline assembly" >&5
3830 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3838 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843 ac_cv_3dnow_inline=yes
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 ac_cv_3dnow_inline=no
3853 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3854 if test x"$ac_cv_3dnow_inline" != x"no"; then
3855 cat >> confdefs.h <<\EOF
3856 #define CAN_COMPILE_3DNOW 1
3859 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3862 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3863 echo "configure:3864: checking if \$CC groks SSE inline assembly" >&5
3864 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3872 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3877 ac_cv_sse_inline=yes
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3887 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3888 if test x"$ac_cv_sse_inline" != x"no"; then
3889 cat >> confdefs.h <<\EOF
3890 #define CAN_COMPILE_SSE 1
3893 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3896 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3897 echo "configure:3898: checking if \$CC groks Altivec inline assembly" >&5
3898 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 asm volatile("vperm 0,1,2,3");
3909 if { (eval echo configure:3910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 ac_cv_altivec_inline=yes
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3917 CFLAGS="$CFLAGS -Wa,-m7400"
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3923 asm volatile("vperm 0,1,2,3");
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 ac_cv_altivec_inline="-Wa,-m7400"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 ac_cv_altivec_inline=no
3942 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3943 if test x"$ac_cv_altivec_inline" != x"no"; then
3944 cat >> confdefs.h <<\EOF
3945 #define CAN_COMPILE_ALTIVEC 1
3948 if test x"$ac_cv_altivec_inline" != x"yes"; then
3949 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_altivec_inline"
3950 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
3952 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3955 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3956 echo "configure:3957: checking if \$CC groks Altivec C extensions" >&5
3957 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3961 CFLAGS="$CFLAGS -faltivec"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3968 vec_mtvscr((vector unsigned int)(0));
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 ac_cv_c_altivec=-faltivec
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3980 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 vec_mtvscr((vector unsigned int)(0));
3989 if { (eval echo configure:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 ac_cv_c_altivec="-fvec"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
4006 echo "$ac_t""$ac_cv_c_altivec" 1>&6
4007 if test x"$ac_cv_c_altivec" != x"no"; then
4008 cat >> confdefs.h <<\EOF
4009 #define CAN_COMPILE_C_ALTIVEC 1
4012 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
4013 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
4014 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
4017 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
4018 echo "configure:4019: checking if linker needs -framework vecLib" >&5
4019 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 save_LDFLAGS=$LDFLAGS
4023 LDFLAGS="$LDFLAGS -framework vecLib"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 ac_cv_ld_altivec=yes
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4042 LDFLAGS=$save_LDFLAGS
4046 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
4047 if test x"$ac_cv_ld_altivec" != x"no"; then
4048 LIB_ALTIVEC="-framework vecLib"
4051 case ${target_os} in
4069 if test $SYS = mingw32; then
4070 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}windres; ac_word=$2
4072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4073 echo "configure:4074: checking for $ac_word" >&5
4074 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 if test -n "$WINDRES"; then
4078 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4082 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f $ac_dir/$ac_word; then
4085 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4092 WINDRES="$ac_cv_prog_WINDRES"
4093 if test -n "$WINDRES"; then
4094 echo "$ac_t""$WINDRES" 1>&6
4096 echo "$ac_t""no" 1>&6
4100 if test -z "$ac_cv_prog_WINDRES"; then
4101 if test -n "$ac_tool_prefix"; then
4102 # Extract the first word of "windres", so it can be a program name with args.
4103 set dummy windres; ac_word=$2
4104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4105 echo "configure:4106: checking for $ac_word" >&5
4106 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 if test -n "$WINDRES"; then
4110 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4114 for ac_dir in $ac_dummy; do
4115 test -z "$ac_dir" && ac_dir=.
4116 if test -f $ac_dir/$ac_word; then
4117 ac_cv_prog_WINDRES="windres"
4122 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
4125 WINDRES="$ac_cv_prog_WINDRES"
4126 if test -n "$WINDRES"; then
4127 echo "$ac_t""$WINDRES" 1>&6
4129 echo "$ac_t""no" 1>&6
4142 CAN_BUILD_LIBDVDCSS=0
4144 for ac_hdr in winioctl.h
4146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4148 echo "configure:4149: checking for $ac_hdr" >&5
4149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4158 { (eval echo configure:4159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4160 if test -z "$ac_err"; then
4162 eval "ac_cv_header_$ac_safe=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_header_$ac_safe=no"
4172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4175 cat >> confdefs.h <<EOF
4176 #define $ac_tr_hdr 1
4179 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4182 echo "$ac_t""no" 1>&6
4187 for ac_hdr in sys/ioctl.h
4189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_hdr" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_hdr 1
4222 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4223 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4227 echo "configure:4228: checking for $ac_hdr" >&5
4228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4237 { (eval echo configure:4238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4239 if test -z "$ac_err"; then
4241 eval "ac_cv_header_$ac_safe=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_header_$ac_safe=no"
4251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4254 cat >> confdefs.h <<EOF
4255 #define $ac_tr_hdr 1
4259 echo "$ac_t""no" 1>&6
4265 OPENBSD_DVD_STRUCT=0
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include <sys/cdio.h>
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 egrep "dvd_struct" >/dev/null 2>&1; then
4275 cat >> confdefs.h <<\EOF
4276 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 #include <sys/cdio.h>
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 egrep "struct dvd_struct" >/dev/null 2>&1; then
4291 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <sys/dvdio.h>
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 egrep "dvd_struct" >/dev/null 2>&1; then
4308 cat >> confdefs.h <<\EOF
4309 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <sys/dvdio.h>
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "struct dvd_struct" >/dev/null 2>&1; then
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <linux/cdrom.h>
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 egrep "dvd_struct" >/dev/null 2>&1; then
4341 cat >> confdefs.h <<\EOF
4342 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 egrep "dvd_struct" >/dev/null 2>&1; then
4360 cat >> confdefs.h <<\EOF
4361 #define DVD_STRUCT_IN_DVD_H 1
4364 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4370 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4388 eval "ac_cv_header_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_header_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_hdr 1
4406 cat >> confdefs.h <<\EOF
4407 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4410 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4414 echo "$ac_t""no" 1>&6
4422 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4423 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4424 echo "configure:4425: checking for sys/scsi/scsi_types.h" >&5
4425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/scsi/scsi_types.h>
4433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4434 { (eval echo configure:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436 if test -z "$ac_err"; then
4438 eval "ac_cv_header_$ac_safe=yes"
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4444 eval "ac_cv_header_$ac_safe=no"
4448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4451 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4452 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4453 echo "configure:4454: checking for sys/scsi/impl/uscsi.h" >&5
4454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 #include <sys/scsi/impl/uscsi.h>
4462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4463 { (eval echo configure:4464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4465 if test -z "$ac_err"; then
4467 eval "ac_cv_header_$ac_safe=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_header_$ac_safe=no"
4477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4480 cat >> confdefs.h <<\EOF
4481 #define SOLARIS_USCSI 1
4486 echo "$ac_t""no" 1>&6
4491 echo "$ac_t""no" 1>&6
4494 if test x$LINUX_DVD_STRUCT = x1; then
4495 cat >> confdefs.h <<\EOF
4496 #define HAVE_LINUX_DVD_STRUCT 1
4499 if test x$OPENBSD_DVD_STRUCT = x1; then
4500 cat >> confdefs.h <<\EOF
4501 #define HAVE_OPENBSD_DVD_STRUCT 1
4506 if test x$BSD_DVD_STRUCT = x1; then
4507 cat >> confdefs.h <<\EOF
4508 #define HAVE_BSD_DVD_STRUCT 1
4515 echo "$ac_t""no" 1>&6
4520 # Check whether --with-tuning or --without-tuning was given.
4521 if test "${with_tuning+set}" = set; then
4522 withval="$with_tuning"
4526 if test "x$withval" != "x"; then
4529 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4531 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4535 # Check whether --enable-release or --disable-release was given.
4536 if test "${enable_release+set}" = set; then
4537 enableval="$enable_release"
4538 if test x$enableval = xyes; then RELEASE=1; fi
4540 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
4541 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
4545 # Check whether --enable-mmx or --disable-mmx was given.
4546 if test "${enable_mmx+set}" = set; then
4547 enableval="$enable_mmx"
4548 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4549 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4551 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
4552 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4556 # Check whether --enable-altivec or --disable-altivec was given.
4557 if test "${enable_altivec+set}" = set; then
4558 enableval="$enable_altivec"
4559 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4560 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4562 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4563 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4568 # Check whether --enable-debug or --disable-debug was given.
4569 if test "${enable_debug+set}" = set; then
4570 enableval="$enable_debug"
4571 if test x$enableval = xyes; then DEBUG=1; fi
4576 # Check whether --enable-trace or --disable-trace was given.
4577 if test "${enable_trace+set}" = set; then
4578 enableval="$enable_trace"
4579 if test x$enableval = xyes; then TRACE=1; fi
4584 # Check whether --enable-gprof or --disable-gprof was given.
4585 if test "${enable_gprof+set}" = set; then
4586 enableval="$enable_gprof"
4587 if test x$enableval = xyes; then GPROF=1; fi
4592 # Check whether --enable-cprof or --disable-cprof was given.
4593 if test "${enable_cprof+set}" = set; then
4594 enableval="$enable_cprof"
4595 if test x$enableval = xyes;
4597 LIB="${LIB} -lcprof"
4604 # Check whether --enable-optimizations or --disable-optimizations was given.
4605 if test "${enable_optimizations+set}" = set; then
4606 enableval="$enable_optimizations"
4607 if test x$enableval = xno; then OPTIMS=0; fi
4613 # Check whether --enable-pth or --disable-pth was given.
4614 if test "${enable_pth+set}" = set; then
4615 enableval="$enable_pth"
4616 if test x$enableval = xyes; then
4617 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4618 echo "configure:4619: checking for pth_init in -lpth" >&5
4619 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 ac_save_LIBS="$LIBS"
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* Override any gcc2 internal prototype to avoid an error. */
4629 /* We use char because int might match the return type of a gcc2
4630 builtin and then its argument prototype would still apply. */
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 eval "ac_cv_lib_$ac_lib_var=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_lib_$ac_lib_var=no"
4647 LIBS="$ac_save_LIBS"
4650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_lib 1
4661 echo "$ac_t""no" 1>&6
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "pth_init" >/dev/null 2>&1; then
4673 cat >> confdefs.h <<\EOF
4674 #define PTH_INIT_IN_PTH_H 1
4686 LIB="${LIB} ${THREAD_LIB}"
4691 # Check whether --with-dvdcss or --without-dvdcss was given.
4692 if test "${with_dvdcss+set}" = set; then
4693 withval="$with_dvdcss"
4694 case "x${withval}" in
4696 # local libdvdcss, statically linked
4697 if test x${CAN_BUILD_LIBDVDCSS} = x1
4701 BUILTINS="${BUILTINS} dvd"
4702 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4703 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4704 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4708 # local libdvdcss, dynamically linked
4709 if test x${CAN_BUILD_LIBDVDCSS} = x1
4712 BUILTINS="${BUILTINS} dvd"
4713 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4714 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4715 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4719 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4721 BUILTINS="${BUILTINS} dvd"
4722 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4723 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4724 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4725 LIB_DVD="${LIB_DVD} -ldl"
4726 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4729 # existing libdvdcss
4730 BUILTINS="${BUILTINS} dvd"
4731 if test "x$withval" != "xyes"
4733 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4734 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4736 LIB_DVD="${LIB_DVD} -ldvdcss"
4737 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4740 # user didn't decide, we choose to use local libdvdcss and link statically
4741 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4742 if test x${CAN_BUILD_LIBDVDCSS} = x1
4746 BUILTINS="${BUILTINS} dvd"
4747 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4748 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4749 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4751 # XXX: no check for libdl is done, don't try this at home !
4753 BUILTINS="${BUILTINS} dvd"
4754 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4755 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4756 LIB_DVD="${LIB_DVD} -ldl"
4757 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4762 # Check whether --enable-dvdread or --disable-dvdread was given.
4763 if test "${enable_dvdread+set}" = set; then
4764 enableval="$enable_dvdread"
4765 if test x$enableval = xyes
4769 BUILTINS="${BUILTINS} dvdread"
4770 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
4771 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
4776 # Check whether --enable-vcd or --disable-vcd was given.
4777 if test "${enable_vcd+set}" = set; then
4778 enableval="$enable_vcd"
4783 if test x$enable_vcd != xno
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4788 #include <linux/cdrom.h>
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 egrep "cdrom_msf0" >/dev/null 2>&1; then
4794 BUILTINS="${BUILTINS} vcd"
4801 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
4803 BUILTINS="${BUILTINS} vcd"
4806 # Check whether --enable-dummy or --disable-dummy was given.
4807 if test "${enable_dummy+set}" = set; then
4808 enableval="$enable_dummy"
4813 if test x$enable_dummy != xno
4815 BUILTINS="${BUILTINS} dummy"
4818 # Check whether --enable-null or --disable-null was given.
4819 if test "${enable_null+set}" = set; then
4820 enableval="$enable_null"
4825 if test x$enable_null != xno
4827 BUILTINS="${BUILTINS} null"
4830 # Check whether --enable-rc or --disable-rc was given.
4831 if test "${enable_rc+set}" = set; then
4832 enableval="$enable_rc"
4836 if test x$enable_rc != xno
4838 BUILTINS="${BUILTINS} rc"
4841 # Check whether --with-mad or --without-mad was given.
4842 if test "${with_mad+set}" = set; then
4844 if test "x$with_val" != "xno"; then
4845 if test -n $with_val; then
4846 CFLAGS_MAD="-I$with_val/include"
4847 LIB_MAD="-L$with_val/lib -lmad"
4852 save_LDFLAGS=$LDFLAGS
4853 CFLAGS="$CFLAGS $CFLAGS_MAD"
4854 LDFLAGS="$LDFLAGS $LIB_MAD"
4857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_hdr" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_hdr 1
4891 echo "$ac_t""no" 1>&6
4892 echo "Cannot find development headers for libmad..."
4898 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
4899 echo "configure:4900: checking for mad_bit_init in -lmad" >&5
4900 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
4901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 ac_save_LIBS="$LIBS"
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char mad_bit_init();
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 eval "ac_cv_lib_$ac_lib_var=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 eval "ac_cv_lib_$ac_lib_var=no"
4928 LIBS="$ac_save_LIBS"
4931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4932 echo "$ac_t""yes" 1>&6
4933 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4935 cat >> confdefs.h <<EOF
4936 #define $ac_tr_lib 1
4942 echo "$ac_t""no" 1>&6
4943 echo "Cannot find libmad library..."
4949 LDFLAGS=$save_LDFLAGS
4950 PLUGINS="${PLUGINS} mad"
4955 if test x$SYS = xbeos
4958 BUILTINS="${BUILTINS} beos"
4959 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
4960 PLCFLAGS="${PLCFLAGS} -nostart"
4964 # Check whether --enable-dsp or --disable-dsp was given.
4965 if test "${enable_dsp+set}" = set; then
4966 enableval="$enable_dsp"
4971 if test x$enable_dsp != xno &&
4972 (test $SYS != mingw32 || test x$enable_dsp = xyes)
4976 PLUGINS="${PLUGINS} dsp"
4980 # Check whether --enable-esd or --disable-esd was given.
4981 if test "${enable_esd+set}" = set; then
4982 enableval="$enable_esd"
4983 if test x$enable_esd = xyes
4985 # Extract the first word of "esd-config", so it can be a program name with args.
4986 set dummy esd-config; ac_word=$2
4987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4988 echo "configure:4989: checking for $ac_word" >&5
4989 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 case "$ESD_CONFIG" in
4994 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4997 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
5000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5002 for ac_dir in $ac_dummy; do
5003 test -z "$ac_dir" && ac_dir=.
5004 if test -f $ac_dir/$ac_word; then
5005 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
5010 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
5014 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
5015 if test -n "$ESD_CONFIG"; then
5016 echo "$ac_t""$ESD_CONFIG" 1>&6
5018 echo "$ac_t""no" 1>&6
5021 if test x${ESD_CONFIG} != xno
5023 PLUGINS="${PLUGINS} esd"
5024 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
5025 LIB_ESD="`${ESD_CONFIG} --libs`"
5031 # Check whether --enable-arts or --disable-arts was given.
5032 if test "${enable_arts+set}" = set; then
5033 enableval="$enable_arts"
5034 if test x$enable_arts = xyes
5036 # Extract the first word of "artsc-config", so it can be a program name with args.
5037 set dummy artsc-config; ac_word=$2
5038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_word" >&5
5040 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 case "$ARTS_CONFIG" in
5045 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
5048 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
5051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5053 for ac_dir in $ac_dummy; do
5054 test -z "$ac_dir" && ac_dir=.
5055 if test -f $ac_dir/$ac_word; then
5056 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
5061 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
5065 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
5066 if test -n "$ARTS_CONFIG"; then
5067 echo "$ac_t""$ARTS_CONFIG" 1>&6
5069 echo "$ac_t""no" 1>&6
5072 if test x${ARTS_CONFIG} != xno
5074 PLUGINS="${PLUGINS} arts"
5075 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
5076 LIB_ARTS="`${ARTS_CONFIG} --libs `"
5082 # Check whether --enable-macosx or --disable-macosx was given.
5083 if test "${enable_macosx+set}" = set; then
5084 enableval="$enable_macosx"
5088 if test x$enable_macosx != xno
5091 for ac_hdr in Cocoa/Cocoa.h ApplicationServices/ApplicationServices.h CoreServices/CoreServices.h QuickTime/QuickTime.h
5093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5095 echo "configure:5096: checking for $ac_hdr" >&5
5096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5105 { (eval echo configure:5106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5107 if test -z "$ac_err"; then
5109 eval "ac_cv_header_$ac_safe=yes"
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5115 eval "ac_cv_header_$ac_safe=no"
5119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5122 cat >> confdefs.h <<EOF
5123 #define $ac_tr_hdr 1
5127 echo "$ac_t""no" 1>&6
5133 if test x$osx_failed != x1
5135 BUILTINS="${BUILTINS} macosx"
5136 LIB_MACOSX="-framework CoreServices -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
5141 # Check whether --enable-qnx or --disable-qnx was given.
5142 if test "${enable_qnx+set}" = set; then
5143 enableval="$enable_qnx"
5147 if test x$enable_qnx != xno
5151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5153 echo "configure:5154: checking for $ac_hdr" >&5
5154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5163 { (eval echo configure:5164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5165 if test -z "$ac_err"; then
5167 eval "ac_cv_header_$ac_safe=yes"
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5173 eval "ac_cv_header_$ac_safe=no"
5177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5180 cat >> confdefs.h <<EOF
5181 #define $ac_tr_hdr 1
5184 PLUGINS="${PLUGINS} qnx"
5185 LIB_QNX="-lasound -lph"
5188 echo "$ac_t""no" 1>&6
5194 # Check whether --enable-fb or --disable-fb was given.
5195 if test "${enable_fb+set}" = set; then
5196 enableval="$enable_fb"
5197 if test x$enable_fb = xyes
5199 PLUGINS="${PLUGINS} fb"
5204 # Check whether --with-ggi or --without-ggi was given.
5205 if test "${with_ggi+set}" = set; then
5207 if test "x$withval" != "xno"
5209 PLUGINS="${PLUGINS} ggi"
5210 if test "x$withval" != "xyes"
5212 LIB_GGI="-l"$withval
5220 # Check whether --enable-x11 or --disable-x11 was given.
5221 if test "${enable_x11+set}" = set; then
5222 enableval="$enable_x11"
5226 if test x$enable_x11 != xno &&
5227 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
5228 if test x$x_includes = xNONE; then
5229 x_includes=/usr/X11R6/include
5231 if test x$x_libraries = xNONE; then
5232 x_libraries=/usr/X11R6/lib
5234 saved_CPPFLAGS=$CPPFLAGS
5235 CPPFLAGS="$CPPFLAGS -I$x_includes"
5236 for ac_hdr in X11/Xlib.h
5238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_hdr" >&5
5241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5250 { (eval echo configure:5251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5252 if test -z "$ac_err"; then
5254 eval "ac_cv_header_$ac_safe=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5260 eval "ac_cv_header_$ac_safe=no"
5264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5267 cat >> confdefs.h <<EOF
5268 #define $ac_tr_hdr 1
5271 PLUGINS="${PLUGINS} x11"
5272 LIB_X11="-L$x_libraries -lX11 -lXext"
5273 CFLAGS_X11="-I$x_includes"
5275 CPPFLAGS=$saved_CPPFLAGS
5277 echo "$ac_t""no" 1>&6
5283 # Check whether --enable-xvideo or --disable-xvideo was given.
5284 if test "${enable_xvideo+set}" = set; then
5285 enableval="$enable_xvideo"
5289 if test x$enable_xvideo != xno &&
5290 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
5291 if test x$x_includes = xNONE; then
5292 x_includes=/usr/X11R6/include
5294 if test x$x_libraries = xNONE; then
5295 x_libraries=/usr/X11R6/lib
5297 saved_CPPFLAGS=$CPPFLAGS
5298 CPPFLAGS="$CPPFLAGS -I$x_includes"
5299 for ac_hdr in X11/extensions/Xv.h
5301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_hdr" >&5
5304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5313 { (eval echo configure:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5315 if test -z "$ac_err"; then
5317 eval "ac_cv_header_$ac_safe=yes"
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 eval "ac_cv_header_$ac_safe=no"
5327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5330 cat >> confdefs.h <<EOF
5331 #define $ac_tr_hdr 1
5334 saved_CFLAGS=$CFLAGS
5335 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
5336 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
5337 echo "configure:5338: checking for XvSetPortAttribute in -lXv_pic" >&5
5338 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 ac_save_LIBS="$LIBS"
5343 LIBS="-lXv_pic $LIBS"
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char XvSetPortAttribute();
5353 XvSetPortAttribute()
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 eval "ac_cv_lib_$ac_lib_var=yes"
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 eval "ac_cv_lib_$ac_lib_var=no"
5366 LIBS="$ac_save_LIBS"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 PLUGINS="${PLUGINS} xvideo"
5372 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv_pic"
5373 XVIDEO_PIC="-L$x_libraries -lXxf86dga_pic -lXxf86vm_pic -lXv_pic"
5375 echo "$ac_t""no" 1>&6
5376 BUILTINS="${BUILTINS} xvideo"
5377 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5380 CFLAGS=$saved_CFLAGS
5381 CFLAGS_XVIDEO="-I$x_includes"
5383 CPPFLAGS=$saved_CPPFLAGS
5385 echo "$ac_t""no" 1>&6
5391 # Check whether --enable-sdl or --disable-sdl was given.
5392 if test "${enable_sdl+set}" = set; then
5393 enableval="$enable_sdl"
5397 if test "x$enable_sdl" != "xno"
5400 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
5401 if test "${with_sdl_config_path+set}" = set; then
5402 withval="$with_sdl_config_path"
5403 if test "x$withval" != "xno"
5405 SDL_PATH=$withval:$PATH
5409 # Extract the first word of "sdl12-config", so it can be a program name with args.
5410 set dummy sdl12-config; ac_word=$2
5411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_word" >&5
5413 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 case "$SDL12_CONFIG" in
5418 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
5421 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
5424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5425 ac_dummy="$SDL_PATH"
5426 for ac_dir in $ac_dummy; do
5427 test -z "$ac_dir" && ac_dir=.
5428 if test -f $ac_dir/$ac_word; then
5429 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
5434 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
5438 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
5439 if test -n "$SDL12_CONFIG"; then
5440 echo "$ac_t""$SDL12_CONFIG" 1>&6
5442 echo "$ac_t""no" 1>&6
5445 SDL_CONFIG=${SDL12_CONFIG}
5446 SDL_HEADER="SDL12/SDL.h"
5447 if test x${SDL_CONFIG} = xno
5449 # Extract the first word of "sdl11-config", so it can be a program name with args.
5450 set dummy sdl11-config; ac_word=$2
5451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5452 echo "configure:5453: checking for $ac_word" >&5
5453 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 case "$SDL11_CONFIG" in
5458 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
5461 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
5464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5465 ac_dummy="$SDL_PATH"
5466 for ac_dir in $ac_dummy; do
5467 test -z "$ac_dir" && ac_dir=.
5468 if test -f $ac_dir/$ac_word; then
5469 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
5474 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
5478 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
5479 if test -n "$SDL11_CONFIG"; then
5480 echo "$ac_t""$SDL11_CONFIG" 1>&6
5482 echo "$ac_t""no" 1>&6
5485 SDL_CONFIG=${SDL11_CONFIG}
5486 SDL_HEADER="SDL11/SDL.h"
5488 if test x${SDL_CONFIG} = xno
5490 # Extract the first word of "sdl-config", so it can be a program name with args.
5491 set dummy sdl-config; ac_word=$2
5492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5493 echo "configure:5494: checking for $ac_word" >&5
5494 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 case "$SDL_CONFIG" in
5499 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5502 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
5505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5506 ac_dummy="$SDL_PATH"
5507 for ac_dir in $ac_dummy; do
5508 test -z "$ac_dir" && ac_dir=.
5509 if test -f $ac_dir/$ac_word; then
5510 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5515 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5519 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5520 if test -n "$SDL_CONFIG"; then
5521 echo "$ac_t""$SDL_CONFIG" 1>&6
5523 echo "$ac_t""no" 1>&6
5526 SDL_HEADER="SDL/SDL.h"
5528 if test x${SDL_CONFIG} != xno
5530 PLUGINS="${PLUGINS} sdl"
5531 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5532 SDL_VERSION="`${SDL_CONFIG} --version`"
5533 if expr 1.2.2 \> $SDL_VERSION >/dev/null
5535 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5537 if test "x${XVIDEO_PIC}" != x
5539 LIB_SDL="`${SDL_CONFIG} --library-libs` ${XVIDEO_PIC}"
5541 LIB_SDL="`${SDL_CONFIG} --libs`"
5544 save_CPPFLAGS=$CPPFLAGS
5545 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5546 for ac_hdr in ${SDL_HEADER}
5548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_hdr" >&5
5551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5560 { (eval echo configure:5561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5562 if test -z "$ac_err"; then
5564 eval "ac_cv_header_$ac_safe=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 eval "ac_cv_header_$ac_safe=no"
5574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5575 echo "$ac_t""yes" 1>&6
5576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5577 cat >> confdefs.h <<EOF
5578 #define $ac_tr_hdr 1
5580 cat >> confdefs.h <<EOF
5581 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5585 echo "$ac_t""no" 1>&6
5586 { echo "configure: error: The development package for SDL is not installed.
5587 Please install it and try again. Alternatively you can also configure with
5588 --disable-sdl." 1>&2; exit 1; }
5593 CPPFLAGS=$save_CPPFLAGS
5594 if expr 1.1.5 \> $SDL_VERSION >/dev/null
5596 { echo "configure: error: The development package for SDL is not installed.
5597 Please install it and try again. Alternatively you can also configure with
5598 --disable-sdl." 1>&2; exit 1; }
5600 elif test "x$enable_sdl" = "xyes"
5602 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5603 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5608 # Check whether --enable-directx or --disable-directx was given.
5609 if test "${enable_directx+set}" = set; then
5610 enableval="$enable_directx"
5614 if test "x$enableval" != "xno"
5616 if test $SYS = mingw32
5618 # Check whether --with-directx-path or --without-directx-path was given.
5619 if test "${with_directx_path+set}" = set; then
5620 withval="$with_directx_path"
5624 if test "x$with_directx_path" = "x"
5626 for ac_hdr in directx.h
5628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5630 echo "configure:5631: checking for $ac_hdr" >&5
5631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5640 { (eval echo configure:5641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5642 if test -z "$ac_err"; then
5644 eval "ac_cv_header_$ac_safe=yes"
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5650 eval "ac_cv_header_$ac_safe=no"
5654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5657 cat >> confdefs.h <<EOF
5658 #define $ac_tr_hdr 1
5660 PLUGINS="${PLUGINS} directx"
5661 LIB_DIRECTX="-lgdi32 -ldxguid"
5663 echo "$ac_t""no" 1>&6
5668 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
5669 echo "configure:5670: checking for directX headers in ${withval}" >&5
5670 if test -f ${withval}/include/directx.h
5672 PLUGINS="${PLUGINS} directx"
5673 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
5674 INCLUDE="${INCLUDE} -I${withval}/include"
5675 echo "$ac_t""yes" 1>&6
5677 echo "$ac_t""no" 1>&6
5678 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
5684 # Check whether --with-glide or --without-glide was given.
5685 if test "${with_glide+set}" = set; then
5686 withval="$with_glide"
5687 if test "x$withval" != "xno"
5689 PLUGINS="${PLUGINS} glide"
5690 if test "x$withval" != "xyes"
5692 LIB_GLIDE="-l"$withval" -lm"
5694 LIB_GLIDE="-lglide2x -lm"
5700 # Check whether --enable-ncurses or --disable-ncurses was given.
5701 if test "${enable_ncurses+set}" = set; then
5702 enableval="$enable_ncurses"
5703 if test x$enable_ncurses = xyes; then
5704 PLUGINS="${PLUGINS} ncurses"
5705 LIB_NCURSES="-lncurses"
5710 # Check whether --enable-qt or --disable-qt was given.
5711 if test "${enable_qt+set}" = set; then
5712 enableval="$enable_qt"
5713 if test x$enable_qt = xyes; then
5714 PLUGINS="${PLUGINS} qt"
5715 ALIASES="${ALIASES} qvlc"
5716 LIB_QT="-lqt -L${QTDIR}/lib"
5717 if test -x ${QTDIR}/bin/moc
5719 MOC=${QTDIR}/bin/moc
5727 # Check whether --enable-kde or --disable-kde was given.
5728 if test "${enable_kde+set}" = set; then
5729 enableval="$enable_kde"
5730 if test x$enable_kde = xyes; then
5731 PLUGINS="${PLUGINS} kde"
5732 ALIASES="${ALIASES} kvlc"
5733 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5734 if test -x ${QTDIR}/bin/moc
5736 MOC=${QTDIR}/bin/moc
5744 # Check whether --enable-gnome or --disable-gnome was given.
5745 if test "${enable_gnome+set}" = set; then
5746 enableval="$enable_gnome"
5747 if test x$enable_gnome = xyes; then
5748 # look for gnome-config
5749 # Extract the first word of "gnome-config", so it can be a program name with args.
5750 set dummy gnome-config; ac_word=$2
5751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5752 echo "configure:5753: checking for $ac_word" >&5
5753 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 case "$GNOME_CONFIG" in
5758 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5761 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5766 for ac_dir in $ac_dummy; do
5767 test -z "$ac_dir" && ac_dir=.
5768 if test -f $ac_dir/$ac_word; then
5769 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5774 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5778 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5779 if test -n "$GNOME_CONFIG"; then
5780 echo "$ac_t""$GNOME_CONFIG" 1>&6
5782 echo "$ac_t""no" 1>&6
5785 if test -x ${GNOME_CONFIG}
5787 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5788 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5790 # now look for the gnome.h header
5791 saved_CPPFLAGS=$CPPFLAGS
5792 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5793 for ac_hdr in gnome.h
5795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_hdr" >&5
5798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5807 { (eval echo configure:5808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5809 if test -z "$ac_err"; then
5811 eval "ac_cv_header_$ac_safe=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_header_$ac_safe=no"
5821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5824 cat >> confdefs.h <<EOF
5825 #define $ac_tr_hdr 1
5828 PLUGINS="${PLUGINS} gnome"
5829 ALIASES="${ALIASES} gnome-vlc"
5832 echo "$ac_t""no" 1>&6
5833 { echo "configure: error: Can't find gnome headers. Please install the gnome
5834 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5840 CPPFLAGS=$saved_CPPFLAGS
5845 # Check whether --enable-gtk or --disable-gtk was given.
5846 if test "${enable_gtk+set}" = set; then
5847 enableval="$enable_gtk"
5851 if test x$enable_gtk != xno
5854 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
5855 if test "${with_gtk_config_path+set}" = set; then
5856 withval="$with_gtk_config_path"
5857 if test "x$withval" != "xno"
5859 GTK_PATH=$withval:$PATH
5863 # look for gtk-config
5864 # Extract the first word of "gtk-config", so it can be a program name with args.
5865 set dummy gtk-config; ac_word=$2
5866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_word" >&5
5868 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 case "$GTK_CONFIG" in
5873 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5876 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5880 ac_dummy="$GTK_PATH"
5881 for ac_dir in $ac_dummy; do
5882 test -z "$ac_dir" && ac_dir=.
5883 if test -f $ac_dir/$ac_word; then
5884 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5889 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5893 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5894 if test -n "$GTK_CONFIG"; then
5895 echo "$ac_t""$GTK_CONFIG" 1>&6
5897 echo "$ac_t""no" 1>&6
5900 if test -x ${GTK_CONFIG}
5902 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5903 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5905 # now look for the gtk.h header
5906 saved_CPPFLAGS=$CPPFLAGS
5907 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5908 ac_cv_gtk_headers=yes
5909 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
5911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_hdr" >&5
5914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5923 { (eval echo configure:5924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5925 if test -z "$ac_err"; then
5927 eval "ac_cv_header_$ac_safe=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_header_$ac_safe=no"
5937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5938 echo "$ac_t""yes" 1>&6
5939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5940 cat >> confdefs.h <<EOF
5941 #define $ac_tr_hdr 1
5945 echo "$ac_t""no" 1>&6
5946 ac_cv_gtk_headers=no
5947 echo "Cannot find gtk development headers."
5952 if test "x$ac_cv_gtk_headers" = xyes
5954 PLUGINS="${PLUGINS} gtk"
5955 ALIASES="${ALIASES} gvlc"
5957 CPPFLAGS=$saved_CPPFLAGS
5960 # Check whether --enable-alsa or --disable-alsa was given.
5961 if test "${enable_alsa+set}" = set; then
5962 enableval="$enable_alsa"
5963 if test x$enable_alsa = xyes
5965 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
5966 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
5967 echo "configure:5968: checking for alsa/asoundlib.h" >&5
5968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <alsa/asoundlib.h>
5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5979 if test -z "$ac_err"; then
5981 eval "ac_cv_header_$ac_safe=yes"
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5987 eval "ac_cv_header_$ac_safe=no"
5991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5992 echo "$ac_t""yes" 1>&6
5993 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5994 echo "configure:5995: checking for main in -lasound" >&5
5995 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 ac_save_LIBS="$LIBS"
6000 LIBS="-lasound $LIBS"
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6011 eval "ac_cv_lib_$ac_lib_var=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 eval "ac_cv_lib_$ac_lib_var=no"
6019 LIBS="$ac_save_LIBS"
6022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6026 echo "$ac_t""no" 1>&6
6031 echo "$ac_t""no" 1>&6
6035 if test x$have_alsa = xtrue
6037 PLUGINS="${PLUGINS} alsa"
6046 # Check whether --enable-plugins or --disable-plugins was given.
6047 if test "${enable_plugins+set}" = set; then
6048 enableval="$enable_plugins"
6049 if test x$enable_plugins = xno
6051 BUILTINS="${BUILTINS} ${PLUGINS}"
6058 # Check whether --with-dll-path or --without-dll-path was given.
6059 if test "${with_dll_path+set}" = set; then
6060 withval="$with_dll_path"
6061 if test "x$withval" != "xno"
6143 cat > confcache <<\EOF
6144 # This file is a shell script that caches the results of configure
6145 # tests run on this system so they can be shared between configure
6146 # scripts and configure runs. It is not useful on other systems.
6147 # If it contains results you don't want to keep, you may remove or edit it.
6149 # By default, configure uses ./config.cache as the cache file,
6150 # creating it if it does not exist already. You can give configure
6151 # the --cache-file=FILE option to use a different cache file; that is
6152 # what configure does when it calls configure scripts in
6153 # subdirectories, so they share the cache.
6154 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6155 # config.status only pays attention to the cache file if you give it the
6156 # --recheck option to rerun configure.
6159 # The following way of writing the cache mishandles newlines in values,
6160 # but we know of no workaround that is simple, portable, and efficient.
6161 # So, don't put newlines in cache variables' values.
6162 # Ultrix sh set writes to stderr and can't be redirected directly,
6163 # and sets the high bit in the cache file unless we assign to the vars.
6165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6167 # `set' does not quote correctly, so add quotes (double-quote substitution
6168 # turns \\\\ into \\, and sed turns \\ into \).
6170 -e "s/'/'\\\\''/g" \
6171 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6174 # `set' quotes correctly as required by POSIX, so do not add quotes.
6175 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6178 if cmp -s $cache_file confcache; then
6181 if test -w $cache_file; then
6182 echo "updating cache $cache_file"
6183 cat confcache > $cache_file
6185 echo "not updating unwritable cache $cache_file"
6190 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6193 # Let make expand exec_prefix.
6194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6196 # Any assignment to VPATH causes Sun make to only execute
6197 # the first set of double-colon rules, so remove it if not needed.
6198 # If there is a colon in the path, we need to keep it.
6199 if test "x$srcdir" = x.; then
6200 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6203 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6205 DEFS=-DHAVE_CONFIG_H
6207 # Without the "./", some shells look in PATH for config.status.
6208 : ${CONFIG_STATUS=./config.status}
6210 echo creating $CONFIG_STATUS
6211 rm -f $CONFIG_STATUS
6212 cat > $CONFIG_STATUS <<EOF
6214 # Generated automatically by configure.
6215 # Run this file to recreate the current configuration.
6216 # This directory was configured as follows,
6217 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6219 # $0 $ac_configure_args
6221 # Compiler output produced by configure, useful for debugging
6222 # configure, is in ./config.log if it exists.
6224 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6227 case "\$ac_option" in
6228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6229 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6230 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6231 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6232 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6234 -help | --help | --hel | --he | --h)
6235 echo "\$ac_cs_usage"; exit 0 ;;
6236 *) echo "\$ac_cs_usage"; exit 1 ;;
6240 ac_given_srcdir=$srcdir
6241 ac_given_INSTALL="$INSTALL"
6243 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6245 cat >> $CONFIG_STATUS <<EOF
6247 # Protect against being on the right side of a sed subst in config.status.
6248 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6249 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6253 s%@CFLAGS@%$CFLAGS%g
6254 s%@CPPFLAGS@%$CPPFLAGS%g
6255 s%@CXXFLAGS@%$CXXFLAGS%g
6256 s%@FFLAGS@%$FFLAGS%g
6258 s%@LDFLAGS@%$LDFLAGS%g
6260 s%@exec_prefix@%$exec_prefix%g
6261 s%@prefix@%$prefix%g
6262 s%@program_transform_name@%$program_transform_name%g
6263 s%@bindir@%$bindir%g
6264 s%@sbindir@%$sbindir%g
6265 s%@libexecdir@%$libexecdir%g
6266 s%@datadir@%$datadir%g
6267 s%@sysconfdir@%$sysconfdir%g
6268 s%@sharedstatedir@%$sharedstatedir%g
6269 s%@localstatedir@%$localstatedir%g
6270 s%@libdir@%$libdir%g
6271 s%@includedir@%$includedir%g
6272 s%@oldincludedir@%$oldincludedir%g
6273 s%@infodir@%$infodir%g
6274 s%@mandir@%$mandir%g
6276 s%@host_alias@%$host_alias%g
6277 s%@host_cpu@%$host_cpu%g
6278 s%@host_vendor@%$host_vendor%g
6279 s%@host_os@%$host_os%g
6280 s%@target@%$target%g
6281 s%@target_alias@%$target_alias%g
6282 s%@target_cpu@%$target_cpu%g
6283 s%@target_vendor@%$target_vendor%g
6284 s%@target_os@%$target_os%g
6286 s%@build_alias@%$build_alias%g
6287 s%@build_cpu@%$build_cpu%g
6288 s%@build_vendor@%$build_vendor%g
6289 s%@build_os@%$build_os%g
6290 s%@VLC_VERSION@%$VLC_VERSION%g
6291 s%@VLC_CODENAME@%$VLC_CODENAME%g
6292 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
6293 s%@SET_MAKE@%$SET_MAKE%g
6296 s%@RANLIB@%$RANLIB%g
6297 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6298 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6299 s%@INSTALL_DATA@%$INSTALL_DATA%g
6300 s%@WINDRES@%$WINDRES%g
6301 s%@ESD_CONFIG@%$ESD_CONFIG%g
6302 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
6303 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
6304 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
6305 s%@SDL_CONFIG@%$SDL_CONFIG%g
6306 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
6307 s%@GTK_CONFIG@%$GTK_CONFIG%g
6310 s%@PLUGINS@%$PLUGINS%g
6311 s%@BUILTINS@%$BUILTINS%g
6312 s%@ALIASES@%$ALIASES%g
6313 s%@DEFINE@%$DEFINE%g
6314 s%@INCLUDE@%$INCLUDE%g
6320 s%@OPTIMS@%$OPTIMS%g
6321 s%@TUNING@%$TUNING%g
6322 s%@RELEASE@%$RELEASE%g
6324 s%@DLL_PATH@%$DLL_PATH%g
6325 s%@LCFLAGS@%$LCFLAGS%g
6326 s%@PLCFLAGS@%$PLCFLAGS%g
6327 s%@SOFLAGS@%$SOFLAGS%g
6329 s%@LIB_ALSA@%$LIB_ALSA%g
6330 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
6331 s%@LIB_ARTS@%$LIB_ARTS%g
6332 s%@LIB_BEOS@%$LIB_BEOS%g
6333 s%@LIB_DARWIN@%$LIB_DARWIN%g
6334 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
6335 s%@LIB_DVD@%$LIB_DVD%g
6336 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
6337 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
6338 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
6339 s%@LIB_ESD@%$LIB_ESD%g
6340 s%@LIB_GGI@%$LIB_GGI%g
6341 s%@LIB_GLIDE@%$LIB_GLIDE%g
6342 s%@LIB_GNOME@%$LIB_GNOME%g
6343 s%@LIB_GTK@%$LIB_GTK%g
6344 s%@LIB_IMDCT@%$LIB_IMDCT%g
6345 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
6346 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
6347 s%@LIB_KDE@%$LIB_KDE%g
6348 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
6349 s%@LIB_MACOSX@%$LIB_MACOSX%g
6350 s%@LIB_MAD@%$LIB_MAD%g
6351 s%@LIB_NCURSES@%$LIB_NCURSES%g
6352 s%@LIB_QNX@%$LIB_QNX%g
6353 s%@LIB_QT@%$LIB_QT%g
6354 s%@LIB_RC@%$LIB_RC%g
6355 s%@LIB_SDL@%$LIB_SDL%g
6356 s%@LIB_TS@%$LIB_TS%g
6357 s%@LIB_X11@%$LIB_X11%g
6358 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
6359 s%@LIB_YUV@%$LIB_YUV%g
6360 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
6361 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
6362 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
6363 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
6364 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
6365 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
6366 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
6367 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
6368 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
6369 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
6370 s%@CFLAGS_X11@%$CFLAGS_X11%g
6371 s%@OBJ_DVD@%$OBJ_DVD%g
6372 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
6373 s%@NEED_GETOPT@%$NEED_GETOPT%g
6374 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
6379 cat >> $CONFIG_STATUS <<\EOF
6381 # Split the substitutions into bite-sized pieces for seds with
6382 # small command number limits, like on Digital OSF/1 and HP-UX.
6383 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6384 ac_file=1 # Number of current file.
6385 ac_beg=1 # First line for current file.
6386 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6389 while $ac_more_lines; do
6390 if test $ac_beg -gt 1; then
6391 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6393 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6395 if test ! -s conftest.s$ac_file; then
6397 rm -f conftest.s$ac_file
6399 if test -z "$ac_sed_cmds"; then
6400 ac_sed_cmds="sed -f conftest.s$ac_file"
6402 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6404 ac_file=`expr $ac_file + 1`
6406 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6409 if test -z "$ac_sed_cmds"; then
6414 cat >> $CONFIG_STATUS <<EOF
6416 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
6418 cat >> $CONFIG_STATUS <<\EOF
6419 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6422 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6423 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6424 *) ac_file_in="${ac_file}.in" ;;
6427 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6429 # Remove last slash and all that follows it. Not all systems have dirname.
6430 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6431 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6432 # The file is in a subdirectory.
6433 test ! -d "$ac_dir" && mkdir "$ac_dir"
6434 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6435 # A "../" for each directory in $ac_dir_suffix.
6436 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6438 ac_dir_suffix= ac_dots=
6441 case "$ac_given_srcdir" in
6443 if test -z "$ac_dots"; then top_srcdir=.
6444 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6445 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6447 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6448 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6451 case "$ac_given_INSTALL" in
6452 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6453 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6456 echo creating "$ac_file"
6458 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6460 *Makefile*) ac_comsub="1i\\
6461 # $configure_input" ;;
6465 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6467 s%@configure_input@%$configure_input%g
6468 s%@srcdir@%$srcdir%g
6469 s%@top_srcdir@%$top_srcdir%g
6470 s%@INSTALL@%$INSTALL%g
6471 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6478 # ac_d sets the value in "#define NAME VALUE" lines.
6479 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6480 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6483 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6484 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6485 ac_uB='\([ ]\)%\1#\2define\3'
6488 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6489 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6490 ac_eB='$%\1#\2define\3'
6494 if test "${CONFIG_HEADERS+set}" != set; then
6496 cat >> $CONFIG_STATUS <<EOF
6497 CONFIG_HEADERS="include/defs.h"
6499 cat >> $CONFIG_STATUS <<\EOF
6501 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6504 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6505 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6506 *) ac_file_in="${ac_file}.in" ;;
6509 echo creating $ac_file
6511 rm -f conftest.frag conftest.in conftest.out
6512 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6513 cat $ac_file_inputs > conftest.in
6517 # Transform confdefs.h into a sed script conftest.vals that substitutes
6518 # the proper values into config.h.in to produce config.h. And first:
6519 # Protect against being on the right side of a sed subst in config.status.
6520 # Protect against being in an unquoted here document in config.status.
6522 cat > conftest.hdr <<\EOF
6525 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6529 sed -n -f conftest.hdr confdefs.h > conftest.vals
6532 # This sed command replaces #undef with comments. This is necessary, for
6533 # example, in the case of _POSIX_SOURCE, which is predefined and required
6534 # on some systems where configure will not decide to define it.
6535 cat >> conftest.vals <<\EOF
6536 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6539 # Break up conftest.vals because some shells have a limit on
6540 # the size of here documents, and old seds have small limits too.
6545 ac_lines=`grep -c . conftest.vals`
6546 # grep -c gives empty output for an empty file on some AIX systems.
6547 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6548 # Write a limited-size here document to conftest.frag.
6549 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6550 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6552 sed -f conftest.frag conftest.in > conftest.out
6554 mv conftest.out conftest.in
6556 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6558 mv conftest.tail conftest.vals
6562 cat >> $CONFIG_STATUS <<\EOF
6563 rm -f conftest.frag conftest.h
6564 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6565 cat conftest.in >> conftest.h
6567 if cmp -s $ac_file conftest.h 2>/dev/null; then
6568 echo "$ac_file is unchanged"
6571 # Remove last slash and all that follows it. Not all systems have dirname.
6572 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6573 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6574 # The file is in a subdirectory.
6575 test ! -d "$ac_dir" && mkdir "$ac_dir"
6578 mv conftest.h $ac_file
6583 cat >> $CONFIG_STATUS <<EOF
6586 cat >> $CONFIG_STATUS <<\EOF
6590 chmod +x $CONFIG_STATUS
6591 rm -fr confdefs* $ac_clean_files
6592 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6596 global configuration
6597 --------------------
6599 architecture : ${ARCH}
6600 optimizations : ${OPTIMS}
6602 release: : ${RELEASE}"
6604 if test x${HAVE_VLC} = x1
6609 vlc version : ${VLC_VERSION}
6610 debug mode : ${DEBUG}
6611 trace mode : ${TRACE}
6612 cprof/gprof support : ${CPROF}/${GPROF}
6613 need builtin getopt : ${NEED_GETOPT}
6614 built-in modules :${BUILTINS}
6615 plug-in modules :${PLUGINS}
6616 vlc aliases :${ALIASES}"
6620 libdvdcss configuration
6621 -----------------------
6622 can be built : ${CAN_BUILD_LIBDVDCSS}
6623 will be built : ${NEED_LIBDVDCSS}"
6624 if test x${NEED_LIBDVDCSS} = x1
6626 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6627 echo "link statically : ${STATIC_LIBDVDCSS}"
6629 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6633 You may now tune Makefile.opts at your convenience, for instance to choose
6634 which modules get compiled as plugins.
6636 if test x${HAVE_VLC} = x1
6638 echo "To build vlc and its plugins, type \`make vlc'."
6640 if test x${HAVE_LIBDVDCSS} = x1
6642 echo "To build libdvdcss only, type \`make libdvdcss'."