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-gprof Enable gprof profiling (default disabled)"
29 --enable-cprof Enable cprof profiling (default disabled)"
31 --disable-optimizations Disable compiler optimizations (default enabled)"
33 --enable-pth Enable GNU Pth support (default disabled)"
35 --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')"
37 --disable-dummy dummy module (default enabled)"
39 --disable-null Null module (default enabled)"
41 --disable-rc rc module (default enabled)"
43 --disable-dsp Linux /dev/dsp support (default enabled)"
45 --enable-esd Esound library support (default disabled)"
47 --enable-darwin Darwin sound support (default disabled)"
49 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
51 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
53 --enable-fb Linux framebuffer support (default disabled)"
55 --with-ggi[=name] GGI support (default disabled)"
57 --disable-sdl SDL support (default enabled)"
59 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
61 --with-directx[=name] Windows DirectX support (default enabled)"
63 --with-glide[=name] Glide (3dfx) support (default disabled)"
65 --enable-ncurses ncurses interface support (default disabled)"
67 --enable-qt Qt interface support (default disabled)"
69 --enable-kde KDE interface support (default disabled)"
71 --enable-gnome Gnome interface support (default disabled)"
73 --disable-gtk Gtk+ support (default enabled)"
75 --disable-x11 X11 support (default enabled)"
77 --disable-xvideo XVideo support (default enabled)"
79 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file=./config.cache
94 program_transform_name=s,x,x,
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host | --host | --hos | --ho)
257 -host=* | --host=* | --hos=* | --ho=*)
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
378 -site=* | --site=* | --sit=*)
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=include/common.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
594 if test -f $ac_dir/install-sh; then
596 ac_install_sh="$ac_aux_dir/install-sh -c"
598 elif test -f $ac_dir/install.sh; then
600 ac_install_sh="$ac_aux_dir/install.sh -c"
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612 # Make sure we can run config.sub.
613 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
614 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617 echo $ac_n "checking host system type""... $ac_c" 1>&6
618 echo "configure:619: checking host system type" >&5
621 case "$host_alias" in
625 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
626 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628 *) host_alias=$nonopt ;;
632 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
633 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$host" 1>&6
640 if test -r src/interface/main.c; then
649 if test -r extras/libdvdcss/libdvdcss.c; then
651 LIBDVDCSS_VERSION=0.0.3
655 save_CFLAGS="${CFLAGS}"
656 save_LDFLAGS="${LDFLAGS}"
658 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
659 echo "configure:660: checking whether ${MAKE-make} sets \${MAKE}" >&5
660 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
661 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 cat > conftestmake <<\EOF
666 @echo 'ac_maketemp="${MAKE}"'
668 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
669 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
670 if test -n "$ac_maketemp"; then
671 eval ac_cv_prog_make_${ac_make}_set=yes
673 eval ac_cv_prog_make_${ac_make}_set=no
677 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
678 echo "$ac_t""yes" 1>&6
681 echo "$ac_t""no" 1>&6
682 SET_MAKE="MAKE=${MAKE-make}"
685 # Extract the first word of "gcc", so it can be a program name with args.
686 set dummy gcc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
697 for ac_dir in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
715 # Extract the first word of "cc", so it can be a program name with args.
716 set dummy cc; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 if test -n "$CC"; then
723 ac_cv_prog_CC="$CC" # Let the user override the test.
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
728 for ac_dir in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir=.
730 if test -f $ac_dir/$ac_word; then
731 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
740 if test $ac_prog_rejected = yes; then
741 # We found a bogon in the path, so make sure we never use it.
742 set dummy $ac_cv_prog_CC
744 if test $# -gt 0; then
745 # We chose a different compiler from the bogus one.
746 # However, it has the same basename, so the bogon will be chosen
747 # first if we set CC to just the basename; use the full file name.
749 set dummy "$ac_dir/$ac_word" "$@"
757 if test -n "$CC"; then
758 echo "$ac_t""$CC" 1>&6
760 echo "$ac_t""no" 1>&6
763 if test -z "$CC"; then
766 # Extract the first word of "cl", so it can be a program name with args.
767 set dummy cl; ac_word=$2
768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 echo "configure:770: checking for $ac_word" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 if test -n "$CC"; then
774 ac_cv_prog_CC="$CC" # Let the user override the test.
776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
778 for ac_dir in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir=.
780 if test -f $ac_dir/$ac_word; then
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
792 echo "$ac_t""no" 1>&6
797 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
801 echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
805 ac_cpp='$CPP $CPPFLAGS'
806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
808 cross_compiling=$ac_cv_prog_cc_cross
810 cat > conftest.$ac_ext << EOF
812 #line 813 "configure"
813 #include "confdefs.h"
817 if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
818 ac_cv_prog_cc_works=yes
819 # If we can't run a trivial program, we are probably using a cross compiler.
820 if (./conftest; exit) 2>/dev/null; then
821 ac_cv_prog_cc_cross=no
823 ac_cv_prog_cc_cross=yes
826 echo "configure: failed program was:" >&5
827 cat conftest.$ac_ext >&5
828 ac_cv_prog_cc_works=no
832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
833 ac_cpp='$CPP $CPPFLAGS'
834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
836 cross_compiling=$ac_cv_prog_cc_cross
838 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
839 if test $ac_cv_prog_cc_works = no; then
840 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
844 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
845 cross_compiling=$ac_cv_prog_cc_cross
847 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
848 echo "configure:849: checking whether we are using GNU C" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 cat > conftest.c <<EOF
857 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
864 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
866 if test $ac_cv_prog_gcc = yes; then
872 ac_test_CFLAGS="${CFLAGS+set}"
873 ac_save_CFLAGS="$CFLAGS"
875 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
876 echo "configure:877: checking whether ${CC-cc} accepts -g" >&5
877 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 echo 'void f(){}' > conftest.c
881 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
890 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
891 if test "$ac_test_CFLAGS" = set; then
892 CFLAGS="$ac_save_CFLAGS"
893 elif test $ac_cv_prog_cc_g = yes; then
894 if test "$GCC" = yes; then
900 if test "$GCC" = yes; then
907 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
908 echo "configure:909: checking how to run the C preprocessor" >&5
909 # On Suns, sometimes $CPP names a directory.
910 if test -n "$CPP" && test -d "$CPP"; then
913 if test -z "$CPP"; then
914 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 # This must be in double quotes, not single quotes, because CPP may get
918 # substituted into the Makefile and "${CC-cc}" will confuse make.
920 # On the NeXT, cc -E runs the code through the compiler's parser,
921 # not just through cpp.
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
929 { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931 if test -z "$ac_err"; then
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
938 CPP="${CC-cc} -E -traditional-cpp"
939 cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948 if test -z "$ac_err"; then
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
955 CPP="${CC-cc} -nologo -E"
956 cat > conftest.$ac_ext <<EOF
957 #line 958 "configure"
958 #include "confdefs.h"
962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
963 { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
965 if test -z "$ac_err"; then
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
979 ac_cv_prog_CPP="$CPP"
981 CPP="$ac_cv_prog_CPP"
983 ac_cv_prog_CPP="$CPP"
985 echo "$ac_t""$CPP" 1>&6
987 # Extract the first word of "ranlib", so it can be a program name with args.
988 set dummy ranlib; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$RANLIB"; then
995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
999 for ac_dir in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_RANLIB="ranlib"
1007 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1010 RANLIB="$ac_cv_prog_RANLIB"
1011 if test -n "$RANLIB"; then
1012 echo "$ac_t""$RANLIB" 1>&6
1014 echo "$ac_t""no" 1>&6
1018 # Find a good install program. We prefer a C program (faster),
1019 # so one script is as good as another. But avoid the broken or
1020 # incompatible versions:
1021 # SysV /etc/install, /usr/sbin/install
1022 # SunOS /usr/etc/install
1023 # IRIX /sbin/install
1025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1028 # ./install, which can be erroneously created by make from ./install.sh.
1029 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1030 echo "configure:1031: checking for a BSD compatible install" >&5
1031 if test -z "$INSTALL"; then
1032 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1036 for ac_dir in $PATH; do
1037 # Account for people who put trailing slashes in PATH elements.
1039 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1041 # OSF1 and SCO ODT 3.0 have their own names for install.
1042 # Don't use installbsd from OSF since it installs stuff as root
1044 for ac_prog in ginstall scoinst install; do
1045 if test -f $ac_dir/$ac_prog; then
1046 if test $ac_prog = install &&
1047 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1048 # AIX install. It has an incompatible calling convention.
1051 ac_cv_path_install="$ac_dir/$ac_prog -c"
1062 if test "${ac_cv_path_install+set}" = set; then
1063 INSTALL="$ac_cv_path_install"
1065 # As a last resort, use the slow shell script. We don't cache a
1066 # path for INSTALL within a source directory, because that will
1067 # break other packages using the cache if that directory is
1068 # removed, or if the path is relative.
1069 INSTALL="$ac_install_sh"
1072 echo "$ac_t""$INSTALL" 1>&6
1074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1075 # It thinks the first close brace ends the variable substitution.
1076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1083 if test x${cross_compiling} != xyes; then
1084 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether byte ordering is bigendian" >&5
1086 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 ac_cv_c_bigendian=unknown
1090 # See if sys/param.h defines the BYTE_ORDER macro.
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 #include <sys/types.h>
1095 #include <sys/param.h>
1098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1103 if { (eval echo configure:1104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1105 # It does; now see whether it defined to BIG_ENDIAN or not.
1106 cat > conftest.$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1109 #include <sys/types.h>
1110 #include <sys/param.h>
1113 #if BYTE_ORDER != BIG_ENDIAN
1118 if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120 ac_cv_c_bigendian=yes
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1125 ac_cv_c_bigendian=no
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1133 if test $ac_cv_c_bigendian = unknown; then
1134 if test "$cross_compiling" = yes; then
1135 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1141 /* Are we little or big endian? From Harbison&Steele. */
1145 char c[sizeof (long)];
1148 exit (u.c[sizeof (long) - 1] == 1);
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1153 ac_cv_c_bigendian=no
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 ac_cv_c_bigendian=yes
1166 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1167 if test $ac_cv_c_bigendian = yes; then
1168 cat >> confdefs.h <<\EOF
1169 #define WORDS_BIGENDIAN 1
1176 for ac_func in gettimeofday select strerror strtod strtol
1178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_func" >&5
1180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 /* System header to define __stub macros and hopefully few prototypes,
1187 which can conflict with char $ac_func(); below. */
1189 /* Override any gcc2 internal prototype to avoid an error. */
1190 /* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1196 /* The GNU C library defines this for functions which it implements
1197 to always fail with ENOSYS. Some functions are actually named
1198 something starting with __ and the normal name is an alias. */
1199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 eval "ac_cv_func_$ac_func=yes"
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1214 eval "ac_cv_func_$ac_func=no"
1219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1220 echo "$ac_t""yes" 1>&6
1221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1222 cat >> confdefs.h <<EOF
1223 #define $ac_tr_func 1
1227 echo "$ac_t""no" 1>&6
1231 for ac_func in setenv putenv
1233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_func" >&5
1235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241 /* System header to define __stub macros and hopefully few prototypes,
1242 which can conflict with char $ac_func(); below. */
1244 /* Override any gcc2 internal prototype to avoid an error. */
1245 /* We use char because int might match the return type of a gcc2
1246 builtin and then its argument prototype would still apply. */
1251 /* The GNU C library defines this for functions which it implements
1252 to always fail with ENOSYS. Some functions are actually named
1253 something starting with __ and the normal name is an alias. */
1254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1262 if { (eval echo configure:1263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1264 eval "ac_cv_func_$ac_func=yes"
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1269 eval "ac_cv_func_$ac_func=no"
1274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1275 echo "$ac_t""yes" 1>&6
1276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1277 cat >> confdefs.h <<EOF
1278 #define $ac_tr_func 1
1282 echo "$ac_t""no" 1>&6
1286 echo $ac_n "checking for connect""... $ac_c" 1>&6
1287 echo "configure:1288: checking for connect" >&5
1288 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* System header to define __stub macros and hopefully few prototypes,
1295 which can conflict with char connect(); below. */
1297 /* Override any gcc2 internal prototype to avoid an error. */
1298 /* We use char because int might match the return type of a gcc2
1299 builtin and then its argument prototype would still apply. */
1304 /* The GNU C library defines this for functions which it implements
1305 to always fail with ENOSYS. Some functions are actually named
1306 something starting with __ and the normal name is an alias. */
1307 #if defined (__stub_connect) || defined (__stub___connect)
1315 if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1317 eval "ac_cv_func_connect=yes"
1319 echo "configure: failed program was:" >&5
1320 cat conftest.$ac_ext >&5
1322 eval "ac_cv_func_connect=no"
1327 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1328 echo "$ac_t""yes" 1>&6
1331 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1334 echo "configure:1335: checking for connect in -lsocket" >&5
1335 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 ac_save_LIBS="$LIBS"
1340 LIBS="-lsocket $LIBS"
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 /* Override any gcc2 internal prototype to avoid an error. */
1345 /* We use char because int might match the return type of a gcc2
1346 builtin and then its argument prototype would still apply. */
1353 if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1355 eval "ac_cv_lib_$ac_lib_var=yes"
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1360 eval "ac_cv_lib_$ac_lib_var=no"
1363 LIBS="$ac_save_LIBS"
1366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1367 echo "$ac_t""yes" 1>&6
1368 LIB="${LIB} -lsocket"
1370 echo "$ac_t""no" 1>&6
1376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1377 echo "configure:1378: checking for gethostbyname" >&5
1378 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 /* System header to define __stub macros and hopefully few prototypes,
1385 which can conflict with char gethostbyname(); below. */
1387 /* Override any gcc2 internal prototype to avoid an error. */
1388 /* We use char because int might match the return type of a gcc2
1389 builtin and then its argument prototype would still apply. */
1390 char gethostbyname();
1394 /* The GNU C library defines this for functions which it implements
1395 to always fail with ENOSYS. Some functions are actually named
1396 something starting with __ and the normal name is an alias. */
1397 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1405 if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1407 eval "ac_cv_func_gethostbyname=yes"
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1412 eval "ac_cv_func_gethostbyname=no"
1417 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1418 echo "$ac_t""yes" 1>&6
1421 echo "$ac_t""no" 1>&6
1423 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1424 echo "configure:1425: checking for gethostbyname in -lnsl" >&5
1425 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_save_LIBS="$LIBS"
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1437 char gethostbyname();
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
1466 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1467 echo "configure:1468: checking for nanosleep" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char nanosleep(); below. */
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1497 eval "ac_cv_func_nanosleep=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_func_nanosleep=no"
1507 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1511 echo "$ac_t""no" 1>&6
1513 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1514 echo "configure:1515: checking for nanosleep in -lrt" >&5
1515 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 ac_save_LIBS="$LIBS"
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 /* Override any gcc2 internal prototype to avoid an error. */
1525 /* We use char because int might match the return type of a gcc2
1526 builtin and then its argument prototype would still apply. */
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535 eval "ac_cv_lib_$ac_lib_var=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1540 eval "ac_cv_lib_$ac_lib_var=no"
1543 LIBS="$ac_save_LIBS"
1546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
1550 echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1553 echo "configure:1554: checking for nanosleep in -lposix4" >&5
1554 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 ac_save_LIBS="$LIBS"
1559 LIBS="-lposix4 $LIBS"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 eval "ac_cv_lib_$ac_lib_var=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 eval "ac_cv_lib_$ac_lib_var=no"
1582 LIBS="$ac_save_LIBS"
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1587 LIB="${LIB} -lposix4"
1589 echo "$ac_t""no" 1>&6
1598 for ac_func in usleep
1600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $ac_func" >&5
1602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* System header to define __stub macros and hopefully few prototypes,
1609 which can conflict with char $ac_func(); below. */
1611 /* Override any gcc2 internal prototype to avoid an error. */
1612 /* We use char because int might match the return type of a gcc2
1613 builtin and then its argument prototype would still apply. */
1618 /* The GNU C library defines this for functions which it implements
1619 to always fail with ENOSYS. Some functions are actually named
1620 something starting with __ and the normal name is an alias. */
1621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1631 eval "ac_cv_func_$ac_func=yes"
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 eval "ac_cv_func_$ac_func=no"
1641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1644 cat >> confdefs.h <<EOF
1645 #define $ac_tr_func 1
1649 echo "$ac_t""no" 1>&6
1653 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1654 echo "configure:1655: checking for inet_aton" >&5
1655 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1661 /* System header to define __stub macros and hopefully few prototypes,
1662 which can conflict with char inet_aton(); below. */
1664 /* Override any gcc2 internal prototype to avoid an error. */
1665 /* We use char because int might match the return type of a gcc2
1666 builtin and then its argument prototype would still apply. */
1671 /* The GNU C library defines this for functions which it implements
1672 to always fail with ENOSYS. Some functions are actually named
1673 something starting with __ and the normal name is an alias. */
1674 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1684 eval "ac_cv_func_inet_aton=yes"
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 eval "ac_cv_func_inet_aton=no"
1694 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1698 echo "$ac_t""no" 1>&6
1700 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1701 echo "configure:1702: checking for inet_aton in -lresolv" >&5
1702 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 ac_save_LIBS="$LIBS"
1707 LIBS="-lresolv $LIBS"
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* Override any gcc2 internal prototype to avoid an error. */
1712 /* We use char because int might match the return type of a gcc2
1713 builtin and then its argument prototype would still apply. */
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1722 eval "ac_cv_lib_$ac_lib_var=yes"
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 eval "ac_cv_lib_$ac_lib_var=no"
1730 LIBS="$ac_save_LIBS"
1733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1734 echo "$ac_t""yes" 1>&6
1735 LIB="${LIB} -lresolv"
1737 echo "$ac_t""no" 1>&6
1743 for ac_func in vasprintf
1745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_func" >&5
1747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $ac_func(); below. */
1756 /* Override any gcc2 internal prototype to avoid an error. */
1757 /* We use char because int might match the return type of a gcc2
1758 builtin and then its argument prototype would still apply. */
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 eval "ac_cv_func_$ac_func=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 eval "ac_cv_func_$ac_func=no"
1786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1789 cat >> confdefs.h <<EOF
1790 #define $ac_tr_func 1
1794 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_func" >&5
1802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $ac_func(); below. */
1811 /* Override any gcc2 internal prototype to avoid an error. */
1812 /* We use char because int might match the return type of a gcc2
1813 builtin and then its argument prototype would still apply. */
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 eval "ac_cv_func_$ac_func=yes"
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 eval "ac_cv_func_$ac_func=no"
1841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1844 cat >> confdefs.h <<EOF
1845 #define $ac_tr_func 1
1849 echo "$ac_t""no" 1>&6
1854 for ac_func in sigrelse
1856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_func" >&5
1858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $ac_func(); below. */
1867 /* Override any gcc2 internal prototype to avoid an error. */
1868 /* We use char because int might match the return type of a gcc2
1869 builtin and then its argument prototype would still apply. */
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 eval "ac_cv_func_$ac_func=yes"
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 eval "ac_cv_func_$ac_func=no"
1897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1900 cat >> confdefs.h <<EOF
1901 #define $ac_tr_func 1
1905 echo "$ac_t""no" 1>&6
1911 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1912 echo "configure:1913: checking for getopt_long" >&5
1913 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 /* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char getopt_long(); below. */
1922 /* Override any gcc2 internal prototype to avoid an error. */
1923 /* We use char because int might match the return type of a gcc2
1924 builtin and then its argument prototype would still apply. */
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1940 if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1942 eval "ac_cv_func_getopt_long=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 eval "ac_cv_func_getopt_long=no"
1952 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1953 echo "$ac_t""yes" 1>&6
1954 cat >> confdefs.h <<\EOF
1955 #define HAVE_GETOPT_LONG 1
1959 echo "$ac_t""no" 1>&6
1960 # FreeBSD has a gnugetopt library for this:
1961 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1962 echo "configure:1963: checking for getopt_long in -lgnugetopt" >&5
1963 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 ac_save_LIBS="$LIBS"
1968 LIBS="-lgnugetopt $LIBS"
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* Override any gcc2 internal prototype to avoid an error. */
1973 /* We use char because int might match the return type of a gcc2
1974 builtin and then its argument prototype would still apply. */
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1983 eval "ac_cv_lib_$ac_lib_var=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 eval "ac_cv_lib_$ac_lib_var=no"
1991 LIBS="$ac_save_LIBS"
1994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1995 echo "$ac_t""yes" 1>&6
1996 cat >> confdefs.h <<\EOF
1997 #define HAVE_GETOPT_LONG 1
1999 LIB="${LIB} -lgnugetopt"
2001 echo "$ac_t""no" 1>&6
2008 for ac_hdr in unistd.h
2010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_hdr" >&5
2013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2024 if test -z "$ac_err"; then
2026 eval "ac_cv_header_$ac_safe=yes"
2029 echo "configure: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2032 eval "ac_cv_header_$ac_safe=no"
2036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2039 cat >> confdefs.h <<EOF
2040 #define $ac_tr_hdr 1
2044 echo "$ac_t""no" 1>&6
2048 for ac_func in getpagesize
2050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_func" >&5
2052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* System header to define __stub macros and hopefully few prototypes,
2059 which can conflict with char $ac_func(); below. */
2061 /* Override any gcc2 internal prototype to avoid an error. */
2062 /* We use char because int might match the return type of a gcc2
2063 builtin and then its argument prototype would still apply. */
2068 /* The GNU C library defines this for functions which it implements
2069 to always fail with ENOSYS. Some functions are actually named
2070 something starting with __ and the normal name is an alias. */
2071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2081 eval "ac_cv_func_$ac_func=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 eval "ac_cv_func_$ac_func=no"
2091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2092 echo "$ac_t""yes" 1>&6
2093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2094 cat >> confdefs.h <<EOF
2095 #define $ac_tr_func 1
2099 echo "$ac_t""no" 1>&6
2103 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2104 echo "configure:2105: checking for working mmap" >&5
2105 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test "$cross_compiling" = yes; then
2109 ac_cv_func_mmap_fixed_mapped=no
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2115 /* Thanks to Mike Haertel and Jim Avera for this test.
2116 Here is a matrix of mmap possibilities:
2117 mmap private not fixed
2118 mmap private fixed at somewhere currently unmapped
2119 mmap private fixed at somewhere already mapped
2120 mmap shared not fixed
2121 mmap shared fixed at somewhere currently unmapped
2122 mmap shared fixed at somewhere already mapped
2123 For private mappings, we should verify that changes cannot be read()
2124 back from the file, nor mmap's back from the file at a different
2125 address. (There have been systems where private was not correctly
2126 implemented like the infamous i386 svr4.0, and systems where the
2127 VM page cache was not coherent with the filesystem buffer cache
2128 like early versions of FreeBSD and possibly contemporary NetBSD.)
2129 For shared mappings, we should conversely verify that changes get
2130 propogated back to all the places they're supposed to be.
2132 Grep wants private fixed already mapped.
2133 The main things grep needs to know about mmap are:
2134 * does it exist and is it safe to write into the mmap'd area
2135 * how to use it (BSD variants) */
2136 #include <sys/types.h>
2138 #include <sys/mman.h>
2140 /* This mess was copied from the GNU getpagesize.h. */
2141 #ifndef HAVE_GETPAGESIZE
2142 # ifdef HAVE_UNISTD_H
2143 # include <unistd.h>
2146 /* Assume that all systems that can run configure have sys/param.h. */
2147 # ifndef HAVE_SYS_PARAM_H
2148 # define HAVE_SYS_PARAM_H 1
2151 # ifdef _SC_PAGESIZE
2152 # define getpagesize() sysconf(_SC_PAGESIZE)
2153 # else /* no _SC_PAGESIZE */
2154 # ifdef HAVE_SYS_PARAM_H
2155 # include <sys/param.h>
2156 # ifdef EXEC_PAGESIZE
2157 # define getpagesize() EXEC_PAGESIZE
2158 # else /* no EXEC_PAGESIZE */
2160 # define getpagesize() NBPG * CLSIZE
2163 # endif /* no CLSIZE */
2164 # else /* no NBPG */
2166 # define getpagesize() NBPC
2167 # else /* no NBPC */
2169 # define getpagesize() PAGESIZE
2170 # endif /* PAGESIZE */
2171 # endif /* no NBPC */
2172 # endif /* no NBPG */
2173 # endif /* no EXEC_PAGESIZE */
2174 # else /* no HAVE_SYS_PARAM_H */
2175 # define getpagesize() 8192 /* punt totally */
2176 # endif /* no HAVE_SYS_PARAM_H */
2177 # endif /* no _SC_PAGESIZE */
2179 #endif /* no HAVE_GETPAGESIZE */
2182 extern "C" { void *malloc(unsigned); }
2190 char *data, *data2, *data3;
2194 pagesize = getpagesize();
2197 * First, make a file with some known garbage in it.
2199 data = malloc(pagesize);
2202 for (i = 0; i < pagesize; ++i)
2203 *(data + i) = rand();
2205 fd = creat("conftestmmap", 0600);
2208 if (write(fd, data, pagesize) != pagesize)
2213 * Next, try to mmap the file at a fixed address which
2214 * already has something else allocated at it. If we can,
2215 * also make sure that we see the same garbage.
2217 fd = open("conftestmmap", O_RDWR);
2220 data2 = malloc(2 * pagesize);
2223 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2224 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2225 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2227 for (i = 0; i < pagesize; ++i)
2228 if (*(data + i) != *(data2 + i))
2232 * Finally, make sure that changes to the mapped area
2233 * do not percolate back to the file as seen by read().
2234 * (This is a bug on some variants of i386 svr4.0.)
2236 for (i = 0; i < pagesize; ++i)
2237 *(data2 + i) = *(data2 + i) + 1;
2238 data3 = malloc(pagesize);
2241 if (read(fd, data3, pagesize) != pagesize)
2243 for (i = 0; i < pagesize; ++i)
2244 if (*(data + i) != *(data3 + i))
2247 unlink("conftestmmap");
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2254 ac_cv_func_mmap_fixed_mapped=yes
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 ac_cv_func_mmap_fixed_mapped=no
2266 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2268 cat >> confdefs.h <<\EOF
2274 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2275 echo "configure:2276: checking return type of signal handlers" >&5
2276 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 #include <sys/types.h>
2288 extern "C" void (*signal (int, void (*)(int)))(int);
2290 void (*signal ()) ();
2297 if { (eval echo configure:2298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2299 ac_cv_type_signal=void
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 ac_cv_type_signal=int
2309 echo "$ac_t""$ac_cv_type_signal" 1>&6
2310 cat >> confdefs.h <<EOF
2311 #define RETSIGTYPE $ac_cv_type_signal
2315 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2316 echo "configure:2317: checking for dlopen in -ldl" >&5
2317 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 ac_save_LIBS="$LIBS"
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 /* Override any gcc2 internal prototype to avoid an error. */
2327 /* We use char because int might match the return type of a gcc2
2328 builtin and then its argument prototype would still apply. */
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2337 eval "ac_cv_lib_$ac_lib_var=yes"
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 eval "ac_cv_lib_$ac_lib_var=no"
2345 LIBS="$ac_save_LIBS"
2348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2349 echo "$ac_t""yes" 1>&6
2352 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2356 echo "configure:2357: checking for pow in -lm" >&5
2357 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 ac_save_LIBS="$LIBS"
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 eval "ac_cv_lib_$ac_lib_var=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 eval "ac_cv_lib_$ac_lib_var=no"
2385 LIBS="$ac_save_LIBS"
2388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 LIB_YUV="${LIB_YUV} -lm"
2392 echo "$ac_t""no" 1>&6
2397 if test "x${THREAD_LIB}" = xerror; then
2398 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2399 echo "configure:2400: checking for pthread_attr_init in -lpthread" >&5
2400 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 ac_save_LIBS="$LIBS"
2405 LIBS="-lpthread $LIBS"
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* Override any gcc2 internal prototype to avoid an error. */
2410 /* We use char because int might match the return type of a gcc2
2411 builtin and then its argument prototype would still apply. */
2412 char pthread_attr_init();
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 eval "ac_cv_lib_$ac_lib_var=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_lib_$ac_lib_var=no"
2428 LIBS="$ac_save_LIBS"
2431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 THREAD_LIB="-lpthread"
2435 echo "$ac_t""no" 1>&6
2439 if test "x${THREAD_LIB}" = xerror; then
2440 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2441 echo "configure:2442: checking for pthread_attr_init in -lpthreads" >&5
2442 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 ac_save_LIBS="$LIBS"
2447 LIBS="-lpthreads $LIBS"
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2454 char pthread_attr_init();
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 eval "ac_cv_lib_$ac_lib_var=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_lib_$ac_lib_var=no"
2470 LIBS="$ac_save_LIBS"
2473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2474 echo "$ac_t""yes" 1>&6
2475 THREAD_LIB="-lpthreads"
2477 echo "$ac_t""no" 1>&6
2481 if test "x${THREAD_LIB}" = xerror; then
2482 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2483 echo "configure:2484: checking for pthread_attr_init in -lc_r" >&5
2484 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 ac_save_LIBS="$LIBS"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 /* Override any gcc2 internal prototype to avoid an error. */
2494 /* We use char because int might match the return type of a gcc2
2495 builtin and then its argument prototype would still apply. */
2496 char pthread_attr_init();
2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2504 eval "ac_cv_lib_$ac_lib_var=yes"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2509 eval "ac_cv_lib_$ac_lib_var=no"
2512 LIBS="$ac_save_LIBS"
2515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2519 echo "$ac_t""no" 1>&6
2523 if test "x${THREAD_LIB}" = xerror; then
2524 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2525 echo "configure:2526: checking for pthread_attr_init" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char pthread_attr_init(); below. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char pthread_attr_init();
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2548 pthread_attr_init();
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 eval "ac_cv_func_pthread_attr_init=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_func_pthread_attr_init=no"
2565 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2569 echo "$ac_t""no" 1>&6
2575 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2576 echo "configure:2577: checking for cthread_fork in -lthreads" >&5
2577 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 ac_save_LIBS="$LIBS"
2582 LIBS="-lthreads $LIBS"
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* Override any gcc2 internal prototype to avoid an error. */
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589 char cthread_fork();
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 eval "ac_cv_lib_$ac_lib_var=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_lib_$ac_lib_var=no"
2605 LIBS="$ac_save_LIBS"
2608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 THREAD_LIB="-lthreads"
2612 echo "$ac_t""no" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 #include <pthread.h>
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622 egrep "pthread_cond_t" >/dev/null 2>&1; then
2625 cat >> confdefs.h <<\EOF
2626 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <strings.h>
2637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2638 egrep "strncasecmp" >/dev/null 2>&1; then
2641 cat >> confdefs.h <<\EOF
2642 #define STRNCASECMP_IN_STRINGS_H 1
2649 for ac_hdr in stddef.h getopt.h strings.h
2651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_hdr" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 eval "ac_cv_header_$ac_safe=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_header_$ac_safe=no"
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2680 cat >> confdefs.h <<EOF
2681 #define $ac_tr_hdr 1
2685 echo "$ac_t""no" 1>&6
2689 for ac_hdr in sys/sockio.h fcntl.h sys/time.h
2691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2707 eval "ac_cv_header_$ac_safe=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2713 eval "ac_cv_header_$ac_safe=no"
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h <<EOF
2721 #define $ac_tr_hdr 1
2725 echo "$ac_t""no" 1>&6
2729 for ac_hdr in sys/soundcard.h machine/soundcard.h
2731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 eval "ac_cv_header_$ac_safe=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2753 eval "ac_cv_header_$ac_safe=no"
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h <<EOF
2761 #define $ac_tr_hdr 1
2765 echo "$ac_t""no" 1>&6
2769 for ac_hdr in dlfcn.h image.h
2771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2787 eval "ac_cv_header_$ac_safe=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 eval "ac_cv_header_$ac_safe=no"
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2805 echo "$ac_t""no" 1>&6
2809 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2813 echo "configure:2814: checking for $ac_hdr" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2827 eval "ac_cv_header_$ac_safe=yes"
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2833 eval "ac_cv_header_$ac_safe=no"
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2840 cat >> confdefs.h <<EOF
2841 #define $ac_tr_hdr 1
2845 echo "$ac_t""no" 1>&6
2849 for ac_hdr in machine/param.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2867 eval "ac_cv_header_$ac_safe=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2873 eval "ac_cv_header_$ac_safe=no"
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2885 echo "$ac_t""no" 1>&6
2890 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_hdr" >&5
2895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2904 { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2906 if test -z "$ac_err"; then
2908 eval "ac_cv_header_$ac_safe=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 eval "ac_cv_header_$ac_safe=no"
2918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2919 echo "$ac_t""yes" 1>&6
2920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2921 cat >> confdefs.h <<EOF
2922 #define $ac_tr_hdr 1
2926 echo "$ac_t""no" 1>&6
2931 CFLAGS="${save_CFLAGS} -Wall -Werror"
2932 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2933 echo "configure:2934: checking for ntohl in sys/param.h" >&5
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <sys/param.h>
2938 void foo() { int meuh; ntohl(meuh); }
2943 if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2945 cat >> confdefs.h <<\EOF
2946 #define NTOHL_IN_SYS_PARAM_H 1
2949 echo "$ac_t""yes" 1>&6
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 echo "$ac_t""no" 1>&6
2958 CFLAGS="${save_CFLAGS} -finline-limit-20000"
2959 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2960 echo "configure:2961: checking if \$CC accepts -finline-limit" >&5
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2969 if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 save_CFLAGS="${save_CFLAGS} -finline-limit-20000"; echo "$ac_t""yes" 1>&6
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 echo "$ac_t""no" 1>&6
2980 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
2981 echo $ac_n "checking if \$CC accepts -bundle -undefined suppress""... $ac_c" 1>&6
2982 echo "configure:2983: checking if \$CC accepts -bundle -undefined suppress" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2991 if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2998 echo "$ac_t""no" 1>&6
3002 CFLAGS="${save_CFLAGS} -shared"
3003 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3004 echo "configure:3005: checking if \$CC accepts -shared" >&5
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3015 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3020 echo "$ac_t""no" 1>&6
3024 if test x"${SOFLAGS}" = x; then
3025 try_SOFLAGS="-Wl,-soname -Wl,"
3026 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3027 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
3028 echo "configure:3029: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 echo "$ac_t""no" 1>&6
3049 if test x"${SOFLAGS}" = x; then
3050 try_SOFLAGS="-Wl,-h -Wl,"
3051 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3052 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
3053 echo "configure:3054: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 echo "$ac_t""no" 1>&6
3074 CFLAGS="${save_CFLAGS}"
3075 LDFLAGS="${save_LDFLAGS}"
3077 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3078 echo "configure:3079: checking for boolean_t in sys/types.h" >&5
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 #include <sys/types.h>
3083 void quux() { boolean_t foo; }
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 cat >> confdefs.h <<\EOF
3091 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3094 echo "$ac_t""yes" 1>&6
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 echo "$ac_t""no" 1>&6
3102 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3103 echo "configure:3104: checking for boolean_t in pthread.h" >&5
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <pthread.h>
3108 void quux() { boolean_t foo; }
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 cat >> confdefs.h <<\EOF
3116 #define BOOLEAN_T_IN_PTHREAD_H 1
3119 echo "$ac_t""yes" 1>&6
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 echo "$ac_t""no" 1>&6
3127 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3128 echo "configure:3129: checking for boolean_t in cthreads.h" >&5
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #include <cthreads.h>
3133 void quux() { boolean_t foo; }
3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 cat >> confdefs.h <<\EOF
3141 #define BOOLEAN_T_IN_CTHREADS_H 1
3144 echo "$ac_t""yes" 1>&6
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3149 echo "$ac_t""no" 1>&6
3153 echo $ac_n "checking for working const""... $ac_c" 1>&6
3154 echo "configure:3155: checking for working const" >&5
3155 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3164 /* Ultrix mips cc rejects this. */
3165 typedef int charset[2]; const charset x;
3166 /* SunOS 4.1.1 cc rejects this. */
3167 char const *const *ccp;
3169 /* NEC SVR4.0.2 mips cc rejects this. */
3170 struct point {int x, y;};
3171 static struct point const zero = {0,0};
3172 /* AIX XL C 1.02.0.0 rejects this.
3173 It does not let you subtract one const X* pointer from another in an arm
3174 of an if-expression whose if-part is not a constant expression */
3175 const char *g = "string";
3176 ccp = &g + (g ? g-g : 0);
3177 /* HPUX 7.0 cc rejects these. */
3180 ccp = (char const *const *) p;
3181 { /* SCO 3.2v4 cc rejects this. */
3183 char const *s = 0 ? (char *) 0 : (char const *) 0;
3187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3189 const int *foo = &x[0];
3192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3193 typedef const int *iptr;
3197 { /* AIX XL C 1.02.0.0 rejects this saying
3198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3199 struct s { int j; const int *ap[3]; };
3200 struct s *b; b->j = 5;
3202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3220 echo "$ac_t""$ac_cv_c_const" 1>&6
3221 if test $ac_cv_c_const = no; then
3222 cat >> confdefs.h <<\EOF
3228 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3229 echo "configure:3230: checking for ANSI C header files" >&5
3230 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3246 ac_cv_header_stdc=yes
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 ac_cv_header_stdc=no
3256 if test $ac_cv_header_stdc = yes; then
3257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264 egrep "memchr" >/dev/null 2>&1; then
3268 ac_cv_header_stdc=no
3274 if test $ac_cv_header_stdc = yes; then
3275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3282 egrep "free" >/dev/null 2>&1; then
3286 ac_cv_header_stdc=no
3292 if test $ac_cv_header_stdc = yes; then
3293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3294 if test "$cross_compiling" = yes; then
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3301 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3302 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3304 int main () { int i; for (i = 0; i < 256; i++)
3305 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 ac_cv_header_stdc=no
3324 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3325 if test $ac_cv_header_stdc = yes; then
3326 cat >> confdefs.h <<\EOF
3327 #define STDC_HEADERS 1
3332 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3333 echo "configure:3334: checking for size_t" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3349 ac_cv_type_size_t=yes
3352 ac_cv_type_size_t=no
3357 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3358 if test $ac_cv_type_size_t = no; then
3359 cat >> confdefs.h <<\EOF
3360 #define size_t unsigned
3365 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3366 echo "configure:3367: checking whether time.h and sys/time.h may both be included" >&5
3367 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <sys/types.h>
3374 #include <sys/time.h>
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382 ac_cv_header_time=yes
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 ac_cv_header_time=no
3392 echo "$ac_t""$ac_cv_header_time" 1>&6
3393 if test $ac_cv_header_time = yes; then
3394 cat >> confdefs.h <<\EOF
3395 #define TIME_WITH_SYS_TIME 1
3401 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3402 echo "configure:3403: checking __attribute__ ((aligned ())) support" >&5
3403 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_cv_c_attribute_aligned=0
3407 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3413 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3416 if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3427 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3428 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3429 cat >> confdefs.h <<EOF
3430 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3439 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3440 PLUGINS="${PLUGINS}"
3442 MMX_MODULES="yuvmmx idctmmx motionmmx"
3443 MMXEXT_MODULES="idctmmxext motionmmxext"
3444 THREEDNOW_MODULES="imdct3dn downmix3dn"
3445 SSE_MODULES="imdctsse downmixsse"
3447 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3448 echo "configure:3449: checking if \$CC groks MMX inline assembly" >&5
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3460 echo "$ac_t""yes" 1>&6
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3465 echo "$ac_t""no" 1>&6
3469 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3470 echo "configure:3471: checking if \$CC groks MMX EXT inline assembly" >&5
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3482 echo "$ac_t""yes" 1>&6
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3492 echo "configure:3493: checking if \$CC groks 3D Now! inline assembly" >&5
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 void quux(){void *p;asm("pfadd %%mm1,%%mm2"::"r"(p));}
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3504 echo "$ac_t""yes" 1>&6
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3509 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3514 echo "configure:3515: checking if \$CC groks SSE inline assembly" >&5
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 void quux(){void *p;asm("xorps %%xmm1,%%xmm2"::"r"(p));}
3523 if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3525 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3526 echo "$ac_t""yes" 1>&6
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 echo "$ac_t""no" 1>&6
3536 CAN_BUILD_LIBDVDCSS=0
3538 for ac_hdr in winioctl.h
3540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_hdr" >&5
3543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3552 { (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3554 if test -z "$ac_err"; then
3556 eval "ac_cv_header_$ac_safe=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3562 eval "ac_cv_header_$ac_safe=no"
3566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3569 cat >> confdefs.h <<EOF
3570 #define $ac_tr_hdr 1
3573 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3576 echo "$ac_t""no" 1>&6
3581 for ac_hdr in sys/ioctl.h
3583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $ac_hdr" >&5
3586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595 { (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3597 if test -z "$ac_err"; then
3599 eval "ac_cv_header_$ac_safe=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3605 eval "ac_cv_header_$ac_safe=no"
3609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3612 cat >> confdefs.h <<EOF
3613 #define $ac_tr_hdr 1
3616 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3617 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
3619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_hdr" >&5
3622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3635 eval "ac_cv_header_$ac_safe=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 eval "ac_cv_header_$ac_safe=no"
3645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3648 cat >> confdefs.h <<EOF
3649 #define $ac_tr_hdr 1
3653 echo "$ac_t""no" 1>&6
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/dvdio.h>
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 egrep "dvd_struct" >/dev/null 2>&1; then
3668 cat >> confdefs.h <<\EOF
3669 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 #include <sys/cdio.h>
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 egrep "dvd_struct" >/dev/null 2>&1; then
3686 cat >> confdefs.h <<\EOF
3687 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #include <linux/cdrom.h>
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 egrep "dvd_struct" >/dev/null 2>&1; then
3704 cat >> confdefs.h <<\EOF
3705 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720 egrep "dvd_struct" >/dev/null 2>&1; then
3723 cat >> confdefs.h <<\EOF
3724 #define DVD_STRUCT_IN_DVD_H 1
3727 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
3733 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
3735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3737 echo "configure:3738: checking for $ac_hdr" >&5
3738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3749 if test -z "$ac_err"; then
3751 eval "ac_cv_header_$ac_safe=yes"
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3757 eval "ac_cv_header_$ac_safe=no"
3761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_hdr 1
3769 cat >> confdefs.h <<\EOF
3770 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
3773 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
3777 echo "$ac_t""no" 1>&6
3785 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
3786 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
3787 echo "configure:3788: checking for sys/scsi/scsi_types.h" >&5
3788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <sys/scsi/scsi_types.h>
3796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3797 { (eval echo configure:3798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3799 if test -z "$ac_err"; then
3801 eval "ac_cv_header_$ac_safe=yes"
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3807 eval "ac_cv_header_$ac_safe=no"
3811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3814 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
3815 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
3816 echo "configure:3817: checking for sys/scsi/impl/uscsi.h" >&5
3817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include <sys/scsi/impl/uscsi.h>
3825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3826 { (eval echo configure:3827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3828 if test -z "$ac_err"; then
3830 eval "ac_cv_header_$ac_safe=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 eval "ac_cv_header_$ac_safe=no"
3840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3843 cat >> confdefs.h <<\EOF
3844 #define SOLARIS_USCSI 1
3849 echo "$ac_t""no" 1>&6
3854 echo "$ac_t""no" 1>&6
3857 if test x$LINUX_DVD_STRUCT = x1; then
3858 cat >> confdefs.h <<\EOF
3859 #define HAVE_LINUX_DVD_STRUCT 1
3863 if test x$BSD_DVD_STRUCT = x1; then
3864 cat >> confdefs.h <<\EOF
3865 #define HAVE_BSD_DVD_STRUCT 1
3872 echo "$ac_t""no" 1>&6
3890 # Check whether --enable-ppro or --disable-ppro was given.
3891 if test "${enable_ppro+set}" = set; then
3892 enableval="$enable_ppro"
3893 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3895 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3899 # Check whether --enable-mmx or --disable-mmx was given.
3900 if test "${enable_mmx+set}" = set; then
3901 enableval="$enable_mmx"
3902 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3903 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3905 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";
3906 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3910 # Check whether --enable-altivec or --disable-altivec was given.
3911 if test "${enable_altivec+set}" = set; then
3912 enableval="$enable_altivec"
3913 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3914 BUILTINS="${BUILTINS} idctaltivec"
3915 LIB_IDCTALTIVEC="-framework vecLib"
3919 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3922 # Check whether --enable-debug or --disable-debug was given.
3923 if test "${enable_debug+set}" = set; then
3924 enableval="$enable_debug"
3925 if test x$enableval = xyes; then DEBUG=1; fi
3930 # Check whether --enable-stats or --disable-stats was given.
3931 if test "${enable_stats+set}" = set; then
3932 enableval="$enable_stats"
3933 if test x$enableval = xyes; then STATS=1; fi
3938 # Check whether --enable-trace or --disable-trace was given.
3939 if test "${enable_trace+set}" = set; then
3940 enableval="$enable_trace"
3941 if test x$enableval = xyes; then TRACE=1; fi
3946 # Check whether --enable-gprof or --disable-gprof was given.
3947 if test "${enable_gprof+set}" = set; then
3948 enableval="$enable_gprof"
3949 if test x$enableval = xyes; then GPROF=1; fi
3954 # Check whether --enable-cprof or --disable-cprof was given.
3955 if test "${enable_cprof+set}" = set; then
3956 enableval="$enable_cprof"
3957 if test x$enableval = xyes;
3959 LIB="${LIB} -lcprof"
3966 # Check whether --enable-optimizations or --disable-optimizations was given.
3967 if test "${enable_optimizations+set}" = set; then
3968 enableval="$enable_optimizations"
3969 if test x$enableval = xno; then OPTIMS=0; fi
3975 # Check whether --enable-pth or --disable-pth was given.
3976 if test "${enable_pth+set}" = set; then
3977 enableval="$enable_pth"
3978 if test x$enableval = xyes; then
3979 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3980 echo "configure:3981: checking for pth_init in -lpth" >&5
3981 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_save_LIBS="$LIBS"
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3999 if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4001 eval "ac_cv_lib_$ac_lib_var=yes"
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4006 eval "ac_cv_lib_$ac_lib_var=no"
4009 LIBS="$ac_save_LIBS"
4012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4016 cat >> confdefs.h <<EOF
4017 #define $ac_tr_lib 1
4023 echo "$ac_t""no" 1>&6
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 egrep "pth_init" >/dev/null 2>&1; then
4035 cat >> confdefs.h <<\EOF
4036 #define PTH_INIT_IN_PTH_H 1
4048 LIB="${LIB} ${THREAD_LIB}"
4053 # Check whether --with-dvdcss or --without-dvdcss was given.
4054 if test "${with_dvdcss+set}" = set; then
4055 withval="$with_dvdcss"
4056 case "x${withval}" in
4058 # local libdvdcss, statically linked
4059 if test x${CAN_BUILD_LIBDVDCSS} = x1
4063 BUILTINS="${BUILTINS} dvd"
4064 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4065 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4066 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4070 # local libdvdcss, dynamically linked
4071 if test x${CAN_BUILD_LIBDVDCSS} = x1
4074 BUILTINS="${BUILTINS} dvd"
4075 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4076 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4077 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4081 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4083 BUILTINS="${BUILTINS} dvd"
4084 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4085 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4086 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4087 LIB_DVD="${LIB_DVD} -ldl"
4088 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4091 # existing libdvdcss
4092 BUILTINS="${BUILTINS} dvd"
4093 if test "x$withval" != "xyes"
4095 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4096 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4098 LIB_DVD="${LIB_DVD} -ldvdcss"
4099 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4102 # user didn't decide, we choose to use local libdvdcss and link statically
4103 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4104 if test x${CAN_BUILD_LIBDVDCSS} = x1
4108 BUILTINS="${BUILTINS} dvd"
4109 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4110 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4111 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4113 # XXX: no check for libdl is done, don't try this at home !
4115 BUILTINS="${BUILTINS} dvd"
4116 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4117 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4118 LIB_DVD="${LIB_DVD} -ldl"
4119 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4124 # Check whether --enable-dummy or --disable-dummy was given.
4125 if test "${enable_dummy+set}" = set; then
4126 enableval="$enable_dummy"
4131 if test x$enable_dummy != xno
4133 BUILTINS="${BUILTINS} dummy"
4136 # Check whether --enable-null or --disable-null was given.
4137 if test "${enable_null+set}" = set; then
4138 enableval="$enable_null"
4143 if test x$enable_null != xno
4145 BUILTINS="${BUILTINS} null"
4148 # Check whether --enable-rc or --disable-rc was given.
4149 if test "${enable_rc+set}" = set; then
4150 enableval="$enable_rc"
4155 if test x$enable_rc != xno
4157 BUILTINS="${BUILTINS} rc"
4160 if test x$SYS = xbeos
4162 BUILTINS="${BUILTINS} beos"
4163 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4164 PLCFLAGS="${PLCFLAGS} -nostart"
4168 # Check whether --enable-dsp or --disable-dsp was given.
4169 if test "${enable_dsp+set}" = set; then
4170 enableval="$enable_dsp"
4175 if test x$enable_dsp != xno
4179 PLUGINS="${PLUGINS} dsp"
4183 # Check whether --enable-esd or --disable-esd was given.
4184 if test "${enable_esd+set}" = set; then
4185 enableval="$enable_esd"
4186 if test x$enable_esd = xyes
4188 # Extract the first word of "esd-config", so it can be a program name with args.
4189 set dummy esd-config; ac_word=$2
4190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_word" >&5
4192 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 case "$ESD_CONFIG" in
4197 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4200 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4205 for ac_dir in $ac_dummy; do
4206 test -z "$ac_dir" && ac_dir=.
4207 if test -f $ac_dir/$ac_word; then
4208 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4213 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4217 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4218 if test -n "$ESD_CONFIG"; then
4219 echo "$ac_t""$ESD_CONFIG" 1>&6
4221 echo "$ac_t""no" 1>&6
4224 if test x${ESD_CONFIG} != xno
4226 PLUGINS="${PLUGINS} esd"
4227 LIB_ESD="`${ESD_CONFIG} --libs`"
4233 # Check whether --enable-darwin or --disable-darwin was given.
4234 if test "${enable_darwin+set}" = set; then
4235 enableval="$enable_darwin"
4236 if test x$enable_darwin = xyes; then
4237 PLUGINS="${PLUGINS} darwin"
4238 LIB_DARWIN="-framework CoreAudio"
4243 # Check whether --enable-macosx or --disable-macosx was given.
4244 if test "${enable_macosx+set}" = set; then
4245 enableval="$enable_macosx"
4246 if test x$enable_macosx = xyes
4248 BUILTINS="${BUILTINS} macosx"
4249 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4250 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4251 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4254 for ac_hdr in Carbon/Carbon.h
4256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_hdr" >&5
4259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268 { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270 if test -z "$ac_err"; then
4272 eval "ac_cv_header_$ac_safe=yes"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 eval "ac_cv_header_$ac_safe=no"
4282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4285 cat >> confdefs.h <<EOF
4286 #define $ac_tr_hdr 1
4288 BUILTINS="${BUILTINS} macosx"
4289 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4290 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4291 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4294 echo "$ac_t""no" 1>&6
4301 # Check whether --enable-qnx or --disable-qnx was given.
4302 if test "${enable_qnx+set}" = set; then
4303 enableval="$enable_qnx"
4307 if test x$enable_qnx != xno
4311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_hdr" >&5
4314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4323 { (eval echo configure:4324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4325 if test -z "$ac_err"; then
4327 eval "ac_cv_header_$ac_safe=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4333 eval "ac_cv_header_$ac_safe=no"
4337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4340 cat >> confdefs.h <<EOF
4341 #define $ac_tr_hdr 1
4344 PLUGINS="${PLUGINS} qnx"
4345 LIB_QNX="-lasound -lph"
4348 echo "$ac_t""no" 1>&6
4354 # Check whether --enable-fb or --disable-fb was given.
4355 if test "${enable_fb+set}" = set; then
4356 enableval="$enable_fb"
4357 if test x$enable_fb = xyes
4359 PLUGINS="${PLUGINS} fb"
4364 # Check whether --with-ggi or --without-ggi was given.
4365 if test "${with_ggi+set}" = set; then
4367 if test "x$withval" != "xno"
4369 PLUGINS="${PLUGINS} ggi"
4370 if test "x$withval" != "xyes"
4372 LIB_GGI="-l"$withval
4380 # Check whether --enable-sdl or --disable-sdl was given.
4381 if test "${enable_sdl+set}" = set; then
4382 enableval="$enable_sdl"
4386 if test "x$enable_sdl" != "xno"
4389 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4390 if test "${with_sdl_config_path+set}" = set; then
4391 withval="$with_sdl_config_path"
4392 if test "x$withval" != "xno"
4394 SDL_PATH=$withval:$PATH
4398 # Extract the first word of "sdl12-config", so it can be a program name with args.
4399 set dummy sdl12-config; ac_word=$2
4400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_word" >&5
4402 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 case "$SDL12_CONFIG" in
4407 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4410 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4414 ac_dummy="$SDL_PATH"
4415 for ac_dir in $ac_dummy; do
4416 test -z "$ac_dir" && ac_dir=.
4417 if test -f $ac_dir/$ac_word; then
4418 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4423 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4427 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4428 if test -n "$SDL12_CONFIG"; then
4429 echo "$ac_t""$SDL12_CONFIG" 1>&6
4431 echo "$ac_t""no" 1>&6
4434 SDL_CONFIG=${SDL12_CONFIG}
4435 SDL_HEADER="SDL12/SDL.h"
4436 if test x${SDL_CONFIG} = xno
4438 # Extract the first word of "sdl11-config", so it can be a program name with args.
4439 set dummy sdl11-config; ac_word=$2
4440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_word" >&5
4442 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 case "$SDL11_CONFIG" in
4447 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4450 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4454 ac_dummy="$SDL_PATH"
4455 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 if test -f $ac_dir/$ac_word; then
4458 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4463 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4467 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4468 if test -n "$SDL11_CONFIG"; then
4469 echo "$ac_t""$SDL11_CONFIG" 1>&6
4471 echo "$ac_t""no" 1>&6
4474 SDL_CONFIG=${SDL11_CONFIG}
4475 SDL_HEADER="SDL11/SDL.h"
4477 if test x${SDL_CONFIG} = xno
4479 # Extract the first word of "sdl-config", so it can be a program name with args.
4480 set dummy sdl-config; ac_word=$2
4481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4482 echo "configure:4483: checking for $ac_word" >&5
4483 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 case "$SDL_CONFIG" in
4488 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4491 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="$SDL_PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4504 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4508 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4509 if test -n "$SDL_CONFIG"; then
4510 echo "$ac_t""$SDL_CONFIG" 1>&6
4512 echo "$ac_t""no" 1>&6
4515 SDL_HEADER="SDL/SDL.h"
4517 if test x${SDL_CONFIG} != xno
4519 PLUGINS="${PLUGINS} sdl"
4520 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4521 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4522 save_CPPFLAGS=$CPPFLAGS
4523 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
4524 for ac_hdr in ${SDL_HEADER}
4526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4542 eval "ac_cv_header_$ac_safe=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 eval "ac_cv_header_$ac_safe=no"
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_hdr 1
4558 cat >> confdefs.h <<EOF
4559 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
4563 echo "$ac_t""no" 1>&6
4564 echo "The development package for SDL is not installed. Please install it"
4565 echo "and try again. Alternatively you can also configure with --disable-sdl."
4570 CPPFLAGS=$save_CPPFLAGS
4571 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
4573 echo "You need SDL version 1.1.5 or later. Install it and try again."
4574 echo "Alternatively, you can also configure with --disable-sdl."
4577 elif test "x$enable_sdl" = "xyes"
4579 echo "I couldn't find the SDL package. You can download libSDL from"
4580 echo "http://www.libsdl.org/, or configure with --disable-sdl. Have a"
4586 # Check whether --with-directx or --without-directx was given.
4587 if test "${with_directx+set}" = set; then
4588 withval="$with_directx"
4589 if test "x$withval" != "xno"
4591 PLUGINS="${PLUGINS} directx"
4592 if test "x$withval" != "xyes"
4594 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4595 INCLUDE="${INCLUDE} -I"$withval"/include"
4597 for ac_hdr in directx.h
4599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_hdr 1
4633 echo "$ac_t""no" 1>&6
4634 echo "Cannot find DirectX headers !"; exit
4638 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4643 if test "x$withval" = "x"
4645 for ac_hdr in directx.h
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4679 PLUGINS="${PLUGINS} directx"
4680 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4682 echo "$ac_t""no" 1>&6
4688 # Check whether --with-glide or --without-glide was given.
4689 if test "${with_glide+set}" = set; then
4690 withval="$with_glide"
4691 if test "x$withval" != "xno"
4693 PLUGINS="${PLUGINS} glide"
4694 if test "x$withval" != "xyes"
4696 LIB_GLIDE="-l"$withval" -lm"
4698 LIB_GLIDE="-lglide2x -lm"
4704 # Check whether --enable-ncurses or --disable-ncurses was given.
4705 if test "${enable_ncurses+set}" = set; then
4706 enableval="$enable_ncurses"
4707 if test x$enable_ncurses = xyes; then
4708 PLUGINS="${PLUGINS} ncurses"
4709 LIB_NCURSES="-lncurses"
4714 # Check whether --enable-qt or --disable-qt was given.
4715 if test "${enable_qt+set}" = set; then
4716 enableval="$enable_qt"
4717 if test x$enable_qt = xyes; then
4718 PLUGINS="${PLUGINS} qt"
4719 ALIASES="${ALIASES} qvlc"
4720 LIB_QT="-lqt -L${QTDIR}/lib"
4721 if test -x ${QTDIR}/bin/moc
4723 MOC=${QTDIR}/bin/moc
4731 # Check whether --enable-kde or --disable-kde was given.
4732 if test "${enable_kde+set}" = set; then
4733 enableval="$enable_kde"
4734 if test x$enable_kde = xyes; then
4735 PLUGINS="${PLUGINS} kde"
4736 ALIASES="${ALIASES} kvlc"
4737 LIB_KDE="-L${KDEDIR}/lib -lkfile"
4738 if test -x ${QTDIR}/bin/moc
4740 MOC=${QTDIR}/bin/moc
4748 # Check whether --enable-gnome or --disable-gnome was given.
4749 if test "${enable_gnome+set}" = set; then
4750 enableval="$enable_gnome"
4751 if test x$enable_gnome = xyes; then
4752 PLUGINS="${PLUGINS} gnome"
4753 ALIASES="${ALIASES} gnome-vlc"
4754 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4759 # Check whether --enable-gtk or --disable-gtk was given.
4760 if test "${enable_gtk+set}" = set; then
4761 enableval="$enable_gtk"
4765 if test x$enable_gtk != xno
4767 # look for gtk-config
4768 # Extract the first word of "gtk-config", so it can be a program name with args.
4769 set dummy gtk-config; ac_word=$2
4770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4771 echo "configure:4772: checking for $ac_word" >&5
4772 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 case "$GTK_CONFIG" in
4777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4780 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4785 for ac_dir in $ac_dummy; do
4786 test -z "$ac_dir" && ac_dir=.
4787 if test -f $ac_dir/$ac_word; then
4788 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4793 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4797 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4798 if test -n "$GTK_CONFIG"; then
4799 echo "$ac_t""$GTK_CONFIG" 1>&6
4801 echo "$ac_t""no" 1>&6
4804 if test -x ${GTK_CONFIG}
4806 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4807 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4809 # now look for the gtk.h header
4810 saved_CPPFLAGS=$CPPFLAGS
4811 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
4812 for ac_hdr in gtk/gtk.h
4814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_hdr" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4830 eval "ac_cv_header_$ac_safe=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_header_$ac_safe=no"
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_hdr 1
4847 PLUGINS="${PLUGINS} gtk"
4848 ALIASES="${ALIASES} gvlc"
4851 echo "$ac_t""no" 1>&6
4855 CPPFLAGS=$saved_CPPFLAGS
4858 # Check whether --enable-x11 or --disable-x11 was given.
4859 if test "${enable_x11+set}" = set; then
4860 enableval="$enable_x11"
4864 if test x$enable_x11 != xno; then
4865 if test x$x_includes = xNONE; then
4866 x_includes=/usr/X11R6/include
4868 if test x$x_libraries = xNONE; then
4869 x_libraries=/usr/X11R6/lib
4871 saved_CPPFLAGS=$CPPFLAGS
4872 CPPFLAGS="$CPPFLAGS -I$x_includes"
4873 for ac_hdr in X11/Xlib.h
4875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4877 echo "configure:4878: checking for $ac_hdr" >&5
4878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4887 { (eval echo configure:4888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4889 if test -z "$ac_err"; then
4891 eval "ac_cv_header_$ac_safe=yes"
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 eval "ac_cv_header_$ac_safe=no"
4901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4904 cat >> confdefs.h <<EOF
4905 #define $ac_tr_hdr 1
4908 PLUGINS="${PLUGINS} x11"
4909 LIB_X11="-L$x_libraries -lX11 -lXext"
4910 CFLAGS_X11="-I$x_includes"
4912 CPPFLAGS=$saved_CPPFLAGS
4914 echo "$ac_t""no" 1>&6
4920 # Check whether --enable-xvideo or --disable-xvideo was given.
4921 if test "${enable_xvideo+set}" = set; then
4922 enableval="$enable_xvideo"
4926 if test x$enable_xvideo != xno; then
4927 if test x$x_includes = xNONE; then
4928 x_includes=/usr/X11R6/include
4930 if test x$x_libraries = xNONE; then
4931 x_libraries=/usr/X11R6/lib
4933 saved_CPPFLAGS=$CPPFLAGS
4934 CPPFLAGS="$CPPFLAGS -I$x_includes"
4935 for ac_hdr in X11/extensions/Xv.h
4937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_hdr" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_hdr 1
4970 PLUGINS="${PLUGINS} xvideo"
4971 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4972 CFLAGS_X11="-I$x_includes"
4974 CPPFLAGS=$saved_CPPFLAGS
4976 echo "$ac_t""no" 1>&6
4982 # Check whether --enable-alsa or --disable-alsa was given.
4983 if test "${enable_alsa+set}" = set; then
4984 enableval="$enable_alsa"
4985 if test x$enable_alsa = xyes
4987 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4988 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4989 echo "configure:4990: checking for sys/asoundlib.h" >&5
4990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 #include <sys/asoundlib.h>
4998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4999 { (eval echo configure:5000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5001 if test -z "$ac_err"; then
5003 eval "ac_cv_header_$ac_safe=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_header_$ac_safe=no"
5013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5016 echo "configure:5017: checking for main in -lasound" >&5
5017 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 ac_save_LIBS="$LIBS"
5022 LIBS="-lasound $LIBS"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_lib_$ac_lib_var=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_lib_$ac_lib_var=no"
5041 LIBS="$ac_save_LIBS"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5048 echo "$ac_t""no" 1>&6
5053 echo "$ac_t""no" 1>&6
5057 if test x$have_alsa = xtrue
5059 PLUGINS="${PLUGINS} alsa"
5128 cat > confcache <<\EOF
5129 # This file is a shell script that caches the results of configure
5130 # tests run on this system so they can be shared between configure
5131 # scripts and configure runs. It is not useful on other systems.
5132 # If it contains results you don't want to keep, you may remove or edit it.
5134 # By default, configure uses ./config.cache as the cache file,
5135 # creating it if it does not exist already. You can give configure
5136 # the --cache-file=FILE option to use a different cache file; that is
5137 # what configure does when it calls configure scripts in
5138 # subdirectories, so they share the cache.
5139 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5140 # config.status only pays attention to the cache file if you give it the
5141 # --recheck option to rerun configure.
5144 # The following way of writing the cache mishandles newlines in values,
5145 # but we know of no workaround that is simple, portable, and efficient.
5146 # So, don't put newlines in cache variables' values.
5147 # Ultrix sh set writes to stderr and can't be redirected directly,
5148 # and sets the high bit in the cache file unless we assign to the vars.
5150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5152 # `set' does not quote correctly, so add quotes (double-quote substitution
5153 # turns \\\\ into \\, and sed turns \\ into \).
5155 -e "s/'/'\\\\''/g" \
5156 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5159 # `set' quotes correctly as required by POSIX, so do not add quotes.
5160 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5163 if cmp -s $cache_file confcache; then
5166 if test -w $cache_file; then
5167 echo "updating cache $cache_file"
5168 cat confcache > $cache_file
5170 echo "not updating unwritable cache $cache_file"
5175 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5178 # Let make expand exec_prefix.
5179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5181 # Any assignment to VPATH causes Sun make to only execute
5182 # the first set of double-colon rules, so remove it if not needed.
5183 # If there is a colon in the path, we need to keep it.
5184 if test "x$srcdir" = x.; then
5185 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5188 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5190 DEFS=-DHAVE_CONFIG_H
5192 # Without the "./", some shells look in PATH for config.status.
5193 : ${CONFIG_STATUS=./config.status}
5195 echo creating $CONFIG_STATUS
5196 rm -f $CONFIG_STATUS
5197 cat > $CONFIG_STATUS <<EOF
5199 # Generated automatically by configure.
5200 # Run this file to recreate the current configuration.
5201 # This directory was configured as follows,
5202 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5204 # $0 $ac_configure_args
5206 # Compiler output produced by configure, useful for debugging
5207 # configure, is in ./config.log if it exists.
5209 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5212 case "\$ac_option" in
5213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5214 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5215 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5216 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5217 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5219 -help | --help | --hel | --he | --h)
5220 echo "\$ac_cs_usage"; exit 0 ;;
5221 *) echo "\$ac_cs_usage"; exit 1 ;;
5225 ac_given_srcdir=$srcdir
5226 ac_given_INSTALL="$INSTALL"
5228 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5230 cat >> $CONFIG_STATUS <<EOF
5232 # Protect against being on the right side of a sed subst in config.status.
5233 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5234 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5238 s%@CFLAGS@%$CFLAGS%g
5239 s%@CPPFLAGS@%$CPPFLAGS%g
5240 s%@CXXFLAGS@%$CXXFLAGS%g
5241 s%@FFLAGS@%$FFLAGS%g
5243 s%@LDFLAGS@%$LDFLAGS%g
5245 s%@exec_prefix@%$exec_prefix%g
5246 s%@prefix@%$prefix%g
5247 s%@program_transform_name@%$program_transform_name%g
5248 s%@bindir@%$bindir%g
5249 s%@sbindir@%$sbindir%g
5250 s%@libexecdir@%$libexecdir%g
5251 s%@datadir@%$datadir%g
5252 s%@sysconfdir@%$sysconfdir%g
5253 s%@sharedstatedir@%$sharedstatedir%g
5254 s%@localstatedir@%$localstatedir%g
5255 s%@libdir@%$libdir%g
5256 s%@includedir@%$includedir%g
5257 s%@oldincludedir@%$oldincludedir%g
5258 s%@infodir@%$infodir%g
5259 s%@mandir@%$mandir%g
5261 s%@host_alias@%$host_alias%g
5262 s%@host_cpu@%$host_cpu%g
5263 s%@host_vendor@%$host_vendor%g
5264 s%@host_os@%$host_os%g
5265 s%@VLC_VERSION@%$VLC_VERSION%g
5266 s%@VLC_CODENAME@%$VLC_CODENAME%g
5267 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5268 s%@SET_MAKE@%$SET_MAKE%g
5271 s%@RANLIB@%$RANLIB%g
5272 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5273 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5274 s%@INSTALL_DATA@%$INSTALL_DATA%g
5275 s%@ESD_CONFIG@%$ESD_CONFIG%g
5276 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5277 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5278 s%@SDL_CONFIG@%$SDL_CONFIG%g
5279 s%@GTK_CONFIG@%$GTK_CONFIG%g
5282 s%@PLUGINS@%$PLUGINS%g
5283 s%@BUILTINS@%$BUILTINS%g
5284 s%@ALIASES@%$ALIASES%g
5285 s%@DEFINE@%$DEFINE%g
5286 s%@INCLUDE@%$INCLUDE%g
5293 s%@OPTIMS@%$OPTIMS%g
5294 s%@NEED_GETOPT@%$NEED_GETOPT%g
5296 s%@WINDRES@%$WINDRES%g
5297 s%@LCFLAGS@%$LCFLAGS%g
5298 s%@PLCFLAGS@%$PLCFLAGS%g
5299 s%@SOFLAGS@%$SOFLAGS%g
5301 s%@LIB_ALSA@%$LIB_ALSA%g
5302 s%@LIB_BEOS@%$LIB_BEOS%g
5303 s%@LIB_DARWIN@%$LIB_DARWIN%g
5304 s%@LIB_DVD@%$LIB_DVD%g
5305 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5306 s%@LIB_ESD@%$LIB_ESD%g
5307 s%@LIB_GGI@%$LIB_GGI%g
5308 s%@LIB_GLIDE@%$LIB_GLIDE%g
5309 s%@LIB_GNOME@%$LIB_GNOME%g
5310 s%@LIB_GTK@%$LIB_GTK%g
5311 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
5312 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5313 s%@LIB_KDE@%$LIB_KDE%g
5314 s%@LIB_MACOSX@%$LIB_MACOSX%g
5315 s%@LIB_QNX@%$LIB_QNX%g
5316 s%@LIB_NCURSES@%$LIB_NCURSES%g
5317 s%@LIB_QT@%$LIB_QT%g
5318 s%@LIB_TS@%$LIB_TS%g
5319 s%@LIB_SDL@%$LIB_SDL%g
5320 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5321 s%@LIB_X11@%$LIB_X11%g
5322 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5323 s%@LIB_YUV@%$LIB_YUV%g
5324 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5325 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5326 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5327 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5328 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5329 s%@CFLAGS_X11@%$CFLAGS_X11%g
5330 s%@OBJ_DVD@%$OBJ_DVD%g
5331 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5332 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5337 cat >> $CONFIG_STATUS <<\EOF
5339 # Split the substitutions into bite-sized pieces for seds with
5340 # small command number limits, like on Digital OSF/1 and HP-UX.
5341 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5342 ac_file=1 # Number of current file.
5343 ac_beg=1 # First line for current file.
5344 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5347 while $ac_more_lines; do
5348 if test $ac_beg -gt 1; then
5349 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5351 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5353 if test ! -s conftest.s$ac_file; then
5355 rm -f conftest.s$ac_file
5357 if test -z "$ac_sed_cmds"; then
5358 ac_sed_cmds="sed -f conftest.s$ac_file"
5360 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5362 ac_file=`expr $ac_file + 1`
5364 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5367 if test -z "$ac_sed_cmds"; then
5372 cat >> $CONFIG_STATUS <<EOF
5374 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5376 cat >> $CONFIG_STATUS <<\EOF
5377 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5380 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5381 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5382 *) ac_file_in="${ac_file}.in" ;;
5385 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5387 # Remove last slash and all that follows it. Not all systems have dirname.
5388 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5389 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5390 # The file is in a subdirectory.
5391 test ! -d "$ac_dir" && mkdir "$ac_dir"
5392 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5393 # A "../" for each directory in $ac_dir_suffix.
5394 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5396 ac_dir_suffix= ac_dots=
5399 case "$ac_given_srcdir" in
5401 if test -z "$ac_dots"; then top_srcdir=.
5402 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5403 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5405 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5406 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5409 case "$ac_given_INSTALL" in
5410 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5411 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5414 echo creating "$ac_file"
5416 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5418 *Makefile*) ac_comsub="1i\\
5419 # $configure_input" ;;
5423 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5425 s%@configure_input@%$configure_input%g
5426 s%@srcdir@%$srcdir%g
5427 s%@top_srcdir@%$top_srcdir%g
5428 s%@INSTALL@%$INSTALL%g
5429 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5433 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5434 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5436 # ac_d sets the value in "#define NAME VALUE" lines.
5437 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5438 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5441 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5442 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5443 ac_uB='\([ ]\)%\1#\2define\3'
5446 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5447 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5448 ac_eB='$%\1#\2define\3'
5452 if test "${CONFIG_HEADERS+set}" != set; then
5454 cat >> $CONFIG_STATUS <<EOF
5455 CONFIG_HEADERS="include/defs.h"
5457 cat >> $CONFIG_STATUS <<\EOF
5459 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5462 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5463 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5464 *) ac_file_in="${ac_file}.in" ;;
5467 echo creating $ac_file
5469 rm -f conftest.frag conftest.in conftest.out
5470 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5471 cat $ac_file_inputs > conftest.in
5475 # Transform confdefs.h into a sed script conftest.vals that substitutes
5476 # the proper values into config.h.in to produce config.h. And first:
5477 # Protect against being on the right side of a sed subst in config.status.
5478 # Protect against being in an unquoted here document in config.status.
5480 cat > conftest.hdr <<\EOF
5483 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5487 sed -n -f conftest.hdr confdefs.h > conftest.vals
5490 # This sed command replaces #undef with comments. This is necessary, for
5491 # example, in the case of _POSIX_SOURCE, which is predefined and required
5492 # on some systems where configure will not decide to define it.
5493 cat >> conftest.vals <<\EOF
5494 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5497 # Break up conftest.vals because some shells have a limit on
5498 # the size of here documents, and old seds have small limits too.
5503 ac_lines=`grep -c . conftest.vals`
5504 # grep -c gives empty output for an empty file on some AIX systems.
5505 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5506 # Write a limited-size here document to conftest.frag.
5507 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5508 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5510 sed -f conftest.frag conftest.in > conftest.out
5512 mv conftest.out conftest.in
5514 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5516 mv conftest.tail conftest.vals
5520 cat >> $CONFIG_STATUS <<\EOF
5521 rm -f conftest.frag conftest.h
5522 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5523 cat conftest.in >> conftest.h
5525 if cmp -s $ac_file conftest.h 2>/dev/null; then
5526 echo "$ac_file is unchanged"
5529 # Remove last slash and all that follows it. Not all systems have dirname.
5530 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5531 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5532 # The file is in a subdirectory.
5533 test ! -d "$ac_dir" && mkdir "$ac_dir"
5536 mv conftest.h $ac_file
5541 cat >> $CONFIG_STATUS <<EOF
5544 cat >> $CONFIG_STATUS <<\EOF
5548 chmod +x $CONFIG_STATUS
5549 rm -fr confdefs* $ac_clean_files
5550 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5554 global configuration
5555 --------------------
5557 architecture : ${ARCH}
5558 optimizations : ${OPTIMS}"
5560 if test x${HAVE_VLC} = x1
5565 vlc version : ${VLC_VERSION}
5566 debug mode : ${DEBUG}
5567 statistics : ${STATS}
5568 trace mode : ${TRACE}
5569 cprof/gprof support : ${CPROF}/${GPROF}
5570 need builtin getopt : ${NEED_GETOPT}
5571 built-in modules :${BUILTINS}
5572 plugin modules :${PLUGINS}
5573 vlc aliases :${ALIASES}"
5577 libdvdcss configuration
5578 -----------------------
5579 can be built : ${CAN_BUILD_LIBDVDCSS}
5580 will be built : ${NEED_LIBDVDCSS}"
5581 if test x${NEED_LIBDVDCSS} = x1
5583 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
5584 echo "link statically : ${STATIC_LIBDVDCSS}"
5586 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
5590 You may now tune Makefile.opts at your convenience, for instance to choose
5591 which modules get compiled as plugins.
5593 if test x${HAVE_VLC} = x1
5595 echo "To build vlc and its plugins, type \`make vlc'."
5597 if test x${HAVE_LIBDVDCSS} = x1
5599 echo "To build libdvdcss only, type \`make libdvdcss'."