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 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no', or 'local-static', 'local-shared', or a path to another libdvdcss such as '/usr/local' (default 'local-static')"
35 --disable-dummy dummy module (default enabled)"
37 --disable-null Null module (default enabled)"
39 --disable-rc rc module (default enabled)"
41 --disable-dsp Linux /dev/dsp support (default enabled)"
43 --enable-esd Esound library support (default disabled)"
45 --enable-darwin Darwin sound support (default disabled)"
47 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
49 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
51 --enable-fb Linux framebuffer support (default disabled)"
53 --with-ggi[=name] GGI support (default disabled)"
55 --disable-sdl SDL support (default enabled)"
57 --with-directx[=name] Windows DirectX support (default enabled)"
59 --with-glide[=name] Glide (3dfx) support (default disabled)"
61 --enable-ncurses ncurses interface support (default disabled)"
63 --enable-qt Qt interface support (default disabled)"
65 --enable-kde KDE interface support (default disabled)"
67 --enable-gnome Gnome interface support (default disabled)"
69 --disable-gtk Gtk+ support (default enabled)"
71 --disable-x11 X11 support (default enabled)"
73 --disable-xvideo XVideo support (default enabled)"
75 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=include/common.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # Make sure we can run config.sub.
609 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
610 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613 echo $ac_n "checking host system type""... $ac_c" 1>&6
614 echo "configure:615: checking host system type" >&5
617 case "$host_alias" in
621 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624 *) host_alias=$nonopt ;;
628 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
629 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$host" 1>&6
636 if test -r src/interface/main.c; then
645 if test -r extras/libdvdcss/libdvdcss.c; then
647 LIBDVDCSS_VERSION=0.0.2
651 save_CFLAGS="${CFLAGS}"
652 save_LDFLAGS="${LDFLAGS}"
654 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
655 echo "configure:656: checking whether ${MAKE-make} sets \${MAKE}" >&5
656 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
657 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
660 cat > conftestmake <<\EOF
662 @echo 'ac_maketemp="${MAKE}"'
664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
665 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
666 if test -n "$ac_maketemp"; then
667 eval ac_cv_prog_make_${ac_make}_set=yes
669 eval ac_cv_prog_make_${ac_make}_set=no
673 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
674 echo "$ac_t""yes" 1>&6
677 echo "$ac_t""no" 1>&6
678 SET_MAKE="MAKE=${MAKE-make}"
681 # Extract the first word of "gcc", so it can be a program name with args.
682 set dummy gcc; ac_word=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC="$CC" # Let the user override the test.
691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
707 echo "$ac_t""no" 1>&6
710 if test -z "$CC"; then
711 # Extract the first word of "cc", so it can be a program name with args.
712 set dummy cc; ac_word=$2
713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 if test -n "$CC"; then
719 ac_cv_prog_CC="$CC" # Let the user override the test.
721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
724 for ac_dir in $ac_dummy; do
725 test -z "$ac_dir" && ac_dir=.
726 if test -f $ac_dir/$ac_word; then
727 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
736 if test $ac_prog_rejected = yes; then
737 # We found a bogon in the path, so make sure we never use it.
738 set dummy $ac_cv_prog_CC
740 if test $# -gt 0; then
741 # We chose a different compiler from the bogus one.
742 # However, it has the same basename, so the bogon will be chosen
743 # first if we set CC to just the basename; use the full file name.
745 set dummy "$ac_dir/$ac_word" "$@"
753 if test -n "$CC"; then
754 echo "$ac_t""$CC" 1>&6
756 echo "$ac_t""no" 1>&6
759 if test -z "$CC"; then
762 # Extract the first word of "cl", so it can be a program name with args.
763 set dummy cl; ac_word=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 if test -n "$CC"; then
770 ac_cv_prog_CC="$CC" # Let the user override the test.
772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
774 for ac_dir in $ac_dummy; do
775 test -z "$ac_dir" && ac_dir=.
776 if test -f $ac_dir/$ac_word; then
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
788 echo "$ac_t""no" 1>&6
793 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
796 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
797 echo "configure:798: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
801 ac_cpp='$CPP $CPPFLAGS'
802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
804 cross_compiling=$ac_cv_prog_cc_cross
806 cat > conftest.$ac_ext << EOF
808 #line 809 "configure"
809 #include "confdefs.h"
813 if { (eval echo configure:814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
814 ac_cv_prog_cc_works=yes
815 # If we can't run a trivial program, we are probably using a cross compiler.
816 if (./conftest; exit) 2>/dev/null; then
817 ac_cv_prog_cc_cross=no
819 ac_cv_prog_cc_cross=yes
822 echo "configure: failed program was:" >&5
823 cat conftest.$ac_ext >&5
824 ac_cv_prog_cc_works=no
828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
829 ac_cpp='$CPP $CPPFLAGS'
830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
832 cross_compiling=$ac_cv_prog_cc_cross
834 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
835 if test $ac_cv_prog_cc_works = no; then
836 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
839 echo "configure:840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
840 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
841 cross_compiling=$ac_cv_prog_cc_cross
843 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
844 echo "configure:845: checking whether we are using GNU C" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftest.c <<EOF
853 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
860 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
862 if test $ac_cv_prog_gcc = yes; then
868 ac_test_CFLAGS="${CFLAGS+set}"
869 ac_save_CFLAGS="$CFLAGS"
871 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
872 echo "configure:873: checking whether ${CC-cc} accepts -g" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 echo 'void f(){}' > conftest.c
877 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
886 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
887 if test "$ac_test_CFLAGS" = set; then
888 CFLAGS="$ac_save_CFLAGS"
889 elif test $ac_cv_prog_cc_g = yes; then
890 if test "$GCC" = yes; then
896 if test "$GCC" = yes; then
903 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
904 echo "configure:905: checking how to run the C preprocessor" >&5
905 # On Suns, sometimes $CPP names a directory.
906 if test -n "$CPP" && test -d "$CPP"; then
909 if test -z "$CPP"; then
910 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 # This must be in double quotes, not single quotes, because CPP may get
914 # substituted into the Makefile and "${CC-cc}" will confuse make.
916 # On the NeXT, cc -E runs the code through the compiler's parser,
917 # not just through cpp.
918 cat > conftest.$ac_ext <<EOF
919 #line 920 "configure"
920 #include "confdefs.h"
924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
925 { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
927 if test -z "$ac_err"; then
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
934 CPP="${CC-cc} -E -traditional-cpp"
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
942 { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
944 if test -z "$ac_err"; then
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
951 CPP="${CC-cc} -nologo -E"
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
959 { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
961 if test -z "$ac_err"; then
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
975 ac_cv_prog_CPP="$CPP"
977 CPP="$ac_cv_prog_CPP"
979 ac_cv_prog_CPP="$CPP"
981 echo "$ac_t""$CPP" 1>&6
983 # Extract the first word of "ranlib", so it can be a program name with args.
984 set dummy ranlib; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 if test -n "$RANLIB"; then
991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 for ac_dir in $ac_dummy; do
996 test -z "$ac_dir" && ac_dir=.
997 if test -f $ac_dir/$ac_word; then
998 ac_cv_prog_RANLIB="ranlib"
1003 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1006 RANLIB="$ac_cv_prog_RANLIB"
1007 if test -n "$RANLIB"; then
1008 echo "$ac_t""$RANLIB" 1>&6
1010 echo "$ac_t""no" 1>&6
1014 # Find a good install program. We prefer a C program (faster),
1015 # so one script is as good as another. But avoid the broken or
1016 # incompatible versions:
1017 # SysV /etc/install, /usr/sbin/install
1018 # SunOS /usr/etc/install
1019 # IRIX /sbin/install
1021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1024 # ./install, which can be erroneously created by make from ./install.sh.
1025 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1026 echo "configure:1027: checking for a BSD compatible install" >&5
1027 if test -z "$INSTALL"; then
1028 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1032 for ac_dir in $PATH; do
1033 # Account for people who put trailing slashes in PATH elements.
1035 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1037 # OSF1 and SCO ODT 3.0 have their own names for install.
1038 # Don't use installbsd from OSF since it installs stuff as root
1040 for ac_prog in ginstall scoinst install; do
1041 if test -f $ac_dir/$ac_prog; then
1042 if test $ac_prog = install &&
1043 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1044 # AIX install. It has an incompatible calling convention.
1047 ac_cv_path_install="$ac_dir/$ac_prog -c"
1058 if test "${ac_cv_path_install+set}" = set; then
1059 INSTALL="$ac_cv_path_install"
1061 # As a last resort, use the slow shell script. We don't cache a
1062 # path for INSTALL within a source directory, because that will
1063 # break other packages using the cache if that directory is
1064 # removed, or if the path is relative.
1065 INSTALL="$ac_install_sh"
1068 echo "$ac_t""$INSTALL" 1>&6
1070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1071 # It thinks the first close brace ends the variable substitution.
1072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1079 if test x${cross_compiling} != xyes; then
1080 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether byte ordering is bigendian" >&5
1082 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 ac_cv_c_bigendian=unknown
1086 # See if sys/param.h defines the BYTE_ORDER macro.
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1090 #include <sys/types.h>
1091 #include <sys/param.h>
1094 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1099 if { (eval echo configure:1100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1101 # It does; now see whether it defined to BIG_ENDIAN or not.
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1105 #include <sys/types.h>
1106 #include <sys/param.h>
1109 #if BYTE_ORDER != BIG_ENDIAN
1114 if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1116 ac_cv_c_bigendian=yes
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1121 ac_cv_c_bigendian=no
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1129 if test $ac_cv_c_bigendian = unknown; then
1130 if test "$cross_compiling" = yes; then
1131 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1133 cat > conftest.$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1137 /* Are we little or big endian? From Harbison&Steele. */
1141 char c[sizeof (long)];
1144 exit (u.c[sizeof (long) - 1] == 1);
1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1149 ac_cv_c_bigendian=no
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 ac_cv_c_bigendian=yes
1162 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1163 if test $ac_cv_c_bigendian = yes; then
1164 cat >> confdefs.h <<\EOF
1165 #define WORDS_BIGENDIAN 1
1172 for ac_func in gettimeofday select strerror strtod strtol
1174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_func" >&5
1176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 /* System header to define __stub macros and hopefully few prototypes,
1183 which can conflict with char $ac_func(); below. */
1185 /* Override any gcc2 internal prototype to avoid an error. */
1186 /* We use char because int might match the return type of a gcc2
1187 builtin and then its argument prototype would still apply. */
1192 /* The GNU C library defines this for functions which it implements
1193 to always fail with ENOSYS. Some functions are actually named
1194 something starting with __ and the normal name is an alias. */
1195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205 eval "ac_cv_func_$ac_func=yes"
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 eval "ac_cv_func_$ac_func=no"
1215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1218 cat >> confdefs.h <<EOF
1219 #define $ac_tr_func 1
1223 echo "$ac_t""no" 1>&6
1227 for ac_func in setenv putenv
1229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1230 echo "configure:1231: checking for $ac_func" >&5
1231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1237 /* System header to define __stub macros and hopefully few prototypes,
1238 which can conflict with char $ac_func(); below. */
1240 /* Override any gcc2 internal prototype to avoid an error. */
1241 /* We use char because int might match the return type of a gcc2
1242 builtin and then its argument prototype would still apply. */
1247 /* The GNU C library defines this for functions which it implements
1248 to always fail with ENOSYS. Some functions are actually named
1249 something starting with __ and the normal name is an alias. */
1250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1260 eval "ac_cv_func_$ac_func=yes"
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1265 eval "ac_cv_func_$ac_func=no"
1270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1271 echo "$ac_t""yes" 1>&6
1272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1273 cat >> confdefs.h <<EOF
1274 #define $ac_tr_func 1
1278 echo "$ac_t""no" 1>&6
1282 echo $ac_n "checking for connect""... $ac_c" 1>&6
1283 echo "configure:1284: checking for connect" >&5
1284 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* System header to define __stub macros and hopefully few prototypes,
1291 which can conflict with char connect(); below. */
1293 /* Override any gcc2 internal prototype to avoid an error. */
1294 /* We use char because int might match the return type of a gcc2
1295 builtin and then its argument prototype would still apply. */
1300 /* The GNU C library defines this for functions which it implements
1301 to always fail with ENOSYS. Some functions are actually named
1302 something starting with __ and the normal name is an alias. */
1303 #if defined (__stub_connect) || defined (__stub___connect)
1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1313 eval "ac_cv_func_connect=yes"
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 eval "ac_cv_func_connect=no"
1323 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1329 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1330 echo "configure:1331: checking for connect in -lsocket" >&5
1331 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 ac_save_LIBS="$LIBS"
1336 LIBS="-lsocket $LIBS"
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 /* Override any gcc2 internal prototype to avoid an error. */
1341 /* We use char because int might match the return type of a gcc2
1342 builtin and then its argument prototype would still apply. */
1349 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351 eval "ac_cv_lib_$ac_lib_var=yes"
1353 echo "configure: failed program was:" >&5
1354 cat conftest.$ac_ext >&5
1356 eval "ac_cv_lib_$ac_lib_var=no"
1359 LIBS="$ac_save_LIBS"
1362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1363 echo "$ac_t""yes" 1>&6
1364 LIB="${LIB} -lsocket"
1366 echo "$ac_t""no" 1>&6
1372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1373 echo "configure:1374: checking for gethostbyname" >&5
1374 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 /* System header to define __stub macros and hopefully few prototypes,
1381 which can conflict with char gethostbyname(); below. */
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1386 char gethostbyname();
1390 /* The GNU C library defines this for functions which it implements
1391 to always fail with ENOSYS. Some functions are actually named
1392 something starting with __ and the normal name is an alias. */
1393 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1403 eval "ac_cv_func_gethostbyname=yes"
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 eval "ac_cv_func_gethostbyname=no"
1413 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1414 echo "$ac_t""yes" 1>&6
1417 echo "$ac_t""no" 1>&6
1419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1420 echo "configure:1421: checking for gethostbyname in -lnsl" >&5
1421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 ac_save_LIBS="$LIBS"
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* Override any gcc2 internal prototype to avoid an error. */
1431 /* We use char because int might match the return type of a gcc2
1432 builtin and then its argument prototype would still apply. */
1433 char gethostbyname();
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441 eval "ac_cv_lib_$ac_lib_var=yes"
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1446 eval "ac_cv_lib_$ac_lib_var=no"
1449 LIBS="$ac_save_LIBS"
1452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1453 echo "$ac_t""yes" 1>&6
1456 echo "$ac_t""no" 1>&6
1462 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1463 echo "configure:1464: checking for nanosleep" >&5
1464 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 /* System header to define __stub macros and hopefully few prototypes,
1471 which can conflict with char nanosleep(); below. */
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1480 /* The GNU C library defines this for functions which it implements
1481 to always fail with ENOSYS. Some functions are actually named
1482 something starting with __ and the normal name is an alias. */
1483 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1491 if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1493 eval "ac_cv_func_nanosleep=yes"
1495 echo "configure: failed program was:" >&5
1496 cat conftest.$ac_ext >&5
1498 eval "ac_cv_func_nanosleep=no"
1503 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1504 echo "$ac_t""yes" 1>&6
1507 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1510 echo "configure:1511: checking for nanosleep in -lrt" >&5
1511 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_save_LIBS="$LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error. */
1521 /* We use char because int might match the return type of a gcc2
1522 builtin and then its argument prototype would still apply. */
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 eval "ac_cv_lib_$ac_lib_var=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_lib_$ac_lib_var=no"
1539 LIBS="$ac_save_LIBS"
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543 echo "$ac_t""yes" 1>&6
1546 echo "$ac_t""no" 1>&6
1548 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1549 echo "configure:1550: checking for nanosleep in -lposix4" >&5
1550 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 ac_save_LIBS="$LIBS"
1555 LIBS="-lposix4 $LIBS"
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* Override any gcc2 internal prototype to avoid an error. */
1560 /* We use char because int might match the return type of a gcc2
1561 builtin and then its argument prototype would still apply. */
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1570 eval "ac_cv_lib_$ac_lib_var=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 eval "ac_cv_lib_$ac_lib_var=no"
1578 LIBS="$ac_save_LIBS"
1581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 LIB="${LIB} -lposix4"
1585 echo "$ac_t""no" 1>&6
1594 for ac_func in usleep
1596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1597 echo "configure:1598: checking for $ac_func" >&5
1598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 /* System header to define __stub macros and hopefully few prototypes,
1605 which can conflict with char $ac_func(); below. */
1607 /* Override any gcc2 internal prototype to avoid an error. */
1608 /* We use char because int might match the return type of a gcc2
1609 builtin and then its argument prototype would still apply. */
1614 /* The GNU C library defines this for functions which it implements
1615 to always fail with ENOSYS. Some functions are actually named
1616 something starting with __ and the normal name is an alias. */
1617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627 eval "ac_cv_func_$ac_func=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1632 eval "ac_cv_func_$ac_func=no"
1637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1640 cat >> confdefs.h <<EOF
1641 #define $ac_tr_func 1
1645 echo "$ac_t""no" 1>&6
1649 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1650 echo "configure:1651: checking for inet_aton" >&5
1651 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 /* System header to define __stub macros and hopefully few prototypes,
1658 which can conflict with char inet_aton(); below. */
1660 /* Override any gcc2 internal prototype to avoid an error. */
1661 /* We use char because int might match the return type of a gcc2
1662 builtin and then its argument prototype would still apply. */
1667 /* The GNU C library defines this for functions which it implements
1668 to always fail with ENOSYS. Some functions are actually named
1669 something starting with __ and the normal name is an alias. */
1670 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 eval "ac_cv_func_inet_aton=yes"
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 eval "ac_cv_func_inet_aton=no"
1690 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1694 echo "$ac_t""no" 1>&6
1696 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1697 echo "configure:1698: checking for inet_aton in -lresolv" >&5
1698 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 ac_save_LIBS="$LIBS"
1703 LIBS="-lresolv $LIBS"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 /* Override any gcc2 internal prototype to avoid an error. */
1708 /* We use char because int might match the return type of a gcc2
1709 builtin and then its argument prototype would still apply. */
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1718 eval "ac_cv_lib_$ac_lib_var=yes"
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1723 eval "ac_cv_lib_$ac_lib_var=no"
1726 LIBS="$ac_save_LIBS"
1729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1730 echo "$ac_t""yes" 1>&6
1731 LIB="${LIB} -lresolv"
1733 echo "$ac_t""no" 1>&6
1739 for ac_func in vasprintf
1741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_func" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $ac_func(); below. */
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772 eval "ac_cv_func_$ac_func=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1777 eval "ac_cv_func_$ac_func=no"
1782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1785 cat >> confdefs.h <<EOF
1786 #define $ac_tr_func 1
1790 echo "$ac_t""no" 1>&6
1796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_func" >&5
1798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $ac_func(); below. */
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1825 if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1827 eval "ac_cv_func_$ac_func=yes"
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1832 eval "ac_cv_func_$ac_func=no"
1837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1838 echo "$ac_t""yes" 1>&6
1839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1840 cat >> confdefs.h <<EOF
1841 #define $ac_tr_func 1
1845 echo "$ac_t""no" 1>&6
1850 for ac_func in sigrelse
1852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_func" >&5
1854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $ac_func(); below. */
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1881 if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1883 eval "ac_cv_func_$ac_func=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 eval "ac_cv_func_$ac_func=no"
1893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1896 cat >> confdefs.h <<EOF
1897 #define $ac_tr_func 1
1901 echo "$ac_t""no" 1>&6
1907 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1908 echo "configure:1909: checking for getopt_long" >&5
1909 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 /* System header to define __stub macros and hopefully few prototypes,
1916 which can conflict with char getopt_long(); below. */
1918 /* Override any gcc2 internal prototype to avoid an error. */
1919 /* We use char because int might match the return type of a gcc2
1920 builtin and then its argument prototype would still apply. */
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1936 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1938 eval "ac_cv_func_getopt_long=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1943 eval "ac_cv_func_getopt_long=no"
1948 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 cat >> confdefs.h <<\EOF
1951 #define HAVE_GETOPT_LONG 1
1955 echo "$ac_t""no" 1>&6
1956 # FreeBSD has a gnugetopt library for this:
1957 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1958 echo "configure:1959: checking for getopt_long in -lgnugetopt" >&5
1959 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 ac_save_LIBS="$LIBS"
1964 LIBS="-lgnugetopt $LIBS"
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1968 /* Override any gcc2 internal prototype to avoid an error. */
1969 /* We use char because int might match the return type of a gcc2
1970 builtin and then its argument prototype would still apply. */
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 eval "ac_cv_lib_$ac_lib_var=yes"
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 eval "ac_cv_lib_$ac_lib_var=no"
1987 LIBS="$ac_save_LIBS"
1990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1992 cat >> confdefs.h <<\EOF
1993 #define HAVE_GETOPT_LONG 1
1995 LIB="${LIB} -lgnugetopt"
1997 echo "$ac_t""no" 1>&6
2004 for ac_hdr in unistd.h
2006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_hdr" >&5
2009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 cat > conftest.$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2018 { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2020 if test -z "$ac_err"; then
2022 eval "ac_cv_header_$ac_safe=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2028 eval "ac_cv_header_$ac_safe=no"
2032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2035 cat >> confdefs.h <<EOF
2036 #define $ac_tr_hdr 1
2040 echo "$ac_t""no" 1>&6
2044 for ac_func in getpagesize
2046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_func" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_func 1
2095 echo "$ac_t""no" 1>&6
2099 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2100 echo "configure:2101: checking for working mmap" >&5
2101 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test "$cross_compiling" = yes; then
2105 ac_cv_func_mmap_fixed_mapped=no
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2111 /* Thanks to Mike Haertel and Jim Avera for this test.
2112 Here is a matrix of mmap possibilities:
2113 mmap private not fixed
2114 mmap private fixed at somewhere currently unmapped
2115 mmap private fixed at somewhere already mapped
2116 mmap shared not fixed
2117 mmap shared fixed at somewhere currently unmapped
2118 mmap shared fixed at somewhere already mapped
2119 For private mappings, we should verify that changes cannot be read()
2120 back from the file, nor mmap's back from the file at a different
2121 address. (There have been systems where private was not correctly
2122 implemented like the infamous i386 svr4.0, and systems where the
2123 VM page cache was not coherent with the filesystem buffer cache
2124 like early versions of FreeBSD and possibly contemporary NetBSD.)
2125 For shared mappings, we should conversely verify that changes get
2126 propogated back to all the places they're supposed to be.
2128 Grep wants private fixed already mapped.
2129 The main things grep needs to know about mmap are:
2130 * does it exist and is it safe to write into the mmap'd area
2131 * how to use it (BSD variants) */
2132 #include <sys/types.h>
2134 #include <sys/mman.h>
2136 /* This mess was copied from the GNU getpagesize.h. */
2137 #ifndef HAVE_GETPAGESIZE
2138 # ifdef HAVE_UNISTD_H
2139 # include <unistd.h>
2142 /* Assume that all systems that can run configure have sys/param.h. */
2143 # ifndef HAVE_SYS_PARAM_H
2144 # define HAVE_SYS_PARAM_H 1
2147 # ifdef _SC_PAGESIZE
2148 # define getpagesize() sysconf(_SC_PAGESIZE)
2149 # else /* no _SC_PAGESIZE */
2150 # ifdef HAVE_SYS_PARAM_H
2151 # include <sys/param.h>
2152 # ifdef EXEC_PAGESIZE
2153 # define getpagesize() EXEC_PAGESIZE
2154 # else /* no EXEC_PAGESIZE */
2156 # define getpagesize() NBPG * CLSIZE
2159 # endif /* no CLSIZE */
2160 # else /* no NBPG */
2162 # define getpagesize() NBPC
2163 # else /* no NBPC */
2165 # define getpagesize() PAGESIZE
2166 # endif /* PAGESIZE */
2167 # endif /* no NBPC */
2168 # endif /* no NBPG */
2169 # endif /* no EXEC_PAGESIZE */
2170 # else /* no HAVE_SYS_PARAM_H */
2171 # define getpagesize() 8192 /* punt totally */
2172 # endif /* no HAVE_SYS_PARAM_H */
2173 # endif /* no _SC_PAGESIZE */
2175 #endif /* no HAVE_GETPAGESIZE */
2178 extern "C" { void *malloc(unsigned); }
2186 char *data, *data2, *data3;
2190 pagesize = getpagesize();
2193 * First, make a file with some known garbage in it.
2195 data = malloc(pagesize);
2198 for (i = 0; i < pagesize; ++i)
2199 *(data + i) = rand();
2201 fd = creat("conftestmmap", 0600);
2204 if (write(fd, data, pagesize) != pagesize)
2209 * Next, try to mmap the file at a fixed address which
2210 * already has something else allocated at it. If we can,
2211 * also make sure that we see the same garbage.
2213 fd = open("conftestmmap", O_RDWR);
2216 data2 = malloc(2 * pagesize);
2219 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2220 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2223 for (i = 0; i < pagesize; ++i)
2224 if (*(data + i) != *(data2 + i))
2228 * Finally, make sure that changes to the mapped area
2229 * do not percolate back to the file as seen by read().
2230 * (This is a bug on some variants of i386 svr4.0.)
2232 for (i = 0; i < pagesize; ++i)
2233 *(data2 + i) = *(data2 + i) + 1;
2234 data3 = malloc(pagesize);
2237 if (read(fd, data3, pagesize) != pagesize)
2239 for (i = 0; i < pagesize; ++i)
2240 if (*(data + i) != *(data3 + i))
2243 unlink("conftestmmap");
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2250 ac_cv_func_mmap_fixed_mapped=yes
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 ac_cv_func_mmap_fixed_mapped=no
2262 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2263 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2264 cat >> confdefs.h <<\EOF
2270 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2271 echo "configure:2272: checking return type of signal handlers" >&5
2272 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 #include <sys/types.h>
2284 extern "C" void (*signal (int, void (*)(int)))(int);
2286 void (*signal ()) ();
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 ac_cv_type_signal=void
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 ac_cv_type_signal=int
2305 echo "$ac_t""$ac_cv_type_signal" 1>&6
2306 cat >> confdefs.h <<EOF
2307 #define RETSIGTYPE $ac_cv_type_signal
2311 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2312 echo "configure:2313: checking for dlopen in -ldl" >&5
2313 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_save_LIBS="$LIBS"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* Override any gcc2 internal prototype to avoid an error. */
2323 /* We use char because int might match the return type of a gcc2
2324 builtin and then its argument prototype would still apply. */
2331 if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 eval "ac_cv_lib_$ac_lib_var=yes"
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 eval "ac_cv_lib_$ac_lib_var=no"
2341 LIBS="$ac_save_LIBS"
2344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2345 echo "$ac_t""yes" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2352 echo "configure:2353: checking for pow in -lm" >&5
2353 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 ac_save_LIBS="$LIBS"
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373 eval "ac_cv_lib_$ac_lib_var=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2378 eval "ac_cv_lib_$ac_lib_var=no"
2381 LIBS="$ac_save_LIBS"
2384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2385 echo "$ac_t""yes" 1>&6
2386 LIB_YUV="${LIB_YUV} -lm"
2388 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for dvd_cdrom_ioctl in -ldvd""... $ac_c" 1>&6
2392 echo "configure:2393: checking for dvd_cdrom_ioctl in -ldvd" >&5
2393 ac_lib_var=`echo dvd'_'dvd_cdrom_ioctl | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 ac_save_LIBS="$LIBS"
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405 char dvd_cdrom_ioctl();
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2418 eval "ac_cv_lib_$ac_lib_var=no"
2421 LIBS="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
2428 echo "$ac_t""no" 1>&6
2432 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2433 CFLAGS="${CFLAGS} -I/usr/local/include"
2436 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2437 echo "configure:2438: checking for pthread_attr_init in -lpthread" >&5
2438 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 ac_save_LIBS="$LIBS"
2443 LIBS="-lpthread $LIBS"
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2450 char pthread_attr_init();
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 eval "ac_cv_lib_$ac_lib_var=yes"
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 eval "ac_cv_lib_$ac_lib_var=no"
2466 LIBS="$ac_save_LIBS"
2469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2471 THREAD_LIB="-lpthread"
2473 echo "$ac_t""no" 1>&6
2476 if test "x${THREAD_LIB}" = xerror; then
2477 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2478 echo "configure:2479: checking for pthread_attr_init in -lpthreads" >&5
2479 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 ac_save_LIBS="$LIBS"
2484 LIBS="-lpthreads $LIBS"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2491 char pthread_attr_init();
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 eval "ac_cv_lib_$ac_lib_var=no"
2507 LIBS="$ac_save_LIBS"
2510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 THREAD_LIB="-lpthreads"
2514 echo "$ac_t""no" 1>&6
2518 if test "x${THREAD_LIB}" = xerror; then
2519 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2520 echo "configure:2521: checking for pthread_attr_init in -lc_r" >&5
2521 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 ac_save_LIBS="$LIBS"
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 /* Override any gcc2 internal prototype to avoid an error. */
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533 char pthread_attr_init();
2539 if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2541 eval "ac_cv_lib_$ac_lib_var=yes"
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 eval "ac_cv_lib_$ac_lib_var=no"
2549 LIBS="$ac_save_LIBS"
2552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2556 echo "$ac_t""no" 1>&6
2560 if test "x${THREAD_LIB}" = xerror; then
2562 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2563 echo "configure:2564: checking for pthread_attr_init" >&5
2564 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 /* System header to define __stub macros and hopefully few prototypes,
2571 which can conflict with char pthread_attr_init(); below. */
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char pthread_attr_init();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2586 pthread_attr_init();
2591 if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 eval "ac_cv_func_pthread_attr_init=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_func_pthread_attr_init=no"
2603 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2607 echo "$ac_t""no" 1>&6
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <pthread.h>
2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2618 egrep "pthread_cond_t" >/dev/null 2>&1; then
2621 cat >> confdefs.h <<\EOF
2622 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <strings.h>
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "strncasecmp" >/dev/null 2>&1; then
2637 cat >> confdefs.h <<\EOF
2638 #define STRNCASECMP_IN_STRINGS_H 1
2645 for ac_hdr in stddef.h getopt.h strings.h
2647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_hdr" >&5
2650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2661 if test -z "$ac_err"; then
2663 eval "ac_cv_header_$ac_safe=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 eval "ac_cv_header_$ac_safe=no"
2673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2676 cat >> confdefs.h <<EOF
2677 #define $ac_tr_hdr 1
2681 echo "$ac_t""no" 1>&6
2685 for ac_hdr in sys/sockio.h fcntl.h sys/time.h
2687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_hdr" >&5
2690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2699 { (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2701 if test -z "$ac_err"; then
2703 eval "ac_cv_header_$ac_safe=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_header_$ac_safe=no"
2713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2716 cat >> confdefs.h <<EOF
2717 #define $ac_tr_hdr 1
2721 echo "$ac_t""no" 1>&6
2725 for ac_hdr in sys/soundcard.h machine/soundcard.h
2727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_hdr" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2739 { (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2741 if test -z "$ac_err"; then
2743 eval "ac_cv_header_$ac_safe=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 eval "ac_cv_header_$ac_safe=no"
2753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2756 cat >> confdefs.h <<EOF
2757 #define $ac_tr_hdr 1
2761 echo "$ac_t""no" 1>&6
2765 for ac_hdr in dlfcn.h image.h
2767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_hdr" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2783 eval "ac_cv_header_$ac_safe=yes"
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2789 eval "ac_cv_header_$ac_safe=no"
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2796 cat >> confdefs.h <<EOF
2797 #define $ac_tr_hdr 1
2801 echo "$ac_t""no" 1>&6
2805 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2821 if test -z "$ac_err"; then
2823 eval "ac_cv_header_$ac_safe=yes"
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2829 eval "ac_cv_header_$ac_safe=no"
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_hdr 1
2841 echo "$ac_t""no" 1>&6
2845 for ac_hdr in machine/param.h
2847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_hdr" >&5
2850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2859 { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2861 if test -z "$ac_err"; then
2863 eval "ac_cv_header_$ac_safe=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 eval "ac_cv_header_$ac_safe=no"
2873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2876 cat >> confdefs.h <<EOF
2877 #define $ac_tr_hdr 1
2881 echo "$ac_t""no" 1>&6
2886 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2890 echo "configure:2891: checking for $ac_hdr" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2917 cat >> confdefs.h <<EOF
2918 #define $ac_tr_hdr 1
2922 echo "$ac_t""no" 1>&6
2927 CFLAGS="${save_CFLAGS} -Wall -Werror"
2928 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2929 echo "configure:2930: checking for ntohl in sys/param.h" >&5
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 #include <sys/param.h>
2934 void foo() { int meuh; ntohl(meuh); }
2939 if { (eval echo configure:2940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2941 cat >> confdefs.h <<\EOF
2942 #define NTOHL_IN_SYS_PARAM_H 1
2945 echo "$ac_t""yes" 1>&6
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2950 echo "$ac_t""no" 1>&6
2954 CFLAGS="${save_CFLAGS} -finline-limit=31337"
2955 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2956 echo "configure:2957: checking if \$CC accepts -finline-limit" >&5
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2965 if { (eval echo configure:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2972 echo "$ac_t""no" 1>&6
2976 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
2977 echo $ac_n "checking if \$CC accepts -bundle -undefined suppress""... $ac_c" 1>&6
2978 echo "configure:2979: checking if \$CC accepts -bundle -undefined suppress" >&5
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2987 if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2989 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 echo "$ac_t""no" 1>&6
2998 CFLAGS="${save_CFLAGS} -shared"
2999 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3000 echo "configure:3001: checking if \$CC accepts -shared" >&5
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3009 if { (eval echo configure:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3016 echo "$ac_t""no" 1>&6
3020 if test x"${SOFLAGS}" = x; then
3021 try_SOFLAGS="-Wl,-soname -Wl,"
3022 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3023 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
3024 echo "configure:3025: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3035 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 echo "$ac_t""no" 1>&6
3045 if test x"${SOFLAGS}" = x; then
3046 try_SOFLAGS="-Wl,-h -Wl,"
3047 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3048 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
3049 echo "configure:3050: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 echo "$ac_t""no" 1>&6
3070 CFLAGS="${save_CFLAGS}"
3071 LDFLAGS="${save_LDFLAGS}"
3073 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3074 echo "configure:3075: checking for boolean_t in sys/types.h" >&5
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #include <sys/types.h>
3079 void quux() { boolean_t foo; }
3084 if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 cat >> confdefs.h <<\EOF
3087 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3090 echo "$ac_t""yes" 1>&6
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 echo "$ac_t""no" 1>&6
3098 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3099 echo "configure:3100: checking for boolean_t in pthread.h" >&5
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <pthread.h>
3104 void quux() { boolean_t foo; }
3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3111 cat >> confdefs.h <<\EOF
3112 #define BOOLEAN_T_IN_PTHREAD_H 1
3115 echo "$ac_t""yes" 1>&6
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 echo "$ac_t""no" 1>&6
3124 echo $ac_n "checking for working const""... $ac_c" 1>&6
3125 echo "configure:3126: checking for working const" >&5
3126 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3135 /* Ultrix mips cc rejects this. */
3136 typedef int charset[2]; const charset x;
3137 /* SunOS 4.1.1 cc rejects this. */
3138 char const *const *ccp;
3140 /* NEC SVR4.0.2 mips cc rejects this. */
3141 struct point {int x, y;};
3142 static struct point const zero = {0,0};
3143 /* AIX XL C 1.02.0.0 rejects this.
3144 It does not let you subtract one const X* pointer from another in an arm
3145 of an if-expression whose if-part is not a constant expression */
3146 const char *g = "string";
3147 ccp = &g + (g ? g-g : 0);
3148 /* HPUX 7.0 cc rejects these. */
3151 ccp = (char const *const *) p;
3152 { /* SCO 3.2v4 cc rejects this. */
3154 char const *s = 0 ? (char *) 0 : (char const *) 0;
3158 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3160 const int *foo = &x[0];
3163 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3164 typedef const int *iptr;
3168 { /* AIX XL C 1.02.0.0 rejects this saying
3169 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3170 struct s { int j; const int *ap[3]; };
3171 struct s *b; b->j = 5;
3173 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3179 if { (eval echo configure:3180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3191 echo "$ac_t""$ac_cv_c_const" 1>&6
3192 if test $ac_cv_c_const = no; then
3193 cat >> confdefs.h <<\EOF
3199 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3200 echo "configure:3201: checking for ANSI C header files" >&5
3201 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3213 { (eval echo configure:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3215 if test -z "$ac_err"; then
3217 ac_cv_header_stdc=yes
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 ac_cv_header_stdc=no
3227 if test $ac_cv_header_stdc = yes; then
3228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "memchr" >/dev/null 2>&1; then
3239 ac_cv_header_stdc=no
3245 if test $ac_cv_header_stdc = yes; then
3246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253 egrep "free" >/dev/null 2>&1; then
3257 ac_cv_header_stdc=no
3263 if test $ac_cv_header_stdc = yes; then
3264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3265 if test "$cross_compiling" = yes; then
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3272 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3275 int main () { int i; for (i = 0; i < 256; i++)
3276 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 ac_cv_header_stdc=no
3295 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3296 if test $ac_cv_header_stdc = yes; then
3297 cat >> confdefs.h <<\EOF
3298 #define STDC_HEADERS 1
3303 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3304 echo "configure:3305: checking for size_t" >&5
3305 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <sys/types.h>
3317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3320 ac_cv_type_size_t=yes
3323 ac_cv_type_size_t=no
3328 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3329 if test $ac_cv_type_size_t = no; then
3330 cat >> confdefs.h <<\EOF
3331 #define size_t unsigned
3336 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3337 echo "configure:3338: checking whether time.h and sys/time.h may both be included" >&5
3338 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <sys/types.h>
3345 #include <sys/time.h>
3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 ac_cv_header_time=yes
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3358 ac_cv_header_time=no
3363 echo "$ac_t""$ac_cv_header_time" 1>&6
3364 if test $ac_cv_header_time = yes; then
3365 cat >> confdefs.h <<\EOF
3366 #define TIME_WITH_SYS_TIME 1
3374 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3375 PLUGINS="${PLUGINS}"
3377 MMX_MODULES="yuvmmx idctmmx motionmmx"
3378 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3380 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3381 echo "configure:3382: checking if \$CC groks MMX inline assembly" >&5
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3393 echo "$ac_t""yes" 1>&6
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 echo "$ac_t""no" 1>&6
3402 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3403 echo "configure:3404: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3415 echo "$ac_t""yes" 1>&6
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 echo "$ac_t""no" 1>&6
3425 CAN_BUILD_LIBDVDCSS=0
3427 for ac_hdr in winioctl.h
3429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_hdr" >&5
3432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3441 { (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3443 if test -z "$ac_err"; then
3445 eval "ac_cv_header_$ac_safe=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_header_$ac_safe=no"
3455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6
3457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3458 cat >> confdefs.h <<EOF
3459 #define $ac_tr_hdr 1
3462 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3465 echo "$ac_t""no" 1>&6
3470 for ac_hdr in sys/ioctl.h
3472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_hdr" >&5
3475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3484 { (eval echo configure:3485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3486 if test -z "$ac_err"; then
3488 eval "ac_cv_header_$ac_safe=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_header_$ac_safe=no"
3498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3501 cat >> confdefs.h <<EOF
3502 #define $ac_tr_hdr 1
3505 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3506 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
3508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_hdr" >&5
3511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3520 { (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3522 if test -z "$ac_err"; then
3524 eval "ac_cv_header_$ac_safe=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_header_$ac_safe=no"
3534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3537 cat >> confdefs.h <<EOF
3538 #define $ac_tr_hdr 1
3542 echo "$ac_t""no" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/dvdio.h>
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 egrep "dvd_struct" >/dev/null 2>&1; then
3557 cat >> confdefs.h <<\EOF
3558 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/cdio.h>
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 egrep "dvd_struct" >/dev/null 2>&1; then
3575 cat >> confdefs.h <<\EOF
3576 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 #include <linux/cdrom.h>
3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 egrep "dvd_struct" >/dev/null 2>&1; then
3593 cat >> confdefs.h <<\EOF
3594 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 egrep "dvd_struct" >/dev/null 2>&1; then
3611 cat >> confdefs.h <<\EOF
3612 #define DVD_STRUCT_IN_DVD_H 1
3620 ac_safe=`echo "/usr/include/sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
3621 echo $ac_n "checking for /usr/include/sys/scsi/scsi_types.h""... $ac_c" 1>&6
3622 echo "configure:3623: checking for /usr/include/sys/scsi/scsi_types.h" >&5
3623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 </usr/include/sys/scsi/scsi_types.h>
3631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3632 { (eval echo configure:3633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3634 if test -z "$ac_err"; then
3636 eval "ac_cv_header_$ac_safe=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 eval "ac_cv_header_$ac_safe=no"
3646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3649 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
3650 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
3651 echo "configure:3652: checking for sys/scsi/impl/uscsi.h" >&5
3652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <sys/scsi/impl/uscsi.h>
3660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3661 { (eval echo configure:3662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3663 if test -z "$ac_err"; then
3665 eval "ac_cv_header_$ac_safe=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_header_$ac_safe=no"
3675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3678 cat >> confdefs.h <<\EOF
3679 #define SOLARIS_USCSI 1
3684 echo "$ac_t""no" 1>&6
3689 echo "$ac_t""no" 1>&6
3692 if test x$LINUX_DVD_STRUCT = x1; then
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE_LINUX_DVD_STRUCT 1
3698 if test x$BSD_DVD_STRUCT = x1; then
3699 cat >> confdefs.h <<\EOF
3700 #define HAVE_BSD_DVD_STRUCT 1
3707 echo "$ac_t""no" 1>&6
3725 # Check whether --enable-ppro or --disable-ppro was given.
3726 if test "${enable_ppro+set}" = set; then
3727 enableval="$enable_ppro"
3728 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3730 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3734 # Check whether --enable-mmx or --disable-mmx was given.
3735 if test "${enable_mmx+set}" = set; then
3736 enableval="$enable_mmx"
3737 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3738 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3740 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
3741 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3745 # Check whether --enable-altivec or --disable-altivec was given.
3746 if test "${enable_altivec+set}" = set; then
3747 enableval="$enable_altivec"
3748 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3749 BUILTINS="${BUILTINS} idctaltivec"
3750 LIB_IDCTALTIVEC="-framework vecLib"
3754 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3757 # Check whether --enable-debug or --disable-debug was given.
3758 if test "${enable_debug+set}" = set; then
3759 enableval="$enable_debug"
3760 if test x$enableval = xyes; then DEBUG=1; fi
3765 # Check whether --enable-stats or --disable-stats was given.
3766 if test "${enable_stats+set}" = set; then
3767 enableval="$enable_stats"
3768 if test x$enableval = xyes; then STATS=1; fi
3773 # Check whether --enable-trace or --disable-trace was given.
3774 if test "${enable_trace+set}" = set; then
3775 enableval="$enable_trace"
3776 if test x$enableval = xyes; then TRACE=1; fi
3781 # Check whether --enable-profiling or --disable-profiling was given.
3782 if test "${enable_profiling+set}" = set; then
3783 enableval="$enable_profiling"
3784 if test x$enableval = xyes; then PROFILING=1; fi
3788 # Check whether --enable-optimizations or --disable-optimizations was given.
3789 if test "${enable_optimizations+set}" = set; then
3790 enableval="$enable_optimizations"
3791 if test x$enableval = xno; then OPTIMS=0; fi
3797 # Check whether --enable-pth or --disable-pth was given.
3798 if test "${enable_pth+set}" = set; then
3799 enableval="$enable_pth"
3800 if test x$enableval = xyes; then
3801 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3802 echo "configure:3803: checking for pth_init in -lpth" >&5
3803 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_save_LIBS="$LIBS"
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 eval "ac_cv_lib_$ac_lib_var=no"
3831 LIBS="$ac_save_LIBS"
3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3838 cat >> confdefs.h <<EOF
3839 #define $ac_tr_lib 1
3845 echo "$ac_t""no" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 egrep "pth_init" >/dev/null 2>&1; then
3857 cat >> confdefs.h <<\EOF
3858 #define PTH_INIT_IN_PTH_H 1
3870 LIB="${LIB} ${THREAD_LIB}"
3875 # Check whether --with-dvdcss or --without-dvdcss was given.
3876 if test "${with_dvdcss+set}" = set; then
3877 withval="$with_dvdcss"
3878 case "x${withval}" in
3880 # local libdvdcss, statically linked
3881 if test x${CAN_BUILD_LIBDVDCSS} = x1
3885 BUILTINS="${BUILTINS} dvd"
3886 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3887 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3888 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3892 # local libdvdcss, dynamically linked
3893 if test x${CAN_BUILD_LIBDVDCSS} = x1
3896 BUILTINS="${BUILTINS} dvd"
3897 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3898 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
3899 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
3903 # don't use libdvdcss at all, build a DVD module that can dlopen() it
3905 BUILTINS="${BUILTINS} dvd"
3906 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
3907 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
3908 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
3909 LIB_DVD="${LIB_DVD} -ldl"
3910 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
3913 # existing libdvdcss
3914 BUILTINS="${BUILTINS} dvd"
3915 if test "x$withval" != "xyes"
3917 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
3918 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
3920 LIB_DVD="${LIB_DVD} -ldvdcss"
3921 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
3924 # user didn't decide, we choose to use local libdvdcss and link statically
3925 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
3926 if test x${CAN_BUILD_LIBDVDCSS} = x1
3930 BUILTINS="${BUILTINS} dvd"
3931 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3932 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3933 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3935 # XXX: no check for libdl is done, don't try this at home !
3937 BUILTINS="${BUILTINS} dvd"
3938 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
3939 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
3940 LIB_DVD="${LIB_DVD} -ldl"
3941 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
3946 # Check whether --enable-dummy or --disable-dummy was given.
3947 if test "${enable_dummy+set}" = set; then
3948 enableval="$enable_dummy"
3953 if test x$enable_dummy != xno
3955 BUILTINS="${BUILTINS} dummy"
3958 # Check whether --enable-null or --disable-null was given.
3959 if test "${enable_null+set}" = set; then
3960 enableval="$enable_null"
3965 if test x$enable_null != xno
3967 BUILTINS="${BUILTINS} null"
3970 # Check whether --enable-rc or --disable-rc was given.
3971 if test "${enable_rc+set}" = set; then
3972 enableval="$enable_rc"
3977 if test x$enable_rc != xno
3979 BUILTINS="${BUILTINS} rc"
3982 if test x$SYS = xbeos
3984 BUILTINS="${BUILTINS} beos"
3985 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3986 PLCFLAGS="${PLCFLAGS} -nostart"
3990 # Check whether --enable-dsp or --disable-dsp was given.
3991 if test "${enable_dsp+set}" = set; then
3992 enableval="$enable_dsp"
3997 if test x$enable_dsp != xno
4001 PLUGINS="${PLUGINS} dsp"
4005 # Check whether --enable-esd or --disable-esd was given.
4006 if test "${enable_esd+set}" = set; then
4007 enableval="$enable_esd"
4008 if test x$enable_esd = xyes
4010 # Extract the first word of "esd-config", so it can be a program name with args.
4011 set dummy esd-config; ac_word=$2
4012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_word" >&5
4014 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 case "$ESD_CONFIG" in
4019 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4022 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4027 for ac_dir in $ac_dummy; do
4028 test -z "$ac_dir" && ac_dir=.
4029 if test -f $ac_dir/$ac_word; then
4030 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4035 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4039 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4040 if test -n "$ESD_CONFIG"; then
4041 echo "$ac_t""$ESD_CONFIG" 1>&6
4043 echo "$ac_t""no" 1>&6
4046 if test x${ESD_CONFIG} != xno
4048 PLUGINS="${PLUGINS} esd"
4049 LIB_ESD="`${ESD_CONFIG} --libs`"
4055 # Check whether --enable-darwin or --disable-darwin was given.
4056 if test "${enable_darwin+set}" = set; then
4057 enableval="$enable_darwin"
4058 if test x$enable_darwin = xyes; then
4059 PLUGINS="${PLUGINS} darwin"
4060 LIB_DARWIN="-framework CoreAudio"
4065 # Check whether --enable-macosx or --disable-macosx was given.
4066 if test "${enable_macosx+set}" = set; then
4067 enableval="$enable_macosx"
4068 if test x$enable_macosx = xyes
4070 BUILTINS="${BUILTINS} macosx"
4071 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4072 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4073 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4076 for ac_hdr in Carbon/Carbon.h
4078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_hdr" >&5
4081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4090 { (eval echo configure:4091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4092 if test -z "$ac_err"; then
4094 eval "ac_cv_header_$ac_safe=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 eval "ac_cv_header_$ac_safe=no"
4104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4107 cat >> confdefs.h <<EOF
4108 #define $ac_tr_hdr 1
4110 BUILTINS="${BUILTINS} macosx"
4111 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4112 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4113 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4116 echo "$ac_t""no" 1>&6
4123 # Check whether --enable-qnx or --disable-qnx was given.
4124 if test "${enable_qnx+set}" = set; then
4125 enableval="$enable_qnx"
4129 if test x$enable_qnx != xno
4133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_hdr" >&5
4136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4145 { (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4147 if test -z "$ac_err"; then
4149 eval "ac_cv_header_$ac_safe=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 eval "ac_cv_header_$ac_safe=no"
4159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_hdr 1
4166 PLUGINS="${PLUGINS} qnx"
4167 LIB_QNX="-lasound -lph"
4170 echo "$ac_t""no" 1>&6
4176 # Check whether --enable-fb or --disable-fb was given.
4177 if test "${enable_fb+set}" = set; then
4178 enableval="$enable_fb"
4179 if test x$enable_fb = xyes
4181 PLUGINS="${PLUGINS} fb"
4186 # Check whether --with-ggi or --without-ggi was given.
4187 if test "${with_ggi+set}" = set; then
4189 if test "x$withval" != "xno"
4191 PLUGINS="${PLUGINS} ggi"
4192 if test "x$withval" != "xyes"
4194 LIB_GGI="-l"$withval
4202 # Check whether --enable-sdl or --disable-sdl was given.
4203 if test "${enable_sdl+set}" = set; then
4204 enableval="$enable_sdl"
4208 if test "x$enable_sdl" != "xno"
4210 # Extract the first word of "sdl12-config", so it can be a program name with args.
4211 set dummy sdl12-config; ac_word=$2
4212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4213 echo "configure:4214: checking for $ac_word" >&5
4214 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 case "$SDL12_CONFIG" in
4219 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4222 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4227 for ac_dir in $ac_dummy; do
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f $ac_dir/$ac_word; then
4230 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4235 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4239 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4240 if test -n "$SDL12_CONFIG"; then
4241 echo "$ac_t""$SDL12_CONFIG" 1>&6
4243 echo "$ac_t""no" 1>&6
4246 SDL_CONFIG=${SDL12_CONFIG}
4247 SDL_HEADER="SDL12/SDL.h"
4248 if test x${SDL_CONFIG} = xno
4250 # Extract the first word of "sdl11-config", so it can be a program name with args.
4251 set dummy sdl11-config; ac_word=$2
4252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4253 echo "configure:4254: checking for $ac_word" >&5
4254 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4257 case "$SDL11_CONFIG" in
4259 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4262 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4267 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f $ac_dir/$ac_word; then
4270 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4275 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4279 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4280 if test -n "$SDL11_CONFIG"; then
4281 echo "$ac_t""$SDL11_CONFIG" 1>&6
4283 echo "$ac_t""no" 1>&6
4286 SDL_CONFIG=${SDL11_CONFIG}
4287 SDL_HEADER="SDL11/SDL.h"
4289 if test x${SDL_CONFIG} = xno
4291 # Extract the first word of "sdl-config", so it can be a program name with args.
4292 set dummy sdl-config; ac_word=$2
4293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_word" >&5
4295 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 case "$SDL_CONFIG" in
4300 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4303 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4308 for ac_dir in $ac_dummy; do
4309 test -z "$ac_dir" && ac_dir=.
4310 if test -f $ac_dir/$ac_word; then
4311 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4316 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4320 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4321 if test -n "$SDL_CONFIG"; then
4322 echo "$ac_t""$SDL_CONFIG" 1>&6
4324 echo "$ac_t""no" 1>&6
4327 SDL_HEADER="SDL/SDL.h"
4329 if test x${SDL_CONFIG} != xno
4331 PLUGINS="${PLUGINS} sdl"
4332 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4333 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4335 CFLAGS="$CFLAGS $CFLAGS_SDL"
4336 for ac_hdr in ${SDL_HEADER}
4338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_hdr" >&5
4341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4350 { (eval echo configure:4351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4352 if test -z "$ac_err"; then
4354 eval "ac_cv_header_$ac_safe=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_header_$ac_safe=no"
4364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4367 cat >> confdefs.h <<EOF
4368 #define $ac_tr_hdr 1
4370 cat >> confdefs.h <<EOF
4371 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
4375 echo "$ac_t""no" 1>&6
4376 echo "The development package for SDL is not installed. Please install it"
4377 echo "and try again. Alternatively you can also configure with --disable-sdl."
4383 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
4385 echo "You need SDL version 1.1.5 or later. Install it and try again."
4386 echo "Alternatively, you can also configure with --disable-sdl."
4389 elif test "x$enable_sdl" = "xyes"
4391 echo "I couldn't find the SDL package. You can download libSDL from"
4392 echo "http://www.libsdl.org/, or configure with --disable-sdl. Have a"
4398 # Check whether --with-directx or --without-directx was given.
4399 if test "${with_directx+set}" = set; then
4400 withval="$with_directx"
4401 if test "x$withval" != "xno"
4403 PLUGINS="${PLUGINS} directx"
4404 if test "x$withval" != "xyes"
4406 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4407 INCLUDE="${INCLUDE} -I"$withval"/include"
4409 for ac_hdr in directx.h
4411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4413 echo "configure:4414: checking for $ac_hdr" >&5
4414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4423 { (eval echo configure:4424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4425 if test -z "$ac_err"; then
4427 eval "ac_cv_header_$ac_safe=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_header_$ac_safe=no"
4437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4440 cat >> confdefs.h <<EOF
4441 #define $ac_tr_hdr 1
4445 echo "$ac_t""no" 1>&6
4446 echo "Cannot find DirectX headers !"; exit
4450 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4455 if test "x$withval" = "x"
4457 for ac_hdr in directx.h
4459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4461 echo "configure:4462: checking for $ac_hdr" >&5
4462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4471 { (eval echo configure:4472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4473 if test -z "$ac_err"; then
4475 eval "ac_cv_header_$ac_safe=yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4481 eval "ac_cv_header_$ac_safe=no"
4485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4488 cat >> confdefs.h <<EOF
4489 #define $ac_tr_hdr 1
4491 PLUGINS="${PLUGINS} directx"
4492 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4494 echo "$ac_t""no" 1>&6
4500 # Check whether --with-glide or --without-glide was given.
4501 if test "${with_glide+set}" = set; then
4502 withval="$with_glide"
4503 if test "x$withval" != "xno"
4505 PLUGINS="${PLUGINS} glide"
4506 if test "x$withval" != "xyes"
4508 LIB_GLIDE="-l"$withval" -lm"
4510 LIB_GLIDE="-lglide2x -lm"
4516 # Check whether --enable-ncurses or --disable-ncurses was given.
4517 if test "${enable_ncurses+set}" = set; then
4518 enableval="$enable_ncurses"
4519 if test x$enable_ncurses = xyes; then
4520 PLUGINS="${PLUGINS} ncurses"
4521 LIB_NCURSES="-lncurses"
4526 # Check whether --enable-qt or --disable-qt was given.
4527 if test "${enable_qt+set}" = set; then
4528 enableval="$enable_qt"
4529 if test x$enable_qt = xyes; then
4530 PLUGINS="${PLUGINS} qt"
4531 ALIASES="${ALIASES} qvlc"
4532 LIB_QT="-lqt -L${QTDIR}/lib"
4533 if test -x ${QTDIR}/bin/moc
4535 MOC=${QTDIR}/bin/moc
4543 # Check whether --enable-kde or --disable-kde was given.
4544 if test "${enable_kde+set}" = set; then
4545 enableval="$enable_kde"
4546 if test x$enable_kde = xyes; then
4547 PLUGINS="${PLUGINS} kde"
4548 ALIASES="${ALIASES} kvlc"
4549 LIB_KDE="-L${KDEDIR}/lib -lkfile"
4550 if test -x ${QTDIR}/bin/moc
4552 MOC=${QTDIR}/bin/moc
4560 # Check whether --enable-gnome or --disable-gnome was given.
4561 if test "${enable_gnome+set}" = set; then
4562 enableval="$enable_gnome"
4563 if test x$enable_gnome = xyes; then
4564 PLUGINS="${PLUGINS} gnome"
4565 ALIASES="${ALIASES} gnome-vlc"
4566 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4571 # Check whether --enable-gtk or --disable-gtk was given.
4572 if test "${enable_gtk+set}" = set; then
4573 enableval="$enable_gtk"
4577 if test x$enable_gtk != xno
4579 # look for gtk-config
4580 # Extract the first word of "gtk-config", so it can be a program name with args.
4581 set dummy gtk-config; ac_word=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 case "$GTK_CONFIG" in
4589 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4592 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4597 for ac_dir in $ac_dummy; do
4598 test -z "$ac_dir" && ac_dir=.
4599 if test -f $ac_dir/$ac_word; then
4600 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4605 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4609 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4610 if test -n "$GTK_CONFIG"; then
4611 echo "$ac_t""$GTK_CONFIG" 1>&6
4613 echo "$ac_t""no" 1>&6
4616 if test -x ${GTK_CONFIG}
4618 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4619 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4621 # now look for the gtk.h header
4622 saved_CPPFLAGS=$CPPFLAGS
4623 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
4624 for ac_hdr in gtk/gtk.h
4626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_hdr" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4638 { (eval echo configure:4639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4640 if test -z "$ac_err"; then
4642 eval "ac_cv_header_$ac_safe=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_header_$ac_safe=no"
4652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4655 cat >> confdefs.h <<EOF
4656 #define $ac_tr_hdr 1
4659 PLUGINS="${PLUGINS} gtk"
4660 ALIASES="${ALIASES} gvlc"
4663 echo "$ac_t""no" 1>&6
4667 CPPFLAGS=$saved_CPPFLAGS
4670 # Check whether --enable-x11 or --disable-x11 was given.
4671 if test "${enable_x11+set}" = set; then
4672 enableval="$enable_x11"
4676 if test x$enable_x11 != xno; then
4677 if test x$x_includes = xNONE; then
4678 x_includes=/usr/X11R6/include
4680 if test x$x_libraries = xNONE; then
4681 x_libraries=/usr/X11R6/lib
4683 saved_CPPFLAGS=$CPPFLAGS
4684 CPPFLAGS="$CPPFLAGS -I$x_includes"
4685 for ac_hdr in X11/Xlib.h
4687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4703 eval "ac_cv_header_$ac_safe=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_header_$ac_safe=no"
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716 cat >> confdefs.h <<EOF
4717 #define $ac_tr_hdr 1
4720 PLUGINS="${PLUGINS} x11"
4721 LIB_X11="-L$x_libraries -lX11 -lXext"
4722 CFLAGS_X11="-I$x_includes"
4724 CPPFLAGS=$saved_CPPFLAGS
4726 echo "$ac_t""no" 1>&6
4732 # Check whether --enable-xvideo or --disable-xvideo was given.
4733 if test "${enable_xvideo+set}" = set; then
4734 enableval="$enable_xvideo"
4738 if test x$enable_xvideo != xno; then
4739 if test x$x_includes = xNONE; then
4740 x_includes=/usr/X11R6/include
4742 if test x$x_libraries = xNONE; then
4743 x_libraries=/usr/X11R6/lib
4745 saved_CPPFLAGS=$CPPFLAGS
4746 CPPFLAGS="$CPPFLAGS -I$x_includes"
4747 for ac_hdr in X11/extensions/Xv.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4782 PLUGINS="${PLUGINS} xvideo"
4783 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4784 CFLAGS_X11="-I$x_includes"
4786 CPPFLAGS=$saved_CPPFLAGS
4788 echo "$ac_t""no" 1>&6
4794 # Check whether --enable-alsa or --disable-alsa was given.
4795 if test "${enable_alsa+set}" = set; then
4796 enableval="$enable_alsa"
4797 if test x$enable_alsa = xyes
4799 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4800 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4801 echo "configure:4802: checking for sys/asoundlib.h" >&5
4802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 #include <sys/asoundlib.h>
4810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4811 { (eval echo configure:4812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4813 if test -z "$ac_err"; then
4815 eval "ac_cv_header_$ac_safe=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4821 eval "ac_cv_header_$ac_safe=no"
4825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4828 echo "configure:4829: checking for main in -lasound" >&5
4829 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 ac_save_LIBS="$LIBS"
4834 LIBS="-lasound $LIBS"
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 eval "ac_cv_lib_$ac_lib_var=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4850 eval "ac_cv_lib_$ac_lib_var=no"
4853 LIBS="$ac_save_LIBS"
4856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4860 echo "$ac_t""no" 1>&6
4865 echo "$ac_t""no" 1>&6
4869 if test x$have_alsa = xtrue
4871 PLUGINS="${PLUGINS} alsa"
4937 cat > confcache <<\EOF
4938 # This file is a shell script that caches the results of configure
4939 # tests run on this system so they can be shared between configure
4940 # scripts and configure runs. It is not useful on other systems.
4941 # If it contains results you don't want to keep, you may remove or edit it.
4943 # By default, configure uses ./config.cache as the cache file,
4944 # creating it if it does not exist already. You can give configure
4945 # the --cache-file=FILE option to use a different cache file; that is
4946 # what configure does when it calls configure scripts in
4947 # subdirectories, so they share the cache.
4948 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4949 # config.status only pays attention to the cache file if you give it the
4950 # --recheck option to rerun configure.
4953 # The following way of writing the cache mishandles newlines in values,
4954 # but we know of no workaround that is simple, portable, and efficient.
4955 # So, don't put newlines in cache variables' values.
4956 # Ultrix sh set writes to stderr and can't be redirected directly,
4957 # and sets the high bit in the cache file unless we assign to the vars.
4959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4961 # `set' does not quote correctly, so add quotes (double-quote substitution
4962 # turns \\\\ into \\, and sed turns \\ into \).
4964 -e "s/'/'\\\\''/g" \
4965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4968 # `set' quotes correctly as required by POSIX, so do not add quotes.
4969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4972 if cmp -s $cache_file confcache; then
4975 if test -w $cache_file; then
4976 echo "updating cache $cache_file"
4977 cat confcache > $cache_file
4979 echo "not updating unwritable cache $cache_file"
4984 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4987 # Let make expand exec_prefix.
4988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4990 # Any assignment to VPATH causes Sun make to only execute
4991 # the first set of double-colon rules, so remove it if not needed.
4992 # If there is a colon in the path, we need to keep it.
4993 if test "x$srcdir" = x.; then
4994 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4997 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4999 DEFS=-DHAVE_CONFIG_H
5001 # Without the "./", some shells look in PATH for config.status.
5002 : ${CONFIG_STATUS=./config.status}
5004 echo creating $CONFIG_STATUS
5005 rm -f $CONFIG_STATUS
5006 cat > $CONFIG_STATUS <<EOF
5008 # Generated automatically by configure.
5009 # Run this file to recreate the current configuration.
5010 # This directory was configured as follows,
5011 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5013 # $0 $ac_configure_args
5015 # Compiler output produced by configure, useful for debugging
5016 # configure, is in ./config.log if it exists.
5018 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5021 case "\$ac_option" in
5022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5023 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5024 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5025 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5026 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5028 -help | --help | --hel | --he | --h)
5029 echo "\$ac_cs_usage"; exit 0 ;;
5030 *) echo "\$ac_cs_usage"; exit 1 ;;
5034 ac_given_srcdir=$srcdir
5035 ac_given_INSTALL="$INSTALL"
5037 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5039 cat >> $CONFIG_STATUS <<EOF
5041 # Protect against being on the right side of a sed subst in config.status.
5042 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5043 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5047 s%@CFLAGS@%$CFLAGS%g
5048 s%@CPPFLAGS@%$CPPFLAGS%g
5049 s%@CXXFLAGS@%$CXXFLAGS%g
5050 s%@FFLAGS@%$FFLAGS%g
5052 s%@LDFLAGS@%$LDFLAGS%g
5054 s%@exec_prefix@%$exec_prefix%g
5055 s%@prefix@%$prefix%g
5056 s%@program_transform_name@%$program_transform_name%g
5057 s%@bindir@%$bindir%g
5058 s%@sbindir@%$sbindir%g
5059 s%@libexecdir@%$libexecdir%g
5060 s%@datadir@%$datadir%g
5061 s%@sysconfdir@%$sysconfdir%g
5062 s%@sharedstatedir@%$sharedstatedir%g
5063 s%@localstatedir@%$localstatedir%g
5064 s%@libdir@%$libdir%g
5065 s%@includedir@%$includedir%g
5066 s%@oldincludedir@%$oldincludedir%g
5067 s%@infodir@%$infodir%g
5068 s%@mandir@%$mandir%g
5070 s%@host_alias@%$host_alias%g
5071 s%@host_cpu@%$host_cpu%g
5072 s%@host_vendor@%$host_vendor%g
5073 s%@host_os@%$host_os%g
5074 s%@VLC_VERSION@%$VLC_VERSION%g
5075 s%@VLC_CODENAME@%$VLC_CODENAME%g
5076 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5077 s%@SET_MAKE@%$SET_MAKE%g
5080 s%@RANLIB@%$RANLIB%g
5081 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5082 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5083 s%@INSTALL_DATA@%$INSTALL_DATA%g
5084 s%@ESD_CONFIG@%$ESD_CONFIG%g
5085 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5086 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5087 s%@SDL_CONFIG@%$SDL_CONFIG%g
5088 s%@GTK_CONFIG@%$GTK_CONFIG%g
5091 s%@PLUGINS@%$PLUGINS%g
5092 s%@BUILTINS@%$BUILTINS%g
5093 s%@ALIASES@%$ALIASES%g
5094 s%@DEFINE@%$DEFINE%g
5095 s%@INCLUDE@%$INCLUDE%g
5100 s%@PROFILING@%$PROFILING%g
5101 s%@OPTIMS@%$OPTIMS%g
5102 s%@GETOPT@%$GETOPT%g
5104 s%@WINDRES@%$WINDRES%g
5105 s%@LCFLAGS@%$LCFLAGS%g
5106 s%@PLCFLAGS@%$PLCFLAGS%g
5107 s%@SOFLAGS@%$SOFLAGS%g
5109 s%@LIB_ALSA@%$LIB_ALSA%g
5110 s%@LIB_BEOS@%$LIB_BEOS%g
5111 s%@LIB_DARWIN@%$LIB_DARWIN%g
5112 s%@LIB_DVD@%$LIB_DVD%g
5113 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5114 s%@LIB_ESD@%$LIB_ESD%g
5115 s%@LIB_GGI@%$LIB_GGI%g
5116 s%@LIB_GLIDE@%$LIB_GLIDE%g
5117 s%@LIB_GNOME@%$LIB_GNOME%g
5118 s%@LIB_GTK@%$LIB_GTK%g
5119 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
5120 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5121 s%@LIB_KDE@%$LIB_KDE%g
5122 s%@LIB_MACOSX@%$LIB_MACOSX%g
5123 s%@LIB_QNX@%$LIB_QNX%g
5124 s%@LIB_NCURSES@%$LIB_NCURSES%g
5125 s%@LIB_QT@%$LIB_QT%g
5126 s%@LIB_TS@%$LIB_TS%g
5127 s%@LIB_SDL@%$LIB_SDL%g
5128 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5129 s%@LIB_X11@%$LIB_X11%g
5130 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5131 s%@LIB_YUV@%$LIB_YUV%g
5132 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5133 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5134 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5135 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5136 s%@CFLAGS_X11@%$CFLAGS_X11%g
5137 s%@OBJ_DVD@%$OBJ_DVD%g
5138 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
5143 cat >> $CONFIG_STATUS <<\EOF
5145 # Split the substitutions into bite-sized pieces for seds with
5146 # small command number limits, like on Digital OSF/1 and HP-UX.
5147 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5148 ac_file=1 # Number of current file.
5149 ac_beg=1 # First line for current file.
5150 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5153 while $ac_more_lines; do
5154 if test $ac_beg -gt 1; then
5155 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5157 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5159 if test ! -s conftest.s$ac_file; then
5161 rm -f conftest.s$ac_file
5163 if test -z "$ac_sed_cmds"; then
5164 ac_sed_cmds="sed -f conftest.s$ac_file"
5166 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5168 ac_file=`expr $ac_file + 1`
5170 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5173 if test -z "$ac_sed_cmds"; then
5178 cat >> $CONFIG_STATUS <<EOF
5180 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5182 cat >> $CONFIG_STATUS <<\EOF
5183 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5184 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5186 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5187 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5188 *) ac_file_in="${ac_file}.in" ;;
5191 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5193 # Remove last slash and all that follows it. Not all systems have dirname.
5194 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5196 # The file is in a subdirectory.
5197 test ! -d "$ac_dir" && mkdir "$ac_dir"
5198 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5199 # A "../" for each directory in $ac_dir_suffix.
5200 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5202 ac_dir_suffix= ac_dots=
5205 case "$ac_given_srcdir" in
5207 if test -z "$ac_dots"; then top_srcdir=.
5208 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5209 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5211 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5212 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5215 case "$ac_given_INSTALL" in
5216 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5217 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5220 echo creating "$ac_file"
5222 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5224 *Makefile*) ac_comsub="1i\\
5225 # $configure_input" ;;
5229 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5231 s%@configure_input@%$configure_input%g
5232 s%@srcdir@%$srcdir%g
5233 s%@top_srcdir@%$top_srcdir%g
5234 s%@INSTALL@%$INSTALL%g
5235 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5242 # ac_d sets the value in "#define NAME VALUE" lines.
5243 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5244 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5247 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5248 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5249 ac_uB='\([ ]\)%\1#\2define\3'
5252 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5253 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5254 ac_eB='$%\1#\2define\3'
5258 if test "${CONFIG_HEADERS+set}" != set; then
5260 cat >> $CONFIG_STATUS <<EOF
5261 CONFIG_HEADERS="include/defs.h"
5263 cat >> $CONFIG_STATUS <<\EOF
5265 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5268 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5269 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5270 *) ac_file_in="${ac_file}.in" ;;
5273 echo creating $ac_file
5275 rm -f conftest.frag conftest.in conftest.out
5276 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5277 cat $ac_file_inputs > conftest.in
5281 # Transform confdefs.h into a sed script conftest.vals that substitutes
5282 # the proper values into config.h.in to produce config.h. And first:
5283 # Protect against being on the right side of a sed subst in config.status.
5284 # Protect against being in an unquoted here document in config.status.
5286 cat > conftest.hdr <<\EOF
5289 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5293 sed -n -f conftest.hdr confdefs.h > conftest.vals
5296 # This sed command replaces #undef with comments. This is necessary, for
5297 # example, in the case of _POSIX_SOURCE, which is predefined and required
5298 # on some systems where configure will not decide to define it.
5299 cat >> conftest.vals <<\EOF
5300 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5303 # Break up conftest.vals because some shells have a limit on
5304 # the size of here documents, and old seds have small limits too.
5309 ac_lines=`grep -c . conftest.vals`
5310 # grep -c gives empty output for an empty file on some AIX systems.
5311 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5312 # Write a limited-size here document to conftest.frag.
5313 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5314 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5316 sed -f conftest.frag conftest.in > conftest.out
5318 mv conftest.out conftest.in
5320 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5322 mv conftest.tail conftest.vals
5326 cat >> $CONFIG_STATUS <<\EOF
5327 rm -f conftest.frag conftest.h
5328 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5329 cat conftest.in >> conftest.h
5331 if cmp -s $ac_file conftest.h 2>/dev/null; then
5332 echo "$ac_file is unchanged"
5335 # Remove last slash and all that follows it. Not all systems have dirname.
5336 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5338 # The file is in a subdirectory.
5339 test ! -d "$ac_dir" && mkdir "$ac_dir"
5342 mv conftest.h $ac_file
5347 cat >> $CONFIG_STATUS <<EOF
5350 cat >> $CONFIG_STATUS <<\EOF
5354 chmod +x $CONFIG_STATUS
5355 rm -fr confdefs* $ac_clean_files
5356 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5360 global configuration
5361 --------------------
5363 architecture : ${ARCH}
5364 optimizations : ${OPTIMS}"
5366 if test x${HAVE_VLC} = x1
5371 vlc version : ${VLC_VERSION}
5372 debug mode : ${DEBUG}
5373 statistics : ${STATS}
5374 trace mode : ${TRACE}
5375 profiling : ${PROFILING}
5376 need builtin getopt : ${GETOPT}
5377 built-in modules :${BUILTINS}
5378 plugin modules :${PLUGINS}
5379 vlc aliases :${ALIASES}"
5383 libdvdcss configuration
5384 -----------------------
5385 can be built : ${CAN_BUILD_LIBDVDCSS}
5386 will be built : ${LOCAL_LIBDVDCSS}"
5387 if test x${LOCAL_LIBDVDCSS} = x1
5389 echo "link statically : ${STATIC_LIBDVDCSS}"
5391 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
5395 You may now tune Makefile.opts at your convenience, for instance to choose
5396 which modules get compiled as plugins.
5398 if test x${HAVE_VLC} = x1
5400 echo "To build vlc and its plugins, type \`make vlc'."
5402 if test x${HAVE_LIBDVDCSS} = x1
5404 echo "To build libdvdcss only, type \`make libdvdcss'."