3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --disable-css Disable DVD CSS decryption (default enabled)"
35 --disable-dummy dummy module (default enabled)"
37 --disable-null Null module (default enabled)"
39 --disable-rc rc module (default enabled)"
41 --disable-dsp Linux /dev/dsp support (default enabled)"
43 --enable-esd Esound library support (default disabled)"
45 --enable-darwin Darwin sound support (default disabled)"
47 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
49 --disable-qnx QNX RTOS support (default enabled)"
51 --enable-fb Linux framebuffer support (default disabled)"
53 --with-ggi[=name] GGI support (default disabled)"
55 --with-sdl[=name] SDL support (default enabled)"
57 --with-directx[=name] Windows DirectX support (default enabled)"
59 --with-glide[=name] Glide (3dfx) support (default disabled)"
61 --enable-ncurses ncurses interface support (default disabled)"
63 --enable-qt Qt interface support (default disabled)"
65 --enable-kde KDE interface support (default disabled)"
67 --enable-gnome Gnome interface support (default disabled)"
69 --disable-gtk Gtk+ support (default enabled)"
71 --disable-x11 X11 support (default enabled)"
73 --disable-xvideo XVideo support (default enabled)"
75 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=include/main.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # Make sure we can run config.sub.
609 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
610 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613 echo $ac_n "checking host system type""... $ac_c" 1>&6
614 echo "configure:615: checking host system type" >&5
617 case "$host_alias" in
621 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624 *) host_alias=$nonopt ;;
628 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
629 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$host" 1>&6
637 LIBDVDCSS_VERSION=0.0.1
642 save_CFLAGS="${CFLAGS}"
644 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
645 echo "configure:646: checking whether ${MAKE-make} sets \${MAKE}" >&5
646 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
647 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 cat > conftestmake <<\EOF
652 @echo 'ac_maketemp="${MAKE}"'
654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
655 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
656 if test -n "$ac_maketemp"; then
657 eval ac_cv_prog_make_${ac_make}_set=yes
659 eval ac_cv_prog_make_${ac_make}_set=no
663 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
664 echo "$ac_t""yes" 1>&6
667 echo "$ac_t""no" 1>&6
668 SET_MAKE="MAKE=${MAKE-make}"
671 # Extract the first word of "gcc", so it can be a program name with args.
672 set dummy gcc; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 if test -n "$CC"; then
679 ac_cv_prog_CC="$CC" # Let the user override the test.
681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
694 if test -n "$CC"; then
695 echo "$ac_t""$CC" 1>&6
697 echo "$ac_t""no" 1>&6
700 if test -z "$CC"; then
701 # Extract the first word of "cc", so it can be a program name with args.
702 set dummy cc; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 echo "configure:705: checking for $ac_word" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 if test -n "$CC"; then
709 ac_cv_prog_CC="$CC" # Let the user override the test.
711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
714 for ac_dir in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir=.
716 if test -f $ac_dir/$ac_word; then
717 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
726 if test $ac_prog_rejected = yes; then
727 # We found a bogon in the path, so make sure we never use it.
728 set dummy $ac_cv_prog_CC
730 if test $# -gt 0; then
731 # We chose a different compiler from the bogus one.
732 # However, it has the same basename, so the bogon will be chosen
733 # first if we set CC to just the basename; use the full file name.
735 set dummy "$ac_dir/$ac_word" "$@"
743 if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
746 echo "$ac_t""no" 1>&6
749 if test -z "$CC"; then
752 # Extract the first word of "cl", so it can be a program name with args.
753 set dummy cl; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CC"; then
760 ac_cv_prog_CC="$CC" # Let the user override the test.
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
775 if test -n "$CC"; then
776 echo "$ac_t""$CC" 1>&6
778 echo "$ac_t""no" 1>&6
783 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CPP $CPPFLAGS'
792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cc_cross
796 cat > conftest.$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
803 if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
804 ac_cv_prog_cc_works=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (./conftest; exit) 2>/dev/null; then
807 ac_cv_prog_cc_cross=no
809 ac_cv_prog_cc_cross=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
814 ac_cv_prog_cc_works=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CPP $CPPFLAGS'
820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
825 if test $ac_cv_prog_cc_works = no; then
826 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
831 cross_compiling=$ac_cv_prog_cc_cross
833 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.c <<EOF
843 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
850 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
852 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS="${CFLAGS+set}"
859 ac_save_CFLAGS="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
880 if test "$GCC" = yes; then
886 if test "$GCC" = yes; then
893 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
894 echo "configure:895: checking how to run the C preprocessor" >&5
895 # On Suns, sometimes $CPP names a directory.
896 if test -n "$CPP" && test -d "$CPP"; then
899 if test -z "$CPP"; then
900 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 # This must be in double quotes, not single quotes, because CPP may get
904 # substituted into the Makefile and "${CC-cc}" will confuse make.
906 # On the NeXT, cc -E runs the code through the compiler's parser,
907 # not just through cpp.
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
924 CPP="${CC-cc} -E -traditional-cpp"
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
941 CPP="${CC-cc} -nologo -E"
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951 if test -z "$ac_err"; then
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
965 ac_cv_prog_CPP="$CPP"
967 CPP="$ac_cv_prog_CPP"
969 ac_cv_prog_CPP="$CPP"
971 echo "$ac_t""$CPP" 1>&6
973 # Extract the first word of "ranlib", so it can be a program name with args.
974 set dummy ranlib; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$RANLIB"; then
981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_RANLIB="ranlib"
993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
996 RANLIB="$ac_cv_prog_RANLIB"
997 if test -n "$RANLIB"; then
998 echo "$ac_t""$RANLIB" 1>&6
1000 echo "$ac_t""no" 1>&6
1004 # Find a good install program. We prefer a C program (faster),
1005 # so one script is as good as another. But avoid the broken or
1006 # incompatible versions:
1007 # SysV /etc/install, /usr/sbin/install
1008 # SunOS /usr/etc/install
1009 # IRIX /sbin/install
1011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1014 # ./install, which can be erroneously created by make from ./install.sh.
1015 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1016 echo "configure:1017: checking for a BSD compatible install" >&5
1017 if test -z "$INSTALL"; then
1018 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1022 for ac_dir in $PATH; do
1023 # Account for people who put trailing slashes in PATH elements.
1025 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1027 # OSF1 and SCO ODT 3.0 have their own names for install.
1028 # Don't use installbsd from OSF since it installs stuff as root
1030 for ac_prog in ginstall scoinst install; do
1031 if test -f $ac_dir/$ac_prog; then
1032 if test $ac_prog = install &&
1033 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1034 # AIX install. It has an incompatible calling convention.
1037 ac_cv_path_install="$ac_dir/$ac_prog -c"
1048 if test "${ac_cv_path_install+set}" = set; then
1049 INSTALL="$ac_cv_path_install"
1051 # As a last resort, use the slow shell script. We don't cache a
1052 # path for INSTALL within a source directory, because that will
1053 # break other packages using the cache if that directory is
1054 # removed, or if the path is relative.
1055 INSTALL="$ac_install_sh"
1058 echo "$ac_t""$INSTALL" 1>&6
1060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1061 # It thinks the first close brace ends the variable substitution.
1062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1069 echo $ac_n "checking for working const""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working const" >&5
1071 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1080 /* Ultrix mips cc rejects this. */
1081 typedef int charset[2]; const charset x;
1082 /* SunOS 4.1.1 cc rejects this. */
1083 char const *const *ccp;
1085 /* NEC SVR4.0.2 mips cc rejects this. */
1086 struct point {int x, y;};
1087 static struct point const zero = {0,0};
1088 /* AIX XL C 1.02.0.0 rejects this.
1089 It does not let you subtract one const X* pointer from another in an arm
1090 of an if-expression whose if-part is not a constant expression */
1091 const char *g = "string";
1092 ccp = &g + (g ? g-g : 0);
1093 /* HPUX 7.0 cc rejects these. */
1096 ccp = (char const *const *) p;
1097 { /* SCO 3.2v4 cc rejects this. */
1099 char const *s = 0 ? (char *) 0 : (char const *) 0;
1103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1105 const int *foo = &x[0];
1108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1109 typedef const int *iptr;
1113 { /* AIX XL C 1.02.0.0 rejects this saying
1114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1115 struct s { int j; const int *ap[3]; };
1116 struct s *b; b->j = 5;
1118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1124 if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1136 echo "$ac_t""$ac_cv_c_const" 1>&6
1137 if test $ac_cv_c_const = no; then
1138 cat >> confdefs.h <<\EOF
1145 if test x${cross_compiling} != xyes; then
1146 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether byte ordering is bigendian" >&5
1148 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 ac_cv_c_bigendian=unknown
1152 # See if sys/param.h defines the BYTE_ORDER macro.
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156 #include <sys/types.h>
1157 #include <sys/param.h>
1160 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1165 if { (eval echo configure:1166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1167 # It does; now see whether it defined to BIG_ENDIAN or not.
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 #include <sys/types.h>
1172 #include <sys/param.h>
1175 #if BYTE_ORDER != BIG_ENDIAN
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1182 ac_cv_c_bigendian=yes
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1187 ac_cv_c_bigendian=no
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1195 if test $ac_cv_c_bigendian = unknown; then
1196 if test "$cross_compiling" = yes; then
1197 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1203 /* Are we little or big endian? From Harbison&Steele. */
1207 char c[sizeof (long)];
1210 exit (u.c[sizeof (long) - 1] == 1);
1213 if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1215 ac_cv_c_bigendian=no
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1220 ac_cv_c_bigendian=yes
1228 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1229 if test $ac_cv_c_bigendian = yes; then
1230 cat >> confdefs.h <<\EOF
1231 #define WORDS_BIGENDIAN 1
1238 for ac_func in gettimeofday select strerror strtod strtol
1240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_func" >&5
1242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 /* System header to define __stub macros and hopefully few prototypes,
1249 which can conflict with char $ac_func(); below. */
1251 /* Override any gcc2 internal prototype to avoid an error. */
1252 /* We use char because int might match the return type of a gcc2
1253 builtin and then its argument prototype would still apply. */
1258 /* The GNU C library defines this for functions which it implements
1259 to always fail with ENOSYS. Some functions are actually named
1260 something starting with __ and the normal name is an alias. */
1261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1269 if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1271 eval "ac_cv_func_$ac_func=yes"
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1276 eval "ac_cv_func_$ac_func=no"
1281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1284 cat >> confdefs.h <<EOF
1285 #define $ac_tr_func 1
1289 echo "$ac_t""no" 1>&6
1293 for ac_func in setenv putenv
1295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_func" >&5
1297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 /* System header to define __stub macros and hopefully few prototypes,
1304 which can conflict with char $ac_func(); below. */
1306 /* Override any gcc2 internal prototype to avoid an error. */
1307 /* We use char because int might match the return type of a gcc2
1308 builtin and then its argument prototype would still apply. */
1313 /* The GNU C library defines this for functions which it implements
1314 to always fail with ENOSYS. Some functions are actually named
1315 something starting with __ and the normal name is an alias. */
1316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1326 eval "ac_cv_func_$ac_func=yes"
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1331 eval "ac_cv_func_$ac_func=no"
1336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1339 cat >> confdefs.h <<EOF
1340 #define $ac_tr_func 1
1344 echo "$ac_t""no" 1>&6
1348 echo $ac_n "checking for connect""... $ac_c" 1>&6
1349 echo "configure:1350: checking for connect" >&5
1350 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* System header to define __stub macros and hopefully few prototypes,
1357 which can conflict with char connect(); below. */
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1366 /* The GNU C library defines this for functions which it implements
1367 to always fail with ENOSYS. Some functions are actually named
1368 something starting with __ and the normal name is an alias. */
1369 #if defined (__stub_connect) || defined (__stub___connect)
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379 eval "ac_cv_func_connect=yes"
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 eval "ac_cv_func_connect=no"
1389 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1393 echo "$ac_t""no" 1>&6
1395 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1396 echo "configure:1397: checking for connect in -lsocket" >&5
1397 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 ac_save_LIBS="$LIBS"
1402 LIBS="-lsocket $LIBS"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* Override any gcc2 internal prototype to avoid an error. */
1407 /* We use char because int might match the return type of a gcc2
1408 builtin and then its argument prototype would still apply. */
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1417 eval "ac_cv_lib_$ac_lib_var=yes"
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 eval "ac_cv_lib_$ac_lib_var=no"
1425 LIBS="$ac_save_LIBS"
1428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1429 echo "$ac_t""yes" 1>&6
1430 LIB="${LIB} -lsocket"
1432 echo "$ac_t""no" 1>&6
1438 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1439 echo "configure:1440: checking for gethostbyname" >&5
1440 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1446 /* System header to define __stub macros and hopefully few prototypes,
1447 which can conflict with char gethostbyname(); below. */
1449 /* Override any gcc2 internal prototype to avoid an error. */
1450 /* We use char because int might match the return type of a gcc2
1451 builtin and then its argument prototype would still apply. */
1452 char gethostbyname();
1456 /* The GNU C library defines this for functions which it implements
1457 to always fail with ENOSYS. Some functions are actually named
1458 something starting with __ and the normal name is an alias. */
1459 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1469 eval "ac_cv_func_gethostbyname=yes"
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 eval "ac_cv_func_gethostbyname=no"
1479 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1483 echo "$ac_t""no" 1>&6
1485 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1486 echo "configure:1487: checking for gethostbyname in -lnsl" >&5
1487 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 ac_save_LIBS="$LIBS"
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1499 char gethostbyname();
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1512 eval "ac_cv_lib_$ac_lib_var=no"
1515 LIBS="$ac_save_LIBS"
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1522 echo "$ac_t""no" 1>&6
1528 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1529 echo "configure:1530: checking for nanosleep" >&5
1530 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 /* System header to define __stub macros and hopefully few prototypes,
1537 which can conflict with char nanosleep(); below. */
1539 /* Override any gcc2 internal prototype to avoid an error. */
1540 /* We use char because int might match the return type of a gcc2
1541 builtin and then its argument prototype would still apply. */
1546 /* The GNU C library defines this for functions which it implements
1547 to always fail with ENOSYS. Some functions are actually named
1548 something starting with __ and the normal name is an alias. */
1549 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559 eval "ac_cv_func_nanosleep=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_func_nanosleep=no"
1569 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1573 echo "$ac_t""no" 1>&6
1575 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1576 echo "configure:1577: checking for nanosleep in -lrt" >&5
1577 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 ac_save_LIBS="$LIBS"
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 /* Override any gcc2 internal prototype to avoid an error. */
1587 /* We use char because int might match the return type of a gcc2
1588 builtin and then its argument prototype would still apply. */
1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 eval "ac_cv_lib_$ac_lib_var=yes"
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 eval "ac_cv_lib_$ac_lib_var=no"
1605 LIBS="$ac_save_LIBS"
1608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1609 echo "$ac_t""yes" 1>&6
1612 echo "$ac_t""no" 1>&6
1614 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1615 echo "configure:1616: checking for nanosleep in -lposix4" >&5
1616 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 ac_save_LIBS="$LIBS"
1621 LIBS="-lposix4 $LIBS"
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_lib_$ac_lib_var=no"
1644 LIBS="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 LIB="${LIB} -lposix4"
1651 echo "$ac_t""no" 1>&6
1660 for ac_func in usleep
1662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_func" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $ac_func(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_$ac_func=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_$ac_func=no"
1703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1706 cat >> confdefs.h <<EOF
1707 #define $ac_tr_func 1
1711 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1716 echo "configure:1717: checking for inet_aton" >&5
1717 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char inet_aton(); below. */
1726 /* Override any gcc2 internal prototype to avoid an error. */
1727 /* We use char because int might match the return type of a gcc2
1728 builtin and then its argument prototype would still apply. */
1733 /* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_func_inet_aton=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_func_inet_aton=no"
1756 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1757 echo "$ac_t""yes" 1>&6
1760 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1763 echo "configure:1764: checking for inet_aton in -lresolv" >&5
1764 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 ac_save_LIBS="$LIBS"
1769 LIBS="-lresolv $LIBS"
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 /* Override any gcc2 internal prototype to avoid an error. */
1774 /* We use char because int might match the return type of a gcc2
1775 builtin and then its argument prototype would still apply. */
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 eval "ac_cv_lib_$ac_lib_var=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_lib_$ac_lib_var=no"
1792 LIBS="$ac_save_LIBS"
1795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1797 LIB="${LIB} -lresolv"
1799 echo "$ac_t""no" 1>&6
1805 for ac_func in vasprintf
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852 #define $ac_tr_func 1
1856 echo "$ac_t""no" 1>&6
1862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_func" >&5
1864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $ac_func(); below. */
1873 /* Override any gcc2 internal prototype to avoid an error. */
1874 /* We use char because int might match the return type of a gcc2
1875 builtin and then its argument prototype would still apply. */
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893 eval "ac_cv_func_$ac_func=yes"
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 eval "ac_cv_func_$ac_func=no"
1903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1906 cat >> confdefs.h <<EOF
1907 #define $ac_tr_func 1
1911 echo "$ac_t""no" 1>&6
1916 for ac_func in sigrelse
1918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_func" >&5
1920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $ac_func(); below. */
1929 /* Override any gcc2 internal prototype to avoid an error. */
1930 /* We use char because int might match the return type of a gcc2
1931 builtin and then its argument prototype would still apply. */
1936 /* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 eval "ac_cv_func_$ac_func=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_func_$ac_func=no"
1959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1960 echo "$ac_t""yes" 1>&6
1961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1962 cat >> confdefs.h <<EOF
1963 #define $ac_tr_func 1
1967 echo "$ac_t""no" 1>&6
1972 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1973 echo "configure:1974: checking for getopt_long" >&5
1974 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char getopt_long(); below. */
1983 /* Override any gcc2 internal prototype to avoid an error. */
1984 /* We use char because int might match the return type of a gcc2
1985 builtin and then its argument prototype would still apply. */
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2003 eval "ac_cv_func_getopt_long=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_func_getopt_long=no"
2013 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 cat >> confdefs.h <<\EOF
2016 #define HAVE_GETOPT_LONG 1
2020 echo "$ac_t""no" 1>&6
2021 # FreeBSD has a gnugetopt library for this:
2022 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2023 echo "configure:2024: checking for getopt_long in -lgnugetopt" >&5
2024 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 ac_save_LIBS="$LIBS"
2029 LIBS="-lgnugetopt $LIBS"
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2042 if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2044 eval "ac_cv_lib_$ac_lib_var=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2049 eval "ac_cv_lib_$ac_lib_var=no"
2052 LIBS="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 cat >> confdefs.h <<\EOF
2058 #define HAVE_GETOPT_LONG 1
2060 LIB="${LIB} -lgnugetopt"
2062 echo "$ac_t""no" 1>&6
2070 for ac_hdr in unistd.h
2072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_hdr" >&5
2075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2084 { (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2086 if test -z "$ac_err"; then
2088 eval "ac_cv_header_$ac_safe=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 eval "ac_cv_header_$ac_safe=no"
2098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2101 cat >> confdefs.h <<EOF
2102 #define $ac_tr_hdr 1
2106 echo "$ac_t""no" 1>&6
2110 for ac_func in getpagesize
2112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_func" >&5
2114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 /* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char $ac_func(); below. */
2123 /* Override any gcc2 internal prototype to avoid an error. */
2124 /* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2130 /* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2143 eval "ac_cv_func_$ac_func=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_func_$ac_func=no"
2153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156 cat >> confdefs.h <<EOF
2157 #define $ac_tr_func 1
2161 echo "$ac_t""no" 1>&6
2165 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2166 echo "configure:2167: checking for working mmap" >&5
2167 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test "$cross_compiling" = yes; then
2171 ac_cv_func_mmap_fixed_mapped=no
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2177 /* Thanks to Mike Haertel and Jim Avera for this test.
2178 Here is a matrix of mmap possibilities:
2179 mmap private not fixed
2180 mmap private fixed at somewhere currently unmapped
2181 mmap private fixed at somewhere already mapped
2182 mmap shared not fixed
2183 mmap shared fixed at somewhere currently unmapped
2184 mmap shared fixed at somewhere already mapped
2185 For private mappings, we should verify that changes cannot be read()
2186 back from the file, nor mmap's back from the file at a different
2187 address. (There have been systems where private was not correctly
2188 implemented like the infamous i386 svr4.0, and systems where the
2189 VM page cache was not coherent with the filesystem buffer cache
2190 like early versions of FreeBSD and possibly contemporary NetBSD.)
2191 For shared mappings, we should conversely verify that changes get
2192 propogated back to all the places they're supposed to be.
2194 Grep wants private fixed already mapped.
2195 The main things grep needs to know about mmap are:
2196 * does it exist and is it safe to write into the mmap'd area
2197 * how to use it (BSD variants) */
2198 #include <sys/types.h>
2200 #include <sys/mman.h>
2202 /* This mess was copied from the GNU getpagesize.h. */
2203 #ifndef HAVE_GETPAGESIZE
2204 # ifdef HAVE_UNISTD_H
2205 # include <unistd.h>
2208 /* Assume that all systems that can run configure have sys/param.h. */
2209 # ifndef HAVE_SYS_PARAM_H
2210 # define HAVE_SYS_PARAM_H 1
2213 # ifdef _SC_PAGESIZE
2214 # define getpagesize() sysconf(_SC_PAGESIZE)
2215 # else /* no _SC_PAGESIZE */
2216 # ifdef HAVE_SYS_PARAM_H
2217 # include <sys/param.h>
2218 # ifdef EXEC_PAGESIZE
2219 # define getpagesize() EXEC_PAGESIZE
2220 # else /* no EXEC_PAGESIZE */
2222 # define getpagesize() NBPG * CLSIZE
2225 # endif /* no CLSIZE */
2226 # else /* no NBPG */
2228 # define getpagesize() NBPC
2229 # else /* no NBPC */
2231 # define getpagesize() PAGESIZE
2232 # endif /* PAGESIZE */
2233 # endif /* no NBPC */
2234 # endif /* no NBPG */
2235 # endif /* no EXEC_PAGESIZE */
2236 # else /* no HAVE_SYS_PARAM_H */
2237 # define getpagesize() 8192 /* punt totally */
2238 # endif /* no HAVE_SYS_PARAM_H */
2239 # endif /* no _SC_PAGESIZE */
2241 #endif /* no HAVE_GETPAGESIZE */
2244 extern "C" { void *malloc(unsigned); }
2252 char *data, *data2, *data3;
2256 pagesize = getpagesize();
2259 * First, make a file with some known garbage in it.
2261 data = malloc(pagesize);
2264 for (i = 0; i < pagesize; ++i)
2265 *(data + i) = rand();
2267 fd = creat("conftestmmap", 0600);
2270 if (write(fd, data, pagesize) != pagesize)
2275 * Next, try to mmap the file at a fixed address which
2276 * already has something else allocated at it. If we can,
2277 * also make sure that we see the same garbage.
2279 fd = open("conftestmmap", O_RDWR);
2282 data2 = malloc(2 * pagesize);
2285 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2286 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2287 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2289 for (i = 0; i < pagesize; ++i)
2290 if (*(data + i) != *(data2 + i))
2294 * Finally, make sure that changes to the mapped area
2295 * do not percolate back to the file as seen by read().
2296 * (This is a bug on some variants of i386 svr4.0.)
2298 for (i = 0; i < pagesize; ++i)
2299 *(data2 + i) = *(data2 + i) + 1;
2300 data3 = malloc(pagesize);
2303 if (read(fd, data3, pagesize) != pagesize)
2305 for (i = 0; i < pagesize; ++i)
2306 if (*(data + i) != *(data3 + i))
2309 unlink("conftestmmap");
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2316 ac_cv_func_mmap_fixed_mapped=yes
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 ac_cv_func_mmap_fixed_mapped=no
2328 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2329 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2330 cat >> confdefs.h <<\EOF
2336 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2337 echo "configure:2338: checking return type of signal handlers" >&5
2338 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <sys/types.h>
2350 extern "C" void (*signal (int, void (*)(int)))(int);
2352 void (*signal ()) ();
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2361 ac_cv_type_signal=void
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 ac_cv_type_signal=int
2371 echo "$ac_t""$ac_cv_type_signal" 1>&6
2372 cat >> confdefs.h <<EOF
2373 #define RETSIGTYPE $ac_cv_type_signal
2377 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2378 echo "configure:2379: checking for dlopen in -ldl" >&5
2379 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_save_LIBS="$LIBS"
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_lib_$ac_lib_var=no"
2407 LIBS="$ac_save_LIBS"
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2414 echo "$ac_t""no" 1>&6
2417 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2418 echo "configure:2419: checking for pow in -lm" >&5
2419 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_save_LIBS="$LIBS"
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_lib_$ac_lib_var=no"
2447 LIBS="$ac_save_LIBS"
2450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 LIB_YUV="${LIB_YUV} -lm"
2454 echo "$ac_t""no" 1>&6
2458 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2459 CFLAGS="${CFLAGS} -I/usr/local/include"
2462 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2463 echo "configure:2464: checking for pthread_attr_init in -lpthread" >&5
2464 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 ac_save_LIBS="$LIBS"
2469 LIBS="-lpthread $LIBS"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476 char pthread_attr_init();
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484 eval "ac_cv_lib_$ac_lib_var=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_lib_$ac_lib_var=no"
2492 LIBS="$ac_save_LIBS"
2495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 THREAD_LIB="-lpthread"
2499 echo "$ac_t""no" 1>&6
2502 if test "x${THREAD_LIB}" = xerror; then
2503 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2504 echo "configure:2505: checking for pthread_attr_init in -lpthreads" >&5
2505 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 ac_save_LIBS="$LIBS"
2510 LIBS="-lpthreads $LIBS"
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 /* Override any gcc2 internal prototype to avoid an error. */
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2517 char pthread_attr_init();
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525 eval "ac_cv_lib_$ac_lib_var=yes"
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2530 eval "ac_cv_lib_$ac_lib_var=no"
2533 LIBS="$ac_save_LIBS"
2536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 THREAD_LIB="-lpthreads"
2540 echo "$ac_t""no" 1>&6
2544 if test "x${THREAD_LIB}" = xerror; then
2545 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2546 echo "configure:2547: checking for pthread_attr_init in -lc_r" >&5
2547 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 ac_save_LIBS="$LIBS"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char pthread_attr_init();
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 eval "ac_cv_lib_$ac_lib_var=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 eval "ac_cv_lib_$ac_lib_var=no"
2575 LIBS="$ac_save_LIBS"
2578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2582 echo "$ac_t""no" 1>&6
2586 if test "x${THREAD_LIB}" = xerror; then
2588 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2589 echo "configure:2590: checking for pthread_attr_init" >&5
2590 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char pthread_attr_init(); below. */
2599 /* Override any gcc2 internal prototype to avoid an error. */
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2602 char pthread_attr_init();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2612 pthread_attr_init();
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 eval "ac_cv_func_pthread_attr_init=yes"
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 eval "ac_cv_func_pthread_attr_init=no"
2629 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2633 echo "$ac_t""no" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <pthread.h>
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "pthread_cond_t" >/dev/null 2>&1; then
2647 cat >> confdefs.h <<\EOF
2648 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2657 #include <strings.h>
2659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2660 egrep "strncasecmp" >/dev/null 2>&1; then
2663 cat >> confdefs.h <<\EOF
2664 #define STRNCASECMP_IN_STRINGS_H 1
2671 for ac_hdr in stddef.h getopt.h strings.h
2673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_hdr" >&5
2676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 eval "ac_cv_header_$ac_safe=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "ac_cv_header_$ac_safe=no"
2699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2702 cat >> confdefs.h <<EOF
2703 #define $ac_tr_hdr 1
2707 echo "$ac_t""no" 1>&6
2711 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_hdr" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2742 cat >> confdefs.h <<EOF
2743 #define $ac_tr_hdr 1
2747 echo "$ac_t""no" 1>&6
2751 for ac_hdr in sys/soundcard.h machine/soundcard.h
2753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_hdr" >&5
2756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2767 if test -z "$ac_err"; then
2769 eval "ac_cv_header_$ac_safe=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2775 eval "ac_cv_header_$ac_safe=no"
2779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2780 echo "$ac_t""yes" 1>&6
2781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2782 cat >> confdefs.h <<EOF
2783 #define $ac_tr_hdr 1
2787 echo "$ac_t""no" 1>&6
2791 for ac_hdr in dlfcn.h image.h
2793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_hdr" >&5
2796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2805 { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2807 if test -z "$ac_err"; then
2809 eval "ac_cv_header_$ac_safe=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2815 eval "ac_cv_header_$ac_safe=no"
2819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2822 cat >> confdefs.h <<EOF
2823 #define $ac_tr_hdr 1
2827 echo "$ac_t""no" 1>&6
2831 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2835 echo "configure:2836: checking for $ac_hdr" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2849 eval "ac_cv_header_$ac_safe=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_header_$ac_safe=no"
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2862 cat >> confdefs.h <<EOF
2863 #define $ac_tr_hdr 1
2867 echo "$ac_t""no" 1>&6
2871 for ac_hdr in machine/param.h
2873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_hdr" >&5
2876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2889 eval "ac_cv_header_$ac_safe=yes"
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 eval "ac_cv_header_$ac_safe=no"
2899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2902 cat >> confdefs.h <<EOF
2903 #define $ac_tr_hdr 1
2907 echo "$ac_t""no" 1>&6
2912 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_hdr" >&5
2917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2926 { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2928 if test -z "$ac_err"; then
2930 eval "ac_cv_header_$ac_safe=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_header_$ac_safe=no"
2940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2943 cat >> confdefs.h <<EOF
2944 #define $ac_tr_hdr 1
2948 echo "$ac_t""no" 1>&6
2953 CFLAGS="${save_CFLAGS} -Wall -Werror"
2954 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2955 echo "configure:2956: checking for ntohl in sys/param.h" >&5
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <sys/param.h>
2960 void foo() { int meuh; ntohl(meuh); }
2965 if { (eval echo configure:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 cat >> confdefs.h <<\EOF
2968 #define NTOHL_IN_SYS_PARAM_H 1
2971 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} -finline-limit=12"
2981 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2982 echo "configure:2983: checking if \$CC accepts -finline-limit" >&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 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; 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} -bundle -undefined suppress"
3003 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
3004 echo "configure:3005: checking if \$CC compiles plugins with -bundle -undefined suppress" >&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} -bundle -undefined suppress"; 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 CFLAGS="${save_CFLAGS} -shared"
3025 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3026 echo "configure:3027: checking if \$CC compiles plugins with -shared" >&5
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3042 echo "$ac_t""no" 1>&6
3046 CFLAGS="${save_CFLAGS}"
3048 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3049 echo "configure:3050: checking for boolean_t in sys/types.h" >&5
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3054 void quux() { boolean_t foo; }
3059 if { (eval echo configure:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 cat >> confdefs.h <<\EOF
3062 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3065 echo "$ac_t""yes" 1>&6
3067 echo "configure: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3070 echo "$ac_t""no" 1>&6
3073 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3074 echo "configure:3075: checking for boolean_t in pthread.h" >&5
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #include <pthread.h>
3079 void quux() { boolean_t foo; }
3084 if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 cat >> confdefs.h <<\EOF
3087 #define BOOLEAN_T_IN_PTHREAD_H 1
3090 echo "$ac_t""yes" 1>&6
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 echo "$ac_t""no" 1>&6
3099 echo $ac_n "checking for working const""... $ac_c" 1>&6
3100 echo "configure:3101: checking for working const" >&5
3101 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3110 /* Ultrix mips cc rejects this. */
3111 typedef int charset[2]; const charset x;
3112 /* SunOS 4.1.1 cc rejects this. */
3113 char const *const *ccp;
3115 /* NEC SVR4.0.2 mips cc rejects this. */
3116 struct point {int x, y;};
3117 static struct point const zero = {0,0};
3118 /* AIX XL C 1.02.0.0 rejects this.
3119 It does not let you subtract one const X* pointer from another in an arm
3120 of an if-expression whose if-part is not a constant expression */
3121 const char *g = "string";
3122 ccp = &g + (g ? g-g : 0);
3123 /* HPUX 7.0 cc rejects these. */
3126 ccp = (char const *const *) p;
3127 { /* SCO 3.2v4 cc rejects this. */
3129 char const *s = 0 ? (char *) 0 : (char const *) 0;
3133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3135 const int *foo = &x[0];
3138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3139 typedef const int *iptr;
3143 { /* AIX XL C 1.02.0.0 rejects this saying
3144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3145 struct s { int j; const int *ap[3]; };
3146 struct s *b; b->j = 5;
3148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3154 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3166 echo "$ac_t""$ac_cv_c_const" 1>&6
3167 if test $ac_cv_c_const = no; then
3168 cat >> confdefs.h <<\EOF
3174 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3175 echo "configure:3176: checking for ANSI C header files" >&5
3176 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3188 { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3190 if test -z "$ac_err"; then
3192 ac_cv_header_stdc=yes
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 ac_cv_header_stdc=no
3202 if test $ac_cv_header_stdc = yes; then
3203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "memchr" >/dev/null 2>&1; then
3214 ac_cv_header_stdc=no
3220 if test $ac_cv_header_stdc = yes; then
3221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3228 egrep "free" >/dev/null 2>&1; then
3232 ac_cv_header_stdc=no
3238 if test $ac_cv_header_stdc = yes; then
3239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3240 if test "$cross_compiling" = yes; then
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3247 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3248 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3250 int main () { int i; for (i = 0; i < 256; i++)
3251 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 ac_cv_header_stdc=no
3270 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3271 if test $ac_cv_header_stdc = yes; then
3272 cat >> confdefs.h <<\EOF
3273 #define STDC_HEADERS 1
3278 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3279 echo "configure:3280: checking for size_t" >&5
3280 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include <sys/types.h>
3292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3293 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3295 ac_cv_type_size_t=yes
3298 ac_cv_type_size_t=no
3303 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3304 if test $ac_cv_type_size_t = no; then
3305 cat >> confdefs.h <<\EOF
3306 #define size_t unsigned
3311 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3312 echo "configure:3313: checking whether time.h and sys/time.h may both be included" >&5
3313 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 #include <sys/types.h>
3320 #include <sys/time.h>
3326 if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328 ac_cv_header_time=yes
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 ac_cv_header_time=no
3338 echo "$ac_t""$ac_cv_header_time" 1>&6
3339 if test $ac_cv_header_time = yes; then
3340 cat >> confdefs.h <<\EOF
3341 #define TIME_WITH_SYS_TIME 1
3349 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3350 PLUGINS="${PLUGINS}"
3352 MMX_MODULES="yuvmmx idctmmx motionmmx"
3353 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3355 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3356 echo "configure:3357: checking if \$CC groks MMX inline assembly" >&5
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3368 echo "$ac_t""yes" 1>&6
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3378 echo "configure:3379: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3390 echo "$ac_t""yes" 1>&6
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 echo "$ac_t""no" 1>&6
3400 for ac_hdr in winioctl.h
3402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3404 echo "configure:3405: checking for $ac_hdr" >&5
3405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3414 { (eval echo configure:3415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3416 if test -z "$ac_err"; then
3418 eval "ac_cv_header_$ac_safe=yes"
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3424 eval "ac_cv_header_$ac_safe=no"
3428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3431 cat >> confdefs.h <<EOF
3432 #define $ac_tr_hdr 1
3438 echo "$ac_t""no" 1>&6
3443 for ac_hdr in sys/ioctl.h
3445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_hdr" >&5
3448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3457 { (eval echo configure:3458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3459 if test -z "$ac_err"; then
3461 eval "ac_cv_header_$ac_safe=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 eval "ac_cv_header_$ac_safe=no"
3471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3474 cat >> confdefs.h <<EOF
3475 #define $ac_tr_hdr 1
3479 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_hdr" >&5
3484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3493 { (eval echo configure:3494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3495 if test -z "$ac_err"; then
3497 eval "ac_cv_header_$ac_safe=yes"
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 eval "ac_cv_header_$ac_safe=no"
3507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3510 cat >> confdefs.h <<EOF
3511 #define $ac_tr_hdr 1
3515 echo "$ac_t""no" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <sys/dvdio.h>
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 egrep "dvd_struct" >/dev/null 2>&1; then
3529 cat >> confdefs.h <<\EOF
3530 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #include <sys/cdio.h>
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 egrep "dvd_struct" >/dev/null 2>&1; then
3547 cat >> confdefs.h <<\EOF
3548 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3556 if test x$BSD_DVD_STRUCT = x1; then
3557 cat >> confdefs.h <<\EOF
3558 #define HAVE_BSD_DVD_STRUCT 1
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 #include <linux/cdrom.h>
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "dvd_struct" >/dev/null 2>&1; then
3571 cat >> confdefs.h <<\EOF
3572 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3581 echo "$ac_t""no" 1>&6
3595 # Check whether --enable-ppro or --disable-ppro was given.
3596 if test "${enable_ppro+set}" = set; then
3597 enableval="$enable_ppro"
3598 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3600 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3604 # Check whether --enable-mmx or --disable-mmx was given.
3605 if test "${enable_mmx+set}" = set; then
3606 enableval="$enable_mmx"
3607 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3608 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3610 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";
3611 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3615 # Check whether --enable-altivec or --disable-altivec was given.
3616 if test "${enable_altivec+set}" = set; then
3617 enableval="$enable_altivec"
3618 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
3619 BUILTINS="${BUILTINS} idctaltivec"
3620 LIB_IDCTALTIVEC="-framework vecLib"
3624 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3626 # Check whether --enable-debug or --disable-debug was given.
3627 if test "${enable_debug+set}" = set; then
3628 enableval="$enable_debug"
3629 if test x$enableval = xyes; then DEBUG=1; fi
3633 # Check whether --enable-stats or --disable-stats was given.
3634 if test "${enable_stats+set}" = set; then
3635 enableval="$enable_stats"
3636 if test x$enableval = xyes; then STATS=1; fi
3640 # Check whether --enable-trace or --disable-trace was given.
3641 if test "${enable_trace+set}" = set; then
3642 enableval="$enable_trace"
3643 if test x$enableval = xyes; then TRACE=1; fi
3647 # Check whether --enable-profiling or --disable-profiling was given.
3648 if test "${enable_profiling+set}" = set; then
3649 enableval="$enable_profiling"
3650 if test x$enableval = xyes; then PROFILING=1; fi
3654 # Check whether --enable-optimizations or --disable-optimizations was given.
3655 if test "${enable_optimizations+set}" = set; then
3656 enableval="$enable_optimizations"
3657 if test x$enableval = xno; then OPTIMS=0; fi
3663 # Check whether --enable-pth or --disable-pth was given.
3664 if test "${enable_pth+set}" = set; then
3665 enableval="$enable_pth"
3666 if test x$enableval = xyes; then
3667 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3668 echo "configure:3669: checking for pth_init in -lpth" >&5
3669 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 ac_save_LIBS="$LIBS"
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 /* Override any gcc2 internal prototype to avoid an error. */
3679 /* We use char because int might match the return type of a gcc2
3680 builtin and then its argument prototype would still apply. */
3687 if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 eval "ac_cv_lib_$ac_lib_var=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_lib_$ac_lib_var=no"
3697 LIBS="$ac_save_LIBS"
3700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3704 cat >> confdefs.h <<EOF
3705 #define $ac_tr_lib 1
3711 echo "$ac_t""no" 1>&6
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 "pth_init" >/dev/null 2>&1; then
3723 cat >> confdefs.h <<\EOF
3724 #define PTH_INIT_IN_PTH_H 1
3736 LIB="${LIB} ${THREAD_LIB}"
3738 # Check whether --enable-css or --disable-css was given.
3739 if test "${enable_css+set}" = set; then
3740 enableval="$enable_css"
3741 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3746 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3751 for ac_hdr in videolan/dvdcss.h
3753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_hdr" >&5
3756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3765 { (eval echo configure:3766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3767 if test -z "$ac_err"; then
3769 eval "ac_cv_header_$ac_safe=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_header_$ac_safe=no"
3779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3782 cat >> confdefs.h <<EOF
3783 #define $ac_tr_hdr 1
3786 # installed libdvdcss
3787 BUILTINS="${BUILTINS} dvd"
3788 LIB_DVD="${LIB_DVD} -ldvdcss"
3790 echo "$ac_t""no" 1>&6
3791 if test x${LIBDVDCSS} = x1; then
3794 BUILTINS="${BUILTINS} dvd"
3795 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3801 # Check whether --enable-dummy or --disable-dummy was given.
3802 if test "${enable_dummy+set}" = set; then
3803 enableval="$enable_dummy"
3807 if test x$enable_dummy != xno; then
3808 BUILTINS="${BUILTINS} dummy"; fi
3810 # Check whether --enable-null or --disable-null was given.
3811 if test "${enable_null+set}" = set; then
3812 enableval="$enable_null"
3816 if test x$enable_null != xno; then
3817 BUILTINS="${BUILTINS} null"; fi
3819 # Check whether --enable-rc or --disable-rc was given.
3820 if test "${enable_rc+set}" = set; then
3821 enableval="$enable_rc"
3825 if test x$enable_rc != xno; then
3826 BUILTINS="${BUILTINS} rc"; fi
3828 if test x$SYS = xbeos; then
3829 BUILTINS="${BUILTINS} beos"
3830 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3831 PLCFLAGS="${PLCFLAGS} -nostart"
3835 # Check whether --enable-dsp or --disable-dsp was given.
3836 if test "${enable_dsp+set}" = set; then
3837 enableval="$enable_dsp"
3841 if test x$enable_dsp != xno; then
3842 if test -c /dev/dsp; then
3843 PLUGINS="${PLUGINS} dsp"
3847 # Check whether --enable-esd or --disable-esd was given.
3848 if test "${enable_esd+set}" = set; then
3849 enableval="$enable_esd"
3850 if test x$enable_esd = xyes; then
3851 # Extract the first word of "esd-config", so it can be a program name with args.
3852 set dummy esd-config; ac_word=$2
3853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3854 echo "configure:3855: checking for $ac_word" >&5
3855 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 case "$ESD_CONFIG" in
3860 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3863 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3876 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3880 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3881 if test -n "$ESD_CONFIG"; then
3882 echo "$ac_t""$ESD_CONFIG" 1>&6
3884 echo "$ac_t""no" 1>&6
3887 if test x${ESD_CONFIG} != xno; then
3888 PLUGINS="${PLUGINS} esd"
3889 LIB_ESD="`${ESD_CONFIG} --libs`"
3895 # Check whether --enable-darwin or --disable-darwin was given.
3896 if test "${enable_darwin+set}" = set; then
3897 enableval="$enable_darwin"
3898 if test x$enable_darwin = xyes; then
3899 PLUGINS="${PLUGINS} darwin"
3900 LIB_DARWIN="-framework CoreAudio"
3905 # Check whether --enable-macosx or --disable-macosx was given.
3906 if test "${enable_macosx+set}" = set; then
3907 enableval="$enable_macosx"
3908 if test x$enable_macosx = xyes; then
3909 BUILTINS="${BUILTINS} macosx"
3910 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3911 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3912 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3915 for ac_hdr in Carbon/Carbon.h
3917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_hdr" >&5
3920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3929 { (eval echo configure:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3931 if test -z "$ac_err"; then
3933 eval "ac_cv_header_$ac_safe=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_header_$ac_safe=no"
3943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3946 cat >> confdefs.h <<EOF
3947 #define $ac_tr_hdr 1
3949 BUILTINS="${BUILTINS} macosx"
3950 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3951 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3952 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3955 echo "$ac_t""no" 1>&6
3962 # Check whether --enable-qnx or --disable-qnx was given.
3963 if test "${enable_qnx+set}" = set; then
3964 enableval="$enable_qnx"
3968 if test x$enable_qnx != xno; then
3971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_hdr" >&5
3974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3983 { (eval echo configure:3984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3985 if test -z "$ac_err"; then
3987 eval "ac_cv_header_$ac_safe=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_header_$ac_safe=no"
3997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
3999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4000 cat >> confdefs.h <<EOF
4001 #define $ac_tr_hdr 1
4004 PLUGINS="${PLUGINS} qnx"
4005 LIB_QNX="-lasound -lph"
4008 echo "$ac_t""no" 1>&6
4014 # Check whether --enable-fb or --disable-fb was given.
4015 if test "${enable_fb+set}" = set; then
4016 enableval="$enable_fb"
4017 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
4021 # Check whether --with-ggi or --without-ggi was given.
4022 if test "${with_ggi+set}" = set; then
4024 if test "x$withval" != "xno";
4026 PLUGINS="${PLUGINS} ggi";
4027 if test "x$withval" != "xyes";
4029 LIB_GGI="-l"$withval
4037 # Check whether --with-sdl or --without-sdl was given.
4038 if test "${with_sdl+set}" = set; then
4040 if test "x$withval" != "xno";
4042 PLUGINS="${PLUGINS} sdl";
4043 if test "x$withval" != "xyes";
4045 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
4046 CFLAGS_SDL="-I"$withval"/include"
4048 for ac_hdr in SDL/SDL.h
4050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_hdr" >&5
4053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4066 eval "ac_cv_header_$ac_safe=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_header_$ac_safe=no"
4076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4079 cat >> confdefs.h <<EOF
4080 #define $ac_tr_hdr 1
4084 echo "$ac_t""no" 1>&6
4085 echo "Cannot find SDL headers !"; exit
4089 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
4094 if test "x$withval" = "x";
4096 for ac_hdr in SDL/SDL.h
4098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_hdr" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4110 { (eval echo configure:4111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4112 if test -z "$ac_err"; then
4114 eval "ac_cv_header_$ac_safe=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_header_$ac_safe=no"
4124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4127 cat >> confdefs.h <<EOF
4128 #define $ac_tr_hdr 1
4130 PLUGINS="${PLUGINS} sdl"
4131 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
4133 echo "$ac_t""no" 1>&6
4139 # Check whether --with-directx or --without-directx was given.
4140 if test "${with_directx+set}" = set; then
4141 withval="$with_directx"
4142 if test "x$withval" != "xno";
4144 PLUGINS="${PLUGINS} directx";
4145 if test "x$withval" != "xyes";
4147 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4148 INCLUDE="${INCLUDE} -I"$withval"/include"
4150 for ac_hdr in directx.h
4152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4154 echo "configure:4155: checking for $ac_hdr" >&5
4155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4164 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4166 if test -z "$ac_err"; then
4168 eval "ac_cv_header_$ac_safe=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_header_$ac_safe=no"
4178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4181 cat >> confdefs.h <<EOF
4182 #define $ac_tr_hdr 1
4186 echo "$ac_t""no" 1>&6
4187 echo "Cannot find DirectX headers !"; exit
4191 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4196 if test "x$withval" = "x";
4198 for ac_hdr in directx.h
4200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4202 echo "configure:4203: checking for $ac_hdr" >&5
4203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4212 { (eval echo configure:4213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4214 if test -z "$ac_err"; then
4216 eval "ac_cv_header_$ac_safe=yes"
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 eval "ac_cv_header_$ac_safe=no"
4226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4229 cat >> confdefs.h <<EOF
4230 #define $ac_tr_hdr 1
4232 PLUGINS="${PLUGINS} directx"
4233 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4235 echo "$ac_t""no" 1>&6
4241 # Check whether --with-glide or --without-glide was given.
4242 if test "${with_glide+set}" = set; then
4243 withval="$with_glide"
4244 if test "x$withval" != "xno";
4246 PLUGINS="${PLUGINS} glide";
4247 if test "x$withval" != "xyes";
4249 LIB_GLIDE="-l"$withval" -lm"
4251 LIB_GLIDE="-lglide2x -lm"
4257 # Check whether --enable-ncurses or --disable-ncurses was given.
4258 if test "${enable_ncurses+set}" = set; then
4259 enableval="$enable_ncurses"
4260 if test x$enable_ncurses = xyes; then
4261 PLUGINS="${PLUGINS} ncurses"
4262 LIB_NCURSES="-lncurses"
4267 # Check whether --enable-qt or --disable-qt was given.
4268 if test "${enable_qt+set}" = set; then
4269 enableval="$enable_qt"
4270 if test x$enable_qt = xyes; then
4271 PLUGINS="${PLUGINS} qt"
4272 ALIASES="${ALIASES} qvlc"
4273 LIB_QT="-lqt -L${QTDIR}/lib"
4274 if test -x ${QTDIR}/bin/moc ;
4276 MOC=${QTDIR}/bin/moc
4284 # Check whether --enable-kde or --disable-kde was given.
4285 if test "${enable_kde+set}" = set; then
4286 enableval="$enable_kde"
4287 if test x$enable_kde = xyes; then
4288 PLUGINS="${PLUGINS} kde";
4289 ALIASES="${ALIASES} kvlc";
4295 # Check whether --enable-gnome or --disable-gnome was given.
4296 if test "${enable_gnome+set}" = set; then
4297 enableval="$enable_gnome"
4298 if test x$enable_gnome = xyes; then
4299 PLUGINS="${PLUGINS} gnome"
4300 ALIASES="${ALIASES} gnome-vlc"
4301 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4306 # Check whether --enable-gtk or --disable-gtk was given.
4307 if test "${enable_gtk+set}" = set; then
4308 enableval="$enable_gtk"
4312 if test x$enable_gtk != xno; then
4313 # Extract the first word of "gtk-config", so it can be a program name with args.
4314 set dummy gtk-config; ac_word=$2
4315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_word" >&5
4317 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 case "$GTK_CONFIG" in
4322 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4325 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4330 for ac_dir in $ac_dummy; do
4331 test -z "$ac_dir" && ac_dir=.
4332 if test -f $ac_dir/$ac_word; then
4333 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4338 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4342 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4343 if test -n "$GTK_CONFIG"; then
4344 echo "$ac_t""$GTK_CONFIG" 1>&6
4346 echo "$ac_t""no" 1>&6
4349 if test x${GTK_CONFIG} != xno; then
4350 PLUGINS="${PLUGINS} gtk"
4351 ALIASES="${ALIASES} gvlc"
4352 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4353 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4357 # Check whether --enable-x11 or --disable-x11 was given.
4358 if test "${enable_x11+set}" = set; then
4359 enableval="$enable_x11"
4363 if test x$enable_x11 != xno; then
4364 if test x$x_includes = xNONE; then
4365 x_includes=/usr/X11R6/include
4367 if test x$x_libraries = xNONE; then
4368 x_libraries=/usr/X11R6/lib
4370 saved_CPPFLAGS=$CPPFLAGS
4371 CPPFLAGS="$CPPFLAGS -I$x_includes"
4372 for ac_hdr in X11/Xlib.h
4374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4376 echo "configure:4377: checking for $ac_hdr" >&5
4377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4386 { (eval echo configure:4387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4388 if test -z "$ac_err"; then
4390 eval "ac_cv_header_$ac_safe=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_header_$ac_safe=no"
4400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4403 cat >> confdefs.h <<EOF
4404 #define $ac_tr_hdr 1
4407 PLUGINS="${PLUGINS} x11"
4408 LIB_X11="-L$x_libraries -lX11 -lXext"
4409 CFLAGS_X11="-I$x_includes"
4411 CPPFLAGS=$saved_CPPFLAGS
4413 echo "$ac_t""no" 1>&6
4419 # Check whether --enable-xvideo or --disable-xvideo was given.
4420 if test "${enable_xvideo+set}" = set; then
4421 enableval="$enable_xvideo"
4425 if test x$enable_xvideo != xno; then
4426 if test x$x_includes = xNONE; then
4427 x_includes=/usr/X11R6/include
4429 if test x$x_libraries = xNONE; then
4430 x_libraries=/usr/X11R6/lib
4432 saved_CPPFLAGS=$CPPFLAGS
4433 CPPFLAGS="$CPPFLAGS -I$x_includes"
4434 for ac_hdr in X11/extensions/Xv.h
4436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4438 echo "configure:4439: checking for $ac_hdr" >&5
4439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4448 { (eval echo configure:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4450 if test -z "$ac_err"; then
4452 eval "ac_cv_header_$ac_safe=yes"
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4458 eval "ac_cv_header_$ac_safe=no"
4462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4463 echo "$ac_t""yes" 1>&6
4464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4465 cat >> confdefs.h <<EOF
4466 #define $ac_tr_hdr 1
4469 PLUGINS="${PLUGINS} xvideo"
4470 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4471 CFLAGS_X11="-I$x_includes"
4473 CPPFLAGS=$saved_CPPFLAGS
4475 echo "$ac_t""no" 1>&6
4481 # Check whether --enable-alsa or --disable-alsa was given.
4482 if test "${enable_alsa+set}" = set; then
4483 enableval="$enable_alsa"
4484 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4485 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4486 echo "configure:4487: checking for sys/asoundlib.h" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <sys/asoundlib.h>
4495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4496 { (eval echo configure:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4498 if test -z "$ac_err"; then
4500 eval "ac_cv_header_$ac_safe=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_header_$ac_safe=no"
4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4513 echo "configure:4514: checking for main in -lasound" >&5
4514 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 ac_save_LIBS="$LIBS"
4519 LIBS="-lasound $LIBS"
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 eval "ac_cv_lib_$ac_lib_var=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_lib_$ac_lib_var=no"
4538 LIBS="$ac_save_LIBS"
4541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4545 echo "$ac_t""no" 1>&6
4550 echo "$ac_t""no" 1>&6
4553 if test x$have_alsa = xtrue; then
4554 PLUGINS="${PLUGINS} alsa"
4614 cat > confcache <<\EOF
4615 # This file is a shell script that caches the results of configure
4616 # tests run on this system so they can be shared between configure
4617 # scripts and configure runs. It is not useful on other systems.
4618 # If it contains results you don't want to keep, you may remove or edit it.
4620 # By default, configure uses ./config.cache as the cache file,
4621 # creating it if it does not exist already. You can give configure
4622 # the --cache-file=FILE option to use a different cache file; that is
4623 # what configure does when it calls configure scripts in
4624 # subdirectories, so they share the cache.
4625 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4626 # config.status only pays attention to the cache file if you give it the
4627 # --recheck option to rerun configure.
4630 # The following way of writing the cache mishandles newlines in values,
4631 # but we know of no workaround that is simple, portable, and efficient.
4632 # So, don't put newlines in cache variables' values.
4633 # Ultrix sh set writes to stderr and can't be redirected directly,
4634 # and sets the high bit in the cache file unless we assign to the vars.
4636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4638 # `set' does not quote correctly, so add quotes (double-quote substitution
4639 # turns \\\\ into \\, and sed turns \\ into \).
4641 -e "s/'/'\\\\''/g" \
4642 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4645 # `set' quotes correctly as required by POSIX, so do not add quotes.
4646 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4649 if cmp -s $cache_file confcache; then
4652 if test -w $cache_file; then
4653 echo "updating cache $cache_file"
4654 cat confcache > $cache_file
4656 echo "not updating unwritable cache $cache_file"
4661 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4664 # Let make expand exec_prefix.
4665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4667 # Any assignment to VPATH causes Sun make to only execute
4668 # the first set of double-colon rules, so remove it if not needed.
4669 # If there is a colon in the path, we need to keep it.
4670 if test "x$srcdir" = x.; then
4671 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4674 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4676 DEFS=-DHAVE_CONFIG_H
4678 # Without the "./", some shells look in PATH for config.status.
4679 : ${CONFIG_STATUS=./config.status}
4681 echo creating $CONFIG_STATUS
4682 rm -f $CONFIG_STATUS
4683 cat > $CONFIG_STATUS <<EOF
4685 # Generated automatically by configure.
4686 # Run this file to recreate the current configuration.
4687 # This directory was configured as follows,
4688 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4690 # $0 $ac_configure_args
4692 # Compiler output produced by configure, useful for debugging
4693 # configure, is in ./config.log if it exists.
4695 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4698 case "\$ac_option" in
4699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4700 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4701 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4702 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4703 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4705 -help | --help | --hel | --he | --h)
4706 echo "\$ac_cs_usage"; exit 0 ;;
4707 *) echo "\$ac_cs_usage"; exit 1 ;;
4711 ac_given_srcdir=$srcdir
4712 ac_given_INSTALL="$INSTALL"
4714 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4716 cat >> $CONFIG_STATUS <<EOF
4718 # Protect against being on the right side of a sed subst in config.status.
4719 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4720 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4724 s%@CFLAGS@%$CFLAGS%g
4725 s%@CPPFLAGS@%$CPPFLAGS%g
4726 s%@CXXFLAGS@%$CXXFLAGS%g
4727 s%@FFLAGS@%$FFLAGS%g
4729 s%@LDFLAGS@%$LDFLAGS%g
4731 s%@exec_prefix@%$exec_prefix%g
4732 s%@prefix@%$prefix%g
4733 s%@program_transform_name@%$program_transform_name%g
4734 s%@bindir@%$bindir%g
4735 s%@sbindir@%$sbindir%g
4736 s%@libexecdir@%$libexecdir%g
4737 s%@datadir@%$datadir%g
4738 s%@sysconfdir@%$sysconfdir%g
4739 s%@sharedstatedir@%$sharedstatedir%g
4740 s%@localstatedir@%$localstatedir%g
4741 s%@libdir@%$libdir%g
4742 s%@includedir@%$includedir%g
4743 s%@oldincludedir@%$oldincludedir%g
4744 s%@infodir@%$infodir%g
4745 s%@mandir@%$mandir%g
4747 s%@host_alias@%$host_alias%g
4748 s%@host_cpu@%$host_cpu%g
4749 s%@host_vendor@%$host_vendor%g
4750 s%@host_os@%$host_os%g
4751 s%@VLC_VERSION@%$VLC_VERSION%g
4752 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4753 s%@VLC_CODENAME@%$VLC_CODENAME%g
4754 s%@SET_MAKE@%$SET_MAKE%g
4757 s%@RANLIB@%$RANLIB%g
4758 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4759 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4760 s%@INSTALL_DATA@%$INSTALL_DATA%g
4761 s%@GETOPT@%$GETOPT%g
4762 s%@ESD_CONFIG@%$ESD_CONFIG%g
4763 s%@GTK_CONFIG@%$GTK_CONFIG%g
4766 s%@PLUGINS@%$PLUGINS%g
4767 s%@BUILTINS@%$BUILTINS%g
4768 s%@ALIASES@%$ALIASES%g
4769 s%@DEFINE@%$DEFINE%g
4770 s%@INCLUDE@%$INCLUDE%g
4775 s%@PROFILING@%$PROFILING%g
4776 s%@OPTIMS@%$OPTIMS%g
4779 s%@WINDRES@%$WINDRES%g
4780 s%@LCFLAGS@%$LCFLAGS%g
4781 s%@PLCFLAGS@%$PLCFLAGS%g
4783 s%@LIB_ALSA@%$LIB_ALSA%g
4784 s%@LIB_BEOS@%$LIB_BEOS%g
4785 s%@LIB_DARWIN@%$LIB_DARWIN%g
4786 s%@LIB_DVD@%$LIB_DVD%g
4787 s%@LIB_ESD@%$LIB_ESD%g
4788 s%@LIB_GGI@%$LIB_GGI%g
4789 s%@LIB_GLIDE@%$LIB_GLIDE%g
4790 s%@LIB_GNOME@%$LIB_GNOME%g
4791 s%@LIB_GTK@%$LIB_GTK%g
4792 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4793 s%@LIB_KDE@%$LIB_KDE%g
4794 s%@LIB_MACOSX@%$LIB_MACOSX%g
4795 s%@LIB_QNX@%$LIB_QNX%g
4796 s%@LIB_NCURSES@%$LIB_NCURSES%g
4797 s%@LIB_QT@%$LIB_QT%g
4798 s%@LIB_TS@%$LIB_TS%g
4799 s%@LIB_SDL@%$LIB_SDL%g
4800 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4801 s%@LIB_X11@%$LIB_X11%g
4802 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4803 s%@LIB_YUV@%$LIB_YUV%g
4804 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4805 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4806 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4807 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4808 s%@CFLAGS_X11@%$CFLAGS_X11%g
4809 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4814 cat >> $CONFIG_STATUS <<\EOF
4816 # Split the substitutions into bite-sized pieces for seds with
4817 # small command number limits, like on Digital OSF/1 and HP-UX.
4818 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4819 ac_file=1 # Number of current file.
4820 ac_beg=1 # First line for current file.
4821 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4824 while $ac_more_lines; do
4825 if test $ac_beg -gt 1; then
4826 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4828 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4830 if test ! -s conftest.s$ac_file; then
4832 rm -f conftest.s$ac_file
4834 if test -z "$ac_sed_cmds"; then
4835 ac_sed_cmds="sed -f conftest.s$ac_file"
4837 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4839 ac_file=`expr $ac_file + 1`
4841 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4844 if test -z "$ac_sed_cmds"; then
4849 cat >> $CONFIG_STATUS <<EOF
4851 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4853 cat >> $CONFIG_STATUS <<\EOF
4854 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4857 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4858 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4859 *) ac_file_in="${ac_file}.in" ;;
4862 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4864 # Remove last slash and all that follows it. Not all systems have dirname.
4865 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4866 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4867 # The file is in a subdirectory.
4868 test ! -d "$ac_dir" && mkdir "$ac_dir"
4869 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4870 # A "../" for each directory in $ac_dir_suffix.
4871 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4873 ac_dir_suffix= ac_dots=
4876 case "$ac_given_srcdir" in
4878 if test -z "$ac_dots"; then top_srcdir=.
4879 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4880 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4882 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4883 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4886 case "$ac_given_INSTALL" in
4887 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4888 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4891 echo creating "$ac_file"
4893 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4895 *Makefile*) ac_comsub="1i\\
4896 # $configure_input" ;;
4900 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4902 s%@configure_input@%$configure_input%g
4903 s%@srcdir@%$srcdir%g
4904 s%@top_srcdir@%$top_srcdir%g
4905 s%@INSTALL@%$INSTALL%g
4906 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4910 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4911 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4913 # ac_d sets the value in "#define NAME VALUE" lines.
4914 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4915 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4918 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4919 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4920 ac_uB='\([ ]\)%\1#\2define\3'
4923 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4924 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4925 ac_eB='$%\1#\2define\3'
4929 if test "${CONFIG_HEADERS+set}" != set; then
4931 cat >> $CONFIG_STATUS <<EOF
4932 CONFIG_HEADERS="include/defs.h"
4934 cat >> $CONFIG_STATUS <<\EOF
4936 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4939 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4940 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4941 *) ac_file_in="${ac_file}.in" ;;
4944 echo creating $ac_file
4946 rm -f conftest.frag conftest.in conftest.out
4947 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4948 cat $ac_file_inputs > conftest.in
4952 # Transform confdefs.h into a sed script conftest.vals that substitutes
4953 # the proper values into config.h.in to produce config.h. And first:
4954 # Protect against being on the right side of a sed subst in config.status.
4955 # Protect against being in an unquoted here document in config.status.
4957 cat > conftest.hdr <<\EOF
4960 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4964 sed -n -f conftest.hdr confdefs.h > conftest.vals
4967 # This sed command replaces #undef with comments. This is necessary, for
4968 # example, in the case of _POSIX_SOURCE, which is predefined and required
4969 # on some systems where configure will not decide to define it.
4970 cat >> conftest.vals <<\EOF
4971 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4974 # Break up conftest.vals because some shells have a limit on
4975 # the size of here documents, and old seds have small limits too.
4980 ac_lines=`grep -c . conftest.vals`
4981 # grep -c gives empty output for an empty file on some AIX systems.
4982 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4983 # Write a limited-size here document to conftest.frag.
4984 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4985 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4987 sed -f conftest.frag conftest.in > conftest.out
4989 mv conftest.out conftest.in
4991 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4993 mv conftest.tail conftest.vals
4997 cat >> $CONFIG_STATUS <<\EOF
4998 rm -f conftest.frag conftest.h
4999 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5000 cat conftest.in >> conftest.h
5002 if cmp -s $ac_file conftest.h 2>/dev/null; then
5003 echo "$ac_file is unchanged"
5006 # Remove last slash and all that follows it. Not all systems have dirname.
5007 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5008 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5009 # The file is in a subdirectory.
5010 test ! -d "$ac_dir" && mkdir "$ac_dir"
5013 mv conftest.h $ac_file
5018 cat >> $CONFIG_STATUS <<EOF
5021 cat >> $CONFIG_STATUS <<\EOF
5025 chmod +x $CONFIG_STATUS
5026 rm -fr confdefs* $ac_clean_files
5027 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5031 global configuration
5032 --------------------
5034 architecture : ${ARCH}
5035 optimizations : ${OPTIMS}
5036 inline assembly : ${ASM}
5040 vlc version : ${VLC_VERSION}
5041 debug mode : ${DEBUG}
5042 statistics : ${STATS}
5043 trace mode : ${TRACE}
5044 profiling : ${PROFILING}
5045 need builtin getopt : ${GETOPT}
5046 built-in modules :${BUILTINS}
5047 plugin modules :${PLUGINS}
5048 vlc aliases :${ALIASES}
5050 libdvdcss configuration
5051 -----------------------
5052 CSS decryption : ${CSS}
5054 You may now tune Makefile.opts at your convenience. To build vlc, type
5055 \`make vlc'. To build libdvdcss only, type \`make libdvdcss'."