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 --enable-fb Linux framebuffer support (default disabled)"
51 --with-ggi[=name] GGI support (default disabled)"
53 --with-sdl[=name] SDL support (default enabled)"
55 --with-directx[=name] Windows DirectX support (default enabled)"
57 --with-glide[=name] Glide (3dfx) support (default disabled)"
59 --enable-ncurses ncurses interface support (default disabled)"
61 --enable-qt Qt interface support (default disabled)"
63 --enable-kde KDE interface support (default disabled)"
65 --enable-gnome Gnome interface support (default disabled)"
67 --disable-gtk Gtk+ support (default enabled)"
69 --disable-x11 X11 support (default enabled)"
71 --disable-xvideo XVideo support (default enabled)"
73 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=include
/main.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
587 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
588 if test -f $ac_dir/install-sh
; then
590 ac_install_sh
="$ac_aux_dir/install-sh -c"
592 elif test -f $ac_dir/install.sh
; then
594 ac_install_sh
="$ac_aux_dir/install.sh -c"
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601 ac_config_guess
=$ac_aux_dir/config.guess
602 ac_config_sub
=$ac_aux_dir/config.sub
603 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
606 # Make sure we can run config.sub.
607 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
615 case "$host_alias" in
619 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 *) host_alias
=$nonopt ;;
626 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
635 LIBDVDCSS_VERSION
=0.0.1
640 save_CFLAGS
="${CFLAGS}"
642 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
643 echo "configure:644: checking whether ${MAKE-make} sets \${MAKE}" >&5
644 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
645 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 cat > conftestmake
<<\EOF
650 @
echo 'ac_maketemp="${MAKE}"'
652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
653 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
654 if test -n "$ac_maketemp"; then
655 eval ac_cv_prog_make_
${ac_make}_set
=yes
657 eval ac_cv_prog_make_
${ac_make}_set
=no
661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
662 echo "$ac_t""yes" 1>&6
665 echo "$ac_t""no" 1>&6
666 SET_MAKE
="MAKE=${MAKE-make}"
669 # Extract the first word of "gcc", so it can be a program name with args.
670 set dummy gcc
; ac_word
=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC
="$CC" # Let the user override the test.
679 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
681 for ac_dir
in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir
=.
683 if test -f $ac_dir/$ac_word; then
692 if test -n "$CC"; then
693 echo "$ac_t""$CC" 1>&6
695 echo "$ac_t""no" 1>&6
698 if test -z "$CC"; then
699 # Extract the first word of "cc", so it can be a program name with args.
700 set dummy cc
; ac_word
=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC
="$CC" # Let the user override the test.
709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
712 for ac_dir
in $ac_dummy; do
713 test -z "$ac_dir" && ac_dir
=.
714 if test -f $ac_dir/$ac_word; then
715 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
724 if test $ac_prog_rejected = yes; then
725 # We found a bogon in the path, so make sure we never use it.
726 set dummy
$ac_cv_prog_CC
728 if test $# -gt 0; then
729 # We chose a different compiler from the bogus one.
730 # However, it has the same basename, so the bogon will be chosen
731 # first if we set CC to just the basename; use the full file name.
733 set dummy
"$ac_dir/$ac_word" "$@"
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 if test -z "$CC"; then
750 # Extract the first word of "cl", so it can be a program name with args.
751 set dummy cl
; ac_word
=$2
752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
753 echo "configure:754: checking for $ac_word" >&5
754 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 if test -n "$CC"; then
758 ac_cv_prog_CC
="$CC" # Let the user override the test.
760 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
762 for ac_dir
in $ac_dummy; do
763 test -z "$ac_dir" && ac_dir
=.
764 if test -f $ac_dir/$ac_word; then
773 if test -n "$CC"; then
774 echo "$ac_t""$CC" 1>&6
776 echo "$ac_t""no" 1>&6
781 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789 ac_cpp
='$CPP $CPPFLAGS'
790 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792 cross_compiling
=$ac_cv_prog_cc_cross
794 cat > conftest.
$ac_ext << EOF
796 #line 797 "configure"
797 #include "confdefs.h"
801 if { (eval echo configure
:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
802 ac_cv_prog_cc_works
=yes
803 # If we can't run a trivial program, we are probably using a cross compiler.
804 if (.
/conftest
; exit) 2>/dev
/null
; then
805 ac_cv_prog_cc_cross
=no
807 ac_cv_prog_cc_cross
=yes
810 echo "configure: failed program was:" >&5
811 cat conftest.
$ac_ext >&5
812 ac_cv_prog_cc_works
=no
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp
='$CPP $CPPFLAGS'
818 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling
=$ac_cv_prog_cc_cross
822 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
823 if test $ac_cv_prog_cc_works = no
; then
824 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
826 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
827 echo "configure:828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
828 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
829 cross_compiling
=$ac_cv_prog_cc_cross
831 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
832 echo "configure:833: checking whether we are using GNU C" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 cat > conftest.c
<<EOF
841 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
848 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
850 if test $ac_cv_prog_gcc = yes; then
856 ac_test_CFLAGS
="${CFLAGS+set}"
857 ac_save_CFLAGS
="$CFLAGS"
859 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
860 echo "configure:861: checking whether ${CC-cc} accepts -g" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 echo 'void f(){}' > conftest.c
865 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
874 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
875 if test "$ac_test_CFLAGS" = set; then
876 CFLAGS
="$ac_save_CFLAGS"
877 elif test $ac_cv_prog_cc_g = yes; then
878 if test "$GCC" = yes; then
884 if test "$GCC" = yes; then
891 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
892 echo "configure:893: checking how to run the C preprocessor" >&5
893 # On Suns, sometimes $CPP names a directory.
894 if test -n "$CPP" && test -d "$CPP"; then
897 if test -z "$CPP"; then
898 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 # This must be in double quotes, not single quotes, because CPP may get
902 # substituted into the Makefile and "${CC-cc}" will confuse make.
904 # On the NeXT, cc -E runs the code through the compiler's parser,
905 # not just through cpp.
906 cat > conftest.
$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
913 { (eval echo configure
:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
914 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
915 if test -z "$ac_err"; then
919 echo "configure: failed program was:" >&5
920 cat conftest.
$ac_ext >&5
922 CPP
="${CC-cc} -E -traditional-cpp"
923 cat > conftest.
$ac_ext <<EOF
924 #line 925 "configure"
925 #include "confdefs.h"
929 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
930 { (eval echo configure
:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
931 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
932 if test -z "$ac_err"; then
936 echo "configure: failed program was:" >&5
937 cat conftest.
$ac_ext >&5
939 CPP
="${CC-cc} -nologo -E"
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
947 { (eval echo configure
:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
948 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
949 if test -z "$ac_err"; then
953 echo "configure: failed program was:" >&5
954 cat conftest.
$ac_ext >&5
963 ac_cv_prog_CPP
="$CPP"
965 CPP
="$ac_cv_prog_CPP"
967 ac_cv_prog_CPP
="$CPP"
969 echo "$ac_t""$CPP" 1>&6
971 # Extract the first word of "ranlib", so it can be a program name with args.
972 set dummy ranlib
; ac_word
=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
983 for ac_dir
in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir
=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_RANLIB
="ranlib"
991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
994 RANLIB
="$ac_cv_prog_RANLIB"
995 if test -n "$RANLIB"; then
996 echo "$ac_t""$RANLIB" 1>&6
998 echo "$ac_t""no" 1>&6
1002 # Find a good install program. We prefer a C program (faster),
1003 # so one script is as good as another. But avoid the broken or
1004 # incompatible versions:
1005 # SysV /etc/install, /usr/sbin/install
1006 # SunOS /usr/etc/install
1007 # IRIX /sbin/install
1009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1012 # ./install, which can be erroneously created by make from ./install.sh.
1013 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1014 echo "configure:1015: checking for a BSD compatible install" >&5
1015 if test -z "$INSTALL"; then
1016 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1020 for ac_dir
in $PATH; do
1021 # Account for people who put trailing slashes in PATH elements.
1023 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1025 # OSF1 and SCO ODT 3.0 have their own names for install.
1026 # Don't use installbsd from OSF since it installs stuff as root
1028 for ac_prog
in ginstall scoinst
install; do
1029 if test -f $ac_dir/$ac_prog; then
1030 if test $ac_prog = install &&
1031 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1032 # AIX install. It has an incompatible calling convention.
1035 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1046 if test "${ac_cv_path_install+set}" = set; then
1047 INSTALL
="$ac_cv_path_install"
1049 # As a last resort, use the slow shell script. We don't cache a
1050 # path for INSTALL within a source directory, because that will
1051 # break other packages using the cache if that directory is
1052 # removed, or if the path is relative.
1053 INSTALL
="$ac_install_sh"
1056 echo "$ac_t""$INSTALL" 1>&6
1058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1059 # It thinks the first close brace ends the variable substitution.
1060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1064 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1067 echo $ac_n "checking for working const""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working const" >&5
1069 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 /* Ultrix mips cc rejects this. */
1079 typedef int charset[2]; const charset x;
1080 /* SunOS 4.1.1 cc rejects this. */
1081 char const *const *ccp;
1083 /* NEC SVR4.0.2 mips cc rejects this. */
1084 struct point {int x, y;};
1085 static struct point const zero = {0,0};
1086 /* AIX XL C 1.02.0.0 rejects this.
1087 It does not let you subtract one const X* pointer from another in an arm
1088 of an if-expression whose if-part is not a constant expression */
1089 const char *g = "string";
1090 ccp = &g + (g ? g-g : 0);
1091 /* HPUX 7.0 cc rejects these. */
1094 ccp = (char const *const *) p;
1095 { /* SCO 3.2v4 cc rejects this. */
1097 char const *s = 0 ? (char *) 0 : (char const *) 0;
1101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1103 const int *foo = &x[0];
1106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1107 typedef const int *iptr;
1111 { /* AIX XL C 1.02.0.0 rejects this saying
1112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1113 struct s { int j; const int *ap[3]; };
1114 struct s *b; b->j = 5;
1116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1122 if { (eval echo configure
:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1126 echo "configure: failed program was:" >&5
1127 cat conftest.
$ac_ext >&5
1134 echo "$ac_t""$ac_cv_c_const" 1>&6
1135 if test $ac_cv_c_const = no
; then
1136 cat >> confdefs.h
<<\EOF
1143 if test x
${cross_compiling} != xyes
; then
1144 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether byte ordering is bigendian" >&5
1146 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 ac_cv_c_bigendian
=unknown
1150 # See if sys/param.h defines the BYTE_ORDER macro.
1151 cat > conftest.
$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1154 #include <sys/types.h>
1155 #include <sys/param.h>
1158 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1163 if { (eval echo configure
:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1165 # It does; now see whether it defined to BIG_ENDIAN or not.
1166 cat > conftest.
$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1169 #include <sys/types.h>
1170 #include <sys/param.h>
1173 #if BYTE_ORDER != BIG_ENDIAN
1178 if { (eval echo configure
:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1180 ac_cv_c_bigendian
=yes
1182 echo "configure: failed program was:" >&5
1183 cat conftest.
$ac_ext >&5
1185 ac_cv_c_bigendian
=no
1189 echo "configure: failed program was:" >&5
1190 cat conftest.
$ac_ext >&5
1193 if test $ac_cv_c_bigendian = unknown
; then
1194 if test "$cross_compiling" = yes; then
1195 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1201 /* Are we little or big endian? From Harbison&Steele. */
1205 char c[sizeof (long)];
1208 exit (u.c[sizeof (long) - 1] == 1);
1211 if { (eval echo configure
:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1213 ac_cv_c_bigendian
=no
1215 echo "configure: failed program was:" >&5
1216 cat conftest.
$ac_ext >&5
1218 ac_cv_c_bigendian
=yes
1226 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1227 if test $ac_cv_c_bigendian = yes; then
1228 cat >> confdefs.h
<<\EOF
1229 #define WORDS_BIGENDIAN 1
1236 for ac_func
in gettimeofday
select strerror strtod strtol
1238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_func" >&5
1240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1246 /* System header to define __stub macros and hopefully few prototypes,
1247 which can conflict with char $ac_func(); below. */
1249 /* Override any gcc2 internal prototype to avoid an error. */
1250 /* We use char because int might match the return type of a gcc2
1251 builtin and then its argument prototype would still apply. */
1256 /* The GNU C library defines this for functions which it implements
1257 to always fail with ENOSYS. Some functions are actually named
1258 something starting with __ and the normal name is an alias. */
1259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1267 if { (eval echo configure
:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1269 eval "ac_cv_func_$ac_func=yes"
1271 echo "configure: failed program was:" >&5
1272 cat conftest.
$ac_ext >&5
1274 eval "ac_cv_func_$ac_func=no"
1279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1281 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1282 cat >> confdefs.h
<<EOF
1283 #define $ac_tr_func 1
1287 echo "$ac_t""no" 1>&6
1291 for ac_func
in setenv putenv
1293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_func" >&5
1295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.
$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 /* System header to define __stub macros and hopefully few prototypes,
1302 which can conflict with char $ac_func(); below. */
1304 /* Override any gcc2 internal prototype to avoid an error. */
1305 /* We use char because int might match the return type of a gcc2
1306 builtin and then its argument prototype would still apply. */
1311 /* The GNU C library defines this for functions which it implements
1312 to always fail with ENOSYS. Some functions are actually named
1313 something starting with __ and the normal name is an alias. */
1314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1322 if { (eval echo configure
:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1324 eval "ac_cv_func_$ac_func=yes"
1326 echo "configure: failed program was:" >&5
1327 cat conftest.
$ac_ext >&5
1329 eval "ac_cv_func_$ac_func=no"
1334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1337 cat >> confdefs.h
<<EOF
1338 #define $ac_tr_func 1
1342 echo "$ac_t""no" 1>&6
1346 echo $ac_n "checking for connect""... $ac_c" 1>&6
1347 echo "configure:1348: checking for connect" >&5
1348 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 cat > conftest.
$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 /* System header to define __stub macros and hopefully few prototypes,
1355 which can conflict with char connect(); below. */
1357 /* Override any gcc2 internal prototype to avoid an error. */
1358 /* We use char because int might match the return type of a gcc2
1359 builtin and then its argument prototype would still apply. */
1364 /* The GNU C library defines this for functions which it implements
1365 to always fail with ENOSYS. Some functions are actually named
1366 something starting with __ and the normal name is an alias. */
1367 #if defined (__stub_connect) || defined (__stub___connect)
1375 if { (eval echo configure
:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1377 eval "ac_cv_func_connect=yes"
1379 echo "configure: failed program was:" >&5
1380 cat conftest.
$ac_ext >&5
1382 eval "ac_cv_func_connect=no"
1387 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1388 echo "$ac_t""yes" 1>&6
1391 echo "$ac_t""no" 1>&6
1393 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1394 echo "configure:1395: checking for connect in -lsocket" >&5
1395 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 ac_save_LIBS
="$LIBS"
1400 LIBS
="-lsocket $LIBS"
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 /* Override any gcc2 internal prototype to avoid an error. */
1405 /* We use char because int might match the return type of a gcc2
1406 builtin and then its argument prototype would still apply. */
1413 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1415 eval "ac_cv_lib_$ac_lib_var=yes"
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1420 eval "ac_cv_lib_$ac_lib_var=no"
1423 LIBS
="$ac_save_LIBS"
1426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1427 echo "$ac_t""yes" 1>&6
1428 LIB
="${LIB} -lsocket"
1430 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1437 echo "configure:1438: checking for gethostbyname" >&5
1438 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 /* System header to define __stub macros and hopefully few prototypes,
1445 which can conflict with char gethostbyname(); below. */
1447 /* Override any gcc2 internal prototype to avoid an error. */
1448 /* We use char because int might match the return type of a gcc2
1449 builtin and then its argument prototype would still apply. */
1450 char gethostbyname();
1454 /* The GNU C library defines this for functions which it implements
1455 to always fail with ENOSYS. Some functions are actually named
1456 something starting with __ and the normal name is an alias. */
1457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1465 if { (eval echo configure
:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1467 eval "ac_cv_func_gethostbyname=yes"
1469 echo "configure: failed program was:" >&5
1470 cat conftest.
$ac_ext >&5
1472 eval "ac_cv_func_gethostbyname=no"
1477 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1481 echo "$ac_t""no" 1>&6
1483 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1484 echo "configure:1485: checking for gethostbyname in -lnsl" >&5
1485 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 ac_save_LIBS
="$LIBS"
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1494 /* Override any gcc2 internal prototype to avoid an error. */
1495 /* We use char because int might match the return type of a gcc2
1496 builtin and then its argument prototype would still apply. */
1497 char gethostbyname();
1503 if { (eval echo configure
:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1505 eval "ac_cv_lib_$ac_lib_var=yes"
1507 echo "configure: failed program was:" >&5
1508 cat conftest.
$ac_ext >&5
1510 eval "ac_cv_lib_$ac_lib_var=no"
1513 LIBS
="$ac_save_LIBS"
1516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1526 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1527 echo "configure:1528: checking for nanosleep" >&5
1528 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.
$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1534 /* System header to define __stub macros and hopefully few prototypes,
1535 which can conflict with char nanosleep(); below. */
1537 /* Override any gcc2 internal prototype to avoid an error. */
1538 /* We use char because int might match the return type of a gcc2
1539 builtin and then its argument prototype would still apply. */
1544 /* The GNU C library defines this for functions which it implements
1545 to always fail with ENOSYS. Some functions are actually named
1546 something starting with __ and the normal name is an alias. */
1547 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1555 if { (eval echo configure
:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1557 eval "ac_cv_func_nanosleep=yes"
1559 echo "configure: failed program was:" >&5
1560 cat conftest.
$ac_ext >&5
1562 eval "ac_cv_func_nanosleep=no"
1567 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1568 echo "$ac_t""yes" 1>&6
1571 echo "$ac_t""no" 1>&6
1573 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1574 echo "configure:1575: checking for nanosleep in -lrt" >&5
1575 ac_lib_var
=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 ac_save_LIBS
="$LIBS"
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1593 if { (eval echo configure
:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1595 eval "ac_cv_lib_$ac_lib_var=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.
$ac_ext >&5
1600 eval "ac_cv_lib_$ac_lib_var=no"
1603 LIBS
="$ac_save_LIBS"
1606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1610 echo "$ac_t""no" 1>&6
1612 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1613 echo "configure:1614: checking for nanosleep in -lposix4" >&5
1614 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_save_LIBS
="$LIBS"
1619 LIBS
="-lposix4 $LIBS"
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* Override any gcc2 internal prototype to avoid an error. */
1624 /* We use char because int might match the return type of a gcc2
1625 builtin and then its argument prototype would still apply. */
1632 if { (eval echo configure
:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1634 eval "ac_cv_lib_$ac_lib_var=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.
$ac_ext >&5
1639 eval "ac_cv_lib_$ac_lib_var=no"
1642 LIBS
="$ac_save_LIBS"
1645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1647 LIB
="${LIB} -lposix4"
1649 echo "$ac_t""no" 1>&6
1658 for ac_func
in usleep
1660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_func" >&5
1662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.
$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 /* System header to define __stub macros and hopefully few prototypes,
1669 which can conflict with char $ac_func(); below. */
1671 /* Override any gcc2 internal prototype to avoid an error. */
1672 /* We use char because int might match the return type of a gcc2
1673 builtin and then its argument prototype would still apply. */
1678 /* The GNU C library defines this for functions which it implements
1679 to always fail with ENOSYS. Some functions are actually named
1680 something starting with __ and the normal name is an alias. */
1681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1689 if { (eval echo configure
:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1691 eval "ac_cv_func_$ac_func=yes"
1693 echo "configure: failed program was:" >&5
1694 cat conftest.
$ac_ext >&5
1696 eval "ac_cv_func_$ac_func=no"
1701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1704 cat >> confdefs.h
<<EOF
1705 #define $ac_tr_func 1
1709 echo "$ac_t""no" 1>&6
1713 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1714 echo "configure:1715: checking for inet_aton" >&5
1715 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 /* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char inet_aton(); below. */
1724 /* Override any gcc2 internal prototype to avoid an error. */
1725 /* We use char because int might match the return type of a gcc2
1726 builtin and then its argument prototype would still apply. */
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1742 if { (eval echo configure
:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1744 eval "ac_cv_func_inet_aton=yes"
1746 echo "configure: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1749 eval "ac_cv_func_inet_aton=no"
1754 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1758 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1761 echo "configure:1762: checking for inet_aton in -lresolv" >&5
1762 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS
="$LIBS"
1767 LIBS
="-lresolv $LIBS"
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1780 if { (eval echo configure
:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.
$ac_ext >&5
1787 eval "ac_cv_lib_$ac_lib_var=no"
1790 LIBS
="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 LIB
="${LIB} -lresolv"
1797 echo "$ac_t""no" 1>&6
1803 for ac_func
in vasprintf
1805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_func" >&5
1807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $ac_func(); below. */
1816 /* Override any gcc2 internal prototype to avoid an error. */
1817 /* We use char because int might match the return type of a gcc2
1818 builtin and then its argument prototype would still apply. */
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1834 if { (eval echo configure
:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1836 eval "ac_cv_func_$ac_func=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1841 eval "ac_cv_func_$ac_func=no"
1846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1849 cat >> confdefs.h
<<EOF
1850 #define $ac_tr_func 1
1854 echo "$ac_t""no" 1>&6
1860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_func" >&5
1862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $ac_func(); below. */
1871 /* Override any gcc2 internal prototype to avoid an error. */
1872 /* We use char because int might match the return type of a gcc2
1873 builtin and then its argument prototype would still apply. */
1878 /* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1889 if { (eval echo configure
:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1891 eval "ac_cv_func_$ac_func=yes"
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1896 eval "ac_cv_func_$ac_func=no"
1901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1902 echo "$ac_t""yes" 1>&6
1903 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1904 cat >> confdefs.h
<<EOF
1905 #define $ac_tr_func 1
1909 echo "$ac_t""no" 1>&6
1914 for ac_func
in sigrelse
1916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_func" >&5
1918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $ac_func(); below. */
1927 /* Override any gcc2 internal prototype to avoid an error. */
1928 /* We use char because int might match the return type of a gcc2
1929 builtin and then its argument prototype would still apply. */
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1945 if { (eval echo configure
:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1947 eval "ac_cv_func_$ac_func=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1952 eval "ac_cv_func_$ac_func=no"
1957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1960 cat >> confdefs.h
<<EOF
1961 #define $ac_tr_func 1
1965 echo "$ac_t""no" 1>&6
1970 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1971 echo "configure:1972: checking for getopt_long" >&5
1972 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 cat > conftest.
$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 /* System header to define __stub macros and hopefully few prototypes,
1979 which can conflict with char getopt_long(); below. */
1981 /* Override any gcc2 internal prototype to avoid an error. */
1982 /* We use char because int might match the return type of a gcc2
1983 builtin and then its argument prototype would still apply. */
1988 /* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1999 if { (eval echo configure
:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2001 eval "ac_cv_func_getopt_long=yes"
2003 echo "configure: failed program was:" >&5
2004 cat conftest.
$ac_ext >&5
2006 eval "ac_cv_func_getopt_long=no"
2011 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 cat >> confdefs.h
<<\EOF
2014 #define HAVE_GETOPT_LONG 1
2018 echo "$ac_t""no" 1>&6
2019 # FreeBSD has a gnugetopt library for this:
2020 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2021 echo "configure:2022: checking for getopt_long in -lgnugetopt" >&5
2022 ac_lib_var
=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS
="$LIBS"
2027 LIBS
="-lgnugetopt $LIBS"
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2040 if { (eval echo configure
:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 eval "ac_cv_lib_$ac_lib_var=no"
2050 LIBS
="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 cat >> confdefs.h
<<\EOF
2056 #define HAVE_GETOPT_LONG 1
2058 LIB
="${LIB} -lgnugetopt"
2060 echo "$ac_t""no" 1>&6
2068 for ac_hdr
in unistd.h
2070 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_hdr" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082 { (eval echo configure
:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2084 if test -z "$ac_err"; then
2086 eval "ac_cv_header_$ac_safe=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_header_$ac_safe=no"
2096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2099 cat >> confdefs.h
<<EOF
2100 #define $ac_tr_hdr 1
2104 echo "$ac_t""no" 1>&6
2108 for ac_func
in getpagesize
2110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_func" >&5
2112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.
$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $ac_func(); below. */
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2128 /* The GNU C library defines this for functions which it implements
2129 to always fail with ENOSYS. Some functions are actually named
2130 something starting with __ and the normal name is an alias. */
2131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2139 if { (eval echo configure
:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2141 eval "ac_cv_func_$ac_func=yes"
2143 echo "configure: failed program was:" >&5
2144 cat conftest.
$ac_ext >&5
2146 eval "ac_cv_func_$ac_func=no"
2151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2154 cat >> confdefs.h
<<EOF
2155 #define $ac_tr_func 1
2159 echo "$ac_t""no" 1>&6
2163 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2164 echo "configure:2165: checking for working mmap" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 if test "$cross_compiling" = yes; then
2169 ac_cv_func_mmap_fixed_mapped
=no
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2175 /* Thanks to Mike Haertel and Jim Avera for this test.
2176 Here is a matrix of mmap possibilities:
2177 mmap private not fixed
2178 mmap private fixed at somewhere currently unmapped
2179 mmap private fixed at somewhere already mapped
2180 mmap shared not fixed
2181 mmap shared fixed at somewhere currently unmapped
2182 mmap shared fixed at somewhere already mapped
2183 For private mappings, we should verify that changes cannot be read()
2184 back from the file, nor mmap's back from the file at a different
2185 address. (There have been systems where private was not correctly
2186 implemented like the infamous i386 svr4.0, and systems where the
2187 VM page cache was not coherent with the filesystem buffer cache
2188 like early versions of FreeBSD and possibly contemporary NetBSD.)
2189 For shared mappings, we should conversely verify that changes get
2190 propogated back to all the places they're supposed to be.
2192 Grep wants private fixed already mapped.
2193 The main things grep needs to know about mmap are:
2194 * does it exist and is it safe to write into the mmap'd area
2195 * how to use it (BSD variants) */
2196 #include <sys/types.h>
2198 #include <sys/mman.h>
2200 /* This mess was copied from the GNU getpagesize.h. */
2201 #ifndef HAVE_GETPAGESIZE
2202 # ifdef HAVE_UNISTD_H
2203 # include <unistd.h>
2206 /* Assume that all systems that can run configure have sys/param.h. */
2207 # ifndef HAVE_SYS_PARAM_H
2208 # define HAVE_SYS_PARAM_H 1
2211 # ifdef _SC_PAGESIZE
2212 # define getpagesize() sysconf(_SC_PAGESIZE)
2213 # else /* no _SC_PAGESIZE */
2214 # ifdef HAVE_SYS_PARAM_H
2215 # include <sys/param.h>
2216 # ifdef EXEC_PAGESIZE
2217 # define getpagesize() EXEC_PAGESIZE
2218 # else /* no EXEC_PAGESIZE */
2220 # define getpagesize() NBPG * CLSIZE
2223 # endif /* no CLSIZE */
2224 # else /* no NBPG */
2226 # define getpagesize() NBPC
2227 # else /* no NBPC */
2229 # define getpagesize() PAGESIZE
2230 # endif /* PAGESIZE */
2231 # endif /* no NBPC */
2232 # endif /* no NBPG */
2233 # endif /* no EXEC_PAGESIZE */
2234 # else /* no HAVE_SYS_PARAM_H */
2235 # define getpagesize() 8192 /* punt totally */
2236 # endif /* no HAVE_SYS_PARAM_H */
2237 # endif /* no _SC_PAGESIZE */
2239 #endif /* no HAVE_GETPAGESIZE */
2242 extern "C" { void *malloc(unsigned); }
2250 char *data, *data2, *data3;
2254 pagesize = getpagesize();
2257 * First, make a file with some known garbage in it.
2259 data = malloc(pagesize);
2262 for (i = 0; i < pagesize; ++i)
2263 *(data + i) = rand();
2265 fd = creat("conftestmmap", 0600);
2268 if (write(fd, data, pagesize) != pagesize)
2273 * Next, try to mmap the file at a fixed address which
2274 * already has something else allocated at it. If we can,
2275 * also make sure that we see the same garbage.
2277 fd = open("conftestmmap", O_RDWR);
2280 data2 = malloc(2 * pagesize);
2283 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2284 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2287 for (i = 0; i < pagesize; ++i)
2288 if (*(data + i) != *(data2 + i))
2292 * Finally, make sure that changes to the mapped area
2293 * do not percolate back to the file as seen by read().
2294 * (This is a bug on some variants of i386 svr4.0.)
2296 for (i = 0; i < pagesize; ++i)
2297 *(data2 + i) = *(data2 + i) + 1;
2298 data3 = malloc(pagesize);
2301 if (read(fd, data3, pagesize) != pagesize)
2303 for (i = 0; i < pagesize; ++i)
2304 if (*(data + i) != *(data3 + i))
2307 unlink("conftestmmap");
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2314 ac_cv_func_mmap_fixed_mapped
=yes
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 ac_cv_func_mmap_fixed_mapped
=no
2326 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2328 cat >> confdefs.h
<<\EOF
2334 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2335 echo "configure:2336: checking return type of signal handlers" >&5
2336 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 cat > conftest.
$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 #include <sys/types.h>
2348 extern "C" void (*signal (int, void (*)(int)))(int);
2350 void (*signal ()) ();
2357 if { (eval echo configure
:2358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2359 ac_cv_type_signal
=void
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 ac_cv_type_signal
=int
2369 echo "$ac_t""$ac_cv_type_signal" 1>&6
2370 cat >> confdefs.h
<<EOF
2371 #define RETSIGTYPE $ac_cv_type_signal
2375 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2376 echo "configure:2377: checking for dlopen in -ldl" >&5
2377 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 ac_save_LIBS
="$LIBS"
2383 cat > conftest.
$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 /* Override any gcc2 internal prototype to avoid an error. */
2387 /* We use char because int might match the return type of a gcc2
2388 builtin and then its argument prototype would still apply. */
2395 if { (eval echo configure
:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2397 eval "ac_cv_lib_$ac_lib_var=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_lib_$ac_lib_var=no"
2405 LIBS
="$ac_save_LIBS"
2408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2412 echo "$ac_t""no" 1>&6
2415 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2416 echo "configure:2417: checking for pow in -lm" >&5
2417 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_save_LIBS
="$LIBS"
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2435 if { (eval echo configure
:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS
="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 LIB_YUV
="${LIB_YUV} -lm"
2452 echo "$ac_t""no" 1>&6
2456 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include"
2457 CFLAGS
="${CFLAGS} -I/usr/local/include"
2460 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2461 echo "configure:2462: checking for pthread_attr_init in -lpthread" >&5
2462 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 ac_save_LIBS
="$LIBS"
2467 LIBS
="-lpthread $LIBS"
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474 char pthread_attr_init();
2480 if { (eval echo configure
:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2487 eval "ac_cv_lib_$ac_lib_var=no"
2490 LIBS
="$ac_save_LIBS"
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 THREAD_LIB
="-lpthread"
2497 echo "$ac_t""no" 1>&6
2500 if test "x${THREAD_LIB}" = xerror
; then
2501 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2502 echo "configure:2503: checking for pthread_attr_init in -lpthreads" >&5
2503 ac_lib_var
=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 ac_save_LIBS
="$LIBS"
2508 LIBS
="-lpthreads $LIBS"
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 /* Override any gcc2 internal prototype to avoid an error. */
2513 /* We use char because int might match the return type of a gcc2
2514 builtin and then its argument prototype would still apply. */
2515 char pthread_attr_init();
2521 if { (eval echo configure
:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2523 eval "ac_cv_lib_$ac_lib_var=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.
$ac_ext >&5
2528 eval "ac_cv_lib_$ac_lib_var=no"
2531 LIBS
="$ac_save_LIBS"
2534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 THREAD_LIB
="-lpthreads"
2538 echo "$ac_t""no" 1>&6
2542 if test "x${THREAD_LIB}" = xerror
; then
2543 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2544 echo "configure:2545: checking for pthread_attr_init in -lc_r" >&5
2545 ac_lib_var
=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 ac_save_LIBS
="$LIBS"
2551 cat > conftest.
$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 /* Override any gcc2 internal prototype to avoid an error. */
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557 char pthread_attr_init();
2563 if { (eval echo configure
:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2565 eval "ac_cv_lib_$ac_lib_var=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 eval "ac_cv_lib_$ac_lib_var=no"
2573 LIBS
="$ac_save_LIBS"
2576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2580 echo "$ac_t""no" 1>&6
2584 if test "x${THREAD_LIB}" = xerror
; then
2586 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2587 echo "configure:2588: checking for pthread_attr_init" >&5
2588 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.
$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 /* System header to define __stub macros and hopefully few prototypes,
2595 which can conflict with char pthread_attr_init(); below. */
2597 /* Override any gcc2 internal prototype to avoid an error. */
2598 /* We use char because int might match the return type of a gcc2
2599 builtin and then its argument prototype would still apply. */
2600 char pthread_attr_init();
2604 /* The GNU C library defines this for functions which it implements
2605 to always fail with ENOSYS. Some functions are actually named
2606 something starting with __ and the normal name is an alias. */
2607 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2610 pthread_attr_init();
2615 if { (eval echo configure
:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2617 eval "ac_cv_func_pthread_attr_init=yes"
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 eval "ac_cv_func_pthread_attr_init=no"
2627 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2631 echo "$ac_t""no" 1>&6
2636 cat > conftest.
$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 #include <pthread.h>
2641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2642 egrep "pthread_cond_t" >/dev
/null
2>&1; then
2645 cat >> confdefs.h
<<\EOF
2646 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 #include <strings.h>
2657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2658 egrep "strncasecmp" >/dev
/null
2>&1; then
2661 cat >> confdefs.h
<<\EOF
2662 #define STRNCASECMP_IN_STRINGS_H 1
2669 for ac_hdr
in stddef.h getopt.h
strings.h
2671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_hdr" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure
:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 eval "ac_cv_header_$ac_safe=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 eval "ac_cv_header_$ac_safe=no"
2697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2700 cat >> confdefs.h
<<EOF
2701 #define $ac_tr_hdr 1
2705 echo "$ac_t""no" 1>&6
2709 for ac_hdr
in sys
/sockio.h fcntl.h sys
/time.h unistd.h
2711 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_hdr" >&5
2714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure
:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2727 eval "ac_cv_header_$ac_safe=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2733 eval "ac_cv_header_$ac_safe=no"
2737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2739 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2740 cat >> confdefs.h
<<EOF
2741 #define $ac_tr_hdr 1
2745 echo "$ac_t""no" 1>&6
2749 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h
2751 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_hdr" >&5
2754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 cat > conftest.
$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure
:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2767 eval "ac_cv_header_$ac_safe=yes"
2770 echo "configure: failed program was:" >&5
2771 cat conftest.
$ac_ext >&5
2773 eval "ac_cv_header_$ac_safe=no"
2777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2780 cat >> confdefs.h
<<EOF
2781 #define $ac_tr_hdr 1
2785 echo "$ac_t""no" 1>&6
2789 for ac_hdr
in dlfcn.h image.h
2791 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_hdr" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure
:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2807 eval "ac_cv_header_$ac_safe=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 eval "ac_cv_header_$ac_safe=no"
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2820 cat >> confdefs.h
<<EOF
2821 #define $ac_tr_hdr 1
2825 echo "$ac_t""no" 1>&6
2829 for ac_hdr
in arpa
/inet.h net
/if.h netinet
/in.h sys
/socket.h
2831 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_hdr" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.
$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2843 { (eval echo configure
:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2844 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2845 if test -z "$ac_err"; then
2847 eval "ac_cv_header_$ac_safe=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 eval "ac_cv_header_$ac_safe=no"
2857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2860 cat >> confdefs.h
<<EOF
2861 #define $ac_tr_hdr 1
2865 echo "$ac_t""no" 1>&6
2869 for ac_hdr
in machine
/param.h
2871 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2873 echo "configure:2874: checking for $ac_hdr" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 cat > conftest.
$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2882 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure
:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2887 eval "ac_cv_header_$ac_safe=yes"
2890 echo "configure: failed program was:" >&5
2891 cat conftest.
$ac_ext >&5
2893 eval "ac_cv_header_$ac_safe=no"
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2900 cat >> confdefs.h
<<EOF
2901 #define $ac_tr_hdr 1
2905 echo "$ac_t""no" 1>&6
2910 for ac_hdr
in cthreads.h pthread.h kernel
/scheduler.h kernel
/OS.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2951 CFLAGS
="${save_CFLAGS} -Wall -Werror"
2952 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2953 echo "configure:2954: checking for ntohl in sys/param.h" >&5
2954 cat > conftest.
$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2957 #include <sys/param.h>
2958 void foo() { int meuh; ntohl(meuh); }
2963 if { (eval echo configure
:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 cat >> confdefs.h
<<\EOF
2966 #define NTOHL_IN_SYS_PARAM_H 1
2969 echo "$ac_t""yes" 1>&6
2971 echo "configure: failed program was:" >&5
2972 cat conftest.
$ac_ext >&5
2974 echo "$ac_t""no" 1>&6
2978 CFLAGS
="${save_CFLAGS} -bundle -undefined suppress"
2979 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
2980 echo "configure:2981: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2989 if { (eval echo configure
:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 PLCFLAGS
="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2993 echo "configure: failed program was:" >&5
2994 cat conftest.
$ac_ext >&5
2996 echo "$ac_t""no" 1>&6
3000 CFLAGS
="${save_CFLAGS} -shared"
3001 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3002 echo "configure:3003: checking if \$CC compiles plugins with -shared" >&5
3003 cat > conftest.
$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3011 if { (eval echo configure
:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013 PLCFLAGS
="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3015 echo "configure: failed program was:" >&5
3016 cat conftest.
$ac_ext >&5
3018 echo "$ac_t""no" 1>&6
3022 CFLAGS
="${save_CFLAGS}"
3024 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3025 echo "configure:3026: checking for boolean_t in sys/types.h" >&5
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <sys/types.h>
3030 void quux() { boolean_t foo; }
3035 if { (eval echo configure
:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 cat >> confdefs.h
<<\EOF
3038 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3041 echo "$ac_t""yes" 1>&6
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 echo "$ac_t""no" 1>&6
3049 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3050 echo "configure:3051: checking for boolean_t in pthread.h" >&5
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <pthread.h>
3055 void quux() { boolean_t foo; }
3060 if { (eval echo configure
:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3062 cat >> confdefs.h
<<\EOF
3063 #define BOOLEAN_T_IN_PTHREAD_H 1
3066 echo "$ac_t""yes" 1>&6
3068 echo "configure: failed program was:" >&5
3069 cat conftest.
$ac_ext >&5
3071 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for working const""... $ac_c" 1>&6
3076 echo "configure:3077: checking for working const" >&5
3077 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3086 /* Ultrix mips cc rejects this. */
3087 typedef int charset[2]; const charset x;
3088 /* SunOS 4.1.1 cc rejects this. */
3089 char const *const *ccp;
3091 /* NEC SVR4.0.2 mips cc rejects this. */
3092 struct point {int x, y;};
3093 static struct point const zero = {0,0};
3094 /* AIX XL C 1.02.0.0 rejects this.
3095 It does not let you subtract one const X* pointer from another in an arm
3096 of an if-expression whose if-part is not a constant expression */
3097 const char *g = "string";
3098 ccp = &g + (g ? g-g : 0);
3099 /* HPUX 7.0 cc rejects these. */
3102 ccp = (char const *const *) p;
3103 { /* SCO 3.2v4 cc rejects this. */
3105 char const *s = 0 ? (char *) 0 : (char const *) 0;
3109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3111 const int *foo = &x[0];
3114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3115 typedef const int *iptr;
3119 { /* AIX XL C 1.02.0.0 rejects this saying
3120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3121 struct s { int j; const int *ap[3]; };
3122 struct s *b; b->j = 5;
3124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3130 if { (eval echo configure
:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 echo "configure: failed program was:" >&5
3135 cat conftest.
$ac_ext >&5
3142 echo "$ac_t""$ac_cv_c_const" 1>&6
3143 if test $ac_cv_c_const = no
; then
3144 cat >> confdefs.h
<<\EOF
3150 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3151 echo "configure:3152: checking for ANSI C header files" >&5
3152 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.
$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3163 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure
:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3168 ac_cv_header_stdc
=yes
3171 echo "configure: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3174 ac_cv_header_stdc
=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 egrep "memchr" >/dev
/null
2>&1; then
3190 ac_cv_header_stdc
=no
3196 if test $ac_cv_header_stdc = yes; then
3197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 egrep "free" >/dev
/null
2>&1; then
3208 ac_cv_header_stdc
=no
3214 if test $ac_cv_header_stdc = yes; then
3215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3216 if test "$cross_compiling" = yes; then
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3223 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3224 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3226 int main () { int i; for (i = 0; i < 256; i++)
3227 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3231 if { (eval echo configure
:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 ac_cv_header_stdc
=no
3246 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3247 if test $ac_cv_header_stdc = yes; then
3248 cat >> confdefs.h
<<\EOF
3249 #define STDC_HEADERS 1
3254 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3255 echo "configure:3256: checking for size_t" >&5
3256 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <sys/types.h>
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3271 ac_cv_type_size_t
=yes
3274 ac_cv_type_size_t
=no
3279 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3280 if test $ac_cv_type_size_t = no
; then
3281 cat >> confdefs.h
<<\EOF
3282 #define size_t unsigned
3287 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3288 echo "configure:3289: checking whether time.h and sys/time.h may both be included" >&5
3289 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3296 #include <sys/time.h>
3302 if { (eval echo configure
:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304 ac_cv_header_time
=yes
3306 echo "configure: failed program was:" >&5
3307 cat conftest.
$ac_ext >&5
3309 ac_cv_header_time
=no
3314 echo "$ac_t""$ac_cv_header_time" 1>&6
3315 if test $ac_cv_header_time = yes; then
3316 cat >> confdefs.h
<<\EOF
3317 #define TIME_WITH_SYS_TIME 1
3325 BUILTINS
="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3326 PLUGINS
="${PLUGINS}"
3328 MMX_MODULES
="yuvmmx idctmmx motionmmx"
3329 MMXEXT_MODULES
="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3331 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3332 echo "configure:3333: checking if \$CC groks MMX inline assembly" >&5
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3341 if { (eval echo configure
:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 ACCEL_MODULES
="${ACCEL_MODULES} ${MMX_MODULES}"
3344 echo "$ac_t""yes" 1>&6
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3354 echo "configure:3355: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3363 if { (eval echo configure
:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 ACCEL_MODULES
="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3366 echo "$ac_t""yes" 1>&6
3368 echo "configure: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3371 echo "$ac_t""no" 1>&6
3376 for ac_hdr
in winioctl.h
3378 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_hdr" >&5
3381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3390 { (eval echo configure
:3391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3392 if test -z "$ac_err"; then
3394 eval "ac_cv_header_$ac_safe=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_header_$ac_safe=no"
3404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3407 cat >> confdefs.h
<<EOF
3408 #define $ac_tr_hdr 1
3414 echo "$ac_t""no" 1>&6
3419 for ac_hdr
in sys
/ioctl.h
3421 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3423 echo "configure:3424: checking for $ac_hdr" >&5
3424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3433 { (eval echo configure
:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3435 if test -z "$ac_err"; then
3437 eval "ac_cv_header_$ac_safe=yes"
3440 echo "configure: failed program was:" >&5
3441 cat conftest.
$ac_ext >&5
3443 eval "ac_cv_header_$ac_safe=no"
3447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3450 cat >> confdefs.h
<<EOF
3451 #define $ac_tr_hdr 1
3455 for ac_hdr
in sys
/cdio.h sys
/dvdio.h linux
/cdrom.h
3457 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_hdr" >&5
3460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3469 { (eval echo configure
:3470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3470 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3471 if test -z "$ac_err"; then
3473 eval "ac_cv_header_$ac_safe=yes"
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 eval "ac_cv_header_$ac_safe=no"
3483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3484 echo "$ac_t""yes" 1>&6
3485 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3486 cat >> confdefs.h
<<EOF
3487 #define $ac_tr_hdr 1
3491 echo "$ac_t""no" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/dvdio.h>
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 egrep "dvd_struct" >/dev
/null
2>&1; then
3505 cat >> confdefs.h
<<\EOF
3506 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <sys/cdio.h>
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 egrep "dvd_struct" >/dev
/null
2>&1; then
3523 cat >> confdefs.h
<<\EOF
3524 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3532 if test x
$BSD_DVD_STRUCT = x1
; then
3533 cat >> confdefs.h
<<\EOF
3534 #define HAVE_BSD_DVD_STRUCT 1
3538 cat > conftest.
$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #include <linux/cdrom.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_LINUX_CDROM_H 1
3557 echo "$ac_t""no" 1>&6
3571 # Check whether --enable-ppro or --disable-ppro was given.
3572 if test "${enable_ppro+set}" = set; then
3573 enableval
="$enable_ppro"
3574 if test x
$enableval = xyes
; then ARCH
="${ARCH} ppro"; fi
3576 if test x
${host_cpu} = xi686
; then ARCH
="${ARCH} ppro"; fi
3580 # Check whether --enable-mmx or --disable-mmx was given.
3581 if test "${enable_mmx+set}" = set; then
3582 enableval
="$enable_mmx"
3583 if test x
$enableval = xyes
; then ARCH
="${ARCH} mmx";
3584 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
3586 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
";
3587 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3591 # Check whether --enable-altivec or --disable-altivec was given.
3592 if test "${enable_altivec+set}" = set; then
3593 enableval="$enable_altivec"
3594 if test x$enableval = xyes; then ARCH="${ARCH} altivec
";
3595 BUILTINS="${BUILTINS} idctaltivec
"
3596 LIB_IDCTALTIVEC="-framework vecLib
"
3600 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec
"; PLUGINS="${PLUGINS} idctaltivec
"; fi ])
3602 # Check whether --enable-debug or --disable-debug was given.
3603 if test "${enable_debug+set}" = set; then
3604 enableval="$enable_debug"
3605 if test x$enableval = xyes; then DEBUG=1; fi
3609 # Check whether --enable-stats or --disable-stats was given.
3610 if test "${enable_stats+set}" = set; then
3611 enableval="$enable_stats"
3612 if test x$enableval = xyes; then STATS=1; fi
3616 # Check whether --enable-trace or --disable-trace was given.
3617 if test "${enable_trace+set}" = set; then
3618 enableval="$enable_trace"
3619 if test x$enableval = xyes; then TRACE=1; fi
3623 # Check whether --enable-profiling or --disable-profiling was given.
3624 if test "${enable_profiling+set}" = set; then
3625 enableval="$enable_profiling"
3626 if test x$enableval = xyes; then PROFILING=1; fi
3630 # Check whether --enable-optimizations or --disable-optimizations was given.
3631 if test "${enable_optimizations+set}" = set; then
3632 enableval="$enable_optimizations"
3633 if test x$enableval = xno; then OPTIMS=0; fi
3639 # Check whether --enable-pth or --disable-pth was given.
3640 if test "${enable_pth+set}" = set; then
3641 enableval="$enable_pth"
3642 if test x$enableval = xyes; then
3643 echo $ac_n "checking
for pth_init
in -lpth""...
$ac_c" 1>&6
3644 echo "configure
:3645: checking
for pth_init
in -lpth" >&5
3645 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3647 echo $ac_n "(cached
) $ac_c" 1>&6
3649 ac_save_LIBS="$LIBS"
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure
"
3653 #include "confdefs.h
"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_lib_
$ac_lib_var=yes"
3667 echo "configure
: failed program was
:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_lib_
$ac_lib_var=no
"
3673 LIBS="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3680 cat >> confdefs.h <<EOF
3681 #define $ac_tr_lib 1
3687 echo "$ac_t""no
" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure
"
3692 #include "confdefs.h
"
3695 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3696 egrep "pth_init
" >/dev/null 2>&1; then
3699 cat >> confdefs.h <<\EOF
3700 #define PTH_INIT_IN_PTH_H 1
3712 LIB="${LIB} ${THREAD_LIB}"
3714 # Check whether --enable-css or --disable-css was given.
3715 if test "${enable_css+set}" = set; then
3716 enableval="$enable_css"
3717 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3722 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3727 for ac_hdr in videolan/dvdcss.h
3729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3730 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3731 echo "configure
:3732: checking
for $ac_hdr" >&5
3732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3733 echo $ac_n "(cached
) $ac_c" 1>&6
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure
"
3737 #include "confdefs.h
"
3740 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3741 { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3743 if test -z "$ac_err"; then
3745 eval "ac_cv_header_
$ac_safe=yes"
3748 echo "configure
: failed program was
:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_header_
$ac_safe=no
"
3755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_hdr 1
3762 # installed libdvdcss
3763 BUILTINS="${BUILTINS} dvd
"
3764 LIB_DVD="${LIB_DVD} -ldvdcss"
3766 echo "$ac_t""no
" 1>&6
3767 if test x${LIBDVDCSS} = x1; then
3770 BUILTINS="${BUILTINS} dvd
"
3771 CFLAGS_DVD="${CFLAGS_DVD} -I..
/..
/extras
/libdvdcss
"
3777 # Check whether --enable-dummy or --disable-dummy was given.
3778 if test "${enable_dummy+set}" = set; then
3779 enableval="$enable_dummy"
3783 if test x$enable_dummy != xno; then
3784 BUILTINS="${BUILTINS} dummy
"; fi
3786 # Check whether --enable-null or --disable-null was given.
3787 if test "${enable_null+set}" = set; then
3788 enableval="$enable_null"
3792 if test x$enable_null != xno; then
3793 BUILTINS="${BUILTINS} null
"; fi
3795 # Check whether --enable-rc or --disable-rc was given.
3796 if test "${enable_rc+set}" = set; then
3797 enableval="$enable_rc"
3801 if test x$enable_rc != xno; then
3802 BUILTINS="${BUILTINS} rc
"; fi
3804 if test x$SYS = xbeos; then
3805 BUILTINS="${BUILTINS} beos
"
3806 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3807 PLCFLAGS="${PLCFLAGS} -nostart"
3811 # Check whether --enable-dsp or --disable-dsp was given.
3812 if test "${enable_dsp+set}" = set; then
3813 enableval="$enable_dsp"
3817 if test x$enable_dsp != xno; then
3818 if test -c /dev/dsp; then
3819 PLUGINS="${PLUGINS} dsp
"
3823 # Check whether --enable-esd or --disable-esd was given.
3824 if test "${enable_esd+set}" = set; then
3825 enableval="$enable_esd"
3826 if test x$enable_esd = xyes; then
3827 # Extract the first word of "esd-config
", so it can be a program name with args.
3828 set dummy esd-config; ac_word=$2
3829 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3830 echo "configure
:3831: checking
for $ac_word" >&5
3831 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3832 echo $ac_n "(cached
) $ac_c" 1>&6
3834 case "$ESD_CONFIG" in
3836 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3839 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3844 for ac_dir in $ac_dummy; do
3845 test -z "$ac_dir" && ac_dir=.
3846 if test -f $ac_dir/$ac_word; then
3847 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3852 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no
"
3856 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3857 if test -n "$ESD_CONFIG"; then
3858 echo "$ac_t""$ESD_CONFIG" 1>&6
3860 echo "$ac_t""no
" 1>&6
3863 if test x${ESD_CONFIG} != xno; then
3864 PLUGINS="${PLUGINS} esd
"
3865 LIB_ESD="`${ESD_CONFIG} --libs`"
3871 # Check whether --enable-darwin or --disable-darwin was given.
3872 if test "${enable_darwin+set}" = set; then
3873 enableval="$enable_darwin"
3874 if test x$enable_darwin = xyes; then
3875 PLUGINS="${PLUGINS} darwin
"
3876 LIB_DARWIN="-framework CoreAudio
"
3881 # Check whether --enable-macosx or --disable-macosx was given.
3882 if test "${enable_macosx+set}" = set; then
3883 enableval="$enable_macosx"
3884 if test x$enable_macosx = xyes; then
3885 BUILTINS="${BUILTINS} macosx
"
3886 LIB_MACOSX="-framework CoreAudio
-framework Carbon
-framework AGL
"
3887 LIB_TS="${LIB_TS} -framework AGL
-framework Carbon
"
3888 LIB_SDL="${LIB_SDL} -framework AGL
-framework Carbon
"
3891 for ac_hdr in Carbon/Carbon.h
3893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3894 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3895 echo "configure
:3896: checking
for $ac_hdr" >&5
3896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3897 echo $ac_n "(cached
) $ac_c" 1>&6
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure
"
3901 #include "confdefs.h
"
3904 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3905 { (eval echo configure:3906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3907 if test -z "$ac_err"; then
3909 eval "ac_cv_header_
$ac_safe=yes"
3912 echo "configure
: failed program was
:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_header_
$ac_safe=no
"
3919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3922 cat >> confdefs.h <<EOF
3923 #define $ac_tr_hdr 1
3925 BUILTINS="${BUILTINS} macosx
"
3926 LIB_MACOSX="-framework CoreAudio
-framework Carbon
-framework AGL
"
3927 LIB_TS="${LIB_TS} -framework AGL
-framework Carbon
"
3928 LIB_SDL="${LIB_SDL} -framework AGL
-framework Carbon
"
3931 echo "$ac_t""no
" 1>&6
3938 # Check whether --enable-fb or --disable-fb was given.
3939 if test "${enable_fb+set}" = set; then
3940 enableval="$enable_fb"
3941 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb
"; fi
3945 # Check whether --with-ggi or --without-ggi was given.
3946 if test "${with_ggi+set}" = set; then
3948 if test "x
$withval" != "xno
";
3950 PLUGINS="${PLUGINS} ggi
";
3951 if test "x
$withval" != "xyes
";
3953 LIB_GGI="-l"$withval
3961 # Check whether --with-sdl or --without-sdl was given.
3962 if test "${with_sdl+set}" = set; then
3964 if test "x
$withval" != "xno
";
3966 PLUGINS="${PLUGINS} sdl
";
3967 if test "x
$withval" != "xyes
";
3969 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-L"$withval"/lib
-lSDL"
3970 CFLAGS_SDL="-I"$withval"/include
"
3972 for ac_hdr in SDL/SDL.h
3974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3975 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3976 echo "configure
:3977: checking
for $ac_hdr" >&5
3977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3978 echo $ac_n "(cached
) $ac_c" 1>&6
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure
"
3982 #include "confdefs.h
"
3985 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3986 { (eval echo configure:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3988 if test -z "$ac_err"; then
3990 eval "ac_cv_header_
$ac_safe=yes"
3993 echo "configure
: failed program was
:" >&5
3994 cat conftest.$ac_ext >&5
3996 eval "ac_cv_header_
$ac_safe=no
"
4000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4003 cat >> confdefs.h <<EOF
4004 #define $ac_tr_hdr 1
4008 echo "$ac_t""no
" 1>&6
4009 echo "Cannot
find SDL headers
!"; exit
4013 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-lSDL"
4018 if test "x
$withval" = "x
";
4020 for ac_hdr in SDL/SDL.h
4022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4023 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4024 echo "configure
:4025: checking
for $ac_hdr" >&5
4025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4026 echo $ac_n "(cached
) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure
"
4030 #include "confdefs.h
"
4033 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4034 { (eval echo configure:4035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4036 if test -z "$ac_err"; then
4038 eval "ac_cv_header_
$ac_safe=yes"
4041 echo "configure
: failed program was
:" >&5
4042 cat conftest.$ac_ext >&5
4044 eval "ac_cv_header_
$ac_safe=no
"
4048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4051 cat >> confdefs.h <<EOF
4052 #define $ac_tr_hdr 1
4054 PLUGINS="${PLUGINS} sdl
"
4055 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-lSDL"
4057 echo "$ac_t""no
" 1>&6
4063 # Check whether --with-directx or --without-directx was given.
4064 if test "${with_directx+set}" = set; then
4065 withval="$with_directx"
4066 if test "x
$withval" != "xno
";
4068 PLUGINS="${PLUGINS} directx
";
4069 if test "x
$withval" != "xyes
";
4071 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib
-lgdi32 -ldxguid"
4072 INCLUDE="${INCLUDE} -I"$withval"/include
"
4074 for ac_hdr in directx.h
4076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4077 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4078 echo "configure
:4079: checking
for $ac_hdr" >&5
4079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4080 echo $ac_n "(cached
) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure
"
4084 #include "confdefs.h
"
4087 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4088 { (eval echo configure:4089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4090 if test -z "$ac_err"; then
4092 eval "ac_cv_header_
$ac_safe=yes"
4095 echo "configure
: failed program was
:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_header_
$ac_safe=no
"
4102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_hdr 1
4110 echo "$ac_t""no
" 1>&6
4111 echo "Cannot
find DirectX headers
!"; exit
4115 LIB_DIRECTX="${LIB_DIRECTX} -L/usr
/lib
-lgdi32 -ldxguid"
4120 if test "x
$withval" = "x
";
4122 for ac_hdr in directx.h
4124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4125 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4126 echo "configure
:4127: checking
for $ac_hdr" >&5
4127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4128 echo $ac_n "(cached
) $ac_c" 1>&6
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure
"
4132 #include "confdefs.h
"
4135 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4136 { (eval echo configure:4137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4138 if test -z "$ac_err"; then
4140 eval "ac_cv_header_
$ac_safe=yes"
4143 echo "configure
: failed program was
:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_header_
$ac_safe=no
"
4150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4153 cat >> confdefs.h <<EOF
4154 #define $ac_tr_hdr 1
4156 PLUGINS="${PLUGINS} directx
"
4157 LIB_DIRECTX="${LIB_DIRECTX} -L/usr
/lib
-lgdi32 -ldxguid"
4159 echo "$ac_t""no
" 1>&6
4165 # Check whether --with-glide or --without-glide was given.
4166 if test "${with_glide+set}" = set; then
4167 withval="$with_glide"
4168 if test "x
$withval" != "xno
";
4170 PLUGINS="${PLUGINS} glide
";
4171 if test "x
$withval" != "xyes
";
4173 LIB_GLIDE="-l"$withval" -lm"
4175 LIB_GLIDE="-lglide2x -lm"
4181 # Check whether --enable-ncurses or --disable-ncurses was given.
4182 if test "${enable_ncurses+set}" = set; then
4183 enableval="$enable_ncurses"
4184 if test x$enable_ncurses = xyes; then
4185 PLUGINS="${PLUGINS} ncurses
"
4186 LIB_NCURSES="-lncurses"
4191 # Check whether --enable-qt or --disable-qt was given.
4192 if test "${enable_qt+set}" = set; then
4193 enableval="$enable_qt"
4194 if test x$enable_qt = xyes; then
4195 PLUGINS="${PLUGINS} qt
"
4196 ALIASES="${ALIASES} qvlc
"
4197 LIB_QT="-lqt -L${QTDIR}/lib
"
4198 if test -x ${QTDIR}/bin/moc ;
4200 MOC=${QTDIR}/bin/moc
4208 # Check whether --enable-kde or --disable-kde was given.
4209 if test "${enable_kde+set}" = set; then
4210 enableval="$enable_kde"
4211 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde
"; ALIASES="${ALIASES} kvlc
"; fi
4215 # Check whether --enable-gnome or --disable-gnome was given.
4216 if test "${enable_gnome+set}" = set; then
4217 enableval="$enable_gnome"
4218 if test x$enable_gnome = xyes; then
4219 PLUGINS="${PLUGINS} gnome
"
4220 ALIASES="${ALIASES} gnome-vlc
"
4221 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4226 # Check whether --enable-gtk or --disable-gtk was given.
4227 if test "${enable_gtk+set}" = set; then
4228 enableval="$enable_gtk"
4232 if test x$enable_gtk != xno; then
4233 # Extract the first word of "gtk-config
", so it can be a program name with args.
4234 set dummy gtk-config; ac_word=$2
4235 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4236 echo "configure
:4237: checking
for $ac_word" >&5
4237 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4238 echo $ac_n "(cached
) $ac_c" 1>&6
4240 case "$GTK_CONFIG" in
4242 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4245 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4250 for ac_dir in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f $ac_dir/$ac_word; then
4253 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4258 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no
"
4262 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4263 if test -n "$GTK_CONFIG"; then
4264 echo "$ac_t""$GTK_CONFIG" 1>&6
4266 echo "$ac_t""no
" 1>&6
4269 if test x${GTK_CONFIG} != xno; then
4270 PLUGINS="${PLUGINS} gtk
"
4271 ALIASES="${ALIASES} gvlc
"
4272 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4273 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4277 # Check whether --enable-x11 or --disable-x11 was given.
4278 if test "${enable_x11+set}" = set; then
4279 enableval="$enable_x11"
4283 if test x$enable_x11 != xno; then
4284 if test x$x_includes = xNONE; then
4285 x_includes=/usr/X11R6/include
4287 if test x$x_libraries = xNONE; then
4288 x_libraries=/usr/X11R6/lib
4290 saved_CPPFLAGS=$CPPFLAGS
4291 CPPFLAGS="$CPPFLAGS -I$x_includes"
4292 for ac_hdr in X11/Xlib.h
4294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4295 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4296 echo "configure
:4297: checking
for $ac_hdr" >&5
4297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4298 echo $ac_n "(cached
) $ac_c" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure
"
4302 #include "confdefs.h
"
4305 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4306 { (eval echo configure:4307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4308 if test -z "$ac_err"; then
4310 eval "ac_cv_header_
$ac_safe=yes"
4313 echo "configure
: failed program was
:" >&5
4314 cat conftest.$ac_ext >&5
4316 eval "ac_cv_header_
$ac_safe=no
"
4320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4323 cat >> confdefs.h <<EOF
4324 #define $ac_tr_hdr 1
4327 PLUGINS="${PLUGINS} x11
"
4328 LIB_X11="-L$x_libraries -lX11 -lXext"
4329 CFLAGS_X11="-I$x_includes"
4331 CPPFLAGS=$saved_CPPFLAGS
4333 echo "$ac_t""no
" 1>&6
4339 # Check whether --enable-xvideo or --disable-xvideo was given.
4340 if test "${enable_xvideo+set}" = set; then
4341 enableval="$enable_xvideo"
4345 if test x$enable_xvideo != xno; then
4346 if test x$x_includes = xNONE; then
4347 x_includes=/usr/X11R6/include
4349 if test x$x_libraries = xNONE; then
4350 x_libraries=/usr/X11R6/lib
4352 saved_CPPFLAGS=$CPPFLAGS
4353 CPPFLAGS="$CPPFLAGS -I$x_includes"
4354 for ac_hdr in X11/extensions/Xv.h
4356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4358 echo "configure
:4359: checking
for $ac_hdr" >&5
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4360 echo $ac_n "(cached
) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure
"
4364 #include "confdefs.h
"
4367 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4370 if test -z "$ac_err"; then
4372 eval "ac_cv_header_
$ac_safe=yes"
4375 echo "configure
: failed program was
:" >&5
4376 cat conftest.$ac_ext >&5
4378 eval "ac_cv_header_
$ac_safe=no
"
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4385 cat >> confdefs.h <<EOF
4386 #define $ac_tr_hdr 1
4389 PLUGINS="${PLUGINS} xvideo
"
4390 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4391 CFLAGS_X11="-I$x_includes"
4393 CPPFLAGS=$saved_CPPFLAGS
4395 echo "$ac_t""no
" 1>&6
4401 # Check whether --enable-alsa or --disable-alsa was given.
4402 if test "${enable_alsa+set}" = set; then
4403 enableval="$enable_alsa"
4404 if test x$enable_alsa = xyes; then ac_safe=`echo "sys
/asoundlib.h
" | sed 'y%./+-%__p_%'`
4405 echo $ac_n "checking
for sys
/asoundlib.h
""...
$ac_c" 1>&6
4406 echo "configure
:4407: checking
for sys
/asoundlib.h
" >&5
4407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4408 echo $ac_n "(cached
) $ac_c" 1>&6
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure
"
4412 #include "confdefs.h
"
4413 #include <sys/asoundlib.h>
4415 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4416 { (eval echo configure:4417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4418 if test -z "$ac_err"; then
4420 eval "ac_cv_header_
$ac_safe=yes"
4423 echo "configure
: failed program was
:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_header_
$ac_safe=no
"
4430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 echo $ac_n "checking
for main
in -lasound""...
$ac_c" 1>&6
4433 echo "configure
:4434: checking
for main
in -lasound" >&5
4434 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4436 echo $ac_n "(cached
) $ac_c" 1>&6
4438 ac_save_LIBS="$LIBS"
4439 LIBS="-lasound $LIBS"
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure
"
4442 #include "confdefs.h
"
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450 eval "ac_cv_lib_
$ac_lib_var=yes"
4452 echo "configure
: failed program was
:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_lib_
$ac_lib_var=no
"
4458 LIBS="$ac_save_LIBS"
4461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4465 echo "$ac_t""no
" 1>&6
4470 echo "$ac_t""no
" 1>&6
4473 if test x$have_alsa = xtrue; then
4474 PLUGINS="${PLUGINS} alsa
"
4532 cat > confcache <<\EOF
4533 # This file is a shell script that caches the results of configure
4534 # tests run on this system so they can be shared between configure
4535 # scripts and configure runs. It is not useful on other systems.
4536 # If it contains results you don't want to keep, you may remove or edit it.
4538 # By default, configure uses ./config.cache as the cache file,
4539 # creating it if it does not exist already. You can give configure
4540 # the --cache-file=FILE option to use a different cache file; that is
4541 # what configure does when it calls configure scripts in
4542 # subdirectories, so they share the cache.
4543 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4544 # config.status only pays attention to the cache file if you give it the
4545 # --recheck option to rerun configure.
4548 # The following way of writing the cache mishandles newlines in values,
4549 # but we know of no workaround that is simple, portable, and efficient.
4550 # So, don't put newlines in cache variables' values.
4551 # Ultrix sh set writes to stderr and can't be redirected directly,
4552 # and sets the high bit in the cache file unless we assign to the vars.
4554 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4556 # `set' does not quote correctly, so add quotes (double-quote substitution
4557 # turns \\\\ into \\, and sed turns \\ into \).
4559 -e "s
/'/'\\\\''/g
" \
4560 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4563 # `set' quotes correctly as required by POSIX, so do not add quotes.
4564 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4567 if cmp -s $cache_file confcache; then
4570 if test -w $cache_file; then
4571 echo "updating cache
$cache_file"
4572 cat confcache > $cache_file
4574 echo "not updating unwritable cache
$cache_file"
4579 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4581 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4582 # Let make expand exec_prefix.
4583 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4585 # Any assignment to VPATH causes Sun make to only execute
4586 # the first set of double-colon rules, so remove it if not needed.
4587 # If there is a colon in the path, we need to keep it.
4588 if test "x
$srcdir" = x.; then
4589 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4592 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4594 DEFS=-DHAVE_CONFIG_H
4596 # Without the ".
/", some shells look in PATH for config.status.
4597 : ${CONFIG_STATUS=./config.status}
4599 echo creating $CONFIG_STATUS
4600 rm -f $CONFIG_STATUS
4601 cat > $CONFIG_STATUS <<EOF
4603 # Generated automatically by configure.
4604 # Run this file to recreate the current configuration.
4605 # This directory was configured as follows,
4606 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4608 # $0 $ac_configure_args
4610 # Compiler output produced by configure, useful for debugging
4611 # configure, is in ./config.log if it exists.
4613 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
4616 case "\
$ac_option" in
4617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4618 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4619 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4620 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4621 echo "$CONFIG_STATUS generated by autoconf version
2.13"
4623 -help | --help | --hel | --he | --h)
4624 echo "\
$ac_cs_usage"; exit 0 ;;
4625 *) echo "\
$ac_cs_usage"; exit 1 ;;
4629 ac_given_srcdir=$srcdir
4630 ac_given_INSTALL="$INSTALL"
4632 trap 'rm -fr `echo "Makefile.opts include
/config.h include
/defs.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
4634 cat >> $CONFIG_STATUS <<EOF
4636 # Protect against being on the right side of a sed subst in config.status.
4637 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4638 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4642 s%@CFLAGS@%$CFLAGS%g
4643 s%@CPPFLAGS@%$CPPFLAGS%g
4644 s%@CXXFLAGS@%$CXXFLAGS%g
4645 s%@FFLAGS@%$FFLAGS%g
4647 s%@LDFLAGS@%$LDFLAGS%g
4649 s%@exec_prefix@%$exec_prefix%g
4650 s%@prefix@%$prefix%g
4651 s%@program_transform_name@%$program_transform_name%g
4652 s%@bindir@%$bindir%g
4653 s%@sbindir@%$sbindir%g
4654 s%@libexecdir@%$libexecdir%g
4655 s%@datadir@%$datadir%g
4656 s%@sysconfdir@%$sysconfdir%g
4657 s%@sharedstatedir@%$sharedstatedir%g
4658 s%@localstatedir@%$localstatedir%g
4659 s%@libdir@%$libdir%g
4660 s%@includedir@%$includedir%g
4661 s%@oldincludedir@%$oldincludedir%g
4662 s%@infodir@%$infodir%g
4663 s%@mandir@%$mandir%g
4665 s%@host_alias@%$host_alias%g
4666 s%@host_cpu@%$host_cpu%g
4667 s%@host_vendor@%$host_vendor%g
4668 s%@host_os@%$host_os%g
4669 s%@VLC_VERSION@%$VLC_VERSION%g
4670 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4671 s%@VLC_CODENAME@%$VLC_CODENAME%g
4672 s%@SET_MAKE@%$SET_MAKE%g
4675 s%@RANLIB@%$RANLIB%g
4676 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4677 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4678 s%@INSTALL_DATA@%$INSTALL_DATA%g
4679 s%@GETOPT@%$GETOPT%g
4680 s%@ESD_CONFIG@%$ESD_CONFIG%g
4681 s%@GTK_CONFIG@%$GTK_CONFIG%g
4684 s%@PLUGINS@%$PLUGINS%g
4685 s%@BUILTINS@%$BUILTINS%g
4686 s%@ALIASES@%$ALIASES%g
4687 s%@DEFINE@%$DEFINE%g
4688 s%@INCLUDE@%$INCLUDE%g
4693 s%@PROFILING@%$PROFILING%g
4694 s%@OPTIMS@%$OPTIMS%g
4697 s%@WINDRES@%$WINDRES%g
4698 s%@LCFLAGS@%$LCFLAGS%g
4699 s%@PLCFLAGS@%$PLCFLAGS%g
4701 s%@LIB_ALSA@%$LIB_ALSA%g
4702 s%@LIB_BEOS@%$LIB_BEOS%g
4703 s%@LIB_DARWIN@%$LIB_DARWIN%g
4704 s%@LIB_DVD@%$LIB_DVD%g
4705 s%@LIB_ESD@%$LIB_ESD%g
4706 s%@LIB_GGI@%$LIB_GGI%g
4707 s%@LIB_GLIDE@%$LIB_GLIDE%g
4708 s%@LIB_GNOME@%$LIB_GNOME%g
4709 s%@LIB_GTK@%$LIB_GTK%g
4710 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4711 s%@LIB_MACOSX@%$LIB_MACOSX%g
4712 s%@LIB_NCURSES@%$LIB_NCURSES%g
4713 s%@LIB_QT@%$LIB_QT%g
4714 s%@LIB_TS@%$LIB_TS%g
4715 s%@LIB_SDL@%$LIB_SDL%g
4716 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4717 s%@LIB_X11@%$LIB_X11%g
4718 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4719 s%@LIB_YUV@%$LIB_YUV%g
4720 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4721 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4722 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4723 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4724 s%@CFLAGS_X11@%$CFLAGS_X11%g
4725 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4730 cat >> $CONFIG_STATUS <<\EOF
4732 # Split the substitutions into bite-sized pieces for seds with
4733 # small command number limits, like on Digital OSF/1 and HP-UX.
4734 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4735 ac_file=1 # Number of current file.
4736 ac_beg=1 # First line for current file.
4737 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4740 while $ac_more_lines; do
4741 if test $ac_beg -gt 1; then
4742 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
4744 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
4746 if test ! -s conftest.s$ac_file; then
4748 rm -f conftest.s$ac_file
4750 if test -z "$ac_sed_cmds"; then
4751 ac_sed_cmds="sed -f conftest.s
$ac_file"
4753 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
4755 ac_file=`expr $ac_file + 1`
4757 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4760 if test -z "$ac_sed_cmds"; then
4765 cat >> $CONFIG_STATUS <<EOF
4767 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4769 cat >> $CONFIG_STATUS <<\EOF
4770 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
4771 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
4773 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4774 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4775 *) ac_file_in="${ac_file}.
in" ;;
4778 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4780 # Remove last slash and all that follows it. Not all systems have dirname.
4781 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4783 # The file is in a subdirectory.
4784 test ! -d "$ac_dir" && mkdir "$ac_dir"
4785 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4786 # A "..
/" for each directory in $ac_dir_suffix.
4787 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4789 ac_dir_suffix= ac_dots=
4792 case "$ac_given_srcdir" in
4794 if test -z "$ac_dots"; then top_srcdir=.
4795 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4796 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4798 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4799 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4802 case "$ac_given_INSTALL" in
4803 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4804 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4807 echo creating "$ac_file"
4809 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
4811 *Makefile*) ac_comsub="1i
\\
4812 # $configure_input" ;;
4816 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4818 s%@configure_input@%$configure_input%g
4819 s%@srcdir@%$srcdir%g
4820 s%@top_srcdir@%$top_srcdir%g
4821 s%@INSTALL@%$INSTALL%g
4822 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4829 # ac_d sets the value in "#define NAME VALUE" lines.
4830 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4831 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4834 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4835 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4836 ac_uB
='\([ ]\)%\1#\2define\3'
4839 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4840 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4841 ac_eB
='$%\1#\2define\3'
4845 if test "${CONFIG_HEADERS+set}" != set; then
4847 cat >> $CONFIG_STATUS <<EOF
4848 CONFIG_HEADERS="include/defs.h"
4850 cat >> $CONFIG_STATUS <<\EOF
4852 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4855 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4856 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4857 *) ac_file_in
="${ac_file}.in" ;;
4860 echo creating
$ac_file
4862 rm -f conftest.frag conftest.
in conftest.out
4863 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4864 cat $ac_file_inputs > conftest.
in
4868 # Transform confdefs.h into a sed script conftest.vals that substitutes
4869 # the proper values into config.h.in to produce config.h. And first:
4870 # Protect against being on the right side of a sed subst in config.status.
4871 # Protect against being in an unquoted here document in config.status.
4873 cat > conftest.hdr
<<\EOF
4876 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4880 sed -n -f conftest.hdr confdefs.h > conftest.vals
4883 # This sed command replaces #undef with comments. This is necessary, for
4884 # example, in the case of _POSIX_SOURCE, which is predefined and required
4885 # on some systems where configure will not decide to define it.
4886 cat >> conftest.vals <<\EOF
4887 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4890 # Break up conftest.vals because some shells have a limit on
4891 # the size of here documents, and old seds have small limits too.
4896 ac_lines=`grep -c . conftest.vals
`
4897 # grep -c gives empty output for an empty file on some AIX systems.
4898 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4899 # Write a limited-size here document to conftest.frag.
4900 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4901 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4903 sed -f conftest.frag conftest.in > conftest.out
4905 mv conftest.out conftest.in
4907 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4909 mv conftest.tail conftest.vals
4913 cat >> $CONFIG_STATUS <<\EOF
4914 rm -f conftest.frag conftest.h
4915 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4916 cat conftest.in >> conftest.h
4918 if cmp -s $ac_file conftest.h 2>/dev/null; then
4919 echo "$ac_file is unchanged"
4922 # Remove last slash and all that follows it. Not all systems have dirname.
4923 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4925 # The file is in a subdirectory.
4926 test ! -d "$ac_dir" && mkdir "$ac_dir"
4929 mv conftest.h $ac_file
4934 cat >> $CONFIG_STATUS <<EOF
4937 cat >> $CONFIG_STATUS <<\EOF
4941 chmod +x $CONFIG_STATUS
4942 rm -fr confdefs* $ac_clean_files
4943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4947 global configuration
4948 --------------------
4950 architecture : ${ARCH}
4951 optimizations : ${OPTIMS}
4952 inline assembly : ${ASM}
4956 vlc version : ${VLC_VERSION}
4957 debug mode : ${DEBUG}
4958 statistics : ${STATS}
4959 trace mode : ${TRACE}
4960 profiling : ${PROFILING}
4961 need builtin getopt : ${GETOPT}
4962 built-in modules :${BUILTINS}
4963 plugin modules :${PLUGINS}
4964 vlc aliases :${ALIASES}
4966 libdvdcss configuration
4967 -----------------------
4968 CSS decryption : ${CSS}
4970 You may now tune Makefile.opts at your convenience. To build vlc, type
4971 \`make vlc
'. To build libdvdcss only, type \`make libdvdcss'.
"