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 --disable-mmx Disable MMX optimizations (default enabled for x86)"
22 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
24 --enable-debug Enable debug mode (default disabled)"
26 --enable-trace Enable trace mode (default disabled)"
28 --enable-gprof Enable gprof profiling (default disabled)"
30 --enable-cprof Enable cprof profiling (default disabled)"
32 --disable-optimizations Disable compiler optimizations (default enabled)"
34 --enable-pth Enable GNU Pth support (default disabled)"
36 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
37 or 'local-static', 'local-shared', or a path to
38 another libdvdcss such as '/usr/local'
39 (default 'local-static')"
41 --disable-dummy dummy module (default enabled)"
43 --disable-null Null module (default enabled)"
45 --disable-rc rc module (default enabled)"
47 --disable-dsp Linux /dev/dsp support (default enabled)"
49 --enable-esd Esound library support (default disabled)"
51 --enable-darwin Darwin sound support (default enabled on MacOS X)"
53 --enable-macosx MacOS X support (default enabled on MacOS X)"
55 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
57 --enable-fb Linux framebuffer support (default disabled)"
59 --with-ggi[=name] GGI support (default disabled)"
61 --disable-sdl SDL support (default enabled)"
63 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
65 --with-directx[=name] Windows DirectX support (default enabled)"
67 --with-glide[=name] Glide (3dfx) support (default disabled)"
69 --enable-ncurses ncurses interface support (default disabled)"
71 --enable-qt Qt interface support (default disabled)"
73 --enable-kde KDE interface support (default disabled)"
75 --enable-gnome Gnome interface support (default disabled)"
77 --disable-gtk Gtk+ support (default enabled)"
79 --disable-x11 X11 support (default enabled)"
81 --disable-xvideo XVideo support (default enabled)"
83 --enable-alsa Alsa sound drivers support (Only for linux)
86 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/common.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
600 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
601 if test -f $ac_dir/install-sh; then
603 ac_install_sh="$ac_aux_dir/install-sh -c"
605 elif test -f $ac_dir/install.sh; then
607 ac_install_sh="$ac_aux_dir/install.sh -c"
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # Do some error checking and defaulting for the host and target type.
621 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 # 2. Host defaults to nonopt.
627 # 3. If nonopt is not specified, then host defaults to the current host,
628 # as determined by config.guess.
629 # 4. Target and build default to nonopt.
630 # 5. If nonopt is not specified, then target and build default to host.
632 # The aliases save the names the user supplied, while $host etc.
633 # will get canonicalized.
634 case $host---$target---$nonopt in
635 NONE---*---* | *---NONE---* | *---*---NONE) ;;
636 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
640 # Make sure we can run config.sub.
641 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
642 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
645 echo $ac_n "checking host system type""... $ac_c" 1>&6
646 echo "configure:647: checking host system type" >&5
649 case "$host_alias" in
653 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
654 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 *) host_alias=$nonopt ;;
660 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
661 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$host" 1>&6
666 echo $ac_n "checking target system type""... $ac_c" 1>&6
667 echo "configure:668: checking target system type" >&5
670 case "$target_alias" in
673 NONE) target_alias=$host_alias ;;
674 *) target_alias=$nonopt ;;
678 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
679 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$target" 1>&6
684 echo $ac_n "checking build system type""... $ac_c" 1>&6
685 echo "configure:686: checking build system type" >&5
688 case "$build_alias" in
691 NONE) build_alias=$host_alias ;;
692 *) build_alias=$nonopt ;;
696 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
697 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$build" 1>&6
702 test "$host_alias" != "$target_alias" &&
703 test "$program_prefix$program_suffix$program_transform_name" = \
705 program_prefix=${target_alias}-
709 if test -r src/interface/main.c; then
718 if test -r extras/libdvdcss/libdvdcss.c; then
720 LIBDVDCSS_VERSION=0.0.3
724 save_CFLAGS="${CFLAGS}"
725 save_LDFLAGS="${LDFLAGS}"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftestmake <<\EOF
735 @echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_${ac_make}_set=yes
742 eval ac_cv_prog_make_${ac_make}_set=no
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
750 echo "$ac_t""no" 1>&6
751 SET_MAKE="MAKE=${MAKE-make}"
754 # Extract the first word of "gcc", so it can be a program name with args.
755 set dummy gcc; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
783 if test -z "$CC"; then
784 # Extract the first word of "cc", so it can be a program name with args.
785 set dummy cc; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 if test -n "$CC"; then
792 ac_cv_prog_CC="$CC" # Let the user override the test.
794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
797 for ac_dir in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir=.
799 if test -f $ac_dir/$ac_word; then
800 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
809 if test $ac_prog_rejected = yes; then
810 # We found a bogon in the path, so make sure we never use it.
811 set dummy $ac_cv_prog_CC
813 if test $# -gt 0; then
814 # We chose a different compiler from the bogus one.
815 # However, it has the same basename, so the bogon will be chosen
816 # first if we set CC to just the basename; use the full file name.
818 set dummy "$ac_dir/$ac_word" "$@"
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
829 echo "$ac_t""no" 1>&6
832 if test -z "$CC"; then
835 # Extract the first word of "cl", so it can be a program name with args.
836 set dummy cl; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC="$CC" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
861 echo "$ac_t""no" 1>&6
866 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
869 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp='$CPP $CPPFLAGS'
875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling=$ac_cv_prog_cc_cross
879 cat > conftest.$ac_ext << EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
887 ac_cv_prog_cc_works=yes
888 # If we can't run a trivial program, we are probably using a cross compiler.
889 if (./conftest; exit) 2>/dev/null; then
890 ac_cv_prog_cc_cross=no
892 ac_cv_prog_cc_cross=yes
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
897 ac_cv_prog_cc_works=no
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
907 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
908 if test $ac_cv_prog_cc_works = no; then
909 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
911 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912 echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
913 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
914 cross_compiling=$ac_cv_prog_cc_cross
916 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using GNU C" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.c <<EOF
926 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
933 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
935 if test $ac_cv_prog_gcc = yes; then
941 ac_test_CFLAGS="${CFLAGS+set}"
942 ac_save_CFLAGS="$CFLAGS"
944 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 echo 'void f(){}' > conftest.c
950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
959 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
960 if test "$ac_test_CFLAGS" = set; then
961 CFLAGS="$ac_save_CFLAGS"
962 elif test $ac_cv_prog_cc_g = yes; then
963 if test "$GCC" = yes; then
969 if test "$GCC" = yes; then
976 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
977 echo "configure:978: checking how to run the C preprocessor" >&5
978 # On Suns, sometimes $CPP names a directory.
979 if test -n "$CPP" && test -d "$CPP"; then
982 if test -z "$CPP"; then
983 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 # This must be in double quotes, not single quotes, because CPP may get
987 # substituted into the Makefile and "${CC-cc}" will confuse make.
989 # On the NeXT, cc -E runs the code through the compiler's parser,
990 # not just through cpp.
991 cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
998 { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1000 if test -z "$ac_err"; then
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1007 CPP="${CC-cc} -E -traditional-cpp"
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1015 { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1017 if test -z "$ac_err"; then
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1024 CPP="${CC-cc} -nologo -E"
1025 cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1032 { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1034 if test -z "$ac_err"; then
1038 echo "configure: failed program was:" >&5
1039 cat conftest.$ac_ext >&5
1048 ac_cv_prog_CPP="$CPP"
1050 CPP="$ac_cv_prog_CPP"
1052 ac_cv_prog_CPP="$CPP"
1054 echo "$ac_t""$CPP" 1>&6
1056 # Extract the first word of "ranlib", so it can be a program name with args.
1057 set dummy ranlib; ac_word=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$RANLIB"; then
1064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_RANLIB="ranlib"
1076 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1079 RANLIB="$ac_cv_prog_RANLIB"
1080 if test -n "$RANLIB"; then
1081 echo "$ac_t""$RANLIB" 1>&6
1083 echo "$ac_t""no" 1>&6
1087 # Find a good install program. We prefer a C program (faster),
1088 # so one script is as good as another. But avoid the broken or
1089 # incompatible versions:
1090 # SysV /etc/install, /usr/sbin/install
1091 # SunOS /usr/etc/install
1092 # IRIX /sbin/install
1094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1097 # ./install, which can be erroneously created by make from ./install.sh.
1098 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1099 echo "configure:1100: checking for a BSD compatible install" >&5
1100 if test -z "$INSTALL"; then
1101 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1105 for ac_dir in $PATH; do
1106 # Account for people who put trailing slashes in PATH elements.
1108 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1110 # OSF1 and SCO ODT 3.0 have their own names for install.
1111 # Don't use installbsd from OSF since it installs stuff as root
1113 for ac_prog in ginstall scoinst install; do
1114 if test -f $ac_dir/$ac_prog; then
1115 if test $ac_prog = install &&
1116 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1117 # AIX install. It has an incompatible calling convention.
1120 ac_cv_path_install="$ac_dir/$ac_prog -c"
1131 if test "${ac_cv_path_install+set}" = set; then
1132 INSTALL="$ac_cv_path_install"
1134 # As a last resort, use the slow shell script. We don't cache a
1135 # path for INSTALL within a source directory, because that will
1136 # break other packages using the cache if that directory is
1137 # removed, or if the path is relative.
1138 INSTALL="$ac_install_sh"
1141 echo "$ac_t""$INSTALL" 1>&6
1143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1144 # It thinks the first close brace ends the variable substitution.
1145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1152 if test x${cross_compiling} != xyes; then
1153 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether byte ordering is bigendian" >&5
1155 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 ac_cv_c_bigendian=unknown
1159 # See if sys/param.h defines the BYTE_ORDER macro.
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <sys/types.h>
1164 #include <sys/param.h>
1167 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1172 if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1174 # It does; now see whether it defined to BIG_ENDIAN or not.
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1178 #include <sys/types.h>
1179 #include <sys/param.h>
1182 #if BYTE_ORDER != BIG_ENDIAN
1187 if { (eval echo configure:1188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1189 ac_cv_c_bigendian=yes
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1194 ac_cv_c_bigendian=no
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1202 if test $ac_cv_c_bigendian = unknown; then
1203 if test "$cross_compiling" = yes; then
1204 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1210 /* Are we little or big endian? From Harbison&Steele. */
1214 char c[sizeof (long)];
1217 exit (u.c[sizeof (long) - 1] == 1);
1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1222 ac_cv_c_bigendian=no
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 ac_cv_c_bigendian=yes
1235 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1236 if test $ac_cv_c_bigendian = yes; then
1237 cat >> confdefs.h <<\EOF
1238 #define WORDS_BIGENDIAN 1
1244 # Check whether --with-words or --without-words was given.
1245 if test "${with_words+set}" = set; then
1246 withval="$with_words"
1252 ac_cv_c_bigendian=yes
1255 ac_cv_c_bigendian=no
1258 ac_cv_c_bigendian=unknown
1259 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1260 echo "configure:1261: checking what the byte order looks to be" >&5
1261 cat >conftest.c <<EOF
1262 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1263 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1264 void _a(void) { char*s = (char*)am; s = (char *)ai; }
1265 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1266 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1267 void _e(void) { char*s = (char*)em; s = (char*)ei; }
1268 int main(void) { _a(); _e(); return 0; }
1271 if test -f conftest.c
1273 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1274 && test -f conftest.o
1276 if test `grep -l BIGenDianSyS conftest.o`
1278 echo "$ac_t"""big endian"" 1>&6
1279 ac_cv_c_bigendian=yes
1281 if test `grep -l LiTTleEnDian conftest.o`
1283 echo "$ac_t"""little endian"" 1>&6
1284 ac_cv_c_bigendian=no
1288 if test $ac_cv_c_bigendian = xunknown
1290 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1292 if test $ac_cv_c_bigendian = yes
1294 cat >> confdefs.h <<\EOF
1295 #define WORDS_BIGENDIAN 1
1302 for ac_func in gettimeofday select strerror strtod strtol
1304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_func" >&5
1306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* System header to define __stub macros and hopefully few prototypes,
1313 which can conflict with char $ac_func(); below. */
1315 /* Override any gcc2 internal prototype to avoid an error. */
1316 /* We use char because int might match the return type of a gcc2
1317 builtin and then its argument prototype would still apply. */
1322 /* The GNU C library defines this for functions which it implements
1323 to always fail with ENOSYS. Some functions are actually named
1324 something starting with __ and the normal name is an alias. */
1325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1335 eval "ac_cv_func_$ac_func=yes"
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1340 eval "ac_cv_func_$ac_func=no"
1345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1348 cat >> confdefs.h <<EOF
1349 #define $ac_tr_func 1
1353 echo "$ac_t""no" 1>&6
1357 for ac_func in setenv putenv
1359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_func" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char $ac_func(); below. */
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390 eval "ac_cv_func_$ac_func=yes"
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1395 eval "ac_cv_func_$ac_func=no"
1400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1403 cat >> confdefs.h <<EOF
1404 #define $ac_tr_func 1
1408 echo "$ac_t""no" 1>&6
1412 echo $ac_n "checking for connect""... $ac_c" 1>&6
1413 echo "configure:1414: checking for connect" >&5
1414 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* System header to define __stub macros and hopefully few prototypes,
1421 which can conflict with char connect(); below. */
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1430 /* The GNU C library defines this for functions which it implements
1431 to always fail with ENOSYS. Some functions are actually named
1432 something starting with __ and the normal name is an alias. */
1433 #if defined (__stub_connect) || defined (__stub___connect)
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443 eval "ac_cv_func_connect=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 eval "ac_cv_func_connect=no"
1453 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1457 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1460 echo "configure:1461: checking for connect in -lsocket" >&5
1461 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_save_LIBS="$LIBS"
1466 LIBS="-lsocket $LIBS"
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 /* Override any gcc2 internal prototype to avoid an error. */
1471 /* We use char because int might match the return type of a gcc2
1472 builtin and then its argument prototype would still apply. */
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 eval "ac_cv_lib_$ac_lib_var=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 eval "ac_cv_lib_$ac_lib_var=no"
1489 LIBS="$ac_save_LIBS"
1492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1494 LIB="${LIB} -lsocket"
1496 echo "$ac_t""no" 1>&6
1502 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1503 echo "configure:1504: checking for gethostbyname" >&5
1504 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 /* System header to define __stub macros and hopefully few prototypes,
1511 which can conflict with char gethostbyname(); below. */
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1516 char gethostbyname();
1520 /* The GNU C library defines this for functions which it implements
1521 to always fail with ENOSYS. Some functions are actually named
1522 something starting with __ and the normal name is an alias. */
1523 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533 eval "ac_cv_func_gethostbyname=yes"
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 eval "ac_cv_func_gethostbyname=no"
1543 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1547 echo "$ac_t""no" 1>&6
1549 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1550 echo "configure:1551: checking for gethostbyname in -lnsl" >&5
1551 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 ac_save_LIBS="$LIBS"
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1563 char gethostbyname();
1569 if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1571 eval "ac_cv_lib_$ac_lib_var=yes"
1573 echo "configure: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1576 eval "ac_cv_lib_$ac_lib_var=no"
1579 LIBS="$ac_save_LIBS"
1582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1583 echo "$ac_t""yes" 1>&6
1586 echo "$ac_t""no" 1>&6
1592 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1593 echo "configure:1594: checking for nanosleep" >&5
1594 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600 /* System header to define __stub macros and hopefully few prototypes,
1601 which can conflict with char nanosleep(); below. */
1603 /* Override any gcc2 internal prototype to avoid an error. */
1604 /* We use char because int might match the return type of a gcc2
1605 builtin and then its argument prototype would still apply. */
1610 /* The GNU C library defines this for functions which it implements
1611 to always fail with ENOSYS. Some functions are actually named
1612 something starting with __ and the normal name is an alias. */
1613 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 eval "ac_cv_func_nanosleep=yes"
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 eval "ac_cv_func_nanosleep=no"
1633 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1634 echo "$ac_t""yes" 1>&6
1637 echo "$ac_t""no" 1>&6
1639 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1640 echo "configure:1641: checking for nanosleep in -lrt" >&5
1641 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 ac_save_LIBS="$LIBS"
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* Override any gcc2 internal prototype to avoid an error. */
1651 /* We use char because int might match the return type of a gcc2
1652 builtin and then its argument prototype would still apply. */
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 eval "ac_cv_lib_$ac_lib_var=yes"
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 eval "ac_cv_lib_$ac_lib_var=no"
1669 LIBS="$ac_save_LIBS"
1672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1676 echo "$ac_t""no" 1>&6
1678 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1679 echo "configure:1680: checking for nanosleep in -lposix4" >&5
1680 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 ac_save_LIBS="$LIBS"
1685 LIBS="-lposix4 $LIBS"
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 /* Override any gcc2 internal prototype to avoid an error. */
1690 /* We use char because int might match the return type of a gcc2
1691 builtin and then its argument prototype would still apply. */
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1700 eval "ac_cv_lib_$ac_lib_var=yes"
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 eval "ac_cv_lib_$ac_lib_var=no"
1708 LIBS="$ac_save_LIBS"
1711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 LIB="${LIB} -lposix4"
1715 echo "$ac_t""no" 1>&6
1724 for ac_func in usleep
1726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_func" >&5
1728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $ac_func(); below. */
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757 eval "ac_cv_func_$ac_func=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 eval "ac_cv_func_$ac_func=no"
1767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1770 cat >> confdefs.h <<EOF
1771 #define $ac_tr_func 1
1775 echo "$ac_t""no" 1>&6
1779 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1780 echo "configure:1781: checking for inet_aton" >&5
1781 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char inet_aton(); below. */
1790 /* Override any gcc2 internal prototype to avoid an error. */
1791 /* We use char because int might match the return type of a gcc2
1792 builtin and then its argument prototype would still apply. */
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 eval "ac_cv_func_inet_aton=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_func_inet_aton=no"
1820 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1824 echo "$ac_t""no" 1>&6
1826 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1827 echo "configure:1828: checking for inet_aton in -lresolv" >&5
1828 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 ac_save_LIBS="$LIBS"
1833 LIBS="-lresolv $LIBS"
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 /* Override any gcc2 internal prototype to avoid an error. */
1838 /* We use char because int might match the return type of a gcc2
1839 builtin and then its argument prototype would still apply. */
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848 eval "ac_cv_lib_$ac_lib_var=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_lib_$ac_lib_var=no"
1856 LIBS="$ac_save_LIBS"
1859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1861 LIB="${LIB} -lresolv"
1863 echo "$ac_t""no" 1>&6
1869 for ac_func in vasprintf
1871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_func" >&5
1873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $ac_func(); below. */
1882 /* Override any gcc2 internal prototype to avoid an error. */
1883 /* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 eval "ac_cv_func_$ac_func=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_func_$ac_func=no"
1912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1915 cat >> confdefs.h <<EOF
1916 #define $ac_tr_func 1
1920 echo "$ac_t""no" 1>&6
1926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_func" >&5
1928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $ac_func(); below. */
1937 /* Override any gcc2 internal prototype to avoid an error. */
1938 /* We use char because int might match the return type of a gcc2
1939 builtin and then its argument prototype would still apply. */
1944 /* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1955 if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1957 eval "ac_cv_func_$ac_func=yes"
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 eval "ac_cv_func_$ac_func=no"
1967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1968 echo "$ac_t""yes" 1>&6
1969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1970 cat >> confdefs.h <<EOF
1971 #define $ac_tr_func 1
1975 echo "$ac_t""no" 1>&6
1979 for ac_func in memalign valloc
1981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_func" >&5
1983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $ac_func(); below. */
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 eval "ac_cv_func_$ac_func=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 eval "ac_cv_func_$ac_func=no"
2022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2025 cat >> confdefs.h <<EOF
2026 #define $ac_tr_func 1
2030 echo "$ac_t""no" 1>&6
2035 for ac_func in sigrelse
2037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2038 echo "configure:2039: checking for $ac_func" >&5
2039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $ac_func(); below. */
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068 eval "ac_cv_func_$ac_func=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 eval "ac_cv_func_$ac_func=no"
2078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2081 cat >> confdefs.h <<EOF
2082 #define $ac_tr_func 1
2086 echo "$ac_t""no" 1>&6
2092 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2093 echo "configure:2094: checking for getopt_long" >&5
2094 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 /* System header to define __stub macros and hopefully few prototypes,
2101 which can conflict with char getopt_long(); below. */
2103 /* Override any gcc2 internal prototype to avoid an error. */
2104 /* We use char because int might match the return type of a gcc2
2105 builtin and then its argument prototype would still apply. */
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2123 eval "ac_cv_func_getopt_long=yes"
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 eval "ac_cv_func_getopt_long=no"
2133 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 cat >> confdefs.h <<\EOF
2136 #define HAVE_GETOPT_LONG 1
2140 echo "$ac_t""no" 1>&6
2141 # FreeBSD has a gnugetopt library for this:
2142 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2143 echo "configure:2144: checking for getopt_long in -lgnugetopt" >&5
2144 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 ac_save_LIBS="$LIBS"
2149 LIBS="-lgnugetopt $LIBS"
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 /* Override any gcc2 internal prototype to avoid an error. */
2154 /* We use char because int might match the return type of a gcc2
2155 builtin and then its argument prototype would still apply. */
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 eval "ac_cv_lib_$ac_lib_var=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_lib_$ac_lib_var=no"
2172 LIBS="$ac_save_LIBS"
2175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2177 cat >> confdefs.h <<\EOF
2178 #define HAVE_GETOPT_LONG 1
2180 LIB="${LIB} -lgnugetopt"
2182 echo "$ac_t""no" 1>&6
2189 for ac_hdr in unistd.h
2191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_hdr" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then
2207 eval "ac_cv_header_$ac_safe=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2213 eval "ac_cv_header_$ac_safe=no"
2217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2220 cat >> confdefs.h <<EOF
2221 #define $ac_tr_hdr 1
2225 echo "$ac_t""no" 1>&6
2229 for ac_func in getpagesize
2231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_func" >&5
2233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* System header to define __stub macros and hopefully few prototypes,
2240 which can conflict with char $ac_func(); below. */
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2249 /* The GNU C library defines this for functions which it implements
2250 to always fail with ENOSYS. Some functions are actually named
2251 something starting with __ and the normal name is an alias. */
2252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2260 if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 eval "ac_cv_func_$ac_func=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 eval "ac_cv_func_$ac_func=no"
2272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2275 cat >> confdefs.h <<EOF
2276 #define $ac_tr_func 1
2280 echo "$ac_t""no" 1>&6
2284 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2285 echo "configure:2286: checking for working mmap" >&5
2286 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 if test "$cross_compiling" = yes; then
2290 ac_cv_func_mmap_fixed_mapped=no
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2296 /* Thanks to Mike Haertel and Jim Avera for this test.
2297 Here is a matrix of mmap possibilities:
2298 mmap private not fixed
2299 mmap private fixed at somewhere currently unmapped
2300 mmap private fixed at somewhere already mapped
2301 mmap shared not fixed
2302 mmap shared fixed at somewhere currently unmapped
2303 mmap shared fixed at somewhere already mapped
2304 For private mappings, we should verify that changes cannot be read()
2305 back from the file, nor mmap's back from the file at a different
2306 address. (There have been systems where private was not correctly
2307 implemented like the infamous i386 svr4.0, and systems where the
2308 VM page cache was not coherent with the filesystem buffer cache
2309 like early versions of FreeBSD and possibly contemporary NetBSD.)
2310 For shared mappings, we should conversely verify that changes get
2311 propogated back to all the places they're supposed to be.
2313 Grep wants private fixed already mapped.
2314 The main things grep needs to know about mmap are:
2315 * does it exist and is it safe to write into the mmap'd area
2316 * how to use it (BSD variants) */
2317 #include <sys/types.h>
2319 #include <sys/mman.h>
2321 #include <sys/stat.h>
2323 #ifdef HAVE_UNISTD_H
2324 # include <unistd.h>
2327 /* This mess was copied from the GNU getpagesize.h. */
2328 #ifndef HAVE_GETPAGESIZE
2330 /* Assume that all systems that can run configure have sys/param.h. */
2331 # ifndef HAVE_SYS_PARAM_H
2332 # define HAVE_SYS_PARAM_H 1
2335 # ifdef _SC_PAGESIZE
2336 # define getpagesize() sysconf(_SC_PAGESIZE)
2337 # else /* no _SC_PAGESIZE */
2338 # ifdef HAVE_SYS_PARAM_H
2339 # include <sys/param.h>
2340 # ifdef EXEC_PAGESIZE
2341 # define getpagesize() EXEC_PAGESIZE
2342 # else /* no EXEC_PAGESIZE */
2344 # define getpagesize() NBPG * CLSIZE
2347 # endif /* no CLSIZE */
2348 # else /* no NBPG */
2350 # define getpagesize() NBPC
2351 # else /* no NBPC */
2353 # define getpagesize() PAGESIZE
2354 # endif /* PAGESIZE */
2355 # endif /* no NBPC */
2356 # endif /* no NBPG */
2357 # endif /* no EXEC_PAGESIZE */
2358 # else /* no HAVE_SYS_PARAM_H */
2359 # define getpagesize() 8192 /* punt totally */
2360 # endif /* no HAVE_SYS_PARAM_H */
2361 # endif /* no _SC_PAGESIZE */
2363 #endif /* no HAVE_GETPAGESIZE */
2366 extern "C" { void *malloc(unsigned); }
2374 char *data, *data2, *data3;
2378 pagesize = getpagesize();
2381 * First, make a file with some known garbage in it.
2383 data = (char*)malloc(pagesize);
2386 for (i = 0; i < pagesize; ++i)
2387 *(data + i) = rand();
2389 fd = creat("conftestmmap", 0600);
2392 if (write(fd, data, pagesize) != pagesize)
2397 * Next, try to mmap the file at a fixed address which
2398 * already has something else allocated at it. If we can,
2399 * also make sure that we see the same garbage.
2401 fd = open("conftestmmap", O_RDWR);
2404 data2 = (char*)malloc(2 * pagesize);
2407 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2408 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2409 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2411 for (i = 0; i < pagesize; ++i)
2412 if (*(data + i) != *(data2 + i))
2416 * Finally, make sure that changes to the mapped area
2417 * do not percolate back to the file as seen by read().
2418 * (This is a bug on some variants of i386 svr4.0.)
2420 for (i = 0; i < pagesize; ++i)
2421 *(data2 + i) = *(data2 + i) + 1;
2422 data3 = (char*)malloc(pagesize);
2425 if (read(fd, data3, pagesize) != pagesize)
2427 for (i = 0; i < pagesize; ++i)
2428 if (*(data + i) != *(data3 + i))
2431 unlink("conftestmmap");
2436 if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2438 ac_cv_func_mmap_fixed_mapped=yes
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2443 ac_cv_func_mmap_fixed_mapped=no
2450 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2451 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2452 cat >> confdefs.h <<\EOF
2458 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2459 echo "configure:2460: checking return type of signal handlers" >&5
2460 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <sys/types.h>
2472 extern "C" void (*signal (int, void (*)(int)))(int);
2474 void (*signal ()) ();
2481 if { (eval echo configure:2482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2483 ac_cv_type_signal=void
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 ac_cv_type_signal=int
2493 echo "$ac_t""$ac_cv_type_signal" 1>&6
2494 cat >> confdefs.h <<EOF
2495 #define RETSIGTYPE $ac_cv_type_signal
2499 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2500 echo "configure:2501: checking for dlopen in -ldl" >&5
2501 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 ac_save_LIBS="$LIBS"
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 /* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2521 eval "ac_cv_lib_$ac_lib_var=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 eval "ac_cv_lib_$ac_lib_var=no"
2529 LIBS="$ac_save_LIBS"
2532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2536 echo "$ac_t""no" 1>&6
2539 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2540 echo "configure:2541: checking for pow in -lm" >&5
2541 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 ac_save_LIBS="$LIBS"
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2561 eval "ac_cv_lib_$ac_lib_var=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_lib_$ac_lib_var=no"
2569 LIBS="$ac_save_LIBS"
2572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 LIB_YUV="${LIB_YUV} -lm"
2576 echo "$ac_t""no" 1>&6
2581 if test "x${THREAD_LIB}" = xerror; then
2582 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2583 echo "configure:2584: checking for pthread_attr_init in -lpthread" >&5
2584 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 ac_save_LIBS="$LIBS"
2589 LIBS="-lpthread $LIBS"
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2596 char pthread_attr_init();
2602 if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2604 eval "ac_cv_lib_$ac_lib_var=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 eval "ac_cv_lib_$ac_lib_var=no"
2612 LIBS="$ac_save_LIBS"
2615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 THREAD_LIB="-lpthread"
2619 echo "$ac_t""no" 1>&6
2623 if test "x${THREAD_LIB}" = xerror; then
2624 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2625 echo "configure:2626: checking for pthread_attr_init in -lpthreads" >&5
2626 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 ac_save_LIBS="$LIBS"
2631 LIBS="-lpthreads $LIBS"
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 /* Override any gcc2 internal prototype to avoid an error. */
2636 /* We use char because int might match the return type of a gcc2
2637 builtin and then its argument prototype would still apply. */
2638 char pthread_attr_init();
2644 if { (eval echo configure:2645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2646 eval "ac_cv_lib_$ac_lib_var=yes"
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2651 eval "ac_cv_lib_$ac_lib_var=no"
2654 LIBS="$ac_save_LIBS"
2657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2658 echo "$ac_t""yes" 1>&6
2659 THREAD_LIB="-lpthreads"
2661 echo "$ac_t""no" 1>&6
2665 if test "x${THREAD_LIB}" = xerror; then
2666 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2667 echo "configure:2668: checking for pthread_attr_init in -lc_r" >&5
2668 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 ac_save_LIBS="$LIBS"
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 /* Override any gcc2 internal prototype to avoid an error. */
2678 /* We use char because int might match the return type of a gcc2
2679 builtin and then its argument prototype would still apply. */
2680 char pthread_attr_init();
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 eval "ac_cv_lib_$ac_lib_var=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 eval "ac_cv_lib_$ac_lib_var=no"
2696 LIBS="$ac_save_LIBS"
2699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2703 echo "$ac_t""no" 1>&6
2707 if test "x${THREAD_LIB}" = xerror; then
2708 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2709 echo "configure:2710: checking for pthread_attr_init" >&5
2710 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 /* System header to define __stub macros and hopefully few prototypes,
2717 which can conflict with char pthread_attr_init(); below. */
2719 /* Override any gcc2 internal prototype to avoid an error. */
2720 /* We use char because int might match the return type of a gcc2
2721 builtin and then its argument prototype would still apply. */
2722 char pthread_attr_init();
2726 /* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2732 pthread_attr_init();
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2739 eval "ac_cv_func_pthread_attr_init=yes"
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2744 eval "ac_cv_func_pthread_attr_init=no"
2749 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2753 echo "$ac_t""no" 1>&6
2759 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2760 echo "configure:2761: checking for cthread_fork in -lthreads" >&5
2761 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 ac_save_LIBS="$LIBS"
2766 LIBS="-lthreads $LIBS"
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2773 char cthread_fork();
2779 if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2781 eval "ac_cv_lib_$ac_lib_var=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 eval "ac_cv_lib_$ac_lib_var=no"
2789 LIBS="$ac_save_LIBS"
2792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2793 echo "$ac_t""yes" 1>&6
2794 THREAD_LIB="-lthreads"
2796 echo "$ac_t""no" 1>&6
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <pthread.h>
2805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2806 egrep "pthread_cond_t" >/dev/null 2>&1; then
2809 cat >> confdefs.h <<\EOF
2810 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <strings.h>
2821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2822 egrep "strncasecmp" >/dev/null 2>&1; then
2825 cat >> confdefs.h <<\EOF
2826 #define STRNCASECMP_IN_STRINGS_H 1
2833 for ac_hdr in stddef.h getopt.h strings.h
2835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_hdr" >&5
2838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2849 if test -z "$ac_err"; then
2851 eval "ac_cv_header_$ac_safe=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_header_$ac_safe=no"
2861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2864 cat >> confdefs.h <<EOF
2865 #define $ac_tr_hdr 1
2869 echo "$ac_t""no" 1>&6
2873 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_hdr 1
2909 echo "$ac_t""no" 1>&6
2913 for ac_hdr in sys/soundcard.h machine/soundcard.h
2915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2917 echo "configure:2918: checking for $ac_hdr" >&5
2918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2927 { (eval echo configure:2928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2929 if test -z "$ac_err"; then
2931 eval "ac_cv_header_$ac_safe=yes"
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2937 eval "ac_cv_header_$ac_safe=no"
2941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2944 cat >> confdefs.h <<EOF
2945 #define $ac_tr_hdr 1
2949 echo "$ac_t""no" 1>&6
2953 for ac_hdr in dlfcn.h image.h
2955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_hdr" >&5
2958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967 { (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2969 if test -z "$ac_err"; then
2971 eval "ac_cv_header_$ac_safe=yes"
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 eval "ac_cv_header_$ac_safe=no"
2981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2984 cat >> confdefs.h <<EOF
2985 #define $ac_tr_hdr 1
2989 echo "$ac_t""no" 1>&6
2993 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_hdr" >&5
2998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3007 { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3009 if test -z "$ac_err"; then
3011 eval "ac_cv_header_$ac_safe=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 eval "ac_cv_header_$ac_safe=no"
3021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3022 echo "$ac_t""yes" 1>&6
3023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3024 cat >> confdefs.h <<EOF
3025 #define $ac_tr_hdr 1
3029 echo "$ac_t""no" 1>&6
3033 for ac_hdr in machine/param.h
3035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3037 echo "configure:3038: checking for $ac_hdr" >&5
3038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3047 { (eval echo configure:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3049 if test -z "$ac_err"; then
3051 eval "ac_cv_header_$ac_safe=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3057 eval "ac_cv_header_$ac_safe=no"
3061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3064 cat >> confdefs.h <<EOF
3065 #define $ac_tr_hdr 1
3069 echo "$ac_t""no" 1>&6
3074 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_hdr" >&5
3079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3088 { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3090 if test -z "$ac_err"; then
3092 eval "ac_cv_header_$ac_safe=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 eval "ac_cv_header_$ac_safe=no"
3102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3105 cat >> confdefs.h <<EOF
3106 #define $ac_tr_hdr 1
3110 echo "$ac_t""no" 1>&6
3115 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3116 echo "configure:3117: checking for ntohl in sys/param.h" >&5
3117 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 CFLAGS="${save_CFLAGS} -Wall -Werror"
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 #include <sys/param.h>
3126 void foo() { int meuh; ntohl(meuh); }
3129 if { (eval echo configure:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 ac_cv_c_ntohl_sys_param_h=yes
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 ac_cv_c_ntohl_sys_param_h=no
3141 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3142 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3143 cat >> confdefs.h <<\EOF
3144 #define NTOHL_IN_SYS_PARAM_H 1
3149 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3150 echo "configure:3151: checking if \$CC accepts -finline-limit" >&5
3151 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3163 if { (eval echo configure:3164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165 ac_cv_c_inline_limit=yes
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 ac_cv_c_inline_limit=no
3175 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3176 if test x"$ac_cv_c_inline_limit" != x"no"; then
3177 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3180 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3181 echo "configure:3182: checking if \$CC accepts -bundle -undefined error" >&5
3182 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3206 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3207 if test x"$ac_cv_ld_darwin" != x"no"; then
3208 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3211 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3212 echo "configure:3213: checking if \$CC accepts -shared" >&5
3213 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 CFLAGS="${save_CFLAGS} -shared"
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227 ac_cv_ld_plugins=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3237 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3238 if test x"$ac_cv_ld_plugins" != x"no"; then
3239 PLCFLAGS="${PLCFLAGS} -shared"
3242 if test x"${SOFLAGS}" = x; then
3243 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3244 echo "configure:3245: checking for soname setting" >&5
3245 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3250 try_SOFLAGS="-Wl,-soname -Wl,"
3251 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262 ac_cv_ld_soname="${try_SOFLAGS}"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3269 try_SOFLAGS="-Wl,-h -Wl,"
3270 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3271 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3281 ac_cv_ld_soname="${try_SOFLAGS}"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3286 ac_cv_ld_soname=none
3294 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3295 if test x"$ac_cv_ld_soname" != x"none"; then
3296 SOFLAGS=$ac_cv_ld_soname
3300 Your system doesn't seem to have support for dynamic linking. You may
3301 have problems using libdvdcss.
3307 CFLAGS="${save_CFLAGS}"
3308 LDFLAGS="${save_LDFLAGS}"
3310 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3311 echo "configure:3312: checking for boolean_t in sys/types.h" >&5
3312 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <sys/types.h>
3320 void quux() { boolean_t foo; }
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 ac_cv_c_boolean_t_sys_types_h=yes
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 ac_cv_c_boolean_t_sys_types_h=no
3335 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3336 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3337 cat >> confdefs.h <<\EOF
3338 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3343 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3344 echo "configure:3345: checking for boolean_t in pthread.h" >&5
3345 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <pthread.h>
3353 void quux() { boolean_t foo; }
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 ac_cv_c_boolean_t_pthread_h=yes
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 ac_cv_c_boolean_t_pthread_h=no
3368 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3369 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3370 cat >> confdefs.h <<\EOF
3371 #define BOOLEAN_T_IN_PTHREAD_H 1
3376 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3377 echo "configure:3378: checking for boolean_t in cthreads.h" >&5
3378 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 #include <cthreads.h>
3386 void quux() { boolean_t foo; }
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391 ac_cv_c_boolean_t_cthreads_h=yes
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 ac_cv_c_boolean_t_cthreads_h=no
3401 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3402 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3403 cat >> confdefs.h <<\EOF
3404 #define BOOLEAN_T_IN_CTHREADS_H 1
3409 echo $ac_n "checking for working const""... $ac_c" 1>&6
3410 echo "configure:3411: checking for working const" >&5
3411 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
3420 /* Ultrix mips cc rejects this. */
3421 typedef int charset[2]; const charset x = {0,0};
3422 /* SunOS 4.1.1 cc rejects this. */
3423 char const *const *ccp;
3425 /* NEC SVR4.0.2 mips cc rejects this. */
3426 struct point {int x, y;};
3427 static struct point const zero = {0,0};
3428 /* AIX XL C 1.02.0.0 rejects this.
3429 It does not let you subtract one const X* pointer from another in an arm
3430 of an if-expression whose if-part is not a constant expression */
3431 const char *g = "string";
3432 ccp = &g + (g ? g-g : 0);
3433 /* HPUX 7.0 cc rejects these. */
3436 ccp = (char const *const *) p;
3437 { /* SCO 3.2v4 cc rejects this. */
3439 char const *s = 0 ? (char *) 0 : (char const *) 0;
3443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3445 const int *foo = &x[0];
3448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3449 typedef const int *iptr;
3453 { /* AIX XL C 1.02.0.0 rejects this saying
3454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3455 struct s { int j; const int *ap[3]; };
3456 struct s *b; b->j = 5;
3458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3476 echo "$ac_t""$ac_cv_c_const" 1>&6
3477 if test $ac_cv_c_const = no; then
3478 cat >> confdefs.h <<\EOF
3484 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3485 echo "configure:3486: checking for ANSI C header files" >&5
3486 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3498 { (eval echo configure:3499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3500 if test -z "$ac_err"; then
3502 ac_cv_header_stdc=yes
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 ac_cv_header_stdc=no
3512 if test $ac_cv_header_stdc = yes; then
3513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 egrep "memchr" >/dev/null 2>&1; then
3524 ac_cv_header_stdc=no
3530 if test $ac_cv_header_stdc = yes; then
3531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538 egrep "free" >/dev/null 2>&1; then
3542 ac_cv_header_stdc=no
3548 if test $ac_cv_header_stdc = yes; then
3549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3550 if test "$cross_compiling" = yes; then
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3557 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3558 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3560 int main () { int i; for (i = 0; i < 256; i++)
3561 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 ac_cv_header_stdc=no
3580 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3581 if test $ac_cv_header_stdc = yes; then
3582 cat >> confdefs.h <<\EOF
3583 #define STDC_HEADERS 1
3588 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3589 echo "configure:3590: checking for size_t" >&5
3590 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3605 ac_cv_type_size_t=yes
3608 ac_cv_type_size_t=no
3613 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3614 if test $ac_cv_type_size_t = no; then
3615 cat >> confdefs.h <<\EOF
3616 #define size_t unsigned
3621 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3622 echo "configure:3623: checking whether time.h and sys/time.h may both be included" >&5
3623 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3630 #include <sys/time.h>
3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 ac_cv_header_time=yes
3640 echo "configure: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 ac_cv_header_time=no
3648 echo "$ac_t""$ac_cv_header_time" 1>&6
3649 if test $ac_cv_header_time = yes; then
3650 cat >> confdefs.h <<\EOF
3651 #define TIME_WITH_SYS_TIME 1
3657 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3658 echo "configure:3659: checking __attribute__ ((aligned ())) support" >&5
3659 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 ac_cv_c_attribute_aligned=0
3663 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3669 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3683 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3684 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3685 cat >> confdefs.h <<EOF
3686 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3695 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3696 PLUGINS="${PLUGINS}"
3698 MMX_MODULES="yuvmmx idctmmx motionmmx"
3699 MMXEXT_MODULES="idctmmxext motionmmxext"
3700 THREEDNOW_MODULES="imdct3dn downmix3dn"
3701 SSE_MODULES="imdctsse downmixsse"
3702 ALTIVEC_MODULES="idctaltivec motionaltivec"
3704 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3705 echo "configure:3706: checking if \$CC groks MMX inline assembly" >&5
3706 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3714 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 ac_cv_mmx_inline=yes
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3729 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3730 if test x"$ac_cv_mmx_inline" != x"no"; then
3731 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3734 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3735 echo "configure:3736: checking if \$CC groks MMX EXT inline assembly" >&5
3736 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3744 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3747 if { (eval echo configure:3748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3749 ac_cv_mmxext_inline=yes
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 ac_cv_mmxext_inline=no
3759 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3760 if test x"$ac_cv_mmxext_inline" != x"no"; then
3761 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3764 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3765 echo "configure:3766: checking if \$CC groks 3D Now! inline assembly" >&5
3766 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3774 void quux(){void *p;asm("pfadd %%mm1,%%mm2"::"r"(p));}
3777 if { (eval echo configure:3778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3779 ac_cv_3dnow_inline=yes
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 ac_cv_3dnow_inline=no
3789 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3790 if test x"$ac_cv_3dnow_inline" != x"no"; then
3791 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3794 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3795 echo "configure:3796: checking if \$CC groks SSE inline assembly" >&5
3796 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3804 void quux(){void *p;asm("xorps %%xmm1,%%xmm2"::"r"(p));}
3807 if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 ac_cv_sse_inline=yes
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3819 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3820 if test x"$ac_cv_sse_inline" != x"no"; then
3821 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3824 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3825 echo "configure:3826: checking if \$CC groks Altivec inline assembly" >&5
3826 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 void quux(){asm("vperm 0,1,2,3");}
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 ac_cv_altivec_inline=yes
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3845 CFLAGS="$CFLAGS -Wa,-m7400"
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3851 void quux(){asm("vperm 0,1,2,3");}
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 ac_cv_altivec_inline=no
3870 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3871 if test x"$ac_cv_altivec_inline" != x"no"; then
3872 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3875 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3876 echo "configure:3877: checking if \$CC groks Altivec C extensions" >&5
3877 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3881 CFLAGS="$CFLAGS -faltivec"
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3888 void quux(){vec_mtvscr((vector unsigned int)(0));}
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 ac_cv_c_altivec=-faltivec
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3900 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 void quux(){vec_mtvscr((vector unsigned int)(0));}
3909 if { (eval echo configure:3910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 ac_cv_c_altivec="-fvec"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3926 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3927 if test x"$ac_cv_c_altivec" != x"no"; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_C_ALTIVEC 1
3932 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3935 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3936 echo "configure:3937: checking if linker needs -framework vecLib" >&5
3937 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 save_LDFLAGS=$LDFLAGS
3941 LDFLAGS="$LDFLAGS -framework vecLib"
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3950 if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3952 ac_cv_ld_altivec=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3960 LDFLAGS=$save_LDFLAGS
3964 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3965 if test x"$ac_cv_ld_altivec" != x"no"; then
3966 LIB_ALTIVEC="-framework vecLib"
3970 CAN_BUILD_LIBDVDCSS=0
3972 for ac_hdr in winioctl.h
3974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_hdr" >&5
3977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3986 { (eval echo configure:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3988 if test -z "$ac_err"; then
3990 eval "ac_cv_header_$ac_safe=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 eval "ac_cv_header_$ac_safe=no"
4000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4003 cat >> confdefs.h <<EOF
4004 #define $ac_tr_hdr 1
4007 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4010 echo "$ac_t""no" 1>&6
4015 for ac_hdr in sys/ioctl.h
4017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4019 echo "configure:4020: checking for $ac_hdr" >&5
4020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4029 { (eval echo configure:4030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4031 if test -z "$ac_err"; then
4033 eval "ac_cv_header_$ac_safe=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_header_$ac_safe=no"
4043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4046 cat >> confdefs.h <<EOF
4047 #define $ac_tr_hdr 1
4050 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4051 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4055 echo "configure:4056: checking for $ac_hdr" >&5
4056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4065 { (eval echo configure:4066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4067 if test -z "$ac_err"; then
4069 eval "ac_cv_header_$ac_safe=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_header_$ac_safe=no"
4079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4080 echo "$ac_t""yes" 1>&6
4081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4082 cat >> confdefs.h <<EOF
4083 #define $ac_tr_hdr 1
4087 echo "$ac_t""no" 1>&6
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include <sys/dvdio.h>
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "dvd_struct" >/dev/null 2>&1; then
4102 cat >> confdefs.h <<\EOF
4103 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <sys/cdio.h>
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "dvd_struct" >/dev/null 2>&1; then
4120 cat >> confdefs.h <<\EOF
4121 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <linux/cdrom.h>
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 egrep "dvd_struct" >/dev/null 2>&1; then
4138 cat >> confdefs.h <<\EOF
4139 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 egrep "dvd_struct" >/dev/null 2>&1; then
4157 cat >> confdefs.h <<\EOF
4158 #define DVD_STRUCT_IN_DVD_H 1
4161 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4167 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_hdr" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4183 if test -z "$ac_err"; then
4185 eval "ac_cv_header_$ac_safe=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_header_$ac_safe=no"
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4198 cat >> confdefs.h <<EOF
4199 #define $ac_tr_hdr 1
4203 cat >> confdefs.h <<\EOF
4204 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4207 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4211 echo "$ac_t""no" 1>&6
4219 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4220 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4221 echo "configure:4222: checking for sys/scsi/scsi_types.h" >&5
4222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 #include <sys/scsi/scsi_types.h>
4230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4231 { (eval echo configure:4232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4233 if test -z "$ac_err"; then
4235 eval "ac_cv_header_$ac_safe=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_header_$ac_safe=no"
4245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4246 echo "$ac_t""yes" 1>&6
4248 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking for sys/scsi/impl/uscsi.h" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <sys/scsi/impl/uscsi.h>
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4264 eval "ac_cv_header_$ac_safe=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_header_$ac_safe=no"
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4277 cat >> confdefs.h <<\EOF
4278 #define SOLARIS_USCSI 1
4283 echo "$ac_t""no" 1>&6
4288 echo "$ac_t""no" 1>&6
4291 if test x$LINUX_DVD_STRUCT = x1; then
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_LINUX_DVD_STRUCT 1
4297 if test x$BSD_DVD_STRUCT = x1; then
4298 cat >> confdefs.h <<\EOF
4299 #define HAVE_BSD_DVD_STRUCT 1
4306 echo "$ac_t""no" 1>&6
4312 case ${target_os} in
4324 # Check whether --with-tuning or --without-tuning was given.
4325 if test "${with_tuning+set}" = set; then
4326 withval="$with_tuning"
4330 if test "x$withval" != "x"; then
4333 if test x${target_cpu} = xi686; then TUNING="pentiumpro"
4335 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4339 # Check whether --enable-mmx or --disable-mmx was given.
4340 if test "${enable_mmx+set}" = set; then
4341 enableval="$enable_mmx"
4342 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4343 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4345 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";
4346 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4350 # Check whether --enable-altivec or --disable-altivec was given.
4351 if test "${enable_altivec+set}" = set; then
4352 enableval="$enable_altivec"
4353 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4354 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4356 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4357 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4362 # Check whether --enable-debug or --disable-debug was given.
4363 if test "${enable_debug+set}" = set; then
4364 enableval="$enable_debug"
4365 if test x$enableval = xyes; then DEBUG=1; fi
4370 # Check whether --enable-trace or --disable-trace was given.
4371 if test "${enable_trace+set}" = set; then
4372 enableval="$enable_trace"
4373 if test x$enableval = xyes; then TRACE=1; fi
4378 # Check whether --enable-gprof or --disable-gprof was given.
4379 if test "${enable_gprof+set}" = set; then
4380 enableval="$enable_gprof"
4381 if test x$enableval = xyes; then GPROF=1; fi
4386 # Check whether --enable-cprof or --disable-cprof was given.
4387 if test "${enable_cprof+set}" = set; then
4388 enableval="$enable_cprof"
4389 if test x$enableval = xyes;
4391 LIB="${LIB} -lcprof"
4398 # Check whether --enable-optimizations or --disable-optimizations was given.
4399 if test "${enable_optimizations+set}" = set; then
4400 enableval="$enable_optimizations"
4401 if test x$enableval = xno; then OPTIMS=0; fi
4407 # Check whether --enable-pth or --disable-pth was given.
4408 if test "${enable_pth+set}" = set; then
4409 enableval="$enable_pth"
4410 if test x$enableval = xyes; then
4411 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4412 echo "configure:4413: checking for pth_init in -lpth" >&5
4413 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 ac_save_LIBS="$LIBS"
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4438 eval "ac_cv_lib_$ac_lib_var=no"
4441 LIBS="$ac_save_LIBS"
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4448 cat >> confdefs.h <<EOF
4449 #define $ac_tr_lib 1
4455 echo "$ac_t""no" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464 egrep "pth_init" >/dev/null 2>&1; then
4467 cat >> confdefs.h <<\EOF
4468 #define PTH_INIT_IN_PTH_H 1
4480 LIB="${LIB} ${THREAD_LIB}"
4485 # Check whether --with-dvdcss or --without-dvdcss was given.
4486 if test "${with_dvdcss+set}" = set; then
4487 withval="$with_dvdcss"
4488 case "x${withval}" in
4490 # local libdvdcss, statically linked
4491 if test x${CAN_BUILD_LIBDVDCSS} = x1
4495 BUILTINS="${BUILTINS} dvd"
4496 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4497 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4498 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4502 # local libdvdcss, dynamically linked
4503 if test x${CAN_BUILD_LIBDVDCSS} = x1
4506 BUILTINS="${BUILTINS} dvd"
4507 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4508 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4509 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4513 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4515 BUILTINS="${BUILTINS} dvd"
4516 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4517 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4518 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4519 LIB_DVD="${LIB_DVD} -ldl"
4520 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4523 # existing libdvdcss
4524 BUILTINS="${BUILTINS} dvd"
4525 if test "x$withval" != "xyes"
4527 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4528 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4530 LIB_DVD="${LIB_DVD} -ldvdcss"
4531 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4534 # user didn't decide, we choose to use local libdvdcss and link statically
4535 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4536 if test x${CAN_BUILD_LIBDVDCSS} = x1
4540 BUILTINS="${BUILTINS} dvd"
4541 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4542 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4543 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4545 # XXX: no check for libdl is done, don't try this at home !
4547 BUILTINS="${BUILTINS} dvd"
4548 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4549 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4550 LIB_DVD="${LIB_DVD} -ldl"
4551 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4556 # Check whether --enable-dummy or --disable-dummy was given.
4557 if test "${enable_dummy+set}" = set; then
4558 enableval="$enable_dummy"
4563 if test x$enable_dummy != xno
4565 BUILTINS="${BUILTINS} dummy"
4568 # Check whether --enable-null or --disable-null was given.
4569 if test "${enable_null+set}" = set; then
4570 enableval="$enable_null"
4575 if test x$enable_null != xno
4577 BUILTINS="${BUILTINS} null"
4580 # Check whether --enable-rc or --disable-rc was given.
4581 if test "${enable_rc+set}" = set; then
4582 enableval="$enable_rc"
4587 if test x$enable_rc != xno
4589 BUILTINS="${BUILTINS} rc"
4592 if test x$SYS = xbeos
4594 BUILTINS="${BUILTINS} beos"
4595 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4596 PLCFLAGS="${PLCFLAGS} -nostart"
4600 # Check whether --enable-dsp or --disable-dsp was given.
4601 if test "${enable_dsp+set}" = set; then
4602 enableval="$enable_dsp"
4607 if test x$enable_dsp != xno
4611 PLUGINS="${PLUGINS} dsp"
4615 # Check whether --enable-esd or --disable-esd was given.
4616 if test "${enable_esd+set}" = set; then
4617 enableval="$enable_esd"
4618 if test x$enable_esd = xyes
4620 # Extract the first word of "esd-config", so it can be a program name with args.
4621 set dummy esd-config; ac_word=$2
4622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_word" >&5
4624 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 case "$ESD_CONFIG" in
4629 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4632 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4637 for ac_dir in $ac_dummy; do
4638 test -z "$ac_dir" && ac_dir=.
4639 if test -f $ac_dir/$ac_word; then
4640 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4645 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4649 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4650 if test -n "$ESD_CONFIG"; then
4651 echo "$ac_t""$ESD_CONFIG" 1>&6
4653 echo "$ac_t""no" 1>&6
4656 if test x${ESD_CONFIG} != xno
4658 PLUGINS="${PLUGINS} esd"
4659 LIB_ESD="`${ESD_CONFIG} --libs`"
4665 # Check whether --enable-darwin or --disable-darwin was given.
4666 if test "${enable_darwin+set}" = set; then
4667 enableval="$enable_darwin"
4668 if test x$enable_darwin = xyes; then
4669 PLUGINS="${PLUGINS} darwin"
4670 LIB_DARWIN="-framework CoreAudio"
4675 # Check whether --enable-macosx or --disable-macosx was given.
4676 if test "${enable_macosx+set}" = set; then
4677 enableval="$enable_macosx"
4678 if test x$enable_macosx = xyes
4680 BUILTINS="${BUILTINS} macosx macosx_qt"
4681 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4682 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4683 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4686 for ac_hdr in Carbon/Carbon.h
4688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4690 echo "configure:4691: checking for $ac_hdr" >&5
4691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4700 { (eval echo configure:4701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4702 if test -z "$ac_err"; then
4704 eval "ac_cv_header_$ac_safe=yes"
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 eval "ac_cv_header_$ac_safe=no"
4714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_hdr 1
4720 BUILTINS="${BUILTINS} macosx macosx_qt"
4721 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4722 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4723 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4726 echo "$ac_t""no" 1>&6
4733 # Check whether --enable-qnx or --disable-qnx was given.
4734 if test "${enable_qnx+set}" = set; then
4735 enableval="$enable_qnx"
4739 if test x$enable_qnx != xno
4743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_hdr" >&5
4746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4755 { (eval echo configure:4756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4757 if test -z "$ac_err"; then
4759 eval "ac_cv_header_$ac_safe=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 eval "ac_cv_header_$ac_safe=no"
4769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_hdr 1
4776 PLUGINS="${PLUGINS} qnx"
4777 LIB_QNX="-lasound -lph"
4780 echo "$ac_t""no" 1>&6
4786 # Check whether --enable-fb or --disable-fb was given.
4787 if test "${enable_fb+set}" = set; then
4788 enableval="$enable_fb"
4789 if test x$enable_fb = xyes
4791 PLUGINS="${PLUGINS} fb"
4796 # Check whether --with-ggi or --without-ggi was given.
4797 if test "${with_ggi+set}" = set; then
4799 if test "x$withval" != "xno"
4801 PLUGINS="${PLUGINS} ggi"
4802 if test "x$withval" != "xyes"
4804 LIB_GGI="-l"$withval
4812 # Check whether --enable-sdl or --disable-sdl was given.
4813 if test "${enable_sdl+set}" = set; then
4814 enableval="$enable_sdl"
4818 if test "x$enable_sdl" != "xno"
4821 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4822 if test "${with_sdl_config_path+set}" = set; then
4823 withval="$with_sdl_config_path"
4824 if test "x$withval" != "xno"
4826 SDL_PATH=$withval:$PATH
4830 # Extract the first word of "sdl12-config", so it can be a program name with args.
4831 set dummy sdl12-config; ac_word=$2
4832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4833 echo "configure:4834: checking for $ac_word" >&5
4834 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 case "$SDL12_CONFIG" in
4839 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4842 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4846 ac_dummy="$SDL_PATH"
4847 for ac_dir in $ac_dummy; do
4848 test -z "$ac_dir" && ac_dir=.
4849 if test -f $ac_dir/$ac_word; then
4850 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4855 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4859 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4860 if test -n "$SDL12_CONFIG"; then
4861 echo "$ac_t""$SDL12_CONFIG" 1>&6
4863 echo "$ac_t""no" 1>&6
4866 SDL_CONFIG=${SDL12_CONFIG}
4867 SDL_HEADER="SDL12/SDL.h"
4868 if test x${SDL_CONFIG} = xno
4870 # Extract the first word of "sdl11-config", so it can be a program name with args.
4871 set dummy sdl11-config; ac_word=$2
4872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_word" >&5
4874 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 case "$SDL11_CONFIG" in
4879 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4882 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4886 ac_dummy="$SDL_PATH"
4887 for ac_dir in $ac_dummy; do
4888 test -z "$ac_dir" && ac_dir=.
4889 if test -f $ac_dir/$ac_word; then
4890 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4895 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4899 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4900 if test -n "$SDL11_CONFIG"; then
4901 echo "$ac_t""$SDL11_CONFIG" 1>&6
4903 echo "$ac_t""no" 1>&6
4906 SDL_CONFIG=${SDL11_CONFIG}
4907 SDL_HEADER="SDL11/SDL.h"
4909 if test x${SDL_CONFIG} = xno
4911 # Extract the first word of "sdl-config", so it can be a program name with args.
4912 set dummy sdl-config; ac_word=$2
4913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4914 echo "configure:4915: checking for $ac_word" >&5
4915 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4918 case "$SDL_CONFIG" in
4920 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4923 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4927 ac_dummy="$SDL_PATH"
4928 for ac_dir in $ac_dummy; do
4929 test -z "$ac_dir" && ac_dir=.
4930 if test -f $ac_dir/$ac_word; then
4931 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4936 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4940 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4941 if test -n "$SDL_CONFIG"; then
4942 echo "$ac_t""$SDL_CONFIG" 1>&6
4944 echo "$ac_t""no" 1>&6
4947 SDL_HEADER="SDL/SDL.h"
4949 if test x${SDL_CONFIG} != xno
4951 PLUGINS="${PLUGINS} sdl"
4952 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4953 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4954 save_CPPFLAGS=$CPPFLAGS
4955 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
4956 for ac_hdr in ${SDL_HEADER}
4958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_hdr" >&5
4961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4970 { (eval echo configure:4971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4972 if test -z "$ac_err"; then
4974 eval "ac_cv_header_$ac_safe=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_header_$ac_safe=no"
4984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4985 echo "$ac_t""yes" 1>&6
4986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4987 cat >> confdefs.h <<EOF
4988 #define $ac_tr_hdr 1
4990 cat >> confdefs.h <<EOF
4991 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
4995 echo "$ac_t""no" 1>&6
4996 { echo "configure: error: The development package for SDL is not installed.
4997 Please install it and try again. Alternatively you can also configure with
4998 --disable-sdl." 1>&2; exit 1; }
5003 CPPFLAGS=$save_CPPFLAGS
5004 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5006 { echo "configure: error: The development package for SDL is not installed.
5007 Please install it and try again. Alternatively you can also configure with
5008 --disable-sdl." 1>&2; exit 1; }
5010 elif test "x$enable_sdl" = "xyes"
5012 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5013 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5018 # Check whether --with-directx or --without-directx was given.
5019 if test "${with_directx+set}" = set; then
5020 withval="$with_directx"
5021 if test "x$withval" != "xno"
5023 PLUGINS="${PLUGINS} directx"
5024 if test "x$withval" != "xyes"
5026 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5027 INCLUDE="${INCLUDE} -I"$withval"/include"
5029 for ac_hdr in directx.h
5031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5033 echo "configure:5034: checking for $ac_hdr" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5047 eval "ac_cv_header_$ac_safe=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_header_$ac_safe=no"
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5060 cat >> confdefs.h <<EOF
5061 #define $ac_tr_hdr 1
5065 echo "$ac_t""no" 1>&6
5066 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5071 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5076 if test "x$withval" = "x"
5078 for ac_hdr in directx.h
5080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5082 echo "configure:5083: checking for $ac_hdr" >&5
5083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5092 { (eval echo configure:5093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5094 if test -z "$ac_err"; then
5096 eval "ac_cv_header_$ac_safe=yes"
5099 echo "configure: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5102 eval "ac_cv_header_$ac_safe=no"
5106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5107 echo "$ac_t""yes" 1>&6
5108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5109 cat >> confdefs.h <<EOF
5110 #define $ac_tr_hdr 1
5112 PLUGINS="${PLUGINS} directx"
5113 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5115 echo "$ac_t""no" 1>&6
5121 # Check whether --with-glide or --without-glide was given.
5122 if test "${with_glide+set}" = set; then
5123 withval="$with_glide"
5124 if test "x$withval" != "xno"
5126 PLUGINS="${PLUGINS} glide"
5127 if test "x$withval" != "xyes"
5129 LIB_GLIDE="-l"$withval" -lm"
5131 LIB_GLIDE="-lglide2x -lm"
5137 # Check whether --enable-ncurses or --disable-ncurses was given.
5138 if test "${enable_ncurses+set}" = set; then
5139 enableval="$enable_ncurses"
5140 if test x$enable_ncurses = xyes; then
5141 PLUGINS="${PLUGINS} ncurses"
5142 LIB_NCURSES="-lncurses"
5147 # Check whether --enable-qt or --disable-qt was given.
5148 if test "${enable_qt+set}" = set; then
5149 enableval="$enable_qt"
5150 if test x$enable_qt = xyes; then
5151 PLUGINS="${PLUGINS} qt"
5152 ALIASES="${ALIASES} qvlc"
5153 LIB_QT="-lqt -L${QTDIR}/lib"
5154 if test -x ${QTDIR}/bin/moc
5156 MOC=${QTDIR}/bin/moc
5164 # Check whether --enable-kde or --disable-kde was given.
5165 if test "${enable_kde+set}" = set; then
5166 enableval="$enable_kde"
5167 if test x$enable_kde = xyes; then
5168 PLUGINS="${PLUGINS} kde"
5169 ALIASES="${ALIASES} kvlc"
5170 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5171 if test -x ${QTDIR}/bin/moc
5173 MOC=${QTDIR}/bin/moc
5181 # Check whether --enable-gnome or --disable-gnome was given.
5182 if test "${enable_gnome+set}" = set; then
5183 enableval="$enable_gnome"
5184 if test x$enable_gnome = xyes; then
5185 # look for gnome-config
5186 # Extract the first word of "gnome-config", so it can be a program name with args.
5187 set dummy gnome-config; ac_word=$2
5188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5189 echo "configure:5190: checking for $ac_word" >&5
5190 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 case "$GNOME_CONFIG" in
5195 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5198 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5203 for ac_dir in $ac_dummy; do
5204 test -z "$ac_dir" && ac_dir=.
5205 if test -f $ac_dir/$ac_word; then
5206 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5211 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5215 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5216 if test -n "$GNOME_CONFIG"; then
5217 echo "$ac_t""$GNOME_CONFIG" 1>&6
5219 echo "$ac_t""no" 1>&6
5222 if test -x ${GNOME_CONFIG}
5224 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5225 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5227 # now look for the gnome.h header
5228 saved_CPPFLAGS=$CPPFLAGS
5229 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5230 for ac_hdr in gnome.h
5232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_hdr" >&5
5235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5244 { (eval echo configure:5245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5246 if test -z "$ac_err"; then
5248 eval "ac_cv_header_$ac_safe=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 eval "ac_cv_header_$ac_safe=no"
5258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5259 echo "$ac_t""yes" 1>&6
5260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5261 cat >> confdefs.h <<EOF
5262 #define $ac_tr_hdr 1
5265 PLUGINS="${PLUGINS} gnome"
5266 ALIASES="${ALIASES} gnome-vlc"
5269 echo "$ac_t""no" 1>&6
5270 { echo "configure: error: Can't find gnome headers. Please install the gnome
5271 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5277 CPPFLAGS=$saved_CPPFLAGS
5282 # Check whether --enable-gtk or --disable-gtk was given.
5283 if test "${enable_gtk+set}" = set; then
5284 enableval="$enable_gtk"
5288 if test x$enable_gtk != xno
5290 # look for gtk-config
5291 # Extract the first word of "gtk-config", so it can be a program name with args.
5292 set dummy gtk-config; ac_word=$2
5293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_word" >&5
5295 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 case "$GTK_CONFIG" in
5300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5303 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5308 for ac_dir in $ac_dummy; do
5309 test -z "$ac_dir" && ac_dir=.
5310 if test -f $ac_dir/$ac_word; then
5311 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5316 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5320 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5321 if test -n "$GTK_CONFIG"; then
5322 echo "$ac_t""$GTK_CONFIG" 1>&6
5324 echo "$ac_t""no" 1>&6
5327 if test -x ${GTK_CONFIG}
5329 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5330 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5332 # now look for the gtk.h header
5333 saved_CPPFLAGS=$CPPFLAGS
5334 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5335 for ac_hdr in gtk/gtk.h
5337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5339 echo "configure:5340: checking for $ac_hdr" >&5
5340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5349 { (eval echo configure:5350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5351 if test -z "$ac_err"; then
5353 eval "ac_cv_header_$ac_safe=yes"
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5359 eval "ac_cv_header_$ac_safe=no"
5363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5364 echo "$ac_t""yes" 1>&6
5365 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5366 cat >> confdefs.h <<EOF
5367 #define $ac_tr_hdr 1
5370 PLUGINS="${PLUGINS} gtk"
5371 ALIASES="${ALIASES} gvlc"
5374 echo "$ac_t""no" 1>&6
5378 CPPFLAGS=$saved_CPPFLAGS
5381 # Check whether --enable-x11 or --disable-x11 was given.
5382 if test "${enable_x11+set}" = set; then
5383 enableval="$enable_x11"
5387 if test x$enable_x11 != xno; then
5388 if test x$x_includes = xNONE; then
5389 x_includes=/usr/X11R6/include
5391 if test x$x_libraries = xNONE; then
5392 x_libraries=/usr/X11R6/lib
5394 saved_CPPFLAGS=$CPPFLAGS
5395 CPPFLAGS="$CPPFLAGS -I$x_includes"
5396 for ac_hdr in X11/Xlib.h
5398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5400 echo "configure:5401: checking for $ac_hdr" >&5
5401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5410 { (eval echo configure:5411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5412 if test -z "$ac_err"; then
5414 eval "ac_cv_header_$ac_safe=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_header_$ac_safe=no"
5424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_hdr 1
5431 PLUGINS="${PLUGINS} x11"
5432 LIB_X11="-L$x_libraries -lX11 -lXext"
5433 CFLAGS_X11="-I$x_includes"
5435 CPPFLAGS=$saved_CPPFLAGS
5437 echo "$ac_t""no" 1>&6
5443 # Check whether --enable-xvideo or --disable-xvideo was given.
5444 if test "${enable_xvideo+set}" = set; then
5445 enableval="$enable_xvideo"
5449 if test x$enable_xvideo != xno; then
5450 if test x$x_includes = xNONE; then
5451 x_includes=/usr/X11R6/include
5453 if test x$x_libraries = xNONE; then
5454 x_libraries=/usr/X11R6/lib
5456 saved_CPPFLAGS=$CPPFLAGS
5457 CPPFLAGS="$CPPFLAGS -I$x_includes"
5458 for ac_hdr in X11/extensions/Xv.h
5460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5462 echo "configure:5463: checking for $ac_hdr" >&5
5463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5472 { (eval echo configure:5473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5474 if test -z "$ac_err"; then
5476 eval "ac_cv_header_$ac_safe=yes"
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 eval "ac_cv_header_$ac_safe=no"
5486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_hdr 1
5493 PLUGINS="${PLUGINS} xvideo"
5494 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5495 CFLAGS_X11="-I$x_includes"
5497 CPPFLAGS=$saved_CPPFLAGS
5499 echo "$ac_t""no" 1>&6
5505 # Check whether --enable-alsa or --disable-alsa was given.
5506 if test "${enable_alsa+set}" = set; then
5507 enableval="$enable_alsa"
5508 if test x$enable_alsa = xyes
5510 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5511 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5512 echo "configure:5513: checking for sys/asoundlib.h" >&5
5513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 #include <sys/asoundlib.h>
5521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5522 { (eval echo configure:5523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5524 if test -z "$ac_err"; then
5526 eval "ac_cv_header_$ac_safe=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_header_$ac_safe=no"
5536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5537 echo "$ac_t""yes" 1>&6
5538 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5539 echo "configure:5540: checking for main in -lasound" >&5
5540 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 ac_save_LIBS="$LIBS"
5545 LIBS="-lasound $LIBS"
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5556 eval "ac_cv_lib_$ac_lib_var=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 eval "ac_cv_lib_$ac_lib_var=no"
5564 LIBS="$ac_save_LIBS"
5567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5571 echo "$ac_t""no" 1>&6
5576 echo "$ac_t""no" 1>&6
5580 if test x$have_alsa = xtrue
5582 PLUGINS="${PLUGINS} alsa"
5591 # Check whether --enable-plugins or --disable-plugins was given.
5592 if test "${enable_plugins+set}" = set; then
5593 enableval="$enable_plugins"
5594 if test x$enable_plugins = xno
5596 BUILTINS="${BUILTINS} ${PLUGINS}"
5664 cat > confcache <<\EOF
5665 # This file is a shell script that caches the results of configure
5666 # tests run on this system so they can be shared between configure
5667 # scripts and configure runs. It is not useful on other systems.
5668 # If it contains results you don't want to keep, you may remove or edit it.
5670 # By default, configure uses ./config.cache as the cache file,
5671 # creating it if it does not exist already. You can give configure
5672 # the --cache-file=FILE option to use a different cache file; that is
5673 # what configure does when it calls configure scripts in
5674 # subdirectories, so they share the cache.
5675 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5676 # config.status only pays attention to the cache file if you give it the
5677 # --recheck option to rerun configure.
5680 # The following way of writing the cache mishandles newlines in values,
5681 # but we know of no workaround that is simple, portable, and efficient.
5682 # So, don't put newlines in cache variables' values.
5683 # Ultrix sh set writes to stderr and can't be redirected directly,
5684 # and sets the high bit in the cache file unless we assign to the vars.
5686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5688 # `set' does not quote correctly, so add quotes (double-quote substitution
5689 # turns \\\\ into \\, and sed turns \\ into \).
5691 -e "s/'/'\\\\''/g" \
5692 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5695 # `set' quotes correctly as required by POSIX, so do not add quotes.
5696 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5699 if cmp -s $cache_file confcache; then
5702 if test -w $cache_file; then
5703 echo "updating cache $cache_file"
5704 cat confcache > $cache_file
5706 echo "not updating unwritable cache $cache_file"
5711 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5714 # Let make expand exec_prefix.
5715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5717 # Any assignment to VPATH causes Sun make to only execute
5718 # the first set of double-colon rules, so remove it if not needed.
5719 # If there is a colon in the path, we need to keep it.
5720 if test "x$srcdir" = x.; then
5721 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5724 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5726 DEFS=-DHAVE_CONFIG_H
5728 # Without the "./", some shells look in PATH for config.status.
5729 : ${CONFIG_STATUS=./config.status}
5731 echo creating $CONFIG_STATUS
5732 rm -f $CONFIG_STATUS
5733 cat > $CONFIG_STATUS <<EOF
5735 # Generated automatically by configure.
5736 # Run this file to recreate the current configuration.
5737 # This directory was configured as follows,
5738 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5740 # $0 $ac_configure_args
5742 # Compiler output produced by configure, useful for debugging
5743 # configure, is in ./config.log if it exists.
5745 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5748 case "\$ac_option" in
5749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5750 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5751 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5752 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5753 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5755 -help | --help | --hel | --he | --h)
5756 echo "\$ac_cs_usage"; exit 0 ;;
5757 *) echo "\$ac_cs_usage"; exit 1 ;;
5761 ac_given_srcdir=$srcdir
5762 ac_given_INSTALL="$INSTALL"
5764 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5766 cat >> $CONFIG_STATUS <<EOF
5768 # Protect against being on the right side of a sed subst in config.status.
5769 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5770 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5774 s%@CFLAGS@%$CFLAGS%g
5775 s%@CPPFLAGS@%$CPPFLAGS%g
5776 s%@CXXFLAGS@%$CXXFLAGS%g
5777 s%@FFLAGS@%$FFLAGS%g
5779 s%@LDFLAGS@%$LDFLAGS%g
5781 s%@exec_prefix@%$exec_prefix%g
5782 s%@prefix@%$prefix%g
5783 s%@program_transform_name@%$program_transform_name%g
5784 s%@bindir@%$bindir%g
5785 s%@sbindir@%$sbindir%g
5786 s%@libexecdir@%$libexecdir%g
5787 s%@datadir@%$datadir%g
5788 s%@sysconfdir@%$sysconfdir%g
5789 s%@sharedstatedir@%$sharedstatedir%g
5790 s%@localstatedir@%$localstatedir%g
5791 s%@libdir@%$libdir%g
5792 s%@includedir@%$includedir%g
5793 s%@oldincludedir@%$oldincludedir%g
5794 s%@infodir@%$infodir%g
5795 s%@mandir@%$mandir%g
5797 s%@host_alias@%$host_alias%g
5798 s%@host_cpu@%$host_cpu%g
5799 s%@host_vendor@%$host_vendor%g
5800 s%@host_os@%$host_os%g
5801 s%@target@%$target%g
5802 s%@target_alias@%$target_alias%g
5803 s%@target_cpu@%$target_cpu%g
5804 s%@target_vendor@%$target_vendor%g
5805 s%@target_os@%$target_os%g
5807 s%@build_alias@%$build_alias%g
5808 s%@build_cpu@%$build_cpu%g
5809 s%@build_vendor@%$build_vendor%g
5810 s%@build_os@%$build_os%g
5811 s%@VLC_VERSION@%$VLC_VERSION%g
5812 s%@VLC_CODENAME@%$VLC_CODENAME%g
5813 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5814 s%@SET_MAKE@%$SET_MAKE%g
5817 s%@RANLIB@%$RANLIB%g
5818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5819 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5820 s%@INSTALL_DATA@%$INSTALL_DATA%g
5821 s%@ESD_CONFIG@%$ESD_CONFIG%g
5822 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5823 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5824 s%@SDL_CONFIG@%$SDL_CONFIG%g
5825 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5826 s%@GTK_CONFIG@%$GTK_CONFIG%g
5829 s%@PLUGINS@%$PLUGINS%g
5830 s%@BUILTINS@%$BUILTINS%g
5831 s%@ALIASES@%$ALIASES%g
5832 s%@DEFINE@%$DEFINE%g
5833 s%@INCLUDE@%$INCLUDE%g
5839 s%@OPTIMS@%$OPTIMS%g
5840 s%@TUNING@%$TUNING%g
5841 s%@NEED_GETOPT@%$NEED_GETOPT%g
5843 s%@WINDRES@%$WINDRES%g
5844 s%@LCFLAGS@%$LCFLAGS%g
5845 s%@PLCFLAGS@%$PLCFLAGS%g
5846 s%@SOFLAGS@%$SOFLAGS%g
5848 s%@LIB_ALSA@%$LIB_ALSA%g
5849 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5850 s%@LIB_BEOS@%$LIB_BEOS%g
5851 s%@LIB_DARWIN@%$LIB_DARWIN%g
5852 s%@LIB_DVD@%$LIB_DVD%g
5853 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5854 s%@LIB_ESD@%$LIB_ESD%g
5855 s%@LIB_GGI@%$LIB_GGI%g
5856 s%@LIB_GLIDE@%$LIB_GLIDE%g
5857 s%@LIB_GNOME@%$LIB_GNOME%g
5858 s%@LIB_GTK@%$LIB_GTK%g
5859 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5860 s%@LIB_KDE@%$LIB_KDE%g
5861 s%@LIB_MACOSX@%$LIB_MACOSX%g
5862 s%@LIB_QNX@%$LIB_QNX%g
5863 s%@LIB_NCURSES@%$LIB_NCURSES%g
5864 s%@LIB_QT@%$LIB_QT%g
5865 s%@LIB_TS@%$LIB_TS%g
5866 s%@LIB_SDL@%$LIB_SDL%g
5867 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5868 s%@LIB_X11@%$LIB_X11%g
5869 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5870 s%@LIB_YUV@%$LIB_YUV%g
5871 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5872 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5873 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5874 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5875 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5876 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5877 s%@CFLAGS_X11@%$CFLAGS_X11%g
5878 s%@OBJ_DVD@%$OBJ_DVD%g
5879 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5880 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5885 cat >> $CONFIG_STATUS <<\EOF
5887 # Split the substitutions into bite-sized pieces for seds with
5888 # small command number limits, like on Digital OSF/1 and HP-UX.
5889 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5890 ac_file=1 # Number of current file.
5891 ac_beg=1 # First line for current file.
5892 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5895 while $ac_more_lines; do
5896 if test $ac_beg -gt 1; then
5897 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5899 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5901 if test ! -s conftest.s$ac_file; then
5903 rm -f conftest.s$ac_file
5905 if test -z "$ac_sed_cmds"; then
5906 ac_sed_cmds="sed -f conftest.s$ac_file"
5908 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5910 ac_file=`expr $ac_file + 1`
5912 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5915 if test -z "$ac_sed_cmds"; then
5920 cat >> $CONFIG_STATUS <<EOF
5922 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5924 cat >> $CONFIG_STATUS <<\EOF
5925 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5928 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5929 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5930 *) ac_file_in="${ac_file}.in" ;;
5933 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5935 # Remove last slash and all that follows it. Not all systems have dirname.
5936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5938 # The file is in a subdirectory.
5939 test ! -d "$ac_dir" && mkdir "$ac_dir"
5940 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5941 # A "../" for each directory in $ac_dir_suffix.
5942 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5944 ac_dir_suffix= ac_dots=
5947 case "$ac_given_srcdir" in
5949 if test -z "$ac_dots"; then top_srcdir=.
5950 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5951 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5953 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5954 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5957 case "$ac_given_INSTALL" in
5958 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5959 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5962 echo creating "$ac_file"
5964 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5966 *Makefile*) ac_comsub="1i\\
5967 # $configure_input" ;;
5971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5973 s%@configure_input@%$configure_input%g
5974 s%@srcdir@%$srcdir%g
5975 s%@top_srcdir@%$top_srcdir%g
5976 s%@INSTALL@%$INSTALL%g
5977 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5984 # ac_d sets the value in "#define NAME VALUE" lines.
5985 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5986 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5989 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5990 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5991 ac_uB='\([ ]\)%\1#\2define\3'
5994 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5995 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5996 ac_eB='$%\1#\2define\3'
6000 if test "${CONFIG_HEADERS+set}" != set; then
6002 cat >> $CONFIG_STATUS <<EOF
6003 CONFIG_HEADERS="include/defs.h"
6005 cat >> $CONFIG_STATUS <<\EOF
6007 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6010 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6011 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6012 *) ac_file_in="${ac_file}.in" ;;
6015 echo creating $ac_file
6017 rm -f conftest.frag conftest.in conftest.out
6018 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6019 cat $ac_file_inputs > conftest.in
6023 # Transform confdefs.h into a sed script conftest.vals that substitutes
6024 # the proper values into config.h.in to produce config.h. And first:
6025 # Protect against being on the right side of a sed subst in config.status.
6026 # Protect against being in an unquoted here document in config.status.
6028 cat > conftest.hdr <<\EOF
6031 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6035 sed -n -f conftest.hdr confdefs.h > conftest.vals
6038 # This sed command replaces #undef with comments. This is necessary, for
6039 # example, in the case of _POSIX_SOURCE, which is predefined and required
6040 # on some systems where configure will not decide to define it.
6041 cat >> conftest.vals <<\EOF
6042 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6045 # Break up conftest.vals because some shells have a limit on
6046 # the size of here documents, and old seds have small limits too.
6051 ac_lines=`grep -c . conftest.vals`
6052 # grep -c gives empty output for an empty file on some AIX systems.
6053 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6054 # Write a limited-size here document to conftest.frag.
6055 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6056 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6058 sed -f conftest.frag conftest.in > conftest.out
6060 mv conftest.out conftest.in
6062 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6064 mv conftest.tail conftest.vals
6068 cat >> $CONFIG_STATUS <<\EOF
6069 rm -f conftest.frag conftest.h
6070 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6071 cat conftest.in >> conftest.h
6073 if cmp -s $ac_file conftest.h 2>/dev/null; then
6074 echo "$ac_file is unchanged"
6077 # Remove last slash and all that follows it. Not all systems have dirname.
6078 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6079 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6080 # The file is in a subdirectory.
6081 test ! -d "$ac_dir" && mkdir "$ac_dir"
6084 mv conftest.h $ac_file
6089 cat >> $CONFIG_STATUS <<EOF
6092 cat >> $CONFIG_STATUS <<\EOF
6096 chmod +x $CONFIG_STATUS
6097 rm -fr confdefs* $ac_clean_files
6098 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6102 global configuration
6103 --------------------
6105 architecture : ${ARCH}
6106 optimizations : ${OPTIMS}
6107 tuning: : ${TUNING}"
6109 if test x${HAVE_VLC} = x1
6114 vlc version : ${VLC_VERSION}
6115 debug mode : ${DEBUG}
6116 trace mode : ${TRACE}
6117 cprof/gprof support : ${CPROF}/${GPROF}
6118 need builtin getopt : ${NEED_GETOPT}
6119 built-in modules :${BUILTINS}
6120 plug-in modules :${PLUGINS}
6121 vlc aliases :${ALIASES}"
6125 libdvdcss configuration
6126 -----------------------
6127 can be built : ${CAN_BUILD_LIBDVDCSS}
6128 will be built : ${NEED_LIBDVDCSS}"
6129 if test x${NEED_LIBDVDCSS} = x1
6131 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6132 echo "link statically : ${STATIC_LIBDVDCSS}"
6134 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6138 You may now tune Makefile.opts at your convenience, for instance to choose
6139 which modules get compiled as plugins.
6141 if test x${HAVE_VLC} = x1
6143 echo "To build vlc and its plugins, type \`make vlc'."
6145 if test x${HAVE_LIBDVDCSS} = x1
6147 echo "To build libdvdcss only, type \`make libdvdcss'."