3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-trace Enable trace mode (default disabled)"
34 --enable-gprof Enable gprof profiling (default disabled)"
36 --enable-cprof Enable cprof profiling (default disabled)"
38 --disable-optimizations Disable compiler optimizations (default enabled)"
40 --enable-pth Enable GNU Pth support (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --with-dvdread[=name] way to use libdvdread,
48 same options as --with-dvdcss (default no)"
50 --enable-vcd VCD support for Linux (default enabled)"
52 --disable-dummy dummy module (default enabled)"
54 --disable-null Null module (default enabled)"
56 --disable-rc Remote Control module (default enabled)"
58 --with-mad[=PATH] libmad module (default disabled)"
60 --disable-dsp Linux /dev/dsp support (default enabled)"
62 --enable-esd Esound library support (default disabled)"
64 --enable-arts aRts sound server (default disabled)"
66 --enable-macosx MacOS X support (default enabled on MacOS X)"
68 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
70 --enable-fb Linux framebuffer support (default disabled)"
72 --enable-mga Linux kernel Matrox support (default disabled)"
74 --with-ggi[=name] GGI support (default disabled)"
76 --disable-sdl SDL support (default enabled)"
78 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
80 --disable-directx Win32 DirectX support (default enabled on Win32)"
82 --with-directx-path=path Win32 DirectX headers and libraries"
84 --disable-waveout Win32 waveOut module (default enabled on Win32)"
86 --enable-win32 Win32 interface support (default disabled)"
88 --with-glide[=name] Glide (3dfx) support (default disabled)"
90 --enable-ncurses ncurses interface support (default disabled)"
92 --enable-qt Qt interface support (default disabled)"
94 --enable-kde KDE interface support (default disabled)"
96 --enable-gnome Gnome interface support (default disabled)"
98 --disable-gtk Gtk+ support (default enabled)"
100 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
102 --disable-x11 X11 support (default enabled)"
104 --disable-xvideo XVideo support (default enabled)"
106 --enable-alsa Alsa sound drivers support (Only for linux)
109 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
111 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
113 # Initialize some variables set by options.
114 # The variables have the same names as the options, with
115 # dashes changed to underlines.
117 cache_file=./config.cache
126 program_transform_name=s,x,x,
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Initialize some other variables.
150 SHELL=${CONFIG_SHELL-/bin/sh}
151 # Maximum number of lines to put in a shell here document.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
166 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
170 # Accept the important Cygnus configure options, so we can diagnose typos.
174 -bindir | --bindir | --bindi | --bind | --bin | --bi)
176 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 bindir="$ac_optarg" ;;
179 -build | --build | --buil | --bui | --bu)
181 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
182 build="$ac_optarg" ;;
184 -cache-file | --cache-file | --cache-fil | --cache-fi \
185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
186 ac_prev=cache_file ;;
187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
189 cache_file="$ac_optarg" ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir="$ac_optarg" ;;
197 -disable-* | --disable-*)
198 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
199 # Reject names that are not valid shell variable names.
200 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
201 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
203 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204 eval "enable_${ac_feature}=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
217 eval "enable_${ac_feature}='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix="$ac_optarg" ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he)
233 # Omit some internal or obsolete options to make the list less imposing.
234 # This message is too long to be a string in the A/UX 3.1 sh.
236 Usage: configure [options] [host]
237 Options: [defaults in brackets after descriptions]
239 --cache-file=FILE cache test results in FILE
240 --help print this message
241 --no-create do not create output files
242 --quiet, --silent do not print \`checking...' messages
243 --version print the version of autoconf that created configure
244 Directory and file names:
245 --prefix=PREFIX install architecture-independent files in PREFIX
247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
249 --bindir=DIR user executables in DIR [EPREFIX/bin]
250 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
251 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
252 --datadir=DIR read-only architecture-independent data in DIR
254 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
255 --sharedstatedir=DIR modifiable architecture-independent data in DIR
257 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
258 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
259 --includedir=DIR C header files in DIR [PREFIX/include]
260 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
261 --infodir=DIR info documentation in DIR [PREFIX/info]
262 --mandir=DIR man documentation in DIR [PREFIX/man]
263 --srcdir=DIR find the sources in DIR [configure dir or ..]
264 --program-prefix=PREFIX prepend PREFIX to installed program names
265 --program-suffix=SUFFIX append SUFFIX to installed program names
266 --program-transform-name=PROGRAM
267 run sed PROGRAM on installed program names
271 --build=BUILD configure for building on BUILD [BUILD=HOST]
272 --host=HOST configure for HOST [guessed]
273 --target=TARGET configure for TARGET [TARGET=HOST]
274 Features and packages:
275 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
276 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
279 --x-includes=DIR X include files are in DIR
280 --x-libraries=DIR X library files are in DIR
282 if test -n "$ac_help"; then
283 echo "--enable and --with options recognized:$ac_help"
287 -host | --host | --hos | --ho)
289 -host=* | --host=* | --hos=* | --ho=*)
292 -includedir | --includedir | --includedi | --included | --include \
293 | --includ | --inclu | --incl | --inc)
294 ac_prev=includedir ;;
295 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
296 | --includ=* | --inclu=* | --incl=* | --inc=*)
297 includedir="$ac_optarg" ;;
299 -infodir | --infodir | --infodi | --infod | --info | --inf)
301 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
302 infodir="$ac_optarg" ;;
304 -libdir | --libdir | --libdi | --libd)
306 -libdir=* | --libdir=* | --libdi=* | --libd=*)
307 libdir="$ac_optarg" ;;
309 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
310 | --libexe | --libex | --libe)
311 ac_prev=libexecdir ;;
312 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
313 | --libexe=* | --libex=* | --libe=*)
314 libexecdir="$ac_optarg" ;;
316 -localstatedir | --localstatedir | --localstatedi | --localstated \
317 | --localstate | --localstat | --localsta | --localst \
318 | --locals | --local | --loca | --loc | --lo)
319 ac_prev=localstatedir ;;
320 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
321 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
322 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
323 localstatedir="$ac_optarg" ;;
325 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
327 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
328 mandir="$ac_optarg" ;;
331 # Obsolete; use --without-fp.
334 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
338 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
339 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
342 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
343 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
344 | --oldin | --oldi | --old | --ol | --o)
345 ac_prev=oldincludedir ;;
346 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
347 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
348 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
349 oldincludedir="$ac_optarg" ;;
351 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
353 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
354 prefix="$ac_optarg" ;;
356 -program-prefix | --program-prefix | --program-prefi | --program-pref \
357 | --program-pre | --program-pr | --program-p)
358 ac_prev=program_prefix ;;
359 -program-prefix=* | --program-prefix=* | --program-prefi=* \
360 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
361 program_prefix="$ac_optarg" ;;
363 -program-suffix | --program-suffix | --program-suffi | --program-suff \
364 | --program-suf | --program-su | --program-s)
365 ac_prev=program_suffix ;;
366 -program-suffix=* | --program-suffix=* | --program-suffi=* \
367 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
368 program_suffix="$ac_optarg" ;;
370 -program-transform-name | --program-transform-name \
371 | --program-transform-nam | --program-transform-na \
372 | --program-transform-n | --program-transform- \
373 | --program-transform | --program-transfor \
374 | --program-transfo | --program-transf \
375 | --program-trans | --program-tran \
376 | --progr-tra | --program-tr | --program-t)
377 ac_prev=program_transform_name ;;
378 -program-transform-name=* | --program-transform-name=* \
379 | --program-transform-nam=* | --program-transform-na=* \
380 | --program-transform-n=* | --program-transform-=* \
381 | --program-transform=* | --program-transfor=* \
382 | --program-transfo=* | --program-transf=* \
383 | --program-trans=* | --program-tran=* \
384 | --progr-tra=* | --program-tr=* | --program-t=*)
385 program_transform_name="$ac_optarg" ;;
387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
388 | -silent | --silent | --silen | --sile | --sil)
391 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
393 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
395 sbindir="$ac_optarg" ;;
397 -sharedstatedir | --sharedstatedir | --sharedstatedi \
398 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
399 | --sharedst | --shareds | --shared | --share | --shar \
401 ac_prev=sharedstatedir ;;
402 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
403 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
404 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
406 sharedstatedir="$ac_optarg" ;;
408 -site | --site | --sit)
410 -site=* | --site=* | --sit=*)
413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
416 srcdir="$ac_optarg" ;;
418 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
419 | --syscon | --sysco | --sysc | --sys | --sy)
420 ac_prev=sysconfdir ;;
421 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
422 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
423 sysconfdir="$ac_optarg" ;;
425 -target | --target | --targe | --targ | --tar | --ta | --t)
427 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
428 target="$ac_optarg" ;;
430 -v | -verbose | --verbose | --verbos | --verbo | --verb)
433 -version | --version | --versio | --versi | --vers)
434 echo "configure generated by autoconf version 2.13"
438 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
448 eval "with_${ac_package}='$ac_optarg'" ;;
450 -without-* | --without-*)
451 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
454 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
456 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}=no" ;;
460 # Obsolete; use --with-x.
463 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
464 | --x-incl | --x-inc | --x-in | --x-i)
465 ac_prev=x_includes ;;
466 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
467 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
468 x_includes="$ac_optarg" ;;
470 -x-libraries | --x-libraries | --x-librarie | --x-librari \
471 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
472 ac_prev=x_libraries ;;
473 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
474 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
475 x_libraries="$ac_optarg" ;;
477 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
481 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
482 echo "configure: warning: $ac_option: invalid host type" 1>&2
484 if test "x$nonopt" != xNONE; then
485 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
493 if test -n "$ac_prev"; then
494 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
497 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
499 # File descriptor usage:
502 # 2 errors and warnings
503 # 3 some systems may open it to /dev/tty
504 # 4 used on the Kubota Titan
505 # 6 checking for... messages and results
506 # 5 compiler messages saved in config.log
507 if test "$silent" = yes; then
515 This file contains any messages produced by compilers while
516 running configure, to aid debugging if configure makes a mistake.
519 # Strip out --no-create and --no-recursion so they do not pile up.
520 # Also quote any args containing shell metacharacters.
525 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
526 | --no-cr | --no-c) ;;
527 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
528 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
529 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
530 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
531 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
536 # Only set these to C if already set. These must not be set unconditionally
537 # because not all systems understand e.g. LANG=C (notably SCO).
538 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
539 # Non-C LC_CTYPE values break the ctype check.
540 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
541 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
542 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
543 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
546 rm -rf conftest* confdefs.h
547 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
550 # A filename unique to this package, relative to the directory that
551 # configure is in, which we can look for to find out if srcdir is correct.
552 ac_unique_file=include/main.h
554 # Find the source files, if location was not specified.
555 if test -z "$srcdir"; then
556 ac_srcdir_defaulted=yes
557 # Try the directory containing this script, then its parent.
559 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
560 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
562 if test ! -r $srcdir/$ac_unique_file; then
566 ac_srcdir_defaulted=no
568 if test ! -r $srcdir/$ac_unique_file; then
569 if test "$ac_srcdir_defaulted" = yes; then
570 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
572 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
575 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
577 # Prefer explicitly selected file to automatically selected ones.
578 if test -z "$CONFIG_SITE"; then
579 if test "x$prefix" != xNONE; then
580 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
582 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
585 for ac_site_file in $CONFIG_SITE; do
586 if test -r "$ac_site_file"; then
587 echo "loading site script $ac_site_file"
592 if test -r "$cache_file"; then
593 echo "loading cache $cache_file"
596 echo "creating cache $cache_file"
601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
602 ac_cpp='$CPP $CPPFLAGS'
603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
605 cross_compiling=$ac_cv_prog_cc_cross
609 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
610 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
611 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
618 ac_n= ac_c='\c' ac_t=
625 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
626 if test -f $ac_dir/install-sh; then
628 ac_install_sh="$ac_aux_dir/install-sh -c"
630 elif test -f $ac_dir/install.sh; then
632 ac_install_sh="$ac_aux_dir/install.sh -c"
636 if test -z "$ac_aux_dir"; then
637 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
639 ac_config_guess=$ac_aux_dir/config.guess
640 ac_config_sub=$ac_aux_dir/config.sub
641 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 # Do some error checking and defaulting for the host and target type.
646 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
649 # 1. You are not allowed to specify --host, --target, and nonopt at the
651 # 2. Host defaults to nonopt.
652 # 3. If nonopt is not specified, then host defaults to the current host,
653 # as determined by config.guess.
654 # 4. Target and build default to nonopt.
655 # 5. If nonopt is not specified, then target and build default to host.
657 # The aliases save the names the user supplied, while $host etc.
658 # will get canonicalized.
659 case $host---$target---$nonopt in
660 NONE---*---* | *---NONE---* | *---*---NONE) ;;
661 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
665 # Make sure we can run config.sub.
666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
667 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
670 echo $ac_n "checking host system type""... $ac_c" 1>&6
671 echo "configure:672: checking host system type" >&5
674 case "$host_alias" in
678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
681 *) host_alias=$nonopt ;;
685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$host" 1>&6
691 echo $ac_n "checking target system type""... $ac_c" 1>&6
692 echo "configure:693: checking target system type" >&5
695 case "$target_alias" in
698 NONE) target_alias=$host_alias ;;
699 *) target_alias=$nonopt ;;
703 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
704 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
707 echo "$ac_t""$target" 1>&6
709 echo $ac_n "checking build system type""... $ac_c" 1>&6
710 echo "configure:711: checking build system type" >&5
713 case "$build_alias" in
716 NONE) build_alias=$host_alias ;;
717 *) build_alias=$nonopt ;;
721 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
722 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo "$ac_t""$build" 1>&6
727 test "$host_alias" != "$target_alias" &&
728 test "$program_prefix$program_suffix$program_transform_name" = \
730 program_prefix=${target_alias}-
734 if test -r src/interface/main.c; then
736 VLC_VERSION="0.2.92-dev"
741 if test -r extras/libdvdcss/libdvdcss.c; then
743 LIBDVDCSS_VERSION="1.0.1-dev"
745 if test -r extras/libdvdcss/csskeys.h; then
746 cat >> confdefs.h <<\EOF
747 #define HAVE_CSSKEYS 1
753 save_CFLAGS="${CFLAGS}"
754 save_LDFLAGS="${LDFLAGS}"
756 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
757 echo "configure:758: checking whether ${MAKE-make} sets \${MAKE}" >&5
758 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
759 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 cat > conftestmake <<\EOF
764 @echo 'ac_maketemp="${MAKE}"'
766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
767 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
768 if test -n "$ac_maketemp"; then
769 eval ac_cv_prog_make_${ac_make}_set=yes
771 eval ac_cv_prog_make_${ac_make}_set=no
775 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
776 echo "$ac_t""yes" 1>&6
779 echo "$ac_t""no" 1>&6
780 SET_MAKE="MAKE=${MAKE-make}"
783 # Extract the first word of "gcc", so it can be a program name with args.
784 set dummy gcc; ac_word=$2
785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786 echo "configure:787: checking for $ac_word" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
790 if test -n "$CC"; then
791 ac_cv_prog_CC="$CC" # Let the user override the test.
793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
795 for ac_dir in $ac_dummy; do
796 test -z "$ac_dir" && ac_dir=.
797 if test -f $ac_dir/$ac_word; then
806 if test -n "$CC"; then
807 echo "$ac_t""$CC" 1>&6
809 echo "$ac_t""no" 1>&6
812 if test -z "$CC"; then
813 # Extract the first word of "cc", so it can be a program name with args.
814 set dummy cc; ac_word=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
838 if test $ac_prog_rejected = yes; then
839 # We found a bogon in the path, so make sure we never use it.
840 set dummy $ac_cv_prog_CC
842 if test $# -gt 0; then
843 # We chose a different compiler from the bogus one.
844 # However, it has the same basename, so the bogon will be chosen
845 # first if we set CC to just the basename; use the full file name.
847 set dummy "$ac_dir/$ac_word" "$@"
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
864 # Extract the first word of "cl", so it can be a program name with args.
865 set dummy cl; ac_word=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$CC"; then
872 ac_cv_prog_CC="$CC" # Let the user override the test.
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
903 ac_cpp='$CPP $CPPFLAGS'
904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
906 cross_compiling=$ac_cv_prog_cc_cross
908 cat > conftest.$ac_ext << EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
916 ac_cv_prog_cc_works=yes
917 # If we can't run a trivial program, we are probably using a cross compiler.
918 if (./conftest; exit) 2>/dev/null; then
919 ac_cv_prog_cc_cross=no
921 ac_cv_prog_cc_cross=yes
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 ac_cv_prog_cc_works=no
930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931 ac_cpp='$CPP $CPPFLAGS'
932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934 cross_compiling=$ac_cv_prog_cc_cross
936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
937 if test $ac_cv_prog_cc_works = no; then
938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
943 cross_compiling=$ac_cv_prog_cc_cross
945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
946 echo "configure:947: checking whether we are using GNU C" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 cat > conftest.c <<EOF
955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
964 if test $ac_cv_prog_gcc = yes; then
970 ac_test_CFLAGS="${CFLAGS+set}"
971 ac_save_CFLAGS="$CFLAGS"
973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 echo 'void f(){}' > conftest.c
979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
989 if test "$ac_test_CFLAGS" = set; then
990 CFLAGS="$ac_save_CFLAGS"
991 elif test $ac_cv_prog_cc_g = yes; then
992 if test "$GCC" = yes; then
998 if test "$GCC" = yes; then
1005 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1006 echo "configure:1007: checking how to run the C preprocessor" >&5
1007 # On Suns, sometimes $CPP names a directory.
1008 if test -n "$CPP" && test -d "$CPP"; then
1011 if test -z "$CPP"; then
1012 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 # This must be in double quotes, not single quotes, because CPP may get
1016 # substituted into the Makefile and "${CC-cc}" will confuse make.
1018 # On the NeXT, cc -E runs the code through the compiler's parser,
1019 # not just through cpp.
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1027 { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1029 if test -z "$ac_err"; then
1033 echo "configure: failed program was:" >&5
1034 cat conftest.$ac_ext >&5
1036 CPP="${CC-cc} -E -traditional-cpp"
1037 cat > conftest.$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1044 { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1046 if test -z "$ac_err"; then
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1053 CPP="${CC-cc} -nologo -E"
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061 { (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1063 if test -z "$ac_err"; then
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1077 ac_cv_prog_CPP="$CPP"
1079 CPP="$ac_cv_prog_CPP"
1081 ac_cv_prog_CPP="$CPP"
1083 echo "$ac_t""$CPP" 1>&6
1086 if test $host != $build; then
1087 ac_tool_prefix=${host_alias}-
1092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 if test -n "$RANLIB"; then
1100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1122 if test -z "$ac_cv_prog_RANLIB"; then
1123 if test -n "$ac_tool_prefix"; then
1124 # Extract the first word of "ranlib", so it can be a program name with args.
1125 set dummy ranlib; ac_word=$2
1126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1127 echo "configure:1128: checking for $ac_word" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 if test -n "$RANLIB"; then
1132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1136 for ac_dir in $ac_dummy; do
1137 test -z "$ac_dir" && ac_dir=.
1138 if test -f $ac_dir/$ac_word; then
1139 ac_cv_prog_RANLIB="ranlib"
1144 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149 echo "$ac_t""$RANLIB" 1>&6
1151 echo "$ac_t""no" 1>&6
1160 ALL_LINGUAS="de fr ru"
1162 cat >> confdefs.h <<EOF
1163 #define PACKAGE "vlc"
1166 cat >> confdefs.h <<EOF
1167 #define VERSION "$VLC_VERSION"
1170 # Extract the first word of "ranlib", so it can be a program name with args.
1171 set dummy ranlib; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$RANLIB"; then
1178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_RANLIB="ranlib"
1190 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1193 RANLIB="$ac_cv_prog_RANLIB"
1194 if test -n "$RANLIB"; then
1195 echo "$ac_t""$RANLIB" 1>&6
1197 echo "$ac_t""no" 1>&6
1201 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1202 echo "configure:1203: checking for strerror in -lcposix" >&5
1203 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 ac_save_LIBS="$LIBS"
1208 LIBS="-lcposix $LIBS"
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1212 /* Override any gcc2 internal prototype to avoid an error. */
1213 /* We use char because int might match the return type of a gcc2
1214 builtin and then its argument prototype would still apply. */
1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1223 eval "ac_cv_lib_$ac_lib_var=yes"
1225 echo "configure: failed program was:" >&5
1226 cat conftest.$ac_ext >&5
1228 eval "ac_cv_lib_$ac_lib_var=no"
1231 LIBS="$ac_save_LIBS"
1234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1236 LIBS="$LIBS -lcposix"
1238 echo "$ac_t""no" 1>&6
1243 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1244 echo "configure:1245: checking for ANSI C header files" >&5
1245 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1259 if test -z "$ac_err"; then
1261 ac_cv_header_stdc=yes
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1267 ac_cv_header_stdc=no
1271 if test $ac_cv_header_stdc = yes; then
1272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1279 egrep "memchr" >/dev/null 2>&1; then
1283 ac_cv_header_stdc=no
1289 if test $ac_cv_header_stdc = yes; then
1290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1297 egrep "free" >/dev/null 2>&1; then
1301 ac_cv_header_stdc=no
1307 if test $ac_cv_header_stdc = yes; then
1308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1309 if test "$cross_compiling" = yes; then
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1316 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1317 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1319 int main () { int i; for (i = 0; i < 256; i++)
1320 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1331 ac_cv_header_stdc=no
1339 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1340 if test $ac_cv_header_stdc = yes; then
1341 cat >> confdefs.h <<\EOF
1342 #define STDC_HEADERS 1
1347 echo $ac_n "checking for working const""... $ac_c" 1>&6
1348 echo "configure:1349: checking for working const" >&5
1349 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1358 /* Ultrix mips cc rejects this. */
1359 typedef int charset[2]; const charset x;
1360 /* SunOS 4.1.1 cc rejects this. */
1361 char const *const *ccp;
1363 /* NEC SVR4.0.2 mips cc rejects this. */
1364 struct point {int x, y;};
1365 static struct point const zero = {0,0};
1366 /* AIX XL C 1.02.0.0 rejects this.
1367 It does not let you subtract one const X* pointer from another in an arm
1368 of an if-expression whose if-part is not a constant expression */
1369 const char *g = "string";
1370 ccp = &g + (g ? g-g : 0);
1371 /* HPUX 7.0 cc rejects these. */
1374 ccp = (char const *const *) p;
1375 { /* SCO 3.2v4 cc rejects this. */
1377 char const *s = 0 ? (char *) 0 : (char const *) 0;
1381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1383 const int *foo = &x[0];
1386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1387 typedef const int *iptr;
1391 { /* AIX XL C 1.02.0.0 rejects this saying
1392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1393 struct s { int j; const int *ap[3]; };
1394 struct s *b; b->j = 5;
1396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1414 echo "$ac_t""$ac_cv_c_const" 1>&6
1415 if test $ac_cv_c_const = no; then
1416 cat >> confdefs.h <<\EOF
1422 echo $ac_n "checking for inline""... $ac_c" 1>&6
1423 echo "configure:1424: checking for inline" >&5
1424 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1428 for ac_kw in inline __inline__ __inline; do
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1437 if { (eval echo configure:1438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1439 ac_cv_c_inline=$ac_kw; break
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1449 echo "$ac_t""$ac_cv_c_inline" 1>&6
1450 case "$ac_cv_c_inline" in
1452 no) cat >> confdefs.h <<\EOF
1456 *) cat >> confdefs.h <<EOF
1457 #define inline $ac_cv_c_inline
1462 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1463 echo "configure:1464: checking for off_t" >&5
1464 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 #include <sys/types.h>
1476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1477 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1479 ac_cv_type_off_t=yes
1487 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1488 if test $ac_cv_type_off_t = no; then
1489 cat >> confdefs.h <<\EOF
1495 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1496 echo "configure:1497: checking for size_t" >&5
1497 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 #include <sys/types.h>
1509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1510 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1512 ac_cv_type_size_t=yes
1515 ac_cv_type_size_t=no
1520 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1521 if test $ac_cv_type_size_t = no; then
1522 cat >> confdefs.h <<\EOF
1523 #define size_t unsigned
1528 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1529 # for constant arguments. Useless!
1530 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1531 echo "configure:1532: checking for working alloca.h" >&5
1532 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1540 char *p = alloca(2 * sizeof(int));
1543 if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1545 ac_cv_header_alloca_h=yes
1547 echo "configure: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1550 ac_cv_header_alloca_h=no
1555 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1556 if test $ac_cv_header_alloca_h = yes; then
1557 cat >> confdefs.h <<\EOF
1558 #define HAVE_ALLOCA_H 1
1563 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1564 echo "configure:1565: checking for alloca" >&5
1565 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1573 # define alloca __builtin_alloca
1576 # include <malloc.h>
1577 # define alloca _alloca
1580 # include <alloca.h>
1585 # ifndef alloca /* predefined by HP cc +Olibcalls */
1594 char *p = (char *) alloca(1);
1597 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1599 ac_cv_func_alloca_works=yes
1601 echo "configure: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1604 ac_cv_func_alloca_works=no
1609 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1610 if test $ac_cv_func_alloca_works = yes; then
1611 cat >> confdefs.h <<\EOF
1612 #define HAVE_ALLOCA 1
1617 if test $ac_cv_func_alloca_works = no; then
1618 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1619 # that cause trouble. Some versions do not even contain alloca or
1620 # contain a buggy version. If you still want to use their alloca,
1621 # use ar to extract alloca.o from them instead of compiling alloca.c.
1622 ALLOCA=alloca.${ac_objext}
1623 cat >> confdefs.h <<\EOF
1628 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1629 echo "configure:1630: checking whether alloca needs Cray hooks" >&5
1630 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 #if defined(CRAY) && ! defined(CRAY2)
1643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1644 egrep "webecray" >/dev/null 2>&1; then
1655 echo "$ac_t""$ac_cv_os_cray" 1>&6
1656 if test $ac_cv_os_cray = yes; then
1657 for ac_func in _getb67 GETB67 getb67; do
1658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_func" >&5
1660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 /* System header to define __stub macros and hopefully few prototypes,
1667 which can conflict with char $ac_func(); below. */
1669 /* Override any gcc2 internal prototype to avoid an error. */
1670 /* We use char because int might match the return type of a gcc2
1671 builtin and then its argument prototype would still apply. */
1676 /* The GNU C library defines this for functions which it implements
1677 to always fail with ENOSYS. Some functions are actually named
1678 something starting with __ and the normal name is an alias. */
1679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1689 eval "ac_cv_func_$ac_func=yes"
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 eval "ac_cv_func_$ac_func=no"
1699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 cat >> confdefs.h <<EOF
1702 #define CRAY_STACKSEG_END $ac_func
1707 echo "$ac_t""no" 1>&6
1713 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1714 echo "configure:1715: checking stack direction for C alloca" >&5
1715 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 if test "$cross_compiling" = yes; then
1719 ac_cv_c_stack_direction=0
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 find_stack_direction ()
1726 static char *addr = 0;
1731 return find_stack_direction ();
1734 return (&dummy > addr) ? 1 : -1;
1738 exit (find_stack_direction() < 0);
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1743 ac_cv_c_stack_direction=1
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1748 ac_cv_c_stack_direction=-1
1755 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1756 cat >> confdefs.h <<EOF
1757 #define STACK_DIRECTION $ac_cv_c_stack_direction
1762 for ac_hdr in unistd.h
1764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_hdr" >&5
1767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1776 { (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1778 if test -z "$ac_err"; then
1780 eval "ac_cv_header_$ac_safe=yes"
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 eval "ac_cv_header_$ac_safe=no"
1790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1791 echo "$ac_t""yes" 1>&6
1792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1793 cat >> confdefs.h <<EOF
1794 #define $ac_tr_hdr 1
1798 echo "$ac_t""no" 1>&6
1802 for ac_func in getpagesize
1804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_func" >&5
1806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $ac_func(); below. */
1815 /* Override any gcc2 internal prototype to avoid an error. */
1816 /* We use char because int might match the return type of a gcc2
1817 builtin and then its argument prototype would still apply. */
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1835 eval "ac_cv_func_$ac_func=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1840 eval "ac_cv_func_$ac_func=no"
1845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1848 cat >> confdefs.h <<EOF
1849 #define $ac_tr_func 1
1853 echo "$ac_t""no" 1>&6
1857 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1858 echo "configure:1859: checking for working mmap" >&5
1859 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 if test "$cross_compiling" = yes; then
1863 ac_cv_func_mmap_fixed_mapped=no
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1869 /* Thanks to Mike Haertel and Jim Avera for this test.
1870 Here is a matrix of mmap possibilities:
1871 mmap private not fixed
1872 mmap private fixed at somewhere currently unmapped
1873 mmap private fixed at somewhere already mapped
1874 mmap shared not fixed
1875 mmap shared fixed at somewhere currently unmapped
1876 mmap shared fixed at somewhere already mapped
1877 For private mappings, we should verify that changes cannot be read()
1878 back from the file, nor mmap's back from the file at a different
1879 address. (There have been systems where private was not correctly
1880 implemented like the infamous i386 svr4.0, and systems where the
1881 VM page cache was not coherent with the filesystem buffer cache
1882 like early versions of FreeBSD and possibly contemporary NetBSD.)
1883 For shared mappings, we should conversely verify that changes get
1884 propogated back to all the places they're supposed to be.
1886 Grep wants private fixed already mapped.
1887 The main things grep needs to know about mmap are:
1888 * does it exist and is it safe to write into the mmap'd area
1889 * how to use it (BSD variants) */
1890 #include <sys/types.h>
1892 #include <sys/mman.h>
1894 /* This mess was copied from the GNU getpagesize.h. */
1895 #ifndef HAVE_GETPAGESIZE
1896 # ifdef HAVE_UNISTD_H
1897 # include <unistd.h>
1900 /* Assume that all systems that can run configure have sys/param.h. */
1901 # ifndef HAVE_SYS_PARAM_H
1902 # define HAVE_SYS_PARAM_H 1
1905 # ifdef _SC_PAGESIZE
1906 # define getpagesize() sysconf(_SC_PAGESIZE)
1907 # else /* no _SC_PAGESIZE */
1908 # ifdef HAVE_SYS_PARAM_H
1909 # include <sys/param.h>
1910 # ifdef EXEC_PAGESIZE
1911 # define getpagesize() EXEC_PAGESIZE
1912 # else /* no EXEC_PAGESIZE */
1914 # define getpagesize() NBPG * CLSIZE
1917 # endif /* no CLSIZE */
1918 # else /* no NBPG */
1920 # define getpagesize() NBPC
1921 # else /* no NBPC */
1923 # define getpagesize() PAGESIZE
1924 # endif /* PAGESIZE */
1925 # endif /* no NBPC */
1926 # endif /* no NBPG */
1927 # endif /* no EXEC_PAGESIZE */
1928 # else /* no HAVE_SYS_PARAM_H */
1929 # define getpagesize() 8192 /* punt totally */
1930 # endif /* no HAVE_SYS_PARAM_H */
1931 # endif /* no _SC_PAGESIZE */
1933 #endif /* no HAVE_GETPAGESIZE */
1936 extern "C" { void *malloc(unsigned); }
1944 char *data, *data2, *data3;
1948 pagesize = getpagesize();
1951 * First, make a file with some known garbage in it.
1953 data = malloc(pagesize);
1956 for (i = 0; i < pagesize; ++i)
1957 *(data + i) = rand();
1959 fd = creat("conftestmmap", 0600);
1962 if (write(fd, data, pagesize) != pagesize)
1967 * Next, try to mmap the file at a fixed address which
1968 * already has something else allocated at it. If we can,
1969 * also make sure that we see the same garbage.
1971 fd = open("conftestmmap", O_RDWR);
1974 data2 = malloc(2 * pagesize);
1977 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1978 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1979 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1981 for (i = 0; i < pagesize; ++i)
1982 if (*(data + i) != *(data2 + i))
1986 * Finally, make sure that changes to the mapped area
1987 * do not percolate back to the file as seen by read().
1988 * (This is a bug on some variants of i386 svr4.0.)
1990 for (i = 0; i < pagesize; ++i)
1991 *(data2 + i) = *(data2 + i) + 1;
1992 data3 = malloc(pagesize);
1995 if (read(fd, data3, pagesize) != pagesize)
1997 for (i = 0; i < pagesize; ++i)
1998 if (*(data + i) != *(data3 + i))
2001 unlink("conftestmmap");
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2008 ac_cv_func_mmap_fixed_mapped=yes
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 ac_cv_func_mmap_fixed_mapped=no
2020 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2021 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2022 cat >> confdefs.h <<\EOF
2029 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2030 echo "configure:2031: checking whether we are using the GNU C Library 2.1 or newer" >&5
2031 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 #include <features.h>
2039 #ifdef __GNU_LIBRARY__
2040 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2047 egrep "Lucky GNU user" >/dev/null 2>&1; then
2049 ac_cv_gnu_library_2_1=yes
2052 ac_cv_gnu_library_2_1=no
2060 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2062 GLIBC21="$ac_cv_gnu_library_2_1"
2066 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2067 stdlib.h string.h unistd.h sys/param.h
2069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_hdr" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2098 cat >> confdefs.h <<EOF
2099 #define $ac_tr_hdr 1
2103 echo "$ac_t""no" 1>&6
2107 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2108 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2109 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_func" >&5
2113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* System header to define __stub macros and hopefully few prototypes,
2120 which can conflict with char $ac_func(); below. */
2122 /* Override any gcc2 internal prototype to avoid an error. */
2123 /* We use char because int might match the return type of a gcc2
2124 builtin and then its argument prototype would still apply. */
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 eval "ac_cv_func_$ac_func=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_func_$ac_func=no"
2152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2155 cat >> confdefs.h <<EOF
2156 #define $ac_tr_func 1
2160 echo "$ac_t""no" 1>&6
2167 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2168 if test "${with_libiconv_prefix+set}" = set; then
2169 withval="$with_libiconv_prefix"
2171 for dir in `echo "$withval" | tr : ' '`; do
2172 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2173 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2179 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2180 echo "configure:2181: checking for iconv" >&5
2181 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2185 am_cv_func_iconv="no, consider installing GNU libiconv"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2193 iconv_t cd = iconv_open("","");
2194 iconv(cd,NULL,NULL,NULL,NULL);
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 am_cv_func_iconv=yes
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2206 if test "$am_cv_func_iconv" != yes; then
2207 am_save_LIBS="$LIBS"
2208 LIBS="$LIBS -liconv"
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2215 iconv_t cd = iconv_open("","");
2216 iconv(cd,NULL,NULL,NULL,NULL);
2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2223 am_cv_func_iconv=yes
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2229 LIBS="$am_save_LIBS"
2234 echo "$ac_t""$am_cv_func_iconv" 1>&6
2235 if test "$am_cv_func_iconv" = yes; then
2236 cat >> confdefs.h <<\EOF
2237 #define HAVE_ICONV 1
2240 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2241 echo "configure:2242: checking for iconv declaration" >&5
2242 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2256 #if defined(__STDC__) || defined(__cplusplus)
2257 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2266 if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2268 am_cv_proto_iconv_arg1=""
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 am_cv_proto_iconv_arg1="const"
2276 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2279 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2280 echo "$ac_t""${ac_t:-
2281 }$am_cv_proto_iconv" 1>&6
2282 cat >> confdefs.h <<EOF
2283 #define ICONV_CONST $am_cv_proto_iconv_arg1
2288 if test "$am_cv_lib_iconv" = yes; then
2294 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2295 echo "configure:2296: checking for nl_langinfo and CODESET" >&5
2296 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #include <langinfo.h>
2304 char* cs = nl_langinfo(CODESET);
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 am_cv_langinfo_codeset=yes
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 am_cv_langinfo_codeset=no
2320 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2321 if test $am_cv_langinfo_codeset = yes; then
2322 cat >> confdefs.h <<\EOF
2323 #define HAVE_LANGINFO_CODESET 1
2328 if test $ac_cv_header_locale_h = yes; then
2329 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2330 echo "configure:2331: checking for LC_MESSAGES" >&5
2331 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2344 am_cv_val_LC_MESSAGES=yes
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 am_cv_val_LC_MESSAGES=no
2354 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2355 if test $am_cv_val_LC_MESSAGES = yes; then
2356 cat >> confdefs.h <<\EOF
2357 #define HAVE_LC_MESSAGES 1
2362 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2363 echo "configure:2364: checking whether NLS is requested" >&5
2364 # Check whether --enable-nls or --disable-nls was given.
2365 if test "${enable_nls+set}" = set; then
2366 enableval="$enable_nls"
2372 echo "$ac_t""$USE_NLS" 1>&6
2375 BUILD_INCLUDED_LIBINTL=no
2376 USE_INCLUDED_LIBINTL=no
2379 if test "$USE_NLS" = "yes"; then
2380 cat >> confdefs.h <<\EOF
2381 #define ENABLE_NLS 1
2384 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2385 echo "configure:2386: checking whether included gettext is requested" >&5
2386 # Check whether --with-included-gettext or --without-included-gettext was given.
2387 if test "${with_included_gettext+set}" = set; then
2388 withval="$with_included_gettext"
2389 nls_cv_force_use_gnu_gettext=$withval
2391 nls_cv_force_use_gnu_gettext=no
2394 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2396 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2397 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2403 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2404 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2405 echo "configure:2406: checking for libintl.h" >&5
2406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 #include <libintl.h>
2414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2415 { (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2417 if test -z "$ac_err"; then
2419 eval "ac_cv_header_$ac_safe=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_header_$ac_safe=no"
2429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2432 echo "configure:2433: checking for GNU gettext in libc" >&5
2433 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #include <libintl.h>
2440 extern int _nl_msg_cat_cntr;
2442 bindtextdomain ("", "");
2443 return (int) gettext ("") + _nl_msg_cat_cntr
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2448 gt_cv_func_gnugettext1_libc=yes
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 gt_cv_func_gnugettext1_libc=no
2458 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2460 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2461 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2462 echo "configure:2463: checking for GNU gettext in libintl" >&5
2463 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 gt_save_LIBS="$LIBS"
2467 LIBS="$LIBS -lintl $LIBICONV"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <libintl.h>
2472 extern int _nl_msg_cat_cntr;
2474 bindtextdomain ("", "");
2475 return (int) gettext ("") + _nl_msg_cat_cntr
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 gt_cv_func_gnugettext1_libintl=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 gt_cv_func_gnugettext1_libintl=no
2488 LIBS="$gt_save_LIBS"
2491 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2494 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2495 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2496 && test "$PACKAGE" != gettext; }; then
2497 cat >> confdefs.h <<\EOF
2498 #define HAVE_GETTEXT 1
2502 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2503 INTLLIBS="-lintl $LIBICONV"
2506 gt_save_LIBS="$LIBS"
2507 LIBS="$LIBS $INTLLIBS"
2508 for ac_func in dcgettext
2510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_func" >&5
2512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* System header to define __stub macros and hopefully few prototypes,
2519 which can conflict with char $ac_func(); below. */
2521 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2528 /* The GNU C library defines this for functions which it implements
2529 to always fail with ENOSYS. Some functions are actually named
2530 something starting with __ and the normal name is an alias. */
2531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2539 if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2541 eval "ac_cv_func_$ac_func=yes"
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 eval "ac_cv_func_$ac_func=no"
2551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2552 echo "$ac_t""yes" 1>&6
2553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2554 cat >> confdefs.h <<EOF
2555 #define $ac_tr_func 1
2559 echo "$ac_t""no" 1>&6
2563 LIBS="$gt_save_LIBS"
2565 # Extract the first word of "msgfmt", so it can be a program name with args.
2566 set dummy msgfmt; ac_word=$2
2567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_word" >&5
2569 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2574 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2578 for ac_dir in $PATH; do
2579 test -z "$ac_dir" && ac_dir=.
2580 if test -f $ac_dir/$ac_word; then
2581 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2582 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2588 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2592 MSGFMT="$ac_cv_path_MSGFMT"
2593 if test "$MSGFMT" != ":"; then
2594 echo "$ac_t""$MSGFMT" 1>&6
2596 echo "$ac_t""no" 1>&6
2599 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2600 set dummy gmsgfmt; ac_word=$2
2601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2602 echo "configure:2603: checking for $ac_word" >&5
2603 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2608 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2611 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2616 for ac_dir in $ac_dummy; do
2617 test -z "$ac_dir" && ac_dir=.
2618 if test -f $ac_dir/$ac_word; then
2619 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2624 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2628 GMSGFMT="$ac_cv_path_GMSGFMT"
2629 if test -n "$GMSGFMT"; then
2630 echo "$ac_t""$GMSGFMT" 1>&6
2632 echo "$ac_t""no" 1>&6
2636 # Extract the first word of "xgettext", so it can be a program name with args.
2637 set dummy xgettext; ac_word=$2
2638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_word" >&5
2640 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2645 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2649 for ac_dir in $PATH; do
2650 test -z "$ac_dir" && ac_dir=.
2651 if test -f $ac_dir/$ac_word; then
2652 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2659 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2663 XGETTEXT="$ac_cv_path_XGETTEXT"
2664 if test "$XGETTEXT" != ":"; then
2665 echo "$ac_t""$XGETTEXT" 1>&6
2667 echo "$ac_t""no" 1>&6
2675 echo "$ac_t""no" 1>&6
2679 if test "$CATOBJEXT" = "NONE"; then
2680 nls_cv_use_gnu_gettext=yes
2684 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2685 INTLOBJS="\$(GETTOBJS)"
2686 # Extract the first word of "msgfmt", so it can be a program name with args.
2687 set dummy msgfmt; ac_word=$2
2688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_word" >&5
2690 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2695 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2699 for ac_dir in $PATH; do
2700 test -z "$ac_dir" && ac_dir=.
2701 if test -f $ac_dir/$ac_word; then
2702 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2703 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2709 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2713 MSGFMT="$ac_cv_path_MSGFMT"
2714 if test "$MSGFMT" != ":"; then
2715 echo "$ac_t""$MSGFMT" 1>&6
2717 echo "$ac_t""no" 1>&6
2720 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2721 set dummy gmsgfmt; ac_word=$2
2722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_word" >&5
2724 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2729 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2732 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2737 for ac_dir in $ac_dummy; do
2738 test -z "$ac_dir" && ac_dir=.
2739 if test -f $ac_dir/$ac_word; then
2740 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2745 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2749 GMSGFMT="$ac_cv_path_GMSGFMT"
2750 if test -n "$GMSGFMT"; then
2751 echo "$ac_t""$GMSGFMT" 1>&6
2753 echo "$ac_t""no" 1>&6
2756 # Extract the first word of "xgettext", so it can be a program name with args.
2757 set dummy xgettext; ac_word=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2769 for ac_dir in $PATH; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2773 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2779 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2783 XGETTEXT="$ac_cv_path_XGETTEXT"
2784 if test "$XGETTEXT" != ":"; then
2785 echo "$ac_t""$XGETTEXT" 1>&6
2787 echo "$ac_t""no" 1>&6
2791 BUILD_INCLUDED_LIBINTL=yes
2792 USE_INCLUDED_LIBINTL=yes
2794 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2795 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2798 if test "$GMSGFMT" != ":"; then
2799 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2802 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2807 if test "$XGETTEXT" != ":"; then
2808 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2811 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2821 if test "$PACKAGE" = gettext; then
2822 BUILD_INCLUDED_LIBINTL=yes
2825 for ac_prog in bison
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_word" >&5
2831 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 if test -n "$INTLBISON"; then
2835 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_prog_INTLBISON="$ac_prog"
2849 INTLBISON="$ac_cv_prog_INTLBISON"
2850 if test -n "$INTLBISON"; then
2851 echo "$ac_t""$INTLBISON" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 test -n "$INTLBISON" && break
2859 if test -z "$INTLBISON"; then
2862 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2863 echo "configure:2864: checking version of bison" >&5
2864 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2865 case $ac_prog_version in
2866 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2867 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2868 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2869 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2871 echo "$ac_t""$ac_prog_version" 1>&6
2873 if test $ac_verc_fail = yes; then
2877 for lang in $ALL_LINGUAS; do
2878 GMOFILES="$GMOFILES $lang.gmo"
2879 POFILES="$POFILES $lang.po"
2893 nls_cv_header_libgt=
2905 if test "x$CATOBJEXT" != "x"; then
2906 if test "x$ALL_LINGUAS" = "x"; then
2909 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2910 echo "configure:2911: checking for catalogs to be installed" >&5
2912 for presentlang in $ALL_LINGUAS; do
2914 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2915 # Use the presentlang catalog if desiredlang is
2916 # a. equal to presentlang, or
2917 # b. a variant of presentlang (because in this case,
2918 # presentlang can be used as a fallback for messages
2919 # which are not translated in the desiredlang catalog).
2920 case "$desiredlang" in
2921 "$presentlang"*) useit=yes;;
2924 if test $useit = yes; then
2925 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2928 LINGUAS=$NEW_LINGUAS
2929 echo "$ac_t""$LINGUAS" 1>&6
2932 if test -n "$LINGUAS"; then
2933 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2938 if test -n "$ac_aux_dir"; then
2939 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2941 if test -z "$MKINSTALLDIRS"; then
2942 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2946 INTL_LIBTOOL_SUFFIX_PREFIX=
2950 # Find a good install program. We prefer a C program (faster),
2951 # so one script is as good as another. But avoid the broken or
2952 # incompatible versions:
2953 # SysV /etc/install, /usr/sbin/install
2954 # SunOS /usr/etc/install
2955 # IRIX /sbin/install
2957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2960 # ./install, which can be erroneously created by make from ./install.sh.
2961 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2962 echo "configure:2963: checking for a BSD compatible install" >&5
2963 if test -z "$INSTALL"; then
2964 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2968 for ac_dir in $PATH; do
2969 # Account for people who put trailing slashes in PATH elements.
2971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2976 for ac_prog in ginstall scoinst install; do
2977 if test -f $ac_dir/$ac_prog; then
2978 if test $ac_prog = install &&
2979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2980 # AIX install. It has an incompatible calling convention.
2983 ac_cv_path_install="$ac_dir/$ac_prog -c"
2994 if test "${ac_cv_path_install+set}" = set; then
2995 INSTALL="$ac_cv_path_install"
2997 # As a last resort, use the slow shell script. We don't cache a
2998 # path for INSTALL within a source directory, because that will
2999 # break other packages using the cache if that directory is
3000 # removed, or if the path is relative.
3001 INSTALL="$ac_install_sh"
3004 echo "$ac_t""$INSTALL" 1>&6
3006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3007 # It thinks the first close brace ends the variable substitution.
3008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3015 # Check whether --with-words or --without-words was given.
3016 if test "${with_words+set}" = set; then
3017 withval="$with_words"
3023 ac_cv_c_bigendian=yes
3026 ac_cv_c_bigendian=no
3029 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
3030 echo "configure:3031: checking whether the byte order is big-endian" >&5
3031 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 ac_cv_c_bigendian=unknown
3035 cat >conftest.c <<EOF
3036 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3037 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3038 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3039 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3040 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3041 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3042 int main(void) { _a(); _e(); return 0; }
3045 if test -f conftest.c
3047 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3048 && test -f conftest.o
3050 if test `grep -l BIGenDianSyS conftest.o`
3052 ac_cv_c_bigendian=yes
3054 if test `grep -l LiTTleEnDian conftest.o`
3056 ac_cv_c_bigendian=no
3063 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3064 if test $ac_cv_c_bigendian = xunknown
3066 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3070 if test $ac_cv_c_bigendian = yes
3072 cat >> confdefs.h <<\EOF
3073 #define WORDS_BIGENDIAN 1
3078 for ac_func in gettimeofday select strerror strtod strtol isatty
3080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_func" >&5
3082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 /* System header to define __stub macros and hopefully few prototypes,
3089 which can conflict with char $ac_func(); below. */
3091 /* Override any gcc2 internal prototype to avoid an error. */
3092 /* We use char because int might match the return type of a gcc2
3093 builtin and then its argument prototype would still apply. */
3098 /* The GNU C library defines this for functions which it implements
3099 to always fail with ENOSYS. Some functions are actually named
3100 something starting with __ and the normal name is an alias. */
3101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3109 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3111 eval "ac_cv_func_$ac_func=yes"
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3116 eval "ac_cv_func_$ac_func=no"
3121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3122 echo "$ac_t""yes" 1>&6
3123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3124 cat >> confdefs.h <<EOF
3125 #define $ac_tr_func 1
3129 echo "$ac_t""no" 1>&6
3133 echo $ac_n "checking for connect""... $ac_c" 1>&6
3134 echo "configure:3135: checking for connect" >&5
3135 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 /* System header to define __stub macros and hopefully few prototypes,
3142 which can conflict with char connect(); below. */
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 /* We use char because int might match the return type of a gcc2
3146 builtin and then its argument prototype would still apply. */
3151 /* The GNU C library defines this for functions which it implements
3152 to always fail with ENOSYS. Some functions are actually named
3153 something starting with __ and the normal name is an alias. */
3154 #if defined (__stub_connect) || defined (__stub___connect)
3162 if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3164 eval "ac_cv_func_connect=yes"
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 eval "ac_cv_func_connect=no"
3174 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3178 echo "$ac_t""no" 1>&6
3180 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3181 echo "configure:3182: checking for connect in -lsocket" >&5
3182 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 ac_save_LIBS="$LIBS"
3187 LIBS="-lsocket $LIBS"
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 /* Override any gcc2 internal prototype to avoid an error. */
3192 /* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_lib_$ac_lib_var=no"
3210 LIBS="$ac_save_LIBS"
3213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 LIB="${LIB} -lsocket"
3217 echo "$ac_t""no" 1>&6
3223 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3224 echo "configure:3225: checking for gethostbyname" >&5
3225 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* System header to define __stub macros and hopefully few prototypes,
3232 which can conflict with char gethostbyname(); below. */
3234 /* Override any gcc2 internal prototype to avoid an error. */
3235 /* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3237 char gethostbyname();
3241 /* The GNU C library defines this for functions which it implements
3242 to always fail with ENOSYS. Some functions are actually named
3243 something starting with __ and the normal name is an alias. */
3244 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3252 if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3254 eval "ac_cv_func_gethostbyname=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 eval "ac_cv_func_gethostbyname=no"
3264 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3268 echo "$ac_t""no" 1>&6
3270 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3271 echo "configure:3272: checking for gethostbyname in -lnsl" >&5
3272 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 ac_save_LIBS="$LIBS"
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char gethostbyname();
3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 eval "ac_cv_lib_$ac_lib_var=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_lib_$ac_lib_var=no"
3300 LIBS="$ac_save_LIBS"
3303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3307 echo "$ac_t""no" 1>&6
3313 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3314 echo "configure:3315: checking for nanosleep" >&5
3315 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* System header to define __stub macros and hopefully few prototypes,
3322 which can conflict with char nanosleep(); below. */
3324 /* Override any gcc2 internal prototype to avoid an error. */
3325 /* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3331 /* The GNU C library defines this for functions which it implements
3332 to always fail with ENOSYS. Some functions are actually named
3333 something starting with __ and the normal name is an alias. */
3334 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3342 if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3344 eval "ac_cv_func_nanosleep=yes"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3349 eval "ac_cv_func_nanosleep=no"
3354 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3355 echo "$ac_t""yes" 1>&6
3358 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3361 echo "configure:3362: checking for nanosleep in -lrt" >&5
3362 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 ac_save_LIBS="$LIBS"
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3397 echo "$ac_t""no" 1>&6
3399 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3400 echo "configure:3401: checking for nanosleep in -lposix4" >&5
3401 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 ac_save_LIBS="$LIBS"
3406 LIBS="-lposix4 $LIBS"
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3421 eval "ac_cv_lib_$ac_lib_var=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_lib_$ac_lib_var=no"
3429 LIBS="$ac_save_LIBS"
3432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 LIB="${LIB} -lposix4"
3436 echo "$ac_t""no" 1>&6
3445 for ac_func in usleep
3447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3448 echo "configure:3449: checking for $ac_func" >&5
3449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* System header to define __stub macros and hopefully few prototypes,
3456 which can conflict with char $ac_func(); below. */
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3465 /* The GNU C library defines this for functions which it implements
3466 to always fail with ENOSYS. Some functions are actually named
3467 something starting with __ and the normal name is an alias. */
3468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 eval "ac_cv_func_$ac_func=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3483 eval "ac_cv_func_$ac_func=no"
3488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3491 cat >> confdefs.h <<EOF
3492 #define $ac_tr_func 1
3496 echo "$ac_t""no" 1>&6
3500 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3501 echo "configure:3502: checking for inet_aton" >&5
3502 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 /* System header to define __stub macros and hopefully few prototypes,
3509 which can conflict with char inet_aton(); below. */
3511 /* Override any gcc2 internal prototype to avoid an error. */
3512 /* We use char because int might match the return type of a gcc2
3513 builtin and then its argument prototype would still apply. */
3518 /* The GNU C library defines this for functions which it implements
3519 to always fail with ENOSYS. Some functions are actually named
3520 something starting with __ and the normal name is an alias. */
3521 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3529 if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531 eval "ac_cv_func_inet_aton=yes"
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3536 eval "ac_cv_func_inet_aton=no"
3541 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3542 echo "$ac_t""yes" 1>&6
3545 echo "$ac_t""no" 1>&6
3547 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3548 echo "configure:3549: checking for inet_aton in -lresolv" >&5
3549 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_save_LIBS="$LIBS"
3554 LIBS="-lresolv $LIBS"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 LIB="${LIB} -lresolv"
3584 echo "$ac_t""no" 1>&6
3590 for ac_func in vasprintf
3592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3593 echo "configure:3594: checking for $ac_func" >&5
3594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 /* System header to define __stub macros and hopefully few prototypes,
3601 which can conflict with char $ac_func(); below. */
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3610 /* The GNU C library defines this for functions which it implements
3611 to always fail with ENOSYS. Some functions are actually named
3612 something starting with __ and the normal name is an alias. */
3613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_func_$ac_func=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_func_$ac_func=no"
3633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3636 cat >> confdefs.h <<EOF
3637 #define $ac_tr_func 1
3641 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_func" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char $ac_func(); below. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_$ac_func=yes"
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_$ac_func=no"
3688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_func 1
3696 echo "$ac_t""no" 1>&6
3700 for ac_func in memalign valloc
3702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3703 echo "configure:3704: checking for $ac_func" >&5
3704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func(); below. */
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3720 /* The GNU C library defines this for functions which it implements
3721 to always fail with ENOSYS. Some functions are actually named
3722 something starting with __ and the normal name is an alias. */
3723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 eval "ac_cv_func_$ac_func=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_func_$ac_func=no"
3743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_func 1
3751 echo "$ac_t""no" 1>&6
3756 for ac_func in sigrelse
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5
3760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* System header to define __stub macros and hopefully few prototypes,
3767 which can conflict with char $ac_func(); below. */
3769 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3776 /* The GNU C library defines this for functions which it implements
3777 to always fail with ENOSYS. Some functions are actually named
3778 something starting with __ and the normal name is an alias. */
3779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 eval "ac_cv_func_$ac_func=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_func_$ac_func=no"
3799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3802 cat >> confdefs.h <<EOF
3803 #define $ac_tr_func 1
3807 echo "$ac_t""no" 1>&6
3813 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3814 echo "configure:3815: checking for getopt_long" >&5
3815 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char getopt_long(); below. */
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_func_getopt_long=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_func_getopt_long=no"
3854 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 cat >> confdefs.h <<\EOF
3857 #define HAVE_GETOPT_LONG 1
3861 echo "$ac_t""no" 1>&6
3862 # FreeBSD has a gnugetopt library for this:
3863 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3864 echo "configure:3865: checking for getopt_long in -lgnugetopt" >&5
3865 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3870 LIBS="-lgnugetopt $LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_GETOPT_LONG 1
3901 LIB="${LIB} -lgnugetopt"
3903 echo "$ac_t""no" 1>&6
3910 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3911 echo "configure:3912: checking return type of signal handlers" >&5
3912 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 #include <sys/types.h>
3924 extern "C" void (*signal (int, void (*)(int)))(int);
3926 void (*signal ()) ();
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3935 ac_cv_type_signal=void
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 ac_cv_type_signal=int
3945 echo "$ac_t""$ac_cv_type_signal" 1>&6
3946 cat >> confdefs.h <<EOF
3947 #define RETSIGTYPE $ac_cv_type_signal
3951 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3952 echo "configure:3953: checking for dlopen in -ldl" >&5
3953 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3988 echo "$ac_t""no" 1>&6
3991 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3992 echo "configure:3993: checking for cos in -lm" >&5
3993 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS="$LIBS"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4013 eval "ac_cv_lib_$ac_lib_var=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_lib_$ac_lib_var=no"
4021 LIBS="$ac_save_LIBS"
4024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 LIB_IMDCT="${LIB_IMDCT} -lm"
4027 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4029 echo "$ac_t""no" 1>&6
4032 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4033 echo "configure:4034: checking for pow in -lm" >&5
4034 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 ac_save_LIBS="$LIBS"
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4052 if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4054 eval "ac_cv_lib_$ac_lib_var=yes"
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 eval "ac_cv_lib_$ac_lib_var=no"
4062 LIBS="$ac_save_LIBS"
4065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 LIB_IMDCT="${LIB_IMDCT} -lm"
4068 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4069 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4072 echo "$ac_t""no" 1>&6
4077 if test "x${THREAD_LIB}" = xerror; then
4078 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4079 echo "configure:4080: checking for pthread_attr_init in -lpthread" >&5
4080 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 ac_save_LIBS="$LIBS"
4085 LIBS="-lpthread $LIBS"
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char pthread_attr_init();
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 eval "ac_cv_lib_$ac_lib_var=no"
4108 LIBS="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 THREAD_LIB="-lpthread"
4115 echo "$ac_t""no" 1>&6
4119 if test "x${THREAD_LIB}" = xerror; then
4120 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4121 echo "configure:4122: checking for pthread_attr_init in -lpthreads" >&5
4122 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4126 ac_save_LIBS="$LIBS"
4127 LIBS="-lpthreads $LIBS"
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 /* Override any gcc2 internal prototype to avoid an error. */
4132 /* We use char because int might match the return type of a gcc2
4133 builtin and then its argument prototype would still apply. */
4134 char pthread_attr_init();
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142 eval "ac_cv_lib_$ac_lib_var=yes"
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 eval "ac_cv_lib_$ac_lib_var=no"
4150 LIBS="$ac_save_LIBS"
4153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 THREAD_LIB="-lpthreads"
4157 echo "$ac_t""no" 1>&6
4161 if test "x${THREAD_LIB}" = xerror; then
4162 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4163 echo "configure:4164: checking for pthread_attr_init in -lc_r" >&5
4164 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 ac_save_LIBS="$LIBS"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176 char pthread_attr_init();
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 eval "ac_cv_lib_$ac_lib_var=no"
4192 LIBS="$ac_save_LIBS"
4195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4199 echo "$ac_t""no" 1>&6
4203 if test "x${THREAD_LIB}" = xerror; then
4204 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4205 echo "configure:4206: checking for pthread_attr_init" >&5
4206 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* System header to define __stub macros and hopefully few prototypes,
4213 which can conflict with char pthread_attr_init(); below. */
4215 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218 char pthread_attr_init();
4222 /* The GNU C library defines this for functions which it implements
4223 to always fail with ENOSYS. Some functions are actually named
4224 something starting with __ and the normal name is an alias. */
4225 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4228 pthread_attr_init();
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 eval "ac_cv_func_pthread_attr_init=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_func_pthread_attr_init=no"
4245 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4246 echo "$ac_t""yes" 1>&6
4249 echo "$ac_t""no" 1>&6
4255 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4256 echo "configure:4257: checking for cthread_fork in -lthreads" >&5
4257 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4262 LIBS="-lthreads $LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4269 char cthread_fork();
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 THREAD_LIB="-lthreads"
4292 echo "$ac_t""no" 1>&6
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4299 #include <pthread.h>
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 egrep "pthread_cond_t" >/dev/null 2>&1; then
4305 cat >> confdefs.h <<\EOF
4306 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <strings.h>
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "strncasecmp" >/dev/null 2>&1; then
4321 cat >> confdefs.h <<\EOF
4322 #define STRNCASECMP_IN_STRINGS_H 1
4329 for ac_hdr in getopt.h strings.h
4331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_hdr" >&5
4334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4343 { (eval echo configure:4344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4345 if test -z "$ac_err"; then
4347 eval "ac_cv_header_$ac_safe=yes"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_header_$ac_safe=no"
4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4360 cat >> confdefs.h <<EOF
4361 #define $ac_tr_hdr 1
4365 echo "$ac_t""no" 1>&6
4369 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_hdr" >&5
4374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4383 { (eval echo configure:4384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4385 if test -z "$ac_err"; then
4387 eval "ac_cv_header_$ac_safe=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_header_$ac_safe=no"
4397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4400 cat >> confdefs.h <<EOF
4401 #define $ac_tr_hdr 1
4405 echo "$ac_t""no" 1>&6
4409 for ac_hdr in sys/soundcard.h machine/soundcard.h
4411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4413 echo "configure:4414: checking for $ac_hdr" >&5
4414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4423 { (eval echo configure:4424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4425 if test -z "$ac_err"; then
4427 eval "ac_cv_header_$ac_safe=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_header_$ac_safe=no"
4437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4440 cat >> confdefs.h <<EOF
4441 #define $ac_tr_hdr 1
4445 echo "$ac_t""no" 1>&6
4449 for ac_hdr in dlfcn.h image.h
4451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_hdr" >&5
4454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4463 { (eval echo configure:4464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4465 if test -z "$ac_err"; then
4467 eval "ac_cv_header_$ac_safe=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_header_$ac_safe=no"
4477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4480 cat >> confdefs.h <<EOF
4481 #define $ac_tr_hdr 1
4485 echo "$ac_t""no" 1>&6
4489 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_hdr" >&5
4494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4503 { (eval echo configure:4504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4505 if test -z "$ac_err"; then
4507 eval "ac_cv_header_$ac_safe=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 eval "ac_cv_header_$ac_safe=no"
4517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_hdr 1
4525 echo "$ac_t""no" 1>&6
4529 for ac_hdr in machine/param.h
4531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4533 echo "configure:4534: checking for $ac_hdr" >&5
4534 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4543 { (eval echo configure:4544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4545 if test -z "$ac_err"; then
4547 eval "ac_cv_header_$ac_safe=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_header_$ac_safe=no"
4557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4560 cat >> confdefs.h <<EOF
4561 #define $ac_tr_hdr 1
4565 echo "$ac_t""no" 1>&6
4570 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4571 echo "configure:4572: checking whether time.h and sys/time.h may both be included" >&5
4572 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 #include <sys/types.h>
4579 #include <sys/time.h>
4585 if { (eval echo configure:4586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 ac_cv_header_time=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 ac_cv_header_time=no
4597 echo "$ac_t""$ac_cv_header_time" 1>&6
4598 if test $ac_cv_header_time = yes; then
4599 cat >> confdefs.h <<\EOF
4600 #define TIME_WITH_SYS_TIME 1
4606 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_hdr" >&5
4611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4620 { (eval echo configure:4621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4622 if test -z "$ac_err"; then
4624 eval "ac_cv_header_$ac_safe=yes"
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 eval "ac_cv_header_$ac_safe=no"
4634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4637 cat >> confdefs.h <<EOF
4638 #define $ac_tr_hdr 1
4642 echo "$ac_t""no" 1>&6
4647 if test x$SYS != xmingw32
4649 if test x$x_includes = xNONE; then
4650 x_includes=/usr/X11R6/include
4652 if test x$x_libraries = xNONE; then
4653 x_libraries=/usr/X11R6/lib
4655 saved_CPPFLAGS=$CPPFLAGS
4656 CPPFLAGS="$CPPFLAGS -I$x_includes"
4657 for ac_hdr in X11/extensions/dpms.h
4659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_hdr" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then
4675 eval "ac_cv_header_$ac_safe=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_header_$ac_safe=no"
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_hdr 1
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 #include <X11/extensions/dpms.h>
4697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4698 egrep "DPMSInfo" >/dev/null 2>&1; then
4701 cat >> confdefs.h <<\EOF
4702 #define DPMSINFO_IN_DPMS_H 1
4711 echo "$ac_t""no" 1>&6
4715 CPPFLAGS=$saved_CPPFLAGS
4718 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4719 echo "configure:4720: checking for ntohl in sys/param.h" >&5
4720 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 CFLAGS="${save_CFLAGS} -Wall -Werror"
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 #include <sys/param.h>
4729 void foo() { int meuh; ntohl(meuh); }
4732 if { (eval echo configure:4733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4734 ac_cv_c_ntohl_sys_param_h=yes
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4739 ac_cv_c_ntohl_sys_param_h=no
4744 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4745 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4746 cat >> confdefs.h <<\EOF
4747 #define NTOHL_IN_SYS_PARAM_H 1
4752 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4753 echo "configure:4754: checking if \$CC accepts -finline-limit" >&5
4754 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4766 if { (eval echo configure:4767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4768 ac_cv_c_inline_limit=yes
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 ac_cv_c_inline_limit=no
4778 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4779 if test x"$ac_cv_c_inline_limit" != x"no"; then
4780 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4783 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4784 echo "configure:4785: checking if \$CC accepts -Wall -Winline" >&5
4785 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 CFLAGS="${save_CFLAGS} -Wall -Winline"
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4797 if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4799 ac_cv_c_Wall_Winline=yes
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 ac_cv_c_Wall_Winline=no
4809 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4810 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4811 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4813 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4814 echo "configure:4815: checking if \$CC accepts -wall -winline" >&5
4815 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 CFLAGS="${save_CFLAGS} -wall -winline"
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4827 if { (eval echo configure:4828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 ac_cv_c_wall_winline=yes
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 ac_cv_c_wall_winline=no
4839 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4840 if test x"$ac_cv_c_wall_winline" != x"no"; then
4841 save_CFLAGS="${save_CFLAGS} -wall -winline"
4845 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4846 echo "configure:4847: checking if \$CC accepts -pipe" >&5
4847 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 CFLAGS="${save_CFLAGS} -pipe"
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4859 if { (eval echo configure:4860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4871 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4872 if test x"$ac_cv_c_pipe" != x"no"; then
4873 save_CFLAGS="${save_CFLAGS} -pipe"
4876 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4877 echo "configure:4878: checking if \$CC accepts -O3" >&5
4878 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 CFLAGS="${save_CFLAGS} -O3"
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4890 if { (eval echo configure:4891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4902 echo "$ac_t""$ac_cv_c_o3" 1>&6
4903 if test x"$ac_cv_c_o3" != x"no"; then
4904 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4906 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4907 echo "configure:4908: checking if \$CC accepts -O2" >&5
4908 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 CFLAGS="${save_CFLAGS} -O2"
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4920 if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4932 echo "$ac_t""$ac_cv_c_o2" 1>&6
4933 if test x"$ac_cv_c_o2" != x"no"; then
4934 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4936 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4937 echo "configure:4938: checking if \$CC accepts -O" >&5
4938 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 CFLAGS="${save_CFLAGS} -O"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4950 if { (eval echo configure:4951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4962 echo "$ac_t""$ac_cv_c_o" 1>&6
4963 if test x"$ac_cv_c_o" != x"no"; then
4964 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4969 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4970 echo "configure:4971: checking if \$CC accepts -ffast-math" >&5
4971 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 CFLAGS="${save_CFLAGS} -ffast-math"
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4983 if { (eval echo configure:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4985 ac_cv_c_fast_math=yes
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 ac_cv_c_fast_math=no
4995 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
4996 if test x"$ac_cv_c_fast_math" != x"no"; then
4997 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5000 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5001 echo "configure:5002: checking if \$CC accepts -funroll-loops" >&5
5002 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 CFLAGS="${save_CFLAGS} -funroll-loops"
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5014 if { (eval echo configure:5015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 ac_cv_c_unroll_loops=yes
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 ac_cv_c_unroll_loops=no
5026 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5027 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5028 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5031 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5032 echo "configure:5033: checking if \$CC accepts -fomit-frame-pointer" >&5
5033 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 ac_cv_c_omit_frame_pointer=yes
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 ac_cv_c_omit_frame_pointer=no
5057 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5058 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5059 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5062 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5063 echo "configure:5064: checking if \$CC accepts -bundle -undefined error" >&5
5064 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5076 if { (eval echo configure:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5088 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5089 if test x"$ac_cv_ld_darwin" != x"no"; then
5090 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5093 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5094 echo "configure:5095: checking if \$CC accepts -shared" >&5
5095 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 CFLAGS="${save_CFLAGS} -shared"
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5107 if { (eval echo configure:5108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 ac_cv_ld_plugins=yes
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5119 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5120 if test x"$ac_cv_ld_plugins" != x"no"; then
5121 PLDFLAGS="${PLDFLAGS} -shared"
5124 if test x"${SOFLAGS}" = x; then
5125 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5126 echo "configure:5127: checking for soname setting" >&5
5127 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5132 try_SOFLAGS="-Wl,-soname -Wl,"
5133 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5142 if { (eval echo configure:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5144 ac_cv_ld_soname="${try_SOFLAGS}"
5146 echo "configure: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5151 try_SOFLAGS="-Wl,-h -Wl,"
5152 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5161 if { (eval echo configure:5162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 ac_cv_ld_soname="${try_SOFLAGS}"
5165 echo "configure: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5168 ac_cv_ld_soname=none
5176 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5177 if test x"$ac_cv_ld_soname" != x"none"; then
5178 SOFLAGS=$ac_cv_ld_soname
5182 Your system doesn't seem to have support for dynamic linking. You may
5183 have problems using libdvdcss.
5189 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5190 echo "configure:5191: checking __attribute__ ((aligned ())) support" >&5
5191 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 ac_cv_c_attribute_aligned=0
5195 CFLAGS="${save_CFLAGS} -Werror"
5196 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5202 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5207 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5216 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5217 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5218 cat >> confdefs.h <<EOF
5219 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5224 CFLAGS="${save_CFLAGS}"
5225 LDFLAGS="${save_LDFLAGS}"
5227 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5228 echo "configure:5229: checking for boolean_t in sys/types.h" >&5
5229 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 #include <sys/types.h>
5240 if { (eval echo configure:5241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5242 ac_cv_c_boolean_t_sys_types_h=yes
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 ac_cv_c_boolean_t_sys_types_h=no
5252 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5253 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5254 cat >> confdefs.h <<\EOF
5255 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5260 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5261 echo "configure:5262: checking for boolean_t in pthread.h" >&5
5262 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5268 #include <pthread.h>
5273 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5275 ac_cv_c_boolean_t_pthread_h=yes
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5280 ac_cv_c_boolean_t_pthread_h=no
5285 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5286 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5287 cat >> confdefs.h <<\EOF
5288 #define BOOLEAN_T_IN_PTHREAD_H 1
5293 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5294 echo "configure:5295: checking for boolean_t in cthreads.h" >&5
5295 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 #include <cthreads.h>
5306 if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 ac_cv_c_boolean_t_cthreads_h=yes
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 ac_cv_c_boolean_t_cthreads_h=no
5318 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5319 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5320 cat >> confdefs.h <<\EOF
5321 #define BOOLEAN_T_IN_CTHREADS_H 1
5326 case x"${target_cpu}" in
5335 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5336 PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
5338 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5339 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5340 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5341 SSE_MODULES="imdctsse downmixsse"
5342 ALTIVEC_MODULES="idctaltivec motionaltivec"
5344 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5345 echo "configure:5346: checking if \$CC groks MMX inline assembly" >&5
5346 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5354 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5357 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5359 ac_cv_mmx_inline=yes
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5369 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5370 if test x"$ac_cv_mmx_inline" != x"no"; then
5371 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5374 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5375 echo "configure:5376: checking if \$CC groks MMX EXT inline assembly" >&5
5376 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5384 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5387 if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5389 ac_cv_mmxext_inline=yes
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 ac_cv_mmxext_inline=no
5399 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5400 if test x"$ac_cv_mmxext_inline" != x"no"; then
5401 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5404 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5405 echo "configure:5406: checking if \$CC groks 3D Now! inline assembly" >&5
5406 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5414 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5417 if { (eval echo configure:5418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5419 ac_cv_3dnow_inline=yes
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5424 ac_cv_3dnow_inline=no
5429 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5430 if test x"$ac_cv_3dnow_inline" != x"no"; then
5431 cat >> confdefs.h <<\EOF
5432 #define CAN_COMPILE_3DNOW 1
5435 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5438 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5439 echo "configure:5440: checking if \$CC groks SSE inline assembly" >&5
5440 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5448 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5451 if { (eval echo configure:5452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5453 ac_cv_sse_inline=yes
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5463 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5464 if test x"$ac_cv_sse_inline" != x"no"; then
5465 cat >> confdefs.h <<\EOF
5466 #define CAN_COMPILE_SSE 1
5469 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5472 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5473 echo "configure:5474: checking if \$CC groks Altivec inline assembly" >&5
5474 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5482 asm volatile("vperm 0,1,2,3");
5485 if { (eval echo configure:5486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 ac_cv_altivec_inline=yes
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5493 CFLAGS="$CFLAGS -Wa,-m7400"
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5499 asm volatile("vperm 0,1,2,3");
5502 if { (eval echo configure:5503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5504 ac_cv_altivec_inline="-Wa,-m7400"
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5509 ac_cv_altivec_inline=no
5518 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5519 if test x"$ac_cv_altivec_inline" != x"no"; then
5520 cat >> confdefs.h <<\EOF
5521 #define CAN_COMPILE_ALTIVEC 1
5524 if test x"$ac_cv_altivec_inline" != x"yes"; then
5525 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5526 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5527 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5529 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5532 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5533 echo "configure:5534: checking if \$CC groks Altivec C extensions" >&5
5534 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5538 CFLAGS="$CFLAGS -faltivec"
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5545 vec_mtvscr((vector unsigned int)(0));
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 ac_cv_c_altivec=-faltivec
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5557 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5563 vec_mtvscr((vector unsigned int)(0));
5566 if { (eval echo configure:5567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568 ac_cv_c_altivec="-fvec"
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5583 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5584 if test x"$ac_cv_c_altivec" != x"no"; then
5585 cat >> confdefs.h <<\EOF
5586 #define CAN_COMPILE_C_ALTIVEC 1
5589 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5590 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5591 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5592 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5595 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5596 echo "configure:5597: checking if linker needs -framework vecLib" >&5
5597 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 save_LDFLAGS=$LDFLAGS
5601 LDFLAGS="$LDFLAGS -framework vecLib"
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 ac_cv_ld_altivec=yes
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5620 LDFLAGS=$save_LDFLAGS
5624 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5625 if test x"$ac_cv_ld_altivec" != x"no"; then
5626 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5627 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5628 LIB="${LIB} -framework vecLib"
5631 case x"${target_os}" in
5646 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}windres; ac_word=$2
5648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_word" >&5
5650 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 if test -n "$WINDRES"; then
5654 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5658 for ac_dir in $ac_dummy; do
5659 test -z "$ac_dir" && ac_dir=.
5660 if test -f $ac_dir/$ac_word; then
5661 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5668 WINDRES="$ac_cv_prog_WINDRES"
5669 if test -n "$WINDRES"; then
5670 echo "$ac_t""$WINDRES" 1>&6
5672 echo "$ac_t""no" 1>&6
5676 if test -z "$ac_cv_prog_WINDRES"; then
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "windres", so it can be a program name with args.
5679 set dummy windres; ac_word=$2
5680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_word" >&5
5682 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 if test -n "$WINDRES"; then
5686 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5690 for ac_dir in $ac_dummy; do
5691 test -z "$ac_dir" && ac_dir=.
5692 if test -f $ac_dir/$ac_word; then
5693 ac_cv_prog_WINDRES="windres"
5698 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5701 WINDRES="$ac_cv_prog_WINDRES"
5702 if test -n "$WINDRES"; then
5703 echo "$ac_t""$WINDRES" 1>&6
5705 echo "$ac_t""no" 1>&6
5713 LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
5714 LIB_RC="${LIB_RC} -lws2_32"
5718 LIB_X11="${LIB_X11} -lsocket"
5719 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5724 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5725 PLDFLAGS="${PLDFLAGS} -nostart"
5738 DVD_DEVICE="/dev/dvd"
5739 VCD_DEVICE="/dev/cdrom"
5743 cat >> confdefs.h <<EOF
5744 #define DVD_DEVICE "$DVD_DEVICE"
5747 cat >> confdefs.h <<EOF
5748 #define VCD_DEVICE "$VCD_DEVICE"
5754 CAN_BUILD_LIBDVDCSS=0
5756 for ac_hdr in winioctl.h
5758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_hdr" >&5
5761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5770 { (eval echo configure:5771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5772 if test -z "$ac_err"; then
5774 eval "ac_cv_header_$ac_safe=yes"
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5780 eval "ac_cv_header_$ac_safe=no"
5784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5787 cat >> confdefs.h <<EOF
5788 #define $ac_tr_hdr 1
5791 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5794 echo "$ac_t""no" 1>&6
5799 for ac_hdr in sys/ioctl.h
5801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5803 echo "configure:5804: checking for $ac_hdr" >&5
5804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5813 { (eval echo configure:5814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5815 if test -z "$ac_err"; then
5817 eval "ac_cv_header_$ac_safe=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_header_$ac_safe=no"
5827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5828 echo "$ac_t""yes" 1>&6
5829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5830 cat >> confdefs.h <<EOF
5831 #define $ac_tr_hdr 1
5834 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5835 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5839 echo "configure:5840: checking for $ac_hdr" >&5
5840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5853 eval "ac_cv_header_$ac_safe=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_header_$ac_safe=no"
5863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_hdr 1
5871 echo "$ac_t""no" 1>&6
5877 OPENBSD_DVD_STRUCT=0
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 #include <sys/cdio.h>
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 egrep "dvd_struct" >/dev/null 2>&1; then
5887 cat >> confdefs.h <<\EOF
5888 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 #include <sys/cdio.h>
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897 egrep "struct dvd_struct" >/dev/null 2>&1; then
5903 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 #include <sys/dvdio.h>
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 egrep "dvd_struct" >/dev/null 2>&1; then
5920 cat >> confdefs.h <<\EOF
5921 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <sys/dvdio.h>
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 egrep "struct dvd_struct" >/dev/null 2>&1; then
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 #include <linux/cdrom.h>
5949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5950 egrep "dvd_struct" >/dev/null 2>&1; then
5953 cat >> confdefs.h <<\EOF
5954 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 egrep "dvd_struct" >/dev/null 2>&1; then
5972 cat >> confdefs.h <<\EOF
5973 #define DVD_STRUCT_IN_DVD_H 1
5976 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5982 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_hdr" >&5
5987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5996 { (eval echo configure:5997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5998 if test -z "$ac_err"; then
6000 eval "ac_cv_header_$ac_safe=yes"
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6006 eval "ac_cv_header_$ac_safe=no"
6010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6011 echo "$ac_t""yes" 1>&6
6012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6013 cat >> confdefs.h <<EOF
6014 #define $ac_tr_hdr 1
6018 cat >> confdefs.h <<\EOF
6019 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6022 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6026 echo "$ac_t""no" 1>&6
6034 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6035 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6036 echo "configure:6037: checking for sys/scsi/scsi_types.h" >&5
6037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 #include <sys/scsi/scsi_types.h>
6045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6046 { (eval echo configure:6047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6048 if test -z "$ac_err"; then
6050 eval "ac_cv_header_$ac_safe=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_header_$ac_safe=no"
6060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6063 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6065 echo "configure:6066: checking for sys/scsi/impl/uscsi.h" >&5
6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <sys/scsi/impl/uscsi.h>
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then
6079 eval "ac_cv_header_$ac_safe=yes"
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 eval "ac_cv_header_$ac_safe=no"
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6092 cat >> confdefs.h <<\EOF
6093 #define SOLARIS_USCSI 1
6098 echo "$ac_t""no" 1>&6
6103 echo "$ac_t""no" 1>&6
6106 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6108 echo "configure:6109: checking for sys/scsi.h" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 #include <sys/scsi.h>
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6120 if test -z "$ac_err"; then
6122 eval "ac_cv_header_$ac_safe=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_header_$ac_safe=no"
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 #include <sys/scsi.h>
6140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141 egrep "sctl_io" >/dev/null 2>&1; then
6144 cat >> confdefs.h <<\EOF
6145 #define HPUX_SCTL_IO 1
6154 echo "$ac_t""no" 1>&6
6157 if test x$LINUX_DVD_STRUCT = x1; then
6158 cat >> confdefs.h <<\EOF
6159 #define HAVE_LINUX_DVD_STRUCT 1
6162 if test x$OPENBSD_DVD_STRUCT = x1; then
6163 cat >> confdefs.h <<\EOF
6164 #define HAVE_OPENBSD_DVD_STRUCT 1
6169 if test x$BSD_DVD_STRUCT = x1; then
6170 cat >> confdefs.h <<\EOF
6171 #define HAVE_BSD_DVD_STRUCT 1
6178 echo "$ac_t""no" 1>&6
6183 # Check whether --with-tuning or --without-tuning was given.
6184 if test "${with_tuning+set}" = set; then
6185 withval="$with_tuning"
6189 if test "x$withval" != "x"; then
6192 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6194 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6198 # Check whether --enable-release or --disable-release was given.
6199 if test "${enable_release+set}" = set; then
6200 enableval="$enable_release"
6201 if test x$enableval = xyes; then RELEASE=1; fi
6203 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6204 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6208 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6211 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6214 # Check whether --enable-altivec or --disable-altivec was given.
6215 if test "${enable_altivec+set}" = set; then
6216 enableval="$enable_altivec"
6217 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6218 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6220 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6221 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6226 # Check whether --enable-debug or --disable-debug was given.
6227 if test "${enable_debug+set}" = set; then
6228 enableval="$enable_debug"
6229 if test x$enableval = xyes; then DEBUG=1; fi
6234 # Check whether --enable-trace or --disable-trace was given.
6235 if test "${enable_trace+set}" = set; then
6236 enableval="$enable_trace"
6237 if test x$enableval = xyes; then TRACE=1; fi
6242 # Check whether --enable-gprof or --disable-gprof was given.
6243 if test "${enable_gprof+set}" = set; then
6244 enableval="$enable_gprof"
6245 if test x$enableval = xyes; then GPROF=1; fi
6250 # Check whether --enable-cprof or --disable-cprof was given.
6251 if test "${enable_cprof+set}" = set; then
6252 enableval="$enable_cprof"
6253 if test x$enableval = xyes;
6255 LIB="${LIB} -lcprof"
6262 # Check whether --enable-optimizations or --disable-optimizations was given.
6263 if test "${enable_optimizations+set}" = set; then
6264 enableval="$enable_optimizations"
6265 if test x$enableval = xno; then OPTIMS=0; fi
6271 # Check whether --enable-pth or --disable-pth was given.
6272 if test "${enable_pth+set}" = set; then
6273 enableval="$enable_pth"
6274 if test x$enableval = xyes; then
6275 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6276 echo "configure:6277: checking for pth_init in -lpth" >&5
6277 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6281 ac_save_LIBS="$LIBS"
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_lib_$ac_lib_var=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_lib_$ac_lib_var=no"
6305 LIBS="$ac_save_LIBS"
6308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6309 echo "$ac_t""yes" 1>&6
6310 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_lib 1
6319 echo "$ac_t""no" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 egrep "pth_init" >/dev/null 2>&1; then
6331 cat >> confdefs.h <<\EOF
6332 #define PTH_INIT_IN_PTH_H 1
6344 LIB="${LIB} ${THREAD_LIB}"
6349 # Check whether --with-dvdcss or --without-dvdcss was given.
6350 if test "${with_dvdcss+set}" = set; then
6351 withval="$with_dvdcss"
6352 case "x${withval}" in
6354 # local libdvdcss, statically linked
6355 BUILTINS="${BUILTINS} dvd"
6356 if test x${CAN_BUILD_LIBDVDCSS} = x1
6360 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6361 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6365 # local libdvdcss, dynamically linked
6366 PLUGINS="${PLUGINS} dvd"
6367 if test x${CAN_BUILD_LIBDVDCSS} = x1
6370 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6371 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6375 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6376 BUILTINS="${BUILTINS} dvd"
6378 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6379 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6380 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6381 LIB_DVD="${LIB_DVD} -ldl"
6384 # existing libdvdcss
6385 PLUGINS="${PLUGINS} dvd"
6386 if test "x$withval" != "xyes"
6388 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6389 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6391 LIB_DVD="${LIB_DVD} -ldvdcss"
6394 # user didn't decide, we choose to use local libdvdcss and link statically
6395 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6396 if test x${CAN_BUILD_LIBDVDCSS} = x1
6398 BUILTINS="${BUILTINS} dvd"
6401 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6402 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6404 # XXX: no check for libdl is done, don't try this at home !
6405 BUILTINS="${BUILTINS} dvd"
6407 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6408 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6409 LIB_DVD="${LIB_DVD} -ldl"
6414 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6415 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6416 # Check whether --with-dvdread or --without-dvdread was given.
6417 if test "${with_dvdread+set}" = set; then
6418 withval="$with_dvdread"
6419 case "x${withval}" in
6421 if test x${STATIC_LIBDVDREAD} = x1
6423 BUILTINS="${BUILTINS} dvdread"
6424 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6425 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6427 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6433 if test x${STATIC_LIBDVDREAD} = x1
6435 BUILTINS="${BUILTINS} dvdread"
6436 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6437 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6439 PLUGINS="${PLUGINS} dvdread"
6440 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6441 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6445 if test "x$withval" != "xlocal-shared"
6447 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6448 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6450 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6451 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6453 if test x${STATIC_LIBDVDCSS} = x1
6455 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6457 PLUGINS="${PLUGINS} dvdread"
6458 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6459 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6462 if test x${DUMMY_LIBDVDCSS} = x1
6464 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6466 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6471 # Check whether --enable-vcd or --disable-vcd was given.
6472 if test "${enable_vcd+set}" = set; then
6473 enableval="$enable_vcd"
6478 if test x$enable_vcd != xno
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 #include <linux/cdrom.h>
6485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6486 egrep "cdrom_msf0" >/dev/null 2>&1; then
6489 BUILTINS="${BUILTINS} vcd"
6496 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6498 BUILTINS="${BUILTINS} vcd"
6501 # Check whether --enable-dummy or --disable-dummy was given.
6502 if test "${enable_dummy+set}" = set; then
6503 enableval="$enable_dummy"
6508 if test x$enable_dummy != xno
6510 BUILTINS="${BUILTINS} dummy"
6513 # Check whether --enable-null or --disable-null was given.
6514 if test "${enable_null+set}" = set; then
6515 enableval="$enable_null"
6520 if test x$enable_null != xno
6522 BUILTINS="${BUILTINS} null"
6525 # Check whether --enable-rc or --disable-rc was given.
6526 if test "${enable_rc+set}" = set; then
6527 enableval="$enable_rc"
6532 if test x$enable_rc != xno
6534 BUILTINS="${BUILTINS} rc"
6537 # Check whether --with-mad or --without-mad was given.
6538 if test "${with_mad+set}" = set; then
6540 if test "x$with_val" != "xno"; then
6541 if test -n $with_val; then
6542 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6543 LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6545 LIB_MAD="${LIB_MAD} -lmad"
6548 save_LDFLAGS=$LDFLAGS
6549 CFLAGS="$CFLAGS $CFLAGS_MAD"
6550 LDFLAGS="$LDFLAGS $LIB_MAD"
6553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6555 echo "configure:6556: checking for $ac_hdr" >&5
6556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6565 { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6567 if test -z "$ac_err"; then
6569 eval "ac_cv_header_$ac_safe=yes"
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 eval "ac_cv_header_$ac_safe=no"
6579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_hdr 1
6587 echo "$ac_t""no" 1>&6
6588 echo "Cannot find development headers for libmad..."
6594 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6595 echo "configure:6596: checking for mad_bit_init in -lmad" >&5
6596 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6598 echo $ac_n "(cached) $ac_c" 1>&6
6600 ac_save_LIBS="$LIBS"
6602 cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure"
6604 #include "confdefs.h"
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6608 char mad_bit_init();
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 eval "ac_cv_lib_$ac_lib_var=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 eval "ac_cv_lib_$ac_lib_var=no"
6624 LIBS="$ac_save_LIBS"
6627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6630 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_lib 1
6638 echo "$ac_t""no" 1>&6
6639 echo "Cannot find libmad library..."
6645 LDFLAGS=$save_LDFLAGS
6646 PLUGINS="${PLUGINS} mad"
6651 if test x$SYS = xbeos
6653 BUILTINS="${BUILTINS} beos"
6657 # Check whether --enable-dsp or --disable-dsp was given.
6658 if test "${enable_dsp+set}" = set; then
6659 enableval="$enable_dsp"
6664 if test x$enable_dsp != xno &&
6665 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6667 for ac_hdr in sys/soundcard.h machine/soundcard.h
6669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6671 echo "configure:6672: checking for $ac_hdr" >&5
6672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6681 { (eval echo configure:6682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6683 if test -z "$ac_err"; then
6685 eval "ac_cv_header_$ac_safe=yes"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 eval "ac_cv_header_$ac_safe=no"
6695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6696 echo "$ac_t""yes" 1>&6
6697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6698 cat >> confdefs.h <<EOF
6699 #define $ac_tr_hdr 1
6702 PLUGINS="${PLUGINS} dsp"
6705 echo "$ac_t""no" 1>&6
6711 # Check whether --enable-esd or --disable-esd was given.
6712 if test "${enable_esd+set}" = set; then
6713 enableval="$enable_esd"
6714 if test x$enable_esd = xyes
6716 # Extract the first word of "esd-config", so it can be a program name with args.
6717 set dummy esd-config; ac_word=$2
6718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6719 echo "configure:6720: checking for $ac_word" >&5
6720 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6723 case "$ESD_CONFIG" in
6725 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6728 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6733 for ac_dir in $ac_dummy; do
6734 test -z "$ac_dir" && ac_dir=.
6735 if test -f $ac_dir/$ac_word; then
6736 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6741 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6745 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6746 if test -n "$ESD_CONFIG"; then
6747 echo "$ac_t""$ESD_CONFIG" 1>&6
6749 echo "$ac_t""no" 1>&6
6752 if test x${ESD_CONFIG} != xno
6754 PLUGINS="${PLUGINS} esd"
6755 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6756 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6762 # Check whether --enable-arts or --disable-arts was given.
6763 if test "${enable_arts+set}" = set; then
6764 enableval="$enable_arts"
6765 if test x$enable_arts = xyes
6767 # Extract the first word of "artsc-config", so it can be a program name with args.
6768 set dummy artsc-config; ac_word=$2
6769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_word" >&5
6771 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 case "$ARTS_CONFIG" in
6776 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6779 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6784 for ac_dir in $ac_dummy; do
6785 test -z "$ac_dir" && ac_dir=.
6786 if test -f $ac_dir/$ac_word; then
6787 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6792 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6796 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6797 if test -n "$ARTS_CONFIG"; then
6798 echo "$ac_t""$ARTS_CONFIG" 1>&6
6800 echo "$ac_t""no" 1>&6
6803 if test x${ARTS_CONFIG} != xno
6805 PLUGINS="${PLUGINS} arts"
6806 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
6807 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
6813 # Check whether --enable-macosx or --disable-macosx was given.
6814 if test "${enable_macosx+set}" = set; then
6815 enableval="$enable_macosx"
6816 if test x$enable_macosx = xyes
6818 BUILTINS="${BUILTINS} macosx"
6819 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6820 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6824 for ac_hdr in Cocoa/Cocoa.h
6826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6828 echo "configure:6829: checking for $ac_hdr" >&5
6829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6838 { (eval echo configure:6839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6840 if test -z "$ac_err"; then
6842 eval "ac_cv_header_$ac_safe=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_header_$ac_safe=no"
6852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6855 cat >> confdefs.h <<EOF
6856 #define $ac_tr_hdr 1
6858 BUILTINS="${BUILTINS} macosx"
6859 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6860 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6864 echo "$ac_t""no" 1>&6
6871 # Check whether --enable-qnx or --disable-qnx was given.
6872 if test "${enable_qnx+set}" = set; then
6873 enableval="$enable_qnx"
6877 if test x$enable_qnx != xno
6881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_hdr" >&5
6884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6893 { (eval echo configure:6894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6895 if test -z "$ac_err"; then
6897 eval "ac_cv_header_$ac_safe=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_header_$ac_safe=no"
6907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6908 echo "$ac_t""yes" 1>&6
6909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6910 cat >> confdefs.h <<EOF
6911 #define $ac_tr_hdr 1
6914 PLUGINS="${PLUGINS} qnx"
6915 LIB_QNX="${LIB_QNX} -lasound -lph"
6918 echo "$ac_t""no" 1>&6
6924 # Check whether --enable-fb or --disable-fb was given.
6925 if test "${enable_fb+set}" = set; then
6926 enableval="$enable_fb"
6927 if test x$enable_fb = xyes
6929 PLUGINS="${PLUGINS} fb"
6934 # Check whether --enable-mga or --disable-mga was given.
6935 if test "${enable_mga+set}" = set; then
6936 enableval="$enable_mga"
6937 if test x$enable_mga = xyes
6939 PLUGINS="${PLUGINS} mga xmga"
6944 # Check whether --with-ggi or --without-ggi was given.
6945 if test "${with_ggi+set}" = set; then
6947 if test "x$withval" != "xno"
6949 PLUGINS="${PLUGINS} ggi"
6950 if test "x$withval" != "xyes"
6952 LIB_GGI="${LIB_GGI} -l$withval"
6954 LIB_GGI="${LIB_GGI} -lggi"
6960 # Check whether --enable-sdl or --disable-sdl was given.
6961 if test "${enable_sdl+set}" = set; then
6962 enableval="$enable_sdl"
6966 if test "x$enable_sdl" != "xno"
6969 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6970 if test "${with_sdl_config_path+set}" = set; then
6971 withval="$with_sdl_config_path"
6972 if test "x$withval" != "xno"
6974 SDL_PATH=$withval:$PATH
6978 # Extract the first word of "sdl12-config", so it can be a program name with args.
6979 set dummy sdl12-config; ac_word=$2
6980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6981 echo "configure:6982: checking for $ac_word" >&5
6982 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 case "$SDL12_CONFIG" in
6987 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6990 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6994 ac_dummy="$SDL_PATH"
6995 for ac_dir in $ac_dummy; do
6996 test -z "$ac_dir" && ac_dir=.
6997 if test -f $ac_dir/$ac_word; then
6998 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7003 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7007 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7008 if test -n "$SDL12_CONFIG"; then
7009 echo "$ac_t""$SDL12_CONFIG" 1>&6
7011 echo "$ac_t""no" 1>&6
7014 SDL_CONFIG=${SDL12_CONFIG}
7015 SDL_HEADER="SDL12/SDL.h"
7016 if test x${SDL_CONFIG} = xno
7018 # Extract the first word of "sdl11-config", so it can be a program name with args.
7019 set dummy sdl11-config; ac_word=$2
7020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_word" >&5
7022 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 case "$SDL11_CONFIG" in
7027 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7030 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7034 ac_dummy="$SDL_PATH"
7035 for ac_dir in $ac_dummy; do
7036 test -z "$ac_dir" && ac_dir=.
7037 if test -f $ac_dir/$ac_word; then
7038 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7043 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7047 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7048 if test -n "$SDL11_CONFIG"; then
7049 echo "$ac_t""$SDL11_CONFIG" 1>&6
7051 echo "$ac_t""no" 1>&6
7054 SDL_CONFIG=${SDL11_CONFIG}
7055 SDL_HEADER="SDL11/SDL.h"
7057 if test x${SDL_CONFIG} = xno
7059 # Extract the first word of "sdl-config", so it can be a program name with args.
7060 set dummy sdl-config; ac_word=$2
7061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_word" >&5
7063 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 case "$SDL_CONFIG" in
7068 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7071 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7075 ac_dummy="$SDL_PATH"
7076 for ac_dir in $ac_dummy; do
7077 test -z "$ac_dir" && ac_dir=.
7078 if test -f $ac_dir/$ac_word; then
7079 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7084 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7088 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7089 if test -n "$SDL_CONFIG"; then
7090 echo "$ac_t""$SDL_CONFIG" 1>&6
7092 echo "$ac_t""no" 1>&6
7095 SDL_HEADER="SDL/SDL.h"
7097 if test x${SDL_CONFIG} != xno
7099 PLUGINS="${PLUGINS} sdl"
7100 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7101 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7102 save_CPPFLAGS=$CPPFLAGS
7103 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7104 for ac_hdr in ${SDL_HEADER}
7106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7108 echo "configure:7109: checking for $ac_hdr" >&5
7109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7118 { (eval echo configure:7119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7120 if test -z "$ac_err"; then
7122 eval "ac_cv_header_$ac_safe=yes"
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 eval "ac_cv_header_$ac_safe=no"
7132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7133 echo "$ac_t""yes" 1>&6
7134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7135 cat >> confdefs.h <<EOF
7136 #define $ac_tr_hdr 1
7138 cat >> confdefs.h <<EOF
7139 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7143 echo "$ac_t""no" 1>&6
7144 { echo "configure: error: The development package for SDL is not installed.
7145 Please install it and try again. Alternatively you can also configure with
7146 --disable-sdl." 1>&2; exit 1; }
7151 CPPFLAGS=$save_CPPFLAGS
7152 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7154 { echo "configure: error: The development package for SDL is not installed.
7155 Please install it and try again. Alternatively you can also configure with
7156 --disable-sdl." 1>&2; exit 1; }
7158 elif test "x$enable_sdl" = "xyes"
7160 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7161 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7166 # Check whether --enable-directx or --disable-directx was given.
7167 if test "${enable_directx+set}" = set; then
7168 enableval="$enable_directx"
7172 if test "x$enableval" != "xno"
7174 if test x$SYS = xmingw32
7176 # Check whether --with-directx-path or --without-directx-path was given.
7177 if test "${with_directx_path+set}" = set; then
7178 withval="$with_directx_path"
7182 if test "x$with_directx_path" = "x"
7184 for ac_hdr in directx.h
7186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7188 echo "configure:7189: checking for $ac_hdr" >&5
7189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7190 echo $ac_n "(cached) $ac_c" 1>&6
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7198 { (eval echo configure:7199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7200 if test -z "$ac_err"; then
7202 eval "ac_cv_header_$ac_safe=yes"
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 eval "ac_cv_header_$ac_safe=no"
7212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7215 cat >> confdefs.h <<EOF
7216 #define $ac_tr_hdr 1
7218 PLUGINS="${PLUGINS} directx"
7219 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7221 echo "$ac_t""no" 1>&6
7226 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7227 echo "configure:7228: checking for directX headers in ${withval}" >&5
7228 if test -f ${withval}/include/directx.h
7230 PLUGINS="${PLUGINS} directx"
7231 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7232 INCLUDE="${INCLUDE} -I${withval}/include"
7233 echo "$ac_t""yes" 1>&6
7235 echo "$ac_t""no" 1>&6
7236 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7242 # Check whether --enable-waveout or --disable-waveout was given.
7243 if test "${enable_waveout+set}" = set; then
7244 enableval="$enable_waveout"
7248 if ((test "x$enableval" != "xno") && (test x$SYS = xmingw32))
7250 PLUGINS="${PLUGINS} waveout"
7251 LIB_WAVEOUT="-lwinmm"
7254 # Check whether --enable-win32 or --disable-win32 was given.
7255 if test "${enable_win32+set}" = set; then
7256 enableval="$enable_win32"
7257 if test "x$enableval" != "xno"
7259 PLUGINS="${PLUGINS} win32"
7264 # Check whether --with-glide or --without-glide was given.
7265 if test "${with_glide+set}" = set; then
7266 withval="$with_glide"
7267 if test "x$withval" != "xno"
7269 PLUGINS="${PLUGINS} glide"
7270 if test "x$withval" != "xyes"
7272 LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
7274 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7276 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7281 # Check whether --enable-ncurses or --disable-ncurses was given.
7282 if test "${enable_ncurses+set}" = set; then
7283 enableval="$enable_ncurses"
7284 if test x$enable_ncurses = xyes; then
7285 PLUGINS="${PLUGINS} ncurses"
7286 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7291 # Check whether --enable-qt or --disable-qt was given.
7292 if test "${enable_qt+set}" = set; then
7293 enableval="$enable_qt"
7294 if test x$enable_qt = xyes; then
7295 PLUGINS="${PLUGINS} qt"
7296 ALIASES="${ALIASES} qvlc"
7297 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7298 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7299 if test -x ${QTDIR}/bin/moc
7301 MOC=${QTDIR}/bin/moc
7309 # Check whether --enable-kde or --disable-kde was given.
7310 if test "${enable_kde+set}" = set; then
7311 enableval="$enable_kde"
7312 if test x$enable_kde = xyes; then
7313 PLUGINS="${PLUGINS} kde"
7314 ALIASES="${ALIASES} kvlc"
7315 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7316 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7317 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7318 if test -x ${QTDIR}/bin/moc
7320 MOC=${QTDIR}/bin/moc
7328 # Check whether --enable-gnome or --disable-gnome was given.
7329 if test "${enable_gnome+set}" = set; then
7330 enableval="$enable_gnome"
7331 if test x$enable_gnome = xyes; then
7332 # look for gnome-config
7333 # Extract the first word of "gnome-config", so it can be a program name with args.
7334 set dummy gnome-config; ac_word=$2
7335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_word" >&5
7337 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 case "$GNOME_CONFIG" in
7342 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7345 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7350 for ac_dir in $ac_dummy; do
7351 test -z "$ac_dir" && ac_dir=.
7352 if test -f $ac_dir/$ac_word; then
7353 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7358 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7362 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7363 if test -n "$GNOME_CONFIG"; then
7364 echo "$ac_t""$GNOME_CONFIG" 1>&6
7366 echo "$ac_t""no" 1>&6
7369 if test -x ${GNOME_CONFIG}
7371 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7372 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7374 # now look for the gnome.h header
7375 saved_CPPFLAGS=$CPPFLAGS
7376 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7377 for ac_hdr in gnome.h
7379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7381 echo "configure:7382: checking for $ac_hdr" >&5
7382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7385 cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7391 { (eval echo configure:7392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7393 if test -z "$ac_err"; then
7395 eval "ac_cv_header_$ac_safe=yes"
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 eval "ac_cv_header_$ac_safe=no"
7405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7406 echo "$ac_t""yes" 1>&6
7407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7408 cat >> confdefs.h <<EOF
7409 #define $ac_tr_hdr 1
7412 PLUGINS="${PLUGINS} gnome"
7413 ALIASES="${ALIASES} gnome-vlc"
7416 echo "$ac_t""no" 1>&6
7417 { echo "configure: error: Can't find gnome headers. Please install the gnome
7418 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7424 CPPFLAGS=$saved_CPPFLAGS
7429 # Check whether --enable-gtk or --disable-gtk was given.
7430 if test "${enable_gtk+set}" = set; then
7431 enableval="$enable_gtk"
7435 if test x$enable_gtk != xno
7438 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7439 if test "${with_gtk_config_path+set}" = set; then
7440 withval="$with_gtk_config_path"
7441 if test "x$withval" != "xno"
7443 GTK_PATH=$withval:$PATH
7447 # look for gtk-config
7448 # Extract the first word of "gtk-config", so it can be a program name with args.
7449 set dummy gtk-config; ac_word=$2
7450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_word" >&5
7452 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 case "$GTK_CONFIG" in
7457 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7460 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7464 ac_dummy="$GTK_PATH"
7465 for ac_dir in $ac_dummy; do
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f $ac_dir/$ac_word; then
7468 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7473 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7477 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7478 if test -n "$GTK_CONFIG"; then
7479 echo "$ac_t""$GTK_CONFIG" 1>&6
7481 echo "$ac_t""no" 1>&6
7484 if test -x ${GTK_CONFIG}
7486 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7488 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
7490 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7491 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7493 # now look for the gtk.h header
7494 saved_CPPFLAGS=$CPPFLAGS
7495 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7496 ac_cv_gtk_headers=yes
7497 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_hdr" >&5
7502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7511 { (eval echo configure:7512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7513 if test -z "$ac_err"; then
7515 eval "ac_cv_header_$ac_safe=yes"
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 eval "ac_cv_header_$ac_safe=no"
7525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7528 cat >> confdefs.h <<EOF
7529 #define $ac_tr_hdr 1
7533 echo "$ac_t""no" 1>&6
7534 ac_cv_gtk_headers=no
7535 echo "Cannot find gtk development headers."
7540 if test "x$ac_cv_gtk_headers" = xyes
7542 PLUGINS="${PLUGINS} gtk"
7543 ALIASES="${ALIASES} gvlc"
7545 CPPFLAGS=$saved_CPPFLAGS
7548 # Check whether --enable-x11 or --disable-x11 was given.
7549 if test "${enable_x11+set}" = set; then
7550 enableval="$enable_x11"
7554 if test x$enable_x11 != xno &&
7555 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
7556 if test x$x_includes = xNONE; then
7557 x_includes=/usr/X11R6/include
7559 if test x$x_libraries = xNONE; then
7560 x_libraries=/usr/X11R6/lib
7562 saved_CPPFLAGS=$CPPFLAGS
7563 CPPFLAGS="$CPPFLAGS -I$x_includes"
7564 for ac_hdr in X11/Xlib.h
7566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_hdr" >&5
7569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7580 if test -z "$ac_err"; then
7582 eval "ac_cv_header_$ac_safe=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 eval "ac_cv_header_$ac_safe=no"
7592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7595 cat >> confdefs.h <<EOF
7596 #define $ac_tr_hdr 1
7599 PLUGINS="${PLUGINS} x11"
7600 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7601 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7604 echo "$ac_t""no" 1>&6
7608 CPPFLAGS=$saved_CPPFLAGS
7611 # Check whether --enable-xvideo or --disable-xvideo was given.
7612 if test "${enable_xvideo+set}" = set; then
7613 enableval="$enable_xvideo"
7617 if test x$enable_xvideo != xno &&
7618 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7619 if test x$x_includes = xNONE; then
7620 x_includes=/usr/X11R6/include
7622 if test x$x_libraries = xNONE; then
7623 x_libraries=/usr/X11R6/lib
7625 saved_CPPFLAGS=$CPPFLAGS
7626 CPPFLAGS="$CPPFLAGS -I$x_includes"
7627 for ac_hdr in X11/extensions/Xv.h
7629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_hdr" >&5
7632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7641 { (eval echo configure:7642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7643 if test -z "$ac_err"; then
7645 eval "ac_cv_header_$ac_safe=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_header_$ac_safe=no"
7655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7658 cat >> confdefs.h <<EOF
7659 #define $ac_tr_hdr 1
7662 saved_CFLAGS=$CFLAGS
7663 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7664 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7665 echo "configure:7666: checking for XvSetPortAttribute in -lXv_pic" >&5
7666 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 ac_save_LIBS="$LIBS"
7671 LIBS="-lXv_pic $LIBS"
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678 char XvSetPortAttribute();
7681 XvSetPortAttribute()
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 eval "ac_cv_lib_$ac_lib_var=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7691 eval "ac_cv_lib_$ac_lib_var=no"
7694 LIBS="$ac_save_LIBS"
7697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7700 PLUGINS="${PLUGINS} xvideo"
7701 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7702 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7704 echo "$ac_t""no" 1>&6
7705 # We don't have Xv_pic, let's make xvideo.a as builtin
7706 BUILTINS="${BUILTINS} xvideo"
7707 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7708 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7711 CFLAGS=$saved_CFLAGS
7713 CPPFLAGS=$saved_CPPFLAGS
7715 echo "$ac_t""no" 1>&6
7721 # Check whether --enable-alsa or --disable-alsa was given.
7722 if test "${enable_alsa+set}" = set; then
7723 enableval="$enable_alsa"
7724 if test x$enable_alsa = xyes
7726 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7727 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7728 echo "configure:7729: checking for alsa/asoundlib.h" >&5
7729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7730 echo $ac_n "(cached) $ac_c" 1>&6
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <alsa/asoundlib.h>
7737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7738 { (eval echo configure:7739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7740 if test -z "$ac_err"; then
7742 eval "ac_cv_header_$ac_safe=yes"
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7748 eval "ac_cv_header_$ac_safe=no"
7752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7753 echo "$ac_t""yes" 1>&6
7754 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7755 echo "configure:7756: checking for main in -lasound" >&5
7756 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 ac_save_LIBS="$LIBS"
7761 LIBS="-lasound $LIBS"
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7772 eval "ac_cv_lib_$ac_lib_var=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 eval "ac_cv_lib_$ac_lib_var=no"
7780 LIBS="$ac_save_LIBS"
7783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7787 echo "$ac_t""no" 1>&6
7792 echo "$ac_t""no" 1>&6
7796 if test x$have_alsa = xtrue
7798 PLUGINS="${PLUGINS} alsa"
7799 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7807 # Check whether --enable-plugins or --disable-plugins was given.
7808 if test "${enable_plugins+set}" = set; then
7809 enableval="$enable_plugins"
7810 if test x$enable_plugins = xno
7812 BUILTINS="${BUILTINS} ${PLUGINS}"
7819 # Check whether --with-dll-path or --without-dll-path was given.
7820 if test "${with_dll_path+set}" = set; then
7821 withval="$with_dll_path"
7822 if test "x$withval" != "xno"
7829 cat >> confdefs.h <<EOF
7830 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7833 cat >> confdefs.h <<EOF
7834 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7838 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7839 cat >> confdefs.h <<EOF
7840 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7843 cat >> confdefs.h <<EOF
7844 #define MODULE_SYMBOL $VLC_SYMBOL
7848 DATA_PATH="${ac_tool_prefix}/share/videolan"
7850 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7943 cat > confcache <<\EOF
7944 # This file is a shell script that caches the results of configure
7945 # tests run on this system so they can be shared between configure
7946 # scripts and configure runs. It is not useful on other systems.
7947 # If it contains results you don't want to keep, you may remove or edit it.
7949 # By default, configure uses ./config.cache as the cache file,
7950 # creating it if it does not exist already. You can give configure
7951 # the --cache-file=FILE option to use a different cache file; that is
7952 # what configure does when it calls configure scripts in
7953 # subdirectories, so they share the cache.
7954 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7955 # config.status only pays attention to the cache file if you give it the
7956 # --recheck option to rerun configure.
7959 # The following way of writing the cache mishandles newlines in values,
7960 # but we know of no workaround that is simple, portable, and efficient.
7961 # So, don't put newlines in cache variables' values.
7962 # Ultrix sh set writes to stderr and can't be redirected directly,
7963 # and sets the high bit in the cache file unless we assign to the vars.
7965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7967 # `set' does not quote correctly, so add quotes (double-quote substitution
7968 # turns \\\\ into \\, and sed turns \\ into \).
7970 -e "s/'/'\\\\''/g" \
7971 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7974 # `set' quotes correctly as required by POSIX, so do not add quotes.
7975 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7978 if cmp -s $cache_file confcache; then
7981 if test -w $cache_file; then
7982 echo "updating cache $cache_file"
7983 cat confcache > $cache_file
7985 echo "not updating unwritable cache $cache_file"
7990 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7993 # Let make expand exec_prefix.
7994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7996 # Any assignment to VPATH causes Sun make to only execute
7997 # the first set of double-colon rules, so remove it if not needed.
7998 # If there is a colon in the path, we need to keep it.
7999 if test "x$srcdir" = x.; then
8000 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8003 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8005 DEFS=-DHAVE_CONFIG_H
8007 # Without the "./", some shells look in PATH for config.status.
8008 : ${CONFIG_STATUS=./config.status}
8010 echo creating $CONFIG_STATUS
8011 rm -f $CONFIG_STATUS
8012 cat > $CONFIG_STATUS <<EOF
8014 # Generated automatically by configure.
8015 # Run this file to recreate the current configuration.
8016 # This directory was configured as follows,
8017 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8019 # $0 $ac_configure_args
8021 # Compiler output produced by configure, useful for debugging
8022 # configure, is in ./config.log if it exists.
8024 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8027 case "\$ac_option" in
8028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8029 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8030 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8031 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8032 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8034 -help | --help | --hel | --he | --h)
8035 echo "\$ac_cs_usage"; exit 0 ;;
8036 *) echo "\$ac_cs_usage"; exit 1 ;;
8040 ac_given_srcdir=$srcdir
8041 ac_given_INSTALL="$INSTALL"
8043 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8045 cat >> $CONFIG_STATUS <<EOF
8047 # Protect against being on the right side of a sed subst in config.status.
8048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8053 s%@CFLAGS@%$CFLAGS%g
8054 s%@CPPFLAGS@%$CPPFLAGS%g
8055 s%@CXXFLAGS@%$CXXFLAGS%g
8056 s%@FFLAGS@%$FFLAGS%g
8058 s%@LDFLAGS@%$LDFLAGS%g
8060 s%@exec_prefix@%$exec_prefix%g
8061 s%@prefix@%$prefix%g
8062 s%@program_transform_name@%$program_transform_name%g
8063 s%@bindir@%$bindir%g
8064 s%@sbindir@%$sbindir%g
8065 s%@libexecdir@%$libexecdir%g
8066 s%@datadir@%$datadir%g
8067 s%@sysconfdir@%$sysconfdir%g
8068 s%@sharedstatedir@%$sharedstatedir%g
8069 s%@localstatedir@%$localstatedir%g
8070 s%@libdir@%$libdir%g
8071 s%@includedir@%$includedir%g
8072 s%@oldincludedir@%$oldincludedir%g
8073 s%@infodir@%$infodir%g
8074 s%@mandir@%$mandir%g
8076 s%@host_alias@%$host_alias%g
8077 s%@host_cpu@%$host_cpu%g
8078 s%@host_vendor@%$host_vendor%g
8079 s%@host_os@%$host_os%g
8080 s%@target@%$target%g
8081 s%@target_alias@%$target_alias%g
8082 s%@target_cpu@%$target_cpu%g
8083 s%@target_vendor@%$target_vendor%g
8084 s%@target_os@%$target_os%g
8086 s%@build_alias@%$build_alias%g
8087 s%@build_cpu@%$build_cpu%g
8088 s%@build_vendor@%$build_vendor%g
8089 s%@build_os@%$build_os%g
8090 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8091 s%@SET_MAKE@%$SET_MAKE%g
8094 s%@RANLIB@%$RANLIB%g
8095 s%@ALLOCA@%$ALLOCA%g
8096 s%@GLIBC21@%$GLIBC21%g
8097 s%@LIBICONV@%$LIBICONV%g
8098 s%@USE_NLS@%$USE_NLS%g
8099 s%@MSGFMT@%$MSGFMT%g
8100 s%@GMSGFMT@%$GMSGFMT%g
8101 s%@XGETTEXT@%$XGETTEXT%g
8102 s%@INTLBISON@%$INTLBISON%g
8103 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8104 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8105 s%@CATALOGS@%$CATALOGS%g
8106 s%@CATOBJEXT@%$CATOBJEXT%g
8107 s%@GMOFILES@%$GMOFILES%g
8108 s%@INTLLIBS@%$INTLLIBS%g
8109 s%@INTLOBJS@%$INTLOBJS%g
8110 s%@POFILES@%$POFILES%g
8112 s%@DATADIRNAME@%$DATADIRNAME%g
8113 s%@INSTOBJEXT@%$INSTOBJEXT%g
8114 s%@GENCAT@%$GENCAT%g
8115 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8116 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8117 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8118 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8119 s%@INSTALL_DATA@%$INSTALL_DATA%g
8120 s%@WINDRES@%$WINDRES%g
8121 s%@ESD_CONFIG@%$ESD_CONFIG%g
8122 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8123 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8124 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8125 s%@SDL_CONFIG@%$SDL_CONFIG%g
8126 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8127 s%@GTK_CONFIG@%$GTK_CONFIG%g
8128 s%@DATA_PATH@%$DATA_PATH%g
8129 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8132 s%@PLUGINS@%$PLUGINS%g
8133 s%@BUILTINS@%$BUILTINS%g
8134 s%@ALIASES@%$ALIASES%g
8135 s%@INCLUDE@%$INCLUDE%g
8141 s%@OPTIMS@%$OPTIMS%g
8142 s%@TUNING@%$TUNING%g
8143 s%@RELEASE@%$RELEASE%g
8145 s%@DLL_PATH@%$DLL_PATH%g
8146 s%@PACKAGE@%$PACKAGE%g
8147 s%@VERSION@%$VERSION%g
8148 s%@VCD_DEVICE@%$VCD_DEVICE%g
8149 s%@DVD_DEVICE@%$DVD_DEVICE%g
8150 s%@PLDFLAGS@%$PLDFLAGS%g
8151 s%@SOFLAGS@%$SOFLAGS%g
8153 s%@LIB_ALSA@%$LIB_ALSA%g
8154 s%@LIB_ARTS@%$LIB_ARTS%g
8155 s%@LIB_BEOS@%$LIB_BEOS%g
8156 s%@LIB_DARWIN@%$LIB_DARWIN%g
8157 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8158 s%@LIB_DVD@%$LIB_DVD%g
8159 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8160 s%@LIB_ESD@%$LIB_ESD%g
8161 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8162 s%@LIB_GGI@%$LIB_GGI%g
8163 s%@LIB_GLIDE@%$LIB_GLIDE%g
8164 s%@LIB_GNOME@%$LIB_GNOME%g
8165 s%@LIB_GTK@%$LIB_GTK%g
8166 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8167 s%@LIB_IMDCT@%$LIB_IMDCT%g
8168 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8169 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8170 s%@LIB_KDE@%$LIB_KDE%g
8171 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8172 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8173 s%@LIB_MACOSX@%$LIB_MACOSX%g
8174 s%@LIB_MAD@%$LIB_MAD%g
8175 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8176 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8177 s%@LIB_NCURSES@%$LIB_NCURSES%g
8178 s%@LIB_QNX@%$LIB_QNX%g
8179 s%@LIB_QT@%$LIB_QT%g
8180 s%@LIB_RC@%$LIB_RC%g
8181 s%@LIB_SDL@%$LIB_SDL%g
8182 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8183 s%@LIB_WIN32@%$LIB_WIN32%g
8184 s%@LIB_X11@%$LIB_X11%g
8185 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8186 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8187 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8188 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8189 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8190 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8191 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8192 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8193 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8194 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8195 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8196 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8197 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8198 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8199 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8200 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8201 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8202 s%@CFLAGS_QT@%$CFLAGS_QT%g
8203 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8204 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8205 s%@CFLAGS_X11@%$CFLAGS_X11%g
8206 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8207 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8208 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8209 s%@NEED_GETOPT@%$NEED_GETOPT%g
8210 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8215 cat >> $CONFIG_STATUS <<\EOF
8217 # Split the substitutions into bite-sized pieces for seds with
8218 # small command number limits, like on Digital OSF/1 and HP-UX.
8219 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8220 ac_file=1 # Number of current file.
8221 ac_beg=1 # First line for current file.
8222 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8225 while $ac_more_lines; do
8226 if test $ac_beg -gt 1; then
8227 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8229 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8231 if test ! -s conftest.s$ac_file; then
8233 rm -f conftest.s$ac_file
8235 if test -z "$ac_sed_cmds"; then
8236 ac_sed_cmds="sed -f conftest.s$ac_file"
8238 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8240 ac_file=`expr $ac_file + 1`
8242 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8245 if test -z "$ac_sed_cmds"; then
8250 cat >> $CONFIG_STATUS <<EOF
8252 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8254 cat >> $CONFIG_STATUS <<\EOF
8255 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8258 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8259 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8260 *) ac_file_in="${ac_file}.in" ;;
8263 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8265 # Remove last slash and all that follows it. Not all systems have dirname.
8266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8268 # The file is in a subdirectory.
8269 test ! -d "$ac_dir" && mkdir "$ac_dir"
8270 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8271 # A "../" for each directory in $ac_dir_suffix.
8272 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8274 ac_dir_suffix= ac_dots=
8277 case "$ac_given_srcdir" in
8279 if test -z "$ac_dots"; then top_srcdir=.
8280 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8281 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8283 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8284 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8287 case "$ac_given_INSTALL" in
8288 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8289 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8292 echo creating "$ac_file"
8294 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8296 *Makefile*) ac_comsub="1i\\
8297 # $configure_input" ;;
8301 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8303 s%@configure_input@%$configure_input%g
8304 s%@srcdir@%$srcdir%g
8305 s%@top_srcdir@%$top_srcdir%g
8306 s%@INSTALL@%$INSTALL%g
8307 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8311 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8312 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8314 # ac_d sets the value in "#define NAME VALUE" lines.
8315 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8316 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8319 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8320 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8321 ac_uB='\([ ]\)%\1#\2define\3'
8324 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8325 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8326 ac_eB='$%\1#\2define\3'
8330 if test "${CONFIG_HEADERS+set}" != set; then
8332 cat >> $CONFIG_STATUS <<EOF
8333 CONFIG_HEADERS="include/defs.h"
8335 cat >> $CONFIG_STATUS <<\EOF
8337 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8340 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8341 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8342 *) ac_file_in="${ac_file}.in" ;;
8345 echo creating $ac_file
8347 rm -f conftest.frag conftest.in conftest.out
8348 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8349 cat $ac_file_inputs > conftest.in
8353 # Transform confdefs.h into a sed script conftest.vals that substitutes
8354 # the proper values into config.h.in to produce config.h. And first:
8355 # Protect against being on the right side of a sed subst in config.status.
8356 # Protect against being in an unquoted here document in config.status.
8358 cat > conftest.hdr <<\EOF
8361 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8365 sed -n -f conftest.hdr confdefs.h > conftest.vals
8368 # This sed command replaces #undef with comments. This is necessary, for
8369 # example, in the case of _POSIX_SOURCE, which is predefined and required
8370 # on some systems where configure will not decide to define it.
8371 cat >> conftest.vals <<\EOF
8372 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8375 # Break up conftest.vals because some shells have a limit on
8376 # the size of here documents, and old seds have small limits too.
8381 ac_lines=`grep -c . conftest.vals`
8382 # grep -c gives empty output for an empty file on some AIX systems.
8383 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8384 # Write a limited-size here document to conftest.frag.
8385 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8386 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8388 sed -f conftest.frag conftest.in > conftest.out
8390 mv conftest.out conftest.in
8392 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8394 mv conftest.tail conftest.vals
8398 cat >> $CONFIG_STATUS <<\EOF
8399 rm -f conftest.frag conftest.h
8400 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8401 cat conftest.in >> conftest.h
8403 if cmp -s $ac_file conftest.h 2>/dev/null; then
8404 echo "$ac_file is unchanged"
8407 # Remove last slash and all that follows it. Not all systems have dirname.
8408 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8409 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8410 # The file is in a subdirectory.
8411 test ! -d "$ac_dir" && mkdir "$ac_dir"
8414 mv conftest.h $ac_file
8419 cat >> $CONFIG_STATUS <<EOF
8423 cat >> $CONFIG_STATUS <<\EOF
8424 for ac_file in $CONFIG_FILES; do
8425 # Support "outfile[:infile[:infile...]]"
8427 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8429 # PO directories have a Makefile.in generated from Makefile.in.in.
8430 case "$ac_file" in */Makefile.in)
8431 # Adjust a relative srcdir.
8432 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8433 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8434 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8435 # In autoconf-2.13 it is called $ac_given_srcdir.
8436 # In autoconf-2.50 it is called $srcdir.
8437 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8438 case "$ac_given_srcdir" in
8439 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8440 /*) top_srcdir="$ac_given_srcdir" ;;
8441 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8443 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8444 rm -f "$ac_dir/POTFILES"
8445 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8446 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8447 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8448 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8456 chmod +x $CONFIG_STATUS
8457 rm -fr confdefs* $ac_clean_files
8458 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8462 global configuration
8463 --------------------
8465 architecture : ${ARCH}
8466 optimizations : ${OPTIMS}
8468 release: : ${RELEASE}"
8470 if test x${HAVE_VLC} = x1
8475 vlc version : ${VLC_VERSION}
8476 debug mode : ${DEBUG}
8477 trace mode : ${TRACE}
8478 cprof/gprof support : ${CPROF}/${GPROF}
8479 need builtin getopt : ${NEED_GETOPT}
8480 built-in modules :${BUILTINS}
8481 plug-in modules :${PLUGINS}
8482 vlc aliases :${ALIASES}"
8486 libdvdcss configuration
8487 -----------------------
8488 can be built : ${CAN_BUILD_LIBDVDCSS}
8489 will be built : ${NEED_LIBDVDCSS}"
8490 if test x${NEED_LIBDVDCSS} = x1
8492 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8493 echo "link statically : ${STATIC_LIBDVDCSS}"
8495 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8499 You may now tune Makefile.opts at your convenience, for instance to choose
8500 which modules get compiled as plugins.
8502 if test x${HAVE_VLC} = x1
8504 echo "To build vlc and its plugins, type \`make vlc plugins'."
8506 if test x${HAVE_LIBDVDCSS} = x1
8508 echo "To build libdvdcss only, type \`make libdvdcss'."