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"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
39 'local-shared', or a path to another libdvdcss such
40 as '/usr/local' (default 'local-static')"
42 --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')"
44 --enable-vcd VCD support for Linux (default enabled)"
48 --enable-mad libmad module (default disabled)"
50 --with-mad=PATH path to libmad"
52 --disable-a52 AC3 support with liba52 (default enabled)"
56 --disable-x11 X11 support (default enabled)"
58 --disable-xvideo XVideo support (default enabled)"
60 --disable-sdl SDL support (default enabled)"
62 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
64 --enable-directx Win32 DirectX support (default enabled on Win32)"
66 --with-directx=PATH Win32 DirectX headers and libraries"
68 --enable-fb Linux framebuffer support (default enabled on Linux)"
70 --enable-mga Linux kernel Matrox support (default disabled)"
72 --enable-ggi GGI support (default disabled)"
74 --with-ggi=PATH path to libggi"
76 --enable-glide Glide (3dfx) support (default disabled)"
78 --with-glide=PATH path to libglide"
82 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
84 --enable-esd Esound library support (default disabled)"
86 --enable-arts aRts sound server (default disabled)"
88 --enable-alsa ALSA sound support for Linux (default disabled)"
90 --enable-waveout Win32 waveOut module (default enabled on Win32)"
94 --disable-gtk Gtk+ support (default enabled)"
96 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
98 --enable-gnome Gnome interface support (default disabled)"
100 --enable-qt Qt interface support (default disabled)"
102 --enable-kde KDE interface support (default disabled)"
104 --enable-macosx MacOS X support (default enabled on MacOS X)"
106 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
108 --enable-win32 Win32 interface support (default disabled)"
110 --enable-ncurses ncurses interface support (default disabled)"
112 --enable-lirc lirc support (default disabled)"
116 --with-words=endianness set endianness (big or little)"
118 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
120 --enable-gprof gprof profiling (default disabled)"
122 --enable-cprof cprof profiling (default disabled)"
124 --enable-pth GNU Pth support (default disabled)"
126 --enable-st State Threads (default disabled)"
128 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
130 # Initialize some variables set by options.
131 # The variables have the same names as the options, with
132 # dashes changed to underlines.
134 cache_file=./config.cache
143 program_transform_name=s,x,x,
151 bindir='${exec_prefix}/bin'
152 sbindir='${exec_prefix}/sbin'
153 libexecdir='${exec_prefix}/libexec'
154 datadir='${prefix}/share'
155 sysconfdir='${prefix}/etc'
156 sharedstatedir='${prefix}/com'
157 localstatedir='${prefix}/var'
158 libdir='${exec_prefix}/lib'
159 includedir='${prefix}/include'
160 oldincludedir='/usr/include'
161 infodir='${prefix}/info'
162 mandir='${prefix}/man'
164 # Initialize some other variables.
167 SHELL=${CONFIG_SHELL-/bin/sh}
168 # Maximum number of lines to put in a shell here document.
175 # If the previous option needs an argument, assign it.
176 if test -n "$ac_prev"; then
177 eval "$ac_prev=\$ac_option"
183 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
187 # Accept the important Cygnus configure options, so we can diagnose typos.
191 -bindir | --bindir | --bindi | --bind | --bin | --bi)
193 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
194 bindir="$ac_optarg" ;;
196 -build | --build | --buil | --bui | --bu)
198 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
199 build="$ac_optarg" ;;
201 -cache-file | --cache-file | --cache-fil | --cache-fi \
202 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
203 ac_prev=cache_file ;;
204 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
205 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
206 cache_file="$ac_optarg" ;;
208 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
210 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
212 datadir="$ac_optarg" ;;
214 -disable-* | --disable-*)
215 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
216 # Reject names that are not valid shell variable names.
217 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
218 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
220 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
221 eval "enable_${ac_feature}=no" ;;
223 -enable-* | --enable-*)
224 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
225 # Reject names that are not valid shell variable names.
226 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
227 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}='$ac_optarg'" ;;
236 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
237 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
238 | --exec | --exe | --ex)
239 ac_prev=exec_prefix ;;
240 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
241 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
242 | --exec=* | --exe=* | --ex=*)
243 exec_prefix="$ac_optarg" ;;
245 -gas | --gas | --ga | --g)
246 # Obsolete; use --with-gas.
249 -help | --help | --hel | --he)
250 # Omit some internal or obsolete options to make the list less imposing.
251 # This message is too long to be a string in the A/UX 3.1 sh.
253 Usage: configure [options] [host]
254 Options: [defaults in brackets after descriptions]
256 --cache-file=FILE cache test results in FILE
257 --help print this message
258 --no-create do not create output files
259 --quiet, --silent do not print \`checking...' messages
260 --version print the version of autoconf that created configure
261 Directory and file names:
262 --prefix=PREFIX install architecture-independent files in PREFIX
264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
266 --bindir=DIR user executables in DIR [EPREFIX/bin]
267 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
268 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
269 --datadir=DIR read-only architecture-independent data in DIR
271 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
272 --sharedstatedir=DIR modifiable architecture-independent data in DIR
274 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
275 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
276 --includedir=DIR C header files in DIR [PREFIX/include]
277 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
278 --infodir=DIR info documentation in DIR [PREFIX/info]
279 --mandir=DIR man documentation in DIR [PREFIX/man]
280 --srcdir=DIR find the sources in DIR [configure dir or ..]
281 --program-prefix=PREFIX prepend PREFIX to installed program names
282 --program-suffix=SUFFIX append SUFFIX to installed program names
283 --program-transform-name=PROGRAM
284 run sed PROGRAM on installed program names
288 --build=BUILD configure for building on BUILD [BUILD=HOST]
289 --host=HOST configure for HOST [guessed]
290 --target=TARGET configure for TARGET [TARGET=HOST]
291 Features and packages:
292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
296 --x-includes=DIR X include files are in DIR
297 --x-libraries=DIR X library files are in DIR
299 if test -n "$ac_help"; then
300 echo "--enable and --with options recognized:$ac_help"
304 -host | --host | --hos | --ho)
306 -host=* | --host=* | --hos=* | --ho=*)
309 -includedir | --includedir | --includedi | --included | --include \
310 | --includ | --inclu | --incl | --inc)
311 ac_prev=includedir ;;
312 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
313 | --includ=* | --inclu=* | --incl=* | --inc=*)
314 includedir="$ac_optarg" ;;
316 -infodir | --infodir | --infodi | --infod | --info | --inf)
318 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
319 infodir="$ac_optarg" ;;
321 -libdir | --libdir | --libdi | --libd)
323 -libdir=* | --libdir=* | --libdi=* | --libd=*)
324 libdir="$ac_optarg" ;;
326 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
327 | --libexe | --libex | --libe)
328 ac_prev=libexecdir ;;
329 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
330 | --libexe=* | --libex=* | --libe=*)
331 libexecdir="$ac_optarg" ;;
333 -localstatedir | --localstatedir | --localstatedi | --localstated \
334 | --localstate | --localstat | --localsta | --localst \
335 | --locals | --local | --loca | --loc | --lo)
336 ac_prev=localstatedir ;;
337 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
338 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
339 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
340 localstatedir="$ac_optarg" ;;
342 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
344 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
345 mandir="$ac_optarg" ;;
348 # Obsolete; use --without-fp.
351 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
355 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
356 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
359 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
360 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
361 | --oldin | --oldi | --old | --ol | --o)
362 ac_prev=oldincludedir ;;
363 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
364 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
365 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
366 oldincludedir="$ac_optarg" ;;
368 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
370 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
371 prefix="$ac_optarg" ;;
373 -program-prefix | --program-prefix | --program-prefi | --program-pref \
374 | --program-pre | --program-pr | --program-p)
375 ac_prev=program_prefix ;;
376 -program-prefix=* | --program-prefix=* | --program-prefi=* \
377 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
378 program_prefix="$ac_optarg" ;;
380 -program-suffix | --program-suffix | --program-suffi | --program-suff \
381 | --program-suf | --program-su | --program-s)
382 ac_prev=program_suffix ;;
383 -program-suffix=* | --program-suffix=* | --program-suffi=* \
384 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
385 program_suffix="$ac_optarg" ;;
387 -program-transform-name | --program-transform-name \
388 | --program-transform-nam | --program-transform-na \
389 | --program-transform-n | --program-transform- \
390 | --program-transform | --program-transfor \
391 | --program-transfo | --program-transf \
392 | --program-trans | --program-tran \
393 | --progr-tra | --program-tr | --program-t)
394 ac_prev=program_transform_name ;;
395 -program-transform-name=* | --program-transform-name=* \
396 | --program-transform-nam=* | --program-transform-na=* \
397 | --program-transform-n=* | --program-transform-=* \
398 | --program-transform=* | --program-transfor=* \
399 | --program-transfo=* | --program-transf=* \
400 | --program-trans=* | --program-tran=* \
401 | --progr-tra=* | --program-tr=* | --program-t=*)
402 program_transform_name="$ac_optarg" ;;
404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
405 | -silent | --silent | --silen | --sile | --sil)
408 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
410 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
412 sbindir="$ac_optarg" ;;
414 -sharedstatedir | --sharedstatedir | --sharedstatedi \
415 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
416 | --sharedst | --shareds | --shared | --share | --shar \
418 ac_prev=sharedstatedir ;;
419 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
420 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
421 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
423 sharedstatedir="$ac_optarg" ;;
425 -site | --site | --sit)
427 -site=* | --site=* | --sit=*)
430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
433 srcdir="$ac_optarg" ;;
435 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
436 | --syscon | --sysco | --sysc | --sys | --sy)
437 ac_prev=sysconfdir ;;
438 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
439 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
440 sysconfdir="$ac_optarg" ;;
442 -target | --target | --targe | --targ | --tar | --ta | --t)
444 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
445 target="$ac_optarg" ;;
447 -v | -verbose | --verbose | --verbos | --verbo | --verb)
450 -version | --version | --versio | --versi | --vers)
451 echo "configure generated by autoconf version 2.13"
455 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
460 ac_package=`echo $ac_package| sed 's/-/_/g'`
465 eval "with_${ac_package}='$ac_optarg'" ;;
467 -without-* | --without-*)
468 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
473 ac_package=`echo $ac_package| sed 's/-/_/g'`
474 eval "with_${ac_package}=no" ;;
477 # Obsolete; use --with-x.
480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
481 | --x-incl | --x-inc | --x-in | --x-i)
482 ac_prev=x_includes ;;
483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
485 x_includes="$ac_optarg" ;;
487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
489 ac_prev=x_libraries ;;
490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
492 x_libraries="$ac_optarg" ;;
494 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
498 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
499 echo "configure: warning: $ac_option: invalid host type" 1>&2
501 if test "x$nonopt" != xNONE; then
502 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
510 if test -n "$ac_prev"; then
511 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
514 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
516 # File descriptor usage:
519 # 2 errors and warnings
520 # 3 some systems may open it to /dev/tty
521 # 4 used on the Kubota Titan
522 # 6 checking for... messages and results
523 # 5 compiler messages saved in config.log
524 if test "$silent" = yes; then
532 This file contains any messages produced by compilers while
533 running configure, to aid debugging if configure makes a mistake.
536 # Strip out --no-create and --no-recursion so they do not pile up.
537 # Also quote any args containing shell metacharacters.
542 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 | --no-cr | --no-c) ;;
544 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
545 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
546 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
547 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
548 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
553 # Only set these to C if already set. These must not be set unconditionally
554 # because not all systems understand e.g. LANG=C (notably SCO).
555 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
556 # Non-C LC_CTYPE values break the ctype check.
557 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
558 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
559 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
560 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
562 # confdefs.h avoids OS command line length limits that DEFS can exceed.
563 rm -rf conftest* confdefs.h
564 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
567 # A filename unique to this package, relative to the directory that
568 # configure is in, which we can look for to find out if srcdir is correct.
569 ac_unique_file=include/main.h
571 # Find the source files, if location was not specified.
572 if test -z "$srcdir"; then
573 ac_srcdir_defaulted=yes
574 # Try the directory containing this script, then its parent.
576 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
577 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
579 if test ! -r $srcdir/$ac_unique_file; then
583 ac_srcdir_defaulted=no
585 if test ! -r $srcdir/$ac_unique_file; then
586 if test "$ac_srcdir_defaulted" = yes; then
587 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
589 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
592 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
594 # Prefer explicitly selected file to automatically selected ones.
595 if test -z "$CONFIG_SITE"; then
596 if test "x$prefix" != xNONE; then
597 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
599 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
602 for ac_site_file in $CONFIG_SITE; do
603 if test -r "$ac_site_file"; then
604 echo "loading site script $ac_site_file"
609 if test -r "$cache_file"; then
610 echo "loading cache $cache_file"
613 echo "creating cache $cache_file"
618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
619 ac_cpp='$CPP $CPPFLAGS'
620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
622 cross_compiling=$ac_cv_prog_cc_cross
626 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
627 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
628 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
635 ac_n= ac_c='\c' ac_t=
642 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
653 if test -z "$ac_aux_dir"; then
654 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
656 ac_config_guess=$ac_aux_dir/config.guess
657 ac_config_sub=$ac_aux_dir/config.sub
658 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
661 # Do some error checking and defaulting for the host and target type.
663 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
666 # 1. You are not allowed to specify --host, --target, and nonopt at the
668 # 2. Host defaults to nonopt.
669 # 3. If nonopt is not specified, then host defaults to the current host,
670 # as determined by config.guess.
671 # 4. Target and build default to nonopt.
672 # 5. If nonopt is not specified, then target and build default to host.
674 # The aliases save the names the user supplied, while $host etc.
675 # will get canonicalized.
676 case $host---$target---$nonopt in
677 NONE---*---* | *---NONE---* | *---*---NONE) ;;
678 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 # Make sure we can run config.sub.
683 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
684 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
687 echo $ac_n "checking host system type""... $ac_c" 1>&6
688 echo "configure:689: checking host system type" >&5
691 case "$host_alias" in
695 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
696 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
698 *) host_alias=$nonopt ;;
702 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
703 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$host" 1>&6
708 echo $ac_n "checking target system type""... $ac_c" 1>&6
709 echo "configure:710: checking target system type" >&5
712 case "$target_alias" in
715 NONE) target_alias=$host_alias ;;
716 *) target_alias=$nonopt ;;
720 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
721 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$target" 1>&6
726 echo $ac_n "checking build system type""... $ac_c" 1>&6
727 echo "configure:728: checking build system type" >&5
730 case "$build_alias" in
733 NONE) build_alias=$host_alias ;;
734 *) build_alias=$nonopt ;;
738 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
739 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
740 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
741 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
742 echo "$ac_t""$build" 1>&6
744 test "$host_alias" != "$target_alias" &&
745 test "$program_prefix$program_suffix$program_transform_name" = \
747 program_prefix=${target_alias}-
751 if test -r src/interface/main.c; then
753 VLC_VERSION="0.2.92-dev"
758 if test -r extras/libdvdcss/libdvdcss.c; then
760 LIBDVDCSS_VERSION="1.0.1-dev"
762 if test -r extras/libdvdcss/csskeys.h; then
763 cat >> confdefs.h <<\EOF
764 #define HAVE_CSSKEYS 1
770 save_CFLAGS="${CFLAGS}"
771 save_LDFLAGS="${LDFLAGS}"
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake <<\EOF
781 @echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_${ac_make}_set=yes
788 eval ac_cv_prog_make_${ac_make}_set=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE="MAKE=${MAKE-make}"
800 # Extract the first word of "gcc", so it can be a program name with args.
801 set dummy gcc; ac_word=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$CC"; then
808 ac_cv_prog_CC="$CC" # Let the user override the test.
810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
812 for ac_dir in $ac_dummy; do
813 test -z "$ac_dir" && ac_dir=.
814 if test -f $ac_dir/$ac_word; then
823 if test -n "$CC"; then
824 echo "$ac_t""$CC" 1>&6
826 echo "$ac_t""no" 1>&6
829 if test -z "$CC"; then
830 # Extract the first word of "cc", so it can be a program name with args.
831 set dummy cc; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$CC"; then
838 ac_cv_prog_CC="$CC" # Let the user override the test.
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
855 if test $ac_prog_rejected = yes; then
856 # We found a bogon in the path, so make sure we never use it.
857 set dummy $ac_cv_prog_CC
859 if test $# -gt 0; then
860 # We chose a different compiler from the bogus one.
861 # However, it has the same basename, so the bogon will be chosen
862 # first if we set CC to just the basename; use the full file name.
864 set dummy "$ac_dir/$ac_word" "$@"
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
875 echo "$ac_t""no" 1>&6
878 if test -z "$CC"; then
881 # Extract the first word of "cl", so it can be a program name with args.
882 set dummy cl; ac_word=$2
883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
884 echo "configure:885: checking for $ac_word" >&5
885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 if test -n "$CC"; then
889 ac_cv_prog_CC="$CC" # Let the user override the test.
891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
893 for ac_dir in $ac_dummy; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
912 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
915 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
916 echo "configure:917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp='$CPP $CPPFLAGS'
921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling=$ac_cv_prog_cc_cross
925 cat > conftest.$ac_ext << EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
933 ac_cv_prog_cc_works=yes
934 # If we can't run a trivial program, we are probably using a cross compiler.
935 if (./conftest; exit) 2>/dev/null; then
936 ac_cv_prog_cc_cross=no
938 ac_cv_prog_cc_cross=yes
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 ac_cv_prog_cc_works=no
947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
948 ac_cpp='$CPP $CPPFLAGS'
949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
954 if test $ac_cv_prog_cc_works = no; then
955 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
959 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
960 cross_compiling=$ac_cv_prog_cc_cross
962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.c <<EOF
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1015 if test "$GCC" = yes; then
1022 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1023 echo "configure:1024: checking how to run the C preprocessor" >&5
1024 # On Suns, sometimes $CPP names a directory.
1025 if test -n "$CPP" && test -d "$CPP"; then
1028 if test -z "$CPP"; then
1029 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 # This must be in double quotes, not single quotes, because CPP may get
1033 # substituted into the Makefile and "${CC-cc}" will confuse make.
1035 # On the NeXT, cc -E runs the code through the compiler's parser,
1036 # not just through 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} -E -traditional-cpp"
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
1070 CPP="${CC-cc} -nologo -E"
1071 cat > conftest.$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1078 { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1080 if test -z "$ac_err"; then
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1094 ac_cv_prog_CPP="$CPP"
1096 CPP="$ac_cv_prog_CPP"
1098 ac_cv_prog_CPP="$CPP"
1100 echo "$ac_t""$CPP" 1>&6
1103 if test $host != $build; then
1104 ac_tool_prefix=${host_alias}-
1109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$RANLIB"; then
1117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1131 RANLIB="$ac_cv_prog_RANLIB"
1132 if test -n "$RANLIB"; then
1133 echo "$ac_t""$RANLIB" 1>&6
1135 echo "$ac_t""no" 1>&6
1139 if test -z "$ac_cv_prog_RANLIB"; then
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "ranlib", so it can be a program name with args.
1142 set dummy ranlib; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$RANLIB"; then
1149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_RANLIB="ranlib"
1161 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1164 RANLIB="$ac_cv_prog_RANLIB"
1165 if test -n "$RANLIB"; then
1166 echo "$ac_t""$RANLIB" 1>&6
1168 echo "$ac_t""no" 1>&6
1177 ALL_LINGUAS="de fr no ru"
1179 cat >> confdefs.h <<EOF
1180 #define PACKAGE "vlc"
1183 cat >> confdefs.h <<EOF
1184 #define VERSION "$VLC_VERSION"
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1210 RANLIB="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1218 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1219 echo "configure:1220: checking for strerror in -lcposix" >&5
1220 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 ac_save_LIBS="$LIBS"
1225 LIBS="-lcposix $LIBS"
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 /* Override any gcc2 internal prototype to avoid an error. */
1230 /* We use char because int might match the return type of a gcc2
1231 builtin and then its argument prototype would still apply. */
1238 if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 eval "ac_cv_lib_$ac_lib_var=yes"
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1245 eval "ac_cv_lib_$ac_lib_var=no"
1248 LIBS="$ac_save_LIBS"
1251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1253 LIBS="$LIBS -lcposix"
1255 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1261 echo "configure:1262: checking for ANSI C header files" >&5
1262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1278 ac_cv_header_stdc=yes
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 ac_cv_header_stdc=no
1288 if test $ac_cv_header_stdc = yes; then
1289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1296 egrep "memchr" >/dev/null 2>&1; then
1300 ac_cv_header_stdc=no
1306 if test $ac_cv_header_stdc = yes; then
1307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1314 egrep "free" >/dev/null 2>&1; then
1318 ac_cv_header_stdc=no
1324 if test $ac_cv_header_stdc = yes; then
1325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1326 if test "$cross_compiling" = yes; then
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1336 int main () { int i; for (i = 0; i < 256; i++)
1337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 ac_cv_header_stdc=no
1356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1357 if test $ac_cv_header_stdc = yes; then
1358 cat >> confdefs.h <<\EOF
1359 #define STDC_HEADERS 1
1364 echo $ac_n "checking for working const""... $ac_c" 1>&6
1365 echo "configure:1366: checking for working const" >&5
1366 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 /* Ultrix mips cc rejects this. */
1376 typedef int charset[2]; const charset x;
1377 /* SunOS 4.1.1 cc rejects this. */
1378 char const *const *ccp;
1380 /* NEC SVR4.0.2 mips cc rejects this. */
1381 struct point {int x, y;};
1382 static struct point const zero = {0,0};
1383 /* AIX XL C 1.02.0.0 rejects this.
1384 It does not let you subtract one const X* pointer from another in an arm
1385 of an if-expression whose if-part is not a constant expression */
1386 const char *g = "string";
1387 ccp = &g + (g ? g-g : 0);
1388 /* HPUX 7.0 cc rejects these. */
1391 ccp = (char const *const *) p;
1392 { /* SCO 3.2v4 cc rejects this. */
1394 char const *s = 0 ? (char *) 0 : (char const *) 0;
1398 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1400 const int *foo = &x[0];
1403 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1404 typedef const int *iptr;
1408 { /* AIX XL C 1.02.0.0 rejects this saying
1409 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1410 struct s { int j; const int *ap[3]; };
1411 struct s *b; b->j = 5;
1413 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1431 echo "$ac_t""$ac_cv_c_const" 1>&6
1432 if test $ac_cv_c_const = no; then
1433 cat >> confdefs.h <<\EOF
1439 echo $ac_n "checking for inline""... $ac_c" 1>&6
1440 echo "configure:1441: checking for inline" >&5
1441 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1445 for ac_kw in inline __inline__ __inline; do
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 ac_cv_c_inline=$ac_kw; break
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1466 echo "$ac_t""$ac_cv_c_inline" 1>&6
1467 case "$ac_cv_c_inline" in
1469 no) cat >> confdefs.h <<\EOF
1473 *) cat >> confdefs.h <<EOF
1474 #define inline $ac_cv_c_inline
1479 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1480 echo "configure:1481: checking for off_t" >&5
1481 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <sys/types.h>
1493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1494 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1496 ac_cv_type_off_t=yes
1504 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1505 if test $ac_cv_type_off_t = no; then
1506 cat >> confdefs.h <<\EOF
1512 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1513 echo "configure:1514: checking for size_t" >&5
1514 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <sys/types.h>
1526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1527 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1529 ac_cv_type_size_t=yes
1532 ac_cv_type_size_t=no
1537 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1538 if test $ac_cv_type_size_t = no; then
1539 cat >> confdefs.h <<\EOF
1540 #define size_t unsigned
1545 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1546 # for constant arguments. Useless!
1547 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1548 echo "configure:1549: checking for working alloca.h" >&5
1549 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1557 char *p = alloca(2 * sizeof(int));
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562 ac_cv_header_alloca_h=yes
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 ac_cv_header_alloca_h=no
1572 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1573 if test $ac_cv_header_alloca_h = yes; then
1574 cat >> confdefs.h <<\EOF
1575 #define HAVE_ALLOCA_H 1
1580 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1581 echo "configure:1582: checking for alloca" >&5
1582 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1590 # define alloca __builtin_alloca
1593 # include <malloc.h>
1594 # define alloca _alloca
1597 # include <alloca.h>
1602 # ifndef alloca /* predefined by HP cc +Olibcalls */
1611 char *p = (char *) alloca(1);
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616 ac_cv_func_alloca_works=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_func_alloca_works=no
1626 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1627 if test $ac_cv_func_alloca_works = yes; then
1628 cat >> confdefs.h <<\EOF
1629 #define HAVE_ALLOCA 1
1634 if test $ac_cv_func_alloca_works = no; then
1635 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1636 # that cause trouble. Some versions do not even contain alloca or
1637 # contain a buggy version. If you still want to use their alloca,
1638 # use ar to extract alloca.o from them instead of compiling alloca.c.
1639 ALLOCA=alloca.${ac_objext}
1640 cat >> confdefs.h <<\EOF
1645 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether alloca needs Cray hooks" >&5
1647 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 #if defined(CRAY) && ! defined(CRAY2)
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "webecray" >/dev/null 2>&1; then
1672 echo "$ac_t""$ac_cv_os_cray" 1>&6
1673 if test $ac_cv_os_cray = yes; then
1674 for ac_func in _getb67 GETB67 getb67; do
1675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_func" >&5
1677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 /* System header to define __stub macros and hopefully few prototypes,
1684 which can conflict with char $ac_func(); below. */
1686 /* Override any gcc2 internal prototype to avoid an error. */
1687 /* We use char because int might match the return type of a gcc2
1688 builtin and then its argument prototype would still apply. */
1693 /* The GNU C library defines this for functions which it implements
1694 to always fail with ENOSYS. Some functions are actually named
1695 something starting with __ and the normal name is an alias. */
1696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1706 eval "ac_cv_func_$ac_func=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 eval "ac_cv_func_$ac_func=no"
1716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 cat >> confdefs.h <<EOF
1719 #define CRAY_STACKSEG_END $ac_func
1724 echo "$ac_t""no" 1>&6
1730 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1731 echo "configure:1732: checking stack direction for C alloca" >&5
1732 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 if test "$cross_compiling" = yes; then
1736 ac_cv_c_stack_direction=0
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 find_stack_direction ()
1743 static char *addr = 0;
1748 return find_stack_direction ();
1751 return (&dummy > addr) ? 1 : -1;
1755 exit (find_stack_direction() < 0);
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1760 ac_cv_c_stack_direction=1
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 ac_cv_c_stack_direction=-1
1772 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1773 cat >> confdefs.h <<EOF
1774 #define STACK_DIRECTION $ac_cv_c_stack_direction
1779 for ac_hdr in unistd.h
1781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_hdr" >&5
1784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1793 { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1795 if test -z "$ac_err"; then
1797 eval "ac_cv_header_$ac_safe=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_header_$ac_safe=no"
1807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1808 echo "$ac_t""yes" 1>&6
1809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1810 cat >> confdefs.h <<EOF
1811 #define $ac_tr_hdr 1
1815 echo "$ac_t""no" 1>&6
1819 for ac_func in getpagesize
1821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_func" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $ac_func(); below. */
1832 /* Override any gcc2 internal prototype to avoid an error. */
1833 /* We use char because int might match the return type of a gcc2
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1852 eval "ac_cv_func_$ac_func=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1857 eval "ac_cv_func_$ac_func=no"
1862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1865 cat >> confdefs.h <<EOF
1866 #define $ac_tr_func 1
1870 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1875 echo "configure:1876: checking for working mmap" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test "$cross_compiling" = yes; then
1880 ac_cv_func_mmap_fixed_mapped=no
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1886 /* Thanks to Mike Haertel and Jim Avera for this test.
1887 Here is a matrix of mmap possibilities:
1888 mmap private not fixed
1889 mmap private fixed at somewhere currently unmapped
1890 mmap private fixed at somewhere already mapped
1891 mmap shared not fixed
1892 mmap shared fixed at somewhere currently unmapped
1893 mmap shared fixed at somewhere already mapped
1894 For private mappings, we should verify that changes cannot be read()
1895 back from the file, nor mmap's back from the file at a different
1896 address. (There have been systems where private was not correctly
1897 implemented like the infamous i386 svr4.0, and systems where the
1898 VM page cache was not coherent with the filesystem buffer cache
1899 like early versions of FreeBSD and possibly contemporary NetBSD.)
1900 For shared mappings, we should conversely verify that changes get
1901 propogated back to all the places they're supposed to be.
1903 Grep wants private fixed already mapped.
1904 The main things grep needs to know about mmap are:
1905 * does it exist and is it safe to write into the mmap'd area
1906 * how to use it (BSD variants) */
1907 #include <sys/types.h>
1909 #include <sys/mman.h>
1911 /* This mess was copied from the GNU getpagesize.h. */
1912 #ifndef HAVE_GETPAGESIZE
1913 # ifdef HAVE_UNISTD_H
1914 # include <unistd.h>
1917 /* Assume that all systems that can run configure have sys/param.h. */
1918 # ifndef HAVE_SYS_PARAM_H
1919 # define HAVE_SYS_PARAM_H 1
1922 # ifdef _SC_PAGESIZE
1923 # define getpagesize() sysconf(_SC_PAGESIZE)
1924 # else /* no _SC_PAGESIZE */
1925 # ifdef HAVE_SYS_PARAM_H
1926 # include <sys/param.h>
1927 # ifdef EXEC_PAGESIZE
1928 # define getpagesize() EXEC_PAGESIZE
1929 # else /* no EXEC_PAGESIZE */
1931 # define getpagesize() NBPG * CLSIZE
1934 # endif /* no CLSIZE */
1935 # else /* no NBPG */
1937 # define getpagesize() NBPC
1938 # else /* no NBPC */
1940 # define getpagesize() PAGESIZE
1941 # endif /* PAGESIZE */
1942 # endif /* no NBPC */
1943 # endif /* no NBPG */
1944 # endif /* no EXEC_PAGESIZE */
1945 # else /* no HAVE_SYS_PARAM_H */
1946 # define getpagesize() 8192 /* punt totally */
1947 # endif /* no HAVE_SYS_PARAM_H */
1948 # endif /* no _SC_PAGESIZE */
1950 #endif /* no HAVE_GETPAGESIZE */
1953 extern "C" { void *malloc(unsigned); }
1961 char *data, *data2, *data3;
1965 pagesize = getpagesize();
1968 * First, make a file with some known garbage in it.
1970 data = malloc(pagesize);
1973 for (i = 0; i < pagesize; ++i)
1974 *(data + i) = rand();
1976 fd = creat("conftestmmap", 0600);
1979 if (write(fd, data, pagesize) != pagesize)
1984 * Next, try to mmap the file at a fixed address which
1985 * already has something else allocated at it. If we can,
1986 * also make sure that we see the same garbage.
1988 fd = open("conftestmmap", O_RDWR);
1991 data2 = malloc(2 * pagesize);
1994 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1995 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1998 for (i = 0; i < pagesize; ++i)
1999 if (*(data + i) != *(data2 + i))
2003 * Finally, make sure that changes to the mapped area
2004 * do not percolate back to the file as seen by read().
2005 * (This is a bug on some variants of i386 svr4.0.)
2007 for (i = 0; i < pagesize; ++i)
2008 *(data2 + i) = *(data2 + i) + 1;
2009 data3 = malloc(pagesize);
2012 if (read(fd, data3, pagesize) != pagesize)
2014 for (i = 0; i < pagesize; ++i)
2015 if (*(data + i) != *(data3 + i))
2018 unlink("conftestmmap");
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2025 ac_cv_func_mmap_fixed_mapped=yes
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 ac_cv_func_mmap_fixed_mapped=no
2037 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2038 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2039 cat >> confdefs.h <<\EOF
2046 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2047 echo "configure:2048: checking whether we are using the GNU C Library 2.1 or newer" >&5
2048 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2055 #include <features.h>
2056 #ifdef __GNU_LIBRARY__
2057 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2064 egrep "Lucky GNU user" >/dev/null 2>&1; then
2066 ac_cv_gnu_library_2_1=yes
2069 ac_cv_gnu_library_2_1=no
2077 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2079 GLIBC21="$ac_cv_gnu_library_2_1"
2083 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2084 stdlib.h string.h unistd.h sys/param.h
2086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_hdr" >&5
2089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2100 if test -z "$ac_err"; then
2102 eval "ac_cv_header_$ac_safe=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 eval "ac_cv_header_$ac_safe=no"
2112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_hdr 1
2120 echo "$ac_t""no" 1>&6
2124 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2125 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2126 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_func" >&5
2130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2139 /* Override any gcc2 internal prototype to avoid an error. */
2140 /* We use char because int might match the return type of a gcc2
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 eval "ac_cv_func_$ac_func=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_func_$ac_func=no"
2169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_func 1
2177 echo "$ac_t""no" 1>&6
2184 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2185 if test "${with_libiconv_prefix+set}" = set; then
2186 withval="$with_libiconv_prefix"
2188 for dir in `echo "$withval" | tr : ' '`; do
2189 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2190 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2196 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2197 echo "configure:2198: checking for iconv" >&5
2198 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2202 am_cv_func_iconv="no, consider installing GNU libiconv"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2210 iconv_t cd = iconv_open("","");
2211 iconv(cd,NULL,NULL,NULL,NULL);
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 am_cv_func_iconv=yes
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2223 if test "$am_cv_func_iconv" != yes; then
2224 am_save_LIBS="$LIBS"
2225 LIBS="$LIBS -liconv"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2232 iconv_t cd = iconv_open("","");
2233 iconv(cd,NULL,NULL,NULL,NULL);
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240 am_cv_func_iconv=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2246 LIBS="$am_save_LIBS"
2251 echo "$ac_t""$am_cv_func_iconv" 1>&6
2252 if test "$am_cv_func_iconv" = yes; then
2253 cat >> confdefs.h <<\EOF
2254 #define HAVE_ICONV 1
2257 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2258 echo "configure:2259: checking for iconv declaration" >&5
2259 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2273 #if defined(__STDC__) || defined(__cplusplus)
2274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2283 if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 am_cv_proto_iconv_arg1=""
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 am_cv_proto_iconv_arg1="const"
2293 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);"
2296 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2297 echo "$ac_t""${ac_t:-
2298 }$am_cv_proto_iconv" 1>&6
2299 cat >> confdefs.h <<EOF
2300 #define ICONV_CONST $am_cv_proto_iconv_arg1
2305 if test "$am_cv_lib_iconv" = yes; then
2311 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2312 echo "configure:2313: checking for nl_langinfo and CODESET" >&5
2313 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <langinfo.h>
2321 char* cs = nl_langinfo(CODESET);
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 am_cv_langinfo_codeset=yes
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 am_cv_langinfo_codeset=no
2337 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2338 if test $am_cv_langinfo_codeset = yes; then
2339 cat >> confdefs.h <<\EOF
2340 #define HAVE_LANGINFO_CODESET 1
2345 if test $ac_cv_header_locale_h = yes; then
2346 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2347 echo "configure:2348: checking for LC_MESSAGES" >&5
2348 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361 am_cv_val_LC_MESSAGES=yes
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 am_cv_val_LC_MESSAGES=no
2371 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2372 if test $am_cv_val_LC_MESSAGES = yes; then
2373 cat >> confdefs.h <<\EOF
2374 #define HAVE_LC_MESSAGES 1
2379 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2380 echo "configure:2381: checking whether NLS is requested" >&5
2381 # Check whether --enable-nls or --disable-nls was given.
2382 if test "${enable_nls+set}" = set; then
2383 enableval="$enable_nls"
2389 echo "$ac_t""$USE_NLS" 1>&6
2392 BUILD_INCLUDED_LIBINTL=no
2393 USE_INCLUDED_LIBINTL=no
2396 if test "$USE_NLS" = "yes"; then
2397 cat >> confdefs.h <<\EOF
2398 #define ENABLE_NLS 1
2401 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2402 echo "configure:2403: checking whether included gettext is requested" >&5
2403 # Check whether --with-included-gettext or --without-included-gettext was given.
2404 if test "${with_included_gettext+set}" = set; then
2405 withval="$with_included_gettext"
2406 nls_cv_force_use_gnu_gettext=$withval
2408 nls_cv_force_use_gnu_gettext=no
2411 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2413 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2420 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2422 echo "configure:2423: checking for libintl.h" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <libintl.h>
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2449 echo "configure:2450: checking for GNU gettext in libc" >&5
2450 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 #include <libintl.h>
2457 extern int _nl_msg_cat_cntr;
2459 bindtextdomain ("", "");
2460 return (int) gettext ("") + _nl_msg_cat_cntr
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 gt_cv_func_gnugettext1_libc=yes
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 gt_cv_func_gnugettext1_libc=no
2475 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2477 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2478 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2479 echo "configure:2480: checking for GNU gettext in libintl" >&5
2480 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 gt_save_LIBS="$LIBS"
2484 LIBS="$LIBS -lintl $LIBICONV"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <libintl.h>
2489 extern int _nl_msg_cat_cntr;
2491 bindtextdomain ("", "");
2492 return (int) gettext ("") + _nl_msg_cat_cntr
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 gt_cv_func_gnugettext1_libintl=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 gt_cv_func_gnugettext1_libintl=no
2505 LIBS="$gt_save_LIBS"
2508 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2511 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2512 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2513 && test "$PACKAGE" != gettext; }; then
2514 cat >> confdefs.h <<\EOF
2515 #define HAVE_GETTEXT 1
2519 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2520 INTLLIBS="-lintl $LIBICONV"
2523 gt_save_LIBS="$LIBS"
2524 LIBS="$LIBS $INTLLIBS"
2525 for ac_func in dcgettext
2527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_func" >&5
2529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* System header to define __stub macros and hopefully few prototypes,
2536 which can conflict with char $ac_func(); below. */
2538 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2545 /* The GNU C library defines this for functions which it implements
2546 to always fail with ENOSYS. Some functions are actually named
2547 something starting with __ and the normal name is an alias. */
2548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2558 eval "ac_cv_func_$ac_func=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 eval "ac_cv_func_$ac_func=no"
2568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_func 1
2576 echo "$ac_t""no" 1>&6
2580 LIBS="$gt_save_LIBS"
2582 # Extract the first word of "msgfmt", so it can be a program name with args.
2583 set dummy msgfmt; ac_word=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2595 for ac_dir in $PATH; do
2596 test -z "$ac_dir" && ac_dir=.
2597 if test -f $ac_dir/$ac_word; then
2598 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2609 MSGFMT="$ac_cv_path_MSGFMT"
2610 if test "$MSGFMT" != ":"; then
2611 echo "$ac_t""$MSGFMT" 1>&6
2613 echo "$ac_t""no" 1>&6
2616 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2617 set dummy gmsgfmt; ac_word=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2625 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2628 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2633 for ac_dir in $ac_dummy; do
2634 test -z "$ac_dir" && ac_dir=.
2635 if test -f $ac_dir/$ac_word; then
2636 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2641 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2645 GMSGFMT="$ac_cv_path_GMSGFMT"
2646 if test -n "$GMSGFMT"; then
2647 echo "$ac_t""$GMSGFMT" 1>&6
2649 echo "$ac_t""no" 1>&6
2653 # Extract the first word of "xgettext", so it can be a program name with args.
2654 set dummy xgettext; ac_word=$2
2655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_word" >&5
2657 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2662 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2666 for ac_dir in $PATH; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2670 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2676 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2680 XGETTEXT="$ac_cv_path_XGETTEXT"
2681 if test "$XGETTEXT" != ":"; then
2682 echo "$ac_t""$XGETTEXT" 1>&6
2684 echo "$ac_t""no" 1>&6
2692 echo "$ac_t""no" 1>&6
2696 if test "$CATOBJEXT" = "NONE"; then
2697 nls_cv_use_gnu_gettext=yes
2701 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2702 INTLOBJS="\$(GETTOBJS)"
2703 # Extract the first word of "msgfmt", so it can be a program name with args.
2704 set dummy msgfmt; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2716 for ac_dir in $PATH; do
2717 test -z "$ac_dir" && ac_dir=.
2718 if test -f $ac_dir/$ac_word; then
2719 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2720 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2730 MSGFMT="$ac_cv_path_MSGFMT"
2731 if test "$MSGFMT" != ":"; then
2732 echo "$ac_t""$MSGFMT" 1>&6
2734 echo "$ac_t""no" 1>&6
2737 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2738 set dummy gmsgfmt; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2746 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2749 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2754 for ac_dir in $ac_dummy; do
2755 test -z "$ac_dir" && ac_dir=.
2756 if test -f $ac_dir/$ac_word; then
2757 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2762 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2766 GMSGFMT="$ac_cv_path_GMSGFMT"
2767 if test -n "$GMSGFMT"; then
2768 echo "$ac_t""$GMSGFMT" 1>&6
2770 echo "$ac_t""no" 1>&6
2773 # Extract the first word of "xgettext", so it can be a program name with args.
2774 set dummy xgettext; ac_word=$2
2775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_word" >&5
2777 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2782 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2786 for ac_dir in $PATH; do
2787 test -z "$ac_dir" && ac_dir=.
2788 if test -f $ac_dir/$ac_word; then
2789 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2790 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2796 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2800 XGETTEXT="$ac_cv_path_XGETTEXT"
2801 if test "$XGETTEXT" != ":"; then
2802 echo "$ac_t""$XGETTEXT" 1>&6
2804 echo "$ac_t""no" 1>&6
2808 BUILD_INCLUDED_LIBINTL=yes
2809 USE_INCLUDED_LIBINTL=yes
2811 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2815 if test "$GMSGFMT" != ":"; then
2816 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2819 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2824 if test "$XGETTEXT" != ":"; then
2825 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2828 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2838 if test "$PACKAGE" = gettext; then
2839 BUILD_INCLUDED_LIBINTL=yes
2842 for ac_prog in bison
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2847 echo "configure:2848: checking for $ac_word" >&5
2848 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 if test -n "$INTLBISON"; then
2852 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2856 for ac_dir in $ac_dummy; do
2857 test -z "$ac_dir" && ac_dir=.
2858 if test -f $ac_dir/$ac_word; then
2859 ac_cv_prog_INTLBISON="$ac_prog"
2866 INTLBISON="$ac_cv_prog_INTLBISON"
2867 if test -n "$INTLBISON"; then
2868 echo "$ac_t""$INTLBISON" 1>&6
2870 echo "$ac_t""no" 1>&6
2873 test -n "$INTLBISON" && break
2876 if test -z "$INTLBISON"; then
2879 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2880 echo "configure:2881: checking version of bison" >&5
2881 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2882 case $ac_prog_version in
2883 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2884 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2885 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2886 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2888 echo "$ac_t""$ac_prog_version" 1>&6
2890 if test $ac_verc_fail = yes; then
2894 for lang in $ALL_LINGUAS; do
2895 GMOFILES="$GMOFILES $lang.gmo"
2896 POFILES="$POFILES $lang.po"
2910 nls_cv_header_libgt=
2922 if test "x$CATOBJEXT" != "x"; then
2923 if test "x$ALL_LINGUAS" = "x"; then
2926 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2927 echo "configure:2928: checking for catalogs to be installed" >&5
2929 for presentlang in $ALL_LINGUAS; do
2931 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2932 # Use the presentlang catalog if desiredlang is
2933 # a. equal to presentlang, or
2934 # b. a variant of presentlang (because in this case,
2935 # presentlang can be used as a fallback for messages
2936 # which are not translated in the desiredlang catalog).
2937 case "$desiredlang" in
2938 "$presentlang"*) useit=yes;;
2941 if test $useit = yes; then
2942 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2945 LINGUAS=$NEW_LINGUAS
2946 echo "$ac_t""$LINGUAS" 1>&6
2949 if test -n "$LINGUAS"; then
2950 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2955 if test -n "$ac_aux_dir"; then
2956 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2958 if test -z "$MKINSTALLDIRS"; then
2959 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2963 INTL_LIBTOOL_SUFFIX_PREFIX=
2967 # Find a good install program. We prefer a C program (faster),
2968 # so one script is as good as another. But avoid the broken or
2969 # incompatible versions:
2970 # SysV /etc/install, /usr/sbin/install
2971 # SunOS /usr/etc/install
2972 # IRIX /sbin/install
2974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2977 # ./install, which can be erroneously created by make from ./install.sh.
2978 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2979 echo "configure:2980: checking for a BSD compatible install" >&5
2980 if test -z "$INSTALL"; then
2981 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2985 for ac_dir in $PATH; do
2986 # Account for people who put trailing slashes in PATH elements.
2988 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2990 # OSF1 and SCO ODT 3.0 have their own names for install.
2991 # Don't use installbsd from OSF since it installs stuff as root
2993 for ac_prog in ginstall scoinst install; do
2994 if test -f $ac_dir/$ac_prog; then
2995 if test $ac_prog = install &&
2996 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2997 # AIX install. It has an incompatible calling convention.
3000 ac_cv_path_install="$ac_dir/$ac_prog -c"
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL="$ac_cv_path_install"
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL="$ac_install_sh"
3021 echo "$ac_t""$INSTALL" 1>&6
3023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3024 # It thinks the first close brace ends the variable substitution.
3025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 case x"${target_os}" in
3047 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}windres; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$WINDRES"; then
3055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3069 WINDRES="$ac_cv_prog_WINDRES"
3070 if test -n "$WINDRES"; then
3071 echo "$ac_t""$WINDRES" 1>&6
3073 echo "$ac_t""no" 1>&6
3077 if test -z "$ac_cv_prog_WINDRES"; then
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "windres", so it can be a program name with args.
3080 set dummy windres; ac_word=$2
3081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_word" >&5
3083 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 if test -n "$WINDRES"; then
3087 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f $ac_dir/$ac_word; then
3094 ac_cv_prog_WINDRES="windres"
3099 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3102 WINDRES="$ac_cv_prog_WINDRES"
3103 if test -n "$WINDRES"; then
3104 echo "$ac_t""$WINDRES" 1>&6
3106 echo "$ac_t""no" 1>&6
3114 LIB_IPV4="${LIB_IPV4} -lws2_32"
3115 LIB_RC="${LIB_RC} -lws2_32"
3119 LIB_X11="${LIB_X11} -lsocket"
3120 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3124 LIB_IPV4="${LIB_IPV4} -lbind"
3125 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3126 PLDFLAGS="${PLDFLAGS} -nostart"
3133 for ac_func in gettimeofday select strerror strtod strtol isatty
3135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_func" >&5
3137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 /* System header to define __stub macros and hopefully few prototypes,
3144 which can conflict with char $ac_func(); below. */
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3153 /* The GNU C library defines this for functions which it implements
3154 to always fail with ENOSYS. Some functions are actually named
3155 something starting with __ and the normal name is an alias. */
3156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_func_$ac_func=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_func_$ac_func=no"
3176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3179 cat >> confdefs.h <<EOF
3180 #define $ac_tr_func 1
3184 echo "$ac_t""no" 1>&6
3188 echo $ac_n "checking for connect""... $ac_c" 1>&6
3189 echo "configure:3190: checking for connect" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char connect(); below. */
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3206 /* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209 #if defined (__stub_connect) || defined (__stub___connect)
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 eval "ac_cv_func_connect=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_func_connect=no"
3229 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3233 echo "$ac_t""no" 1>&6
3235 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3236 echo "configure:3237: checking for connect in -lsocket" >&5
3237 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 ac_save_LIBS="$LIBS"
3242 LIBS="-lsocket $LIBS"
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_lib_$ac_lib_var=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_lib_$ac_lib_var=no"
3265 LIBS="$ac_save_LIBS"
3268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 LIB_IPV4="${LIB_IPV4} -lsocket"
3272 echo "$ac_t""no" 1>&6
3278 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3279 echo "configure:3280: checking for gethostbyname" >&5
3280 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* System header to define __stub macros and hopefully few prototypes,
3287 which can conflict with char gethostbyname(); below. */
3289 /* Override any gcc2 internal prototype to avoid an error. */
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3292 char gethostbyname();
3296 /* The GNU C library defines this for functions which it implements
3297 to always fail with ENOSYS. Some functions are actually named
3298 something starting with __ and the normal name is an alias. */
3299 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3309 eval "ac_cv_func_gethostbyname=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_func_gethostbyname=no"
3319 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3323 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3326 echo "configure:3327: checking for gethostbyname in -lnsl" >&5
3327 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 ac_save_LIBS="$LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char gethostbyname();
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347 eval "ac_cv_lib_$ac_lib_var=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_lib_$ac_lib_var=no"
3355 LIBS="$ac_save_LIBS"
3358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 LIB_IPV4="${LIB_IPV4} -lnsl"
3362 echo "$ac_t""no" 1>&6
3368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3369 echo "configure:3370: checking for gethostbyname" >&5
3370 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 /* System header to define __stub macros and hopefully few prototypes,
3377 which can conflict with char gethostbyname(); below. */
3379 /* Override any gcc2 internal prototype to avoid an error. */
3380 /* We use char because int might match the return type of a gcc2
3381 builtin and then its argument prototype would still apply. */
3382 char gethostbyname();
3386 /* The GNU C library defines this for functions which it implements
3387 to always fail with ENOSYS. Some functions are actually named
3388 something starting with __ and the normal name is an alias. */
3389 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_func_gethostbyname=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_func_gethostbyname=no"
3409 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3413 echo "$ac_t""no" 1>&6
3415 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3416 echo "configure:3417: checking for gethostbyname in -lbind" >&5
3417 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_save_LIBS="$LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3429 char gethostbyname();
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_lib_$ac_lib_var=no"
3445 LIBS="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 LIB_IPV4="${LIB_IPV4} -lbind"
3452 echo "$ac_t""no" 1>&6
3458 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3459 echo "configure:3460: checking for nanosleep" >&5
3460 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 /* System header to define __stub macros and hopefully few prototypes,
3467 which can conflict with char nanosleep(); below. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3470 /* We use char because int might match the return type of a gcc2
3471 builtin and then its argument prototype would still apply. */
3476 /* The GNU C library defines this for functions which it implements
3477 to always fail with ENOSYS. Some functions are actually named
3478 something starting with __ and the normal name is an alias. */
3479 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 eval "ac_cv_func_nanosleep=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_func_nanosleep=no"
3499 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3503 echo "$ac_t""no" 1>&6
3505 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3506 echo "configure:3507: checking for nanosleep in -lrt" >&5
3507 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 ac_save_LIBS="$LIBS"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* Override any gcc2 internal prototype to avoid an error. */
3517 /* We use char because int might match the return type of a gcc2
3518 builtin and then its argument prototype would still apply. */
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 eval "ac_cv_lib_$ac_lib_var=no"
3535 LIBS="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3542 echo "$ac_t""no" 1>&6
3544 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3545 echo "configure:3546: checking for nanosleep in -lposix4" >&5
3546 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 ac_save_LIBS="$LIBS"
3551 LIBS="-lposix4 $LIBS"
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_lib_$ac_lib_var=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_lib_$ac_lib_var=no"
3574 LIBS="$ac_save_LIBS"
3577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 LIB="${LIB} -lposix4"
3581 echo "$ac_t""no" 1>&6
3590 for ac_func in usleep
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
3645 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3646 echo "configure:3647: checking for inet_aton" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654 which can conflict with char inet_aton(); below. */
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676 eval "ac_cv_func_inet_aton=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_func_inet_aton=no"
3686 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3693 echo "configure:3694: checking for inet_aton in -lresolv" >&5
3694 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3699 LIBS="-lresolv $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 LIB="${LIB} -lresolv"
3729 echo "$ac_t""no" 1>&6
3735 for ac_func in vasprintf
3737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_func" >&5
3739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* System header to define __stub macros and hopefully few prototypes,
3746 which can conflict with char $ac_func(); below. */
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3755 /* The GNU C library defines this for functions which it implements
3756 to always fail with ENOSYS. Some functions are actually named
3757 something starting with __ and the normal name is an alias. */
3758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3768 eval "ac_cv_func_$ac_func=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_func_$ac_func=no"
3778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_func 1
3786 echo "$ac_t""no" 1>&6
3792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_func" >&5
3794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* System header to define __stub macros and hopefully few prototypes,
3801 which can conflict with char $ac_func(); below. */
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3810 /* The GNU C library defines this for functions which it implements
3811 to always fail with ENOSYS. Some functions are actually named
3812 something starting with __ and the normal name is an alias. */
3813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 eval "ac_cv_func_$ac_func=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 eval "ac_cv_func_$ac_func=no"
3833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3836 cat >> confdefs.h <<EOF
3837 #define $ac_tr_func 1
3841 echo "$ac_t""no" 1>&6
3845 for ac_func in memalign valloc
3847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_func" >&5
3849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 /* System header to define __stub macros and hopefully few prototypes,
3856 which can conflict with char $ac_func(); below. */
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3865 /* The GNU C library defines this for functions which it implements
3866 to always fail with ENOSYS. Some functions are actually named
3867 something starting with __ and the normal name is an alias. */
3868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_func_$ac_func=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_func_$ac_func=no"
3888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3891 cat >> confdefs.h <<EOF
3892 #define $ac_tr_func 1
3896 echo "$ac_t""no" 1>&6
3901 for ac_func in sigrelse
3903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_func" >&5
3905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* System header to define __stub macros and hopefully few prototypes,
3912 which can conflict with char $ac_func(); below. */
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3921 /* The GNU C library defines this for functions which it implements
3922 to always fail with ENOSYS. Some functions are actually named
3923 something starting with __ and the normal name is an alias. */
3924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 eval "ac_cv_func_$ac_func=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_func_$ac_func=no"
3944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3947 cat >> confdefs.h <<EOF
3948 #define $ac_tr_func 1
3952 echo "$ac_t""no" 1>&6
3956 for ac_func in getpwuid_r getpwuid
3958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3959 echo "configure:3960: checking for $ac_func" >&5
3960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* System header to define __stub macros and hopefully few prototypes,
3967 which can conflict with char $ac_func(); below. */
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_func_$ac_func=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_func_$ac_func=no"
3999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4002 cat >> confdefs.h <<EOF
4003 #define $ac_tr_func 1
4007 echo "$ac_t""no" 1>&6
4013 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4014 echo "configure:4015: checking for getopt_long" >&5
4015 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 /* System header to define __stub macros and hopefully few prototypes,
4022 which can conflict with char getopt_long(); below. */
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4031 /* The GNU C library defines this for functions which it implements
4032 to always fail with ENOSYS. Some functions are actually named
4033 something starting with __ and the normal name is an alias. */
4034 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4042 if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4044 eval "ac_cv_func_getopt_long=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_func_getopt_long=no"
4054 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_GETOPT_LONG 1
4061 echo "$ac_t""no" 1>&6
4062 # FreeBSD has a gnugetopt library for this:
4063 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4064 echo "configure:4065: checking for getopt_long in -lgnugetopt" >&5
4065 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 ac_save_LIBS="$LIBS"
4070 LIBS="-lgnugetopt $LIBS"
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4085 eval "ac_cv_lib_$ac_lib_var=yes"
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 eval "ac_cv_lib_$ac_lib_var=no"
4093 LIBS="$ac_save_LIBS"
4096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_GETOPT_LONG 1
4101 LIB="${LIB} -lgnugetopt"
4103 echo "$ac_t""no" 1>&6
4110 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4111 echo "configure:4112: checking return type of signal handlers" >&5
4112 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 #include <sys/types.h>
4124 extern "C" void (*signal (int, void (*)(int)))(int);
4126 void (*signal ()) ();
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4135 ac_cv_type_signal=void
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 ac_cv_type_signal=int
4145 echo "$ac_t""$ac_cv_type_signal" 1>&6
4146 cat >> confdefs.h <<EOF
4147 #define RETSIGTYPE $ac_cv_type_signal
4151 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4152 echo "configure:4153: checking for dlopen in -ldl" >&5
4153 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_save_LIBS="$LIBS"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 eval "ac_cv_lib_$ac_lib_var=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_lib_$ac_lib_var=no"
4181 LIBS="$ac_save_LIBS"
4184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4185 echo "$ac_t""yes" 1>&6
4188 echo "$ac_t""no" 1>&6
4191 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4192 echo "configure:4193: checking for cos in -lm" >&5
4193 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 ac_save_LIBS="$LIBS"
4199 cat > conftest.$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4213 eval "ac_cv_lib_$ac_lib_var=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_lib_$ac_lib_var=no"
4221 LIBS="$ac_save_LIBS"
4224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 LIB_IMDCT="${LIB_IMDCT} -lm"
4227 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4229 echo "$ac_t""no" 1>&6
4232 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4233 echo "configure:4234: checking for pow in -lm" >&5
4234 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS="$LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4259 eval "ac_cv_lib_$ac_lib_var=no"
4262 LIBS="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 LIB_IMDCT="${LIB_IMDCT} -lm"
4268 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4269 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4272 echo "$ac_t""no" 1>&6
4277 if test "x${THREAD_LIB}" = xerror; then
4278 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4279 echo "configure:4280: checking for pthread_attr_init in -lpthread" >&5
4280 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 ac_save_LIBS="$LIBS"
4285 LIBS="-lpthread $LIBS"
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4292 char pthread_attr_init();
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 eval "ac_cv_lib_$ac_lib_var=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4305 eval "ac_cv_lib_$ac_lib_var=no"
4308 LIBS="$ac_save_LIBS"
4311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4312 echo "$ac_t""yes" 1>&6
4313 THREAD_LIB="-lpthread"
4315 echo "$ac_t""no" 1>&6
4319 if test "x${THREAD_LIB}" = xerror; then
4320 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4321 echo "configure:4322: checking for pthread_attr_init in -lpthreads" >&5
4322 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 ac_save_LIBS="$LIBS"
4327 LIBS="-lpthreads $LIBS"
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4334 char pthread_attr_init();
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 THREAD_LIB="-lpthreads"
4357 echo "$ac_t""no" 1>&6
4361 if test "x${THREAD_LIB}" = xerror; then
4362 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4363 echo "configure:4364: checking for pthread_attr_init in -lc_r" >&5
4364 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_save_LIBS="$LIBS"
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char pthread_attr_init();
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4399 echo "$ac_t""no" 1>&6
4403 if test "x${THREAD_LIB}" = xerror; then
4404 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4405 echo "configure:4406: checking for pthread_attr_init" >&5
4406 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* System header to define __stub macros and hopefully few prototypes,
4413 which can conflict with char pthread_attr_init(); below. */
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418 char pthread_attr_init();
4422 /* The GNU C library defines this for functions which it implements
4423 to always fail with ENOSYS. Some functions are actually named
4424 something starting with __ and the normal name is an alias. */
4425 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4428 pthread_attr_init();
4433 if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 eval "ac_cv_func_pthread_attr_init=yes"
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4440 eval "ac_cv_func_pthread_attr_init=no"
4445 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4449 echo "$ac_t""no" 1>&6
4455 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4456 echo "configure:4457: checking for cthread_fork in -lthreads" >&5
4457 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 ac_save_LIBS="$LIBS"
4462 LIBS="-lthreads $LIBS"
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4469 char cthread_fork();
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477 eval "ac_cv_lib_$ac_lib_var=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 eval "ac_cv_lib_$ac_lib_var=no"
4485 LIBS="$ac_save_LIBS"
4488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4490 THREAD_LIB="-lthreads"
4492 echo "$ac_t""no" 1>&6
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 #include <pthread.h>
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 egrep "pthread_cond_t" >/dev/null 2>&1; then
4505 cat >> confdefs.h <<\EOF
4506 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 #include <strings.h>
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 egrep "strncasecmp" >/dev/null 2>&1; then
4521 cat >> confdefs.h <<\EOF
4522 #define STRNCASECMP_IN_STRINGS_H 1
4529 for ac_hdr in getopt.h strings.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
4569 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4573 echo "configure:4574: checking for $ac_hdr" >&5
4574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 eval "ac_cv_header_$ac_safe=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 eval "ac_cv_header_$ac_safe=no"
4597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4600 cat >> confdefs.h <<EOF
4601 #define $ac_tr_hdr 1
4605 echo "$ac_t""no" 1>&6
4609 for ac_hdr in dlfcn.h image.h
4611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4613 echo "configure:4614: checking for $ac_hdr" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4625 if test -z "$ac_err"; then
4627 eval "ac_cv_header_$ac_safe=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_header_$ac_safe=no"
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4640 cat >> confdefs.h <<EOF
4641 #define $ac_tr_hdr 1
4645 echo "$ac_t""no" 1>&6
4649 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_hdr" >&5
4654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4665 if test -z "$ac_err"; then
4667 eval "ac_cv_header_$ac_safe=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_header_$ac_safe=no"
4677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_hdr 1
4685 echo "$ac_t""no" 1>&6
4689 for ac_hdr in machine/param.h sys/shm.h
4691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4693 echo "configure:4694: checking for $ac_hdr" >&5
4694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4703 { (eval echo configure:4704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4705 if test -z "$ac_err"; then
4707 eval "ac_cv_header_$ac_safe=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_header_$ac_safe=no"
4717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4720 cat >> confdefs.h <<EOF
4721 #define $ac_tr_hdr 1
4725 echo "$ac_t""no" 1>&6
4730 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4731 echo "configure:4732: checking whether time.h and sys/time.h may both be included" >&5
4732 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 #include <sys/types.h>
4739 #include <sys/time.h>
4745 if { (eval echo configure:4746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4747 ac_cv_header_time=yes
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 ac_cv_header_time=no
4757 echo "$ac_t""$ac_cv_header_time" 1>&6
4758 if test $ac_cv_header_time = yes; then
4759 cat >> confdefs.h <<\EOF
4760 #define TIME_WITH_SYS_TIME 1
4766 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_hdr" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4784 eval "ac_cv_header_$ac_safe=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_header_$ac_safe=no"
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_hdr 1
4802 echo "$ac_t""no" 1>&6
4807 if test x$SYS != xmingw32
4809 if test x$x_includes = xNONE; then
4810 x_includes=/usr/X11R6/include
4812 if test x$x_libraries = xNONE; then
4813 x_libraries=/usr/X11R6/lib
4815 saved_CPPFLAGS=$CPPFLAGS
4816 CPPFLAGS="$CPPFLAGS -I$x_includes"
4817 for ac_hdr in X11/extensions/dpms.h
4819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_hdr" >&5
4822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4831 { (eval echo configure:4832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4833 if test -z "$ac_err"; then
4835 eval "ac_cv_header_$ac_safe=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_header_$ac_safe=no"
4845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4848 cat >> confdefs.h <<EOF
4849 #define $ac_tr_hdr 1
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 #include <X11/extensions/dpms.h>
4857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4858 egrep "DPMSInfo" >/dev/null 2>&1; then
4861 cat >> confdefs.h <<\EOF
4862 #define DPMSINFO_IN_DPMS_H 1
4871 echo "$ac_t""no" 1>&6
4875 CPPFLAGS=$saved_CPPFLAGS
4878 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4879 echo "configure:4880: checking for ntohl in sys/param.h" >&5
4880 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 CFLAGS="${save_CFLAGS} -Wall -Werror"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 #include <sys/param.h>
4889 void foo() { int meuh; ntohl(meuh); }
4892 if { (eval echo configure:4893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4894 ac_cv_c_ntohl_sys_param_h=yes
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 ac_cv_c_ntohl_sys_param_h=no
4904 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4905 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4906 cat >> confdefs.h <<\EOF
4907 #define NTOHL_IN_SYS_PARAM_H 1
4912 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4913 echo "configure:4914: checking if \$CC accepts -finline-limit" >&5
4914 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4928 ac_cv_c_inline_limit=yes
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 ac_cv_c_inline_limit=no
4938 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4939 if test x"$ac_cv_c_inline_limit" != x"no"; then
4940 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4943 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4944 echo "configure:4945: checking if \$CC accepts -Wall -Winline" >&5
4945 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 CFLAGS="${save_CFLAGS} -Wall -Winline"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_c_Wall_Winline=yes
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 ac_cv_c_Wall_Winline=no
4969 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4970 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4971 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4973 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4974 echo "configure:4975: checking if \$CC accepts -wall -winline" >&5
4975 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 CFLAGS="${save_CFLAGS} -wall -winline"
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4987 if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4989 ac_cv_c_wall_winline=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 ac_cv_c_wall_winline=no
4999 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5000 if test x"$ac_cv_c_wall_winline" != x"no"; then
5001 save_CFLAGS="${save_CFLAGS} -wall -winline"
5005 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5006 echo "configure:5007: checking if \$CC accepts -pipe" >&5
5007 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 CFLAGS="${save_CFLAGS} -pipe"
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5019 if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5031 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5032 if test x"$ac_cv_c_pipe" != x"no"; then
5033 save_CFLAGS="${save_CFLAGS} -pipe"
5036 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5037 echo "configure:5038: checking if \$CC accepts -O3" >&5
5038 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 CFLAGS="${save_CFLAGS} -O3"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5062 echo "$ac_t""$ac_cv_c_o3" 1>&6
5063 if test x"$ac_cv_c_o3" != x"no"; then
5064 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5066 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5067 echo "configure:5068: checking if \$CC accepts -O2" >&5
5068 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 CFLAGS="${save_CFLAGS} -O2"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5092 echo "$ac_t""$ac_cv_c_o2" 1>&6
5093 if test x"$ac_cv_c_o2" != x"no"; then
5094 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5096 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5097 echo "configure:5098: checking if \$CC accepts -O" >&5
5098 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5099 echo $ac_n "(cached) $ac_c" 1>&6
5101 CFLAGS="${save_CFLAGS} -O"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5110 if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5122 echo "$ac_t""$ac_cv_c_o" 1>&6
5123 if test x"$ac_cv_c_o" != x"no"; then
5124 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5129 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5130 echo "configure:5131: checking if \$CC accepts -ffast-math" >&5
5131 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 CFLAGS="${save_CFLAGS} -ffast-math"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5145 ac_cv_c_fast_math=yes
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5150 ac_cv_c_fast_math=no
5155 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5156 if test x"$ac_cv_c_fast_math" != x"no"; then
5157 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5160 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5161 echo "configure:5162: checking if \$CC accepts -funroll-loops" >&5
5162 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 CFLAGS="${save_CFLAGS} -funroll-loops"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5176 ac_cv_c_unroll_loops=yes
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 ac_cv_c_unroll_loops=no
5186 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5187 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5188 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5191 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5192 echo "configure:5193: checking if \$CC accepts -fomit-frame-pointer" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5207 ac_cv_c_omit_frame_pointer=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5212 ac_cv_c_omit_frame_pointer=no
5217 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5218 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5219 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5222 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5223 echo "configure:5224: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5224 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5236 if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5248 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5249 if test x"$ac_cv_ld_darwin" != x"no"; then
5250 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5253 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5254 echo "configure:5255: checking if \$CC accepts -shared" >&5
5255 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 CFLAGS="${save_CFLAGS} -shared"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5269 ac_cv_ld_plugins=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5279 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5280 if test x"$ac_cv_ld_plugins" != x"no"; then
5281 PLDFLAGS="${PLDFLAGS} -shared"
5284 if test x"${SOFLAGS}" = x; then
5285 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5286 echo "configure:5287: checking for soname setting" >&5
5287 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5292 try_SOFLAGS="-Wl,-soname -Wl,"
5293 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 ac_cv_ld_soname="${try_SOFLAGS}"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5311 try_SOFLAGS="-Wl,-h -Wl,"
5312 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 ac_cv_ld_soname="${try_SOFLAGS}"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 ac_cv_ld_soname=none
5336 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5337 if test x"$ac_cv_ld_soname" != x"none"; then
5338 SOFLAGS=$ac_cv_ld_soname
5342 Your system doesn't seem to have support for dynamic linking. You may
5343 have problems using libdvdcss.
5349 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5350 echo "configure:5351: checking __attribute__ ((aligned ())) support" >&5
5351 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 ac_cv_c_attribute_aligned=0
5355 CFLAGS="${save_CFLAGS} -Werror"
5356 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5365 if { (eval echo configure:5366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5376 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5377 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5378 cat >> confdefs.h <<EOF
5379 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5384 CFLAGS="${save_CFLAGS}"
5385 LDFLAGS="${save_LDFLAGS}"
5387 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5388 echo "configure:5389: checking for boolean_t in sys/types.h" >&5
5389 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <sys/types.h>
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 ac_cv_c_boolean_t_sys_types_h=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 ac_cv_c_boolean_t_sys_types_h=no
5412 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5413 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5414 cat >> confdefs.h <<\EOF
5415 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5420 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5421 echo "configure:5422: checking for boolean_t in pthread.h" >&5
5422 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 #include <pthread.h>
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 ac_cv_c_boolean_t_pthread_h=yes
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ac_cv_c_boolean_t_pthread_h=no
5445 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5446 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5447 cat >> confdefs.h <<\EOF
5448 #define BOOLEAN_T_IN_PTHREAD_H 1
5453 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5454 echo "configure:5455: checking for boolean_t in cthreads.h" >&5
5455 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 #include <cthreads.h>
5466 if { (eval echo configure:5467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5468 ac_cv_c_boolean_t_cthreads_h=yes
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 ac_cv_c_boolean_t_cthreads_h=no
5478 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5479 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5480 cat >> confdefs.h <<\EOF
5481 #define BOOLEAN_T_IN_CTHREADS_H 1
5486 case x"${target_cpu}" in
5495 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5496 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5498 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5499 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5500 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5501 SSE_MODULES="imdctsse downmixsse"
5502 ALTIVEC_MODULES="idctaltivec motionaltivec"
5504 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5505 echo "configure:5506: checking if \$CC groks MMX inline assembly" >&5
5506 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5514 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5517 if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5519 ac_cv_mmx_inline=yes
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5529 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5530 if test x"$ac_cv_mmx_inline" != x"no"; then
5531 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5534 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5535 echo "configure:5536: checking if \$CC groks MMX EXT inline assembly" >&5
5536 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5547 if { (eval echo configure:5548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5549 ac_cv_mmxext_inline=yes
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 ac_cv_mmxext_inline=no
5559 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5560 if test x"$ac_cv_mmxext_inline" != x"no"; then
5561 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5564 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5565 echo "configure:5566: checking if \$CC groks 3D Now! inline assembly" >&5
5566 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5574 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5577 if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 ac_cv_3dnow_inline=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 ac_cv_3dnow_inline=no
5589 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5590 if test x"$ac_cv_3dnow_inline" != x"no"; then
5591 cat >> confdefs.h <<\EOF
5592 #define CAN_COMPILE_3DNOW 1
5595 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5598 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5599 echo "configure:5600: checking if \$CC groks SSE inline assembly" >&5
5600 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5608 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5611 if { (eval echo configure:5612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5613 ac_cv_sse_inline=yes
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5623 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5624 if test x"$ac_cv_sse_inline" != x"no"; then
5625 cat >> confdefs.h <<\EOF
5626 #define CAN_COMPILE_SSE 1
5629 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5632 # don't try to grok altivec with native mingw32 it doesn't work right now
5633 # we should be able to remove this test with future versions of mingw32
5634 if test x$SYS != xmingw32; then
5635 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5636 echo "configure:5637: checking if \$CC groks Altivec inline assembly" >&5
5637 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5645 asm volatile("vperm 0,1,2,3");
5648 if { (eval echo configure:5649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5650 ac_cv_altivec_inline=yes
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5656 CFLAGS="$CFLAGS -Wa,-m7400"
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5662 asm volatile("vperm 0,1,2,3");
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667 ac_cv_altivec_inline="-Wa,-m7400"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 ac_cv_altivec_inline=no
5681 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5682 if test x"$ac_cv_altivec_inline" != x"no"; then
5683 cat >> confdefs.h <<\EOF
5684 #define CAN_COMPILE_ALTIVEC 1
5687 if test x"$ac_cv_altivec_inline" != x"yes"; then
5688 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5689 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5690 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5692 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5695 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5696 echo "configure:5697: checking if \$CC groks Altivec C extensions" >&5
5697 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5701 CFLAGS="$CFLAGS -faltivec"
5703 cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5708 vec_mtvscr((vector unsigned int)(0));
5711 if { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5713 ac_cv_c_altivec=-faltivec
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5720 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5726 vec_mtvscr((vector unsigned int)(0));
5729 if { (eval echo configure:5730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5731 ac_cv_c_altivec="-fvec"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5746 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5747 if test x"$ac_cv_c_altivec" != x"no"; then
5748 cat >> confdefs.h <<\EOF
5749 #define CAN_COMPILE_C_ALTIVEC 1
5752 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5753 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5754 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5755 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5758 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5759 echo "configure:5760: checking if linker needs -framework vecLib" >&5
5760 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5763 save_LDFLAGS=$LDFLAGS
5764 LDFLAGS="$LDFLAGS -framework vecLib"
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5773 if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5775 ac_cv_ld_altivec=yes
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5783 LDFLAGS=$save_LDFLAGS
5787 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5788 if test x"$ac_cv_ld_altivec" != x"no"; then
5789 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5790 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5791 LIB="${LIB} -framework vecLib"
5801 DVD_DEVICE="/dev/dvd"
5802 VCD_DEVICE="/dev/cdrom"
5806 cat >> confdefs.h <<EOF
5807 #define DVD_DEVICE "$DVD_DEVICE"
5810 cat >> confdefs.h <<EOF
5811 #define VCD_DEVICE "$VCD_DEVICE"
5817 CAN_BUILD_LIBDVDCSS=0
5819 for ac_hdr in winioctl.h
5821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5823 echo "configure:5824: checking for $ac_hdr" >&5
5824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5835 if test -z "$ac_err"; then
5837 eval "ac_cv_header_$ac_safe=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5843 eval "ac_cv_header_$ac_safe=no"
5847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5848 echo "$ac_t""yes" 1>&6
5849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5850 cat >> confdefs.h <<EOF
5851 #define $ac_tr_hdr 1
5854 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5857 echo "$ac_t""no" 1>&6
5862 for ac_hdr in sys/ioctl.h
5864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5866 echo "configure:5867: checking for $ac_hdr" >&5
5867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5876 { (eval echo configure:5877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5878 if test -z "$ac_err"; then
5880 eval "ac_cv_header_$ac_safe=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_header_$ac_safe=no"
5890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5893 cat >> confdefs.h <<EOF
5894 #define $ac_tr_hdr 1
5897 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5898 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5902 echo "configure:5903: checking for $ac_hdr" >&5
5903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5912 { (eval echo configure:5913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5914 if test -z "$ac_err"; then
5916 eval "ac_cv_header_$ac_safe=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_header_$ac_safe=no"
5926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_hdr 1
5934 echo "$ac_t""no" 1>&6
5940 OPENBSD_DVD_STRUCT=0
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 #include <sys/cdio.h>
5946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 egrep "dvd_struct" >/dev/null 2>&1; then
5950 cat >> confdefs.h <<\EOF
5951 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <sys/cdio.h>
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960 egrep "struct dvd_struct" >/dev/null 2>&1; then
5966 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5977 #include <sys/dvdio.h>
5979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5980 egrep "dvd_struct" >/dev/null 2>&1; then
5983 cat >> confdefs.h <<\EOF
5984 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 #include <sys/dvdio.h>
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 egrep "struct dvd_struct" >/dev/null 2>&1; then
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 #include <linux/cdrom.h>
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 egrep "dvd_struct" >/dev/null 2>&1; then
6016 cat >> confdefs.h <<\EOF
6017 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 egrep "dvd_struct" >/dev/null 2>&1; then
6035 cat >> confdefs.h <<\EOF
6036 #define DVD_STRUCT_IN_DVD_H 1
6039 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6045 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_hdr" >&5
6050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6059 { (eval echo configure:6060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6061 if test -z "$ac_err"; then
6063 eval "ac_cv_header_$ac_safe=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_header_$ac_safe=no"
6073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6074 echo "$ac_t""yes" 1>&6
6075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6076 cat >> confdefs.h <<EOF
6077 #define $ac_tr_hdr 1
6081 cat >> confdefs.h <<\EOF
6082 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6085 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6089 echo "$ac_t""no" 1>&6
6097 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for sys/scsi/scsi_types.h" >&5
6100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 #include <sys/scsi/scsi_types.h>
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6113 eval "ac_cv_header_$ac_safe=yes"
6116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6119 eval "ac_cv_header_$ac_safe=no"
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6126 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6127 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6128 echo "configure:6129: checking for sys/scsi/impl/uscsi.h" >&5
6129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 #include <sys/scsi/impl/uscsi.h>
6137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6138 { (eval echo configure:6139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6140 if test -z "$ac_err"; then
6142 eval "ac_cv_header_$ac_safe=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 eval "ac_cv_header_$ac_safe=no"
6152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6153 echo "$ac_t""yes" 1>&6
6155 cat >> confdefs.h <<\EOF
6156 #define SOLARIS_USCSI 1
6161 echo "$ac_t""no" 1>&6
6166 echo "$ac_t""no" 1>&6
6169 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6170 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6171 echo "configure:6172: checking for sys/scsi.h" >&5
6172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <sys/scsi.h>
6180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6181 { (eval echo configure:6182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6183 if test -z "$ac_err"; then
6185 eval "ac_cv_header_$ac_safe=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_header_$ac_safe=no"
6195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 #include <sys/scsi.h>
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 egrep "sctl_io" >/dev/null 2>&1; then
6207 cat >> confdefs.h <<\EOF
6208 #define HPUX_SCTL_IO 1
6217 echo "$ac_t""no" 1>&6
6220 if test x$LINUX_DVD_STRUCT = x1; then
6221 cat >> confdefs.h <<\EOF
6222 #define HAVE_LINUX_DVD_STRUCT 1
6225 if test x$OPENBSD_DVD_STRUCT = x1; then
6226 cat >> confdefs.h <<\EOF
6227 #define HAVE_OPENBSD_DVD_STRUCT 1
6232 if test x$BSD_DVD_STRUCT = x1; then
6233 cat >> confdefs.h <<\EOF
6234 #define HAVE_BSD_DVD_STRUCT 1
6241 echo "$ac_t""no" 1>&6
6246 # Check whether --with- or --without- was given.
6247 if test "${with_+set}" = set; then
6252 # Check whether --with- or --without- was given.
6253 if test "${with_+set}" = set; then
6259 # Check whether --with-tuning or --without-tuning was given.
6260 if test "${with_tuning+set}" = set; then
6261 withval="$with_tuning"
6265 if test "x$withval" != "x"; then
6268 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6270 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6274 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6277 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6280 # Check whether --enable-optimizations or --disable-optimizations was given.
6281 if test "${enable_optimizations+set}" = set; then
6282 enableval="$enable_optimizations"
6283 if test x$enableval = xno; then OPTIMS=0; fi
6289 # Check whether --enable-altivec or --disable-altivec was given.
6290 if test "${enable_altivec+set}" = set; then
6291 enableval="$enable_altivec"
6292 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6293 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6295 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6296 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6301 # Check whether --enable-debug or --disable-debug was given.
6302 if test "${enable_debug+set}" = set; then
6303 enableval="$enable_debug"
6304 if test x$enableval = xyes; then DEBUG=1; fi
6308 # Check whether --enable-release or --disable-release was given.
6309 if test "${enable_release+set}" = set; then
6310 enableval="$enable_release"
6311 if test x$enableval = xyes; then RELEASE=1; fi
6313 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6314 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6319 # Check whether --with- or --without- was given.
6320 if test "${with_+set}" = set; then
6329 # Check whether --with-dvdcss or --without-dvdcss was given.
6330 if test "${with_dvdcss+set}" = set; then
6331 withval="$with_dvdcss"
6332 case "x${withval}" in
6334 # local libdvdcss, statically linked
6335 BUILTINS="${BUILTINS} dvd"
6336 if test x${CAN_BUILD_LIBDVDCSS} = x1
6340 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6341 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6345 # local libdvdcss, dynamically linked
6346 PLUGINS="${PLUGINS} dvd"
6347 if test x${CAN_BUILD_LIBDVDCSS} = x1
6350 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6351 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6355 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6356 PLUGINS="${PLUGINS} dvd"
6358 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6359 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6360 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6361 LIB_DVD="${LIB_DVD} -ldl"
6364 # existing libdvdcss
6365 PLUGINS="${PLUGINS} dvd"
6366 if test "x$withval" != "xyes"
6368 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6369 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6371 LIB_DVD="${LIB_DVD} -ldvdcss"
6374 # user didn't decide, we choose to use local libdvdcss and link statically
6375 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6376 if test x${CAN_BUILD_LIBDVDCSS} = x1
6378 BUILTINS="${BUILTINS} dvd"
6381 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6382 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6384 # XXX: no check for libdl is done, don't try this at home !
6385 PLUGINS="${PLUGINS} dvd"
6387 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6388 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6389 LIB_DVD="${LIB_DVD} -ldl"
6394 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6395 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6396 # Check whether --with-dvdread or --without-dvdread was given.
6397 if test "${with_dvdread+set}" = set; then
6398 withval="$with_dvdread"
6399 case "x${withval}" in
6401 if test x${STATIC_LIBDVDREAD} = x1
6403 BUILTINS="${BUILTINS} dvdread"
6404 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6405 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6407 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6413 if test x${STATIC_LIBDVDREAD} = x1
6415 #BUILTINS="${BUILTINS} dvdread"
6416 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6417 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6419 #PLUGINS="${PLUGINS} dvdread"
6420 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6421 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6425 if test "x$withval" != "xlocal-shared"
6427 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6428 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6430 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6431 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6433 if test x${STATIC_LIBDVDCSS} = x1
6435 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6437 #PLUGINS="${PLUGINS} dvdread"
6438 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6439 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6442 if test x${DUMMY_LIBDVDCSS} = x1
6444 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6446 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6451 # Check whether --enable-vcd or --disable-vcd was given.
6452 if test "${enable_vcd+set}" = set; then
6453 enableval="$enable_vcd"
6458 if test x$enable_vcd != xno
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6463 #include <linux/cdrom.h>
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 egrep "cdrom_msf0" >/dev/null 2>&1; then
6469 PLUGINS="${PLUGINS} vcd"
6475 if test "x${SYS}" = "xbsdi"
6477 PLUGINS="${PLUGINS} vcd"
6480 if test "x${SYS}" = "xdarwin"
6482 PLUGINS="${PLUGINS} vcd"
6483 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 #include <netinet/in.h>
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 egrep "in6_addr" >/dev/null 2>&1; then
6496 PLUGINS="${PLUGINS} ipv6"
6502 # Check whether --with- or --without- was given.
6503 if test "${with_+set}" = set; then
6509 # Check whether --enable-mad or --disable-mad was given.
6510 if test "${enable_mad+set}" = set; then
6511 enableval="$enable_mad"
6515 if test x$enable_mad == xyes
6517 PLUGINS="${PLUGINS} mad"
6518 LIB_MAD="${LIB_MAD} -lmad"
6519 # Check whether --with-mad or --without-mad was given.
6520 if test "${with_mad+set}" = set; then
6522 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6524 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6525 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6530 save_LDFLAGS=$LDFLAGS
6531 CFLAGS="$CFLAGS $CFLAGS_MAD"
6532 LDFLAGS="$LDFLAGS $LIB_MAD"
6535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_hdr" >&5
6538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6547 { (eval echo configure:6548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6549 if test -z "$ac_err"; then
6551 eval "ac_cv_header_$ac_safe=yes"
6554 echo "configure: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6557 eval "ac_cv_header_$ac_safe=no"
6561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6564 cat >> confdefs.h <<EOF
6565 #define $ac_tr_hdr 1
6569 echo "$ac_t""no" 1>&6
6570 echo "Cannot find development headers for libmad..."
6576 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6577 echo "configure:6578: checking for mad_bit_init in -lmad" >&5
6578 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 ac_save_LIBS="$LIBS"
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char mad_bit_init();
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 eval "ac_cv_lib_$ac_lib_var=yes"
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 eval "ac_cv_lib_$ac_lib_var=no"
6606 LIBS="$ac_save_LIBS"
6609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6610 echo "$ac_t""yes" 1>&6
6611 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6612 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6613 cat >> confdefs.h <<EOF
6614 #define $ac_tr_lib 1
6620 echo "$ac_t""no" 1>&6
6621 echo "Cannot find libmad library..."
6627 LDFLAGS=$save_LDFLAGS
6630 if test x$SYS = xbeos
6632 PLUGINS="${PLUGINS} beos"
6636 # Check whether --enable-a52 or --disable-a52 was given.
6637 if test "${enable_a52+set}" = set; then
6638 enableval="$enable_a52"
6642 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6644 for ac_hdr in a52dec/a52.h
6646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6648 echo "configure:6649: checking for $ac_hdr" >&5
6649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6658 { (eval echo configure:6659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6660 if test -z "$ac_err"; then
6662 eval "ac_cv_header_$ac_safe=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_header_$ac_safe=no"
6672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_hdr 1
6679 BUILTINS="${BUILTINS} a52"
6680 LIB_A52="${LIB_A52} -la52"
6683 echo "$ac_t""no" 1>&6
6690 # Check whether --with- or --without- was given.
6691 if test "${with_+set}" = set; then
6697 # Check whether --enable-x11 or --disable-x11 was given.
6698 if test "${enable_x11+set}" = set; then
6699 enableval="$enable_x11"
6703 if test x$enable_x11 != xno &&
6704 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6705 if test x$x_includes = xNONE; then
6706 x_includes=/usr/X11R6/include
6708 if test x$x_libraries = xNONE; then
6709 x_libraries=/usr/X11R6/lib
6711 saved_CPPFLAGS=$CPPFLAGS
6712 CPPFLAGS="$CPPFLAGS -I$x_includes"
6713 for ac_hdr in X11/Xlib.h
6715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6717 echo "configure:6718: checking for $ac_hdr" >&5
6718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6727 { (eval echo configure:6728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6729 if test -z "$ac_err"; then
6731 eval "ac_cv_header_$ac_safe=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_header_$ac_safe=no"
6741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6744 cat >> confdefs.h <<EOF
6745 #define $ac_tr_hdr 1
6748 PLUGINS="${PLUGINS} x11"
6749 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6750 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6753 echo "$ac_t""no" 1>&6
6757 CPPFLAGS=$saved_CPPFLAGS
6760 # Check whether --enable-xvideo or --disable-xvideo was given.
6761 if test "${enable_xvideo+set}" = set; then
6762 enableval="$enable_xvideo"
6766 if test x$enable_xvideo != xno &&
6767 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6768 if test x$x_includes = xNONE; then
6769 x_includes=/usr/X11R6/include
6771 if test x$x_libraries = xNONE; then
6772 x_libraries=/usr/X11R6/lib
6774 saved_CPPFLAGS=$CPPFLAGS
6775 CPPFLAGS="$CPPFLAGS -I$x_includes"
6776 for ac_hdr in X11/extensions/Xv.h
6778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6780 echo "configure:6781: checking for $ac_hdr" >&5
6781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6790 { (eval echo configure:6791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6792 if test -z "$ac_err"; then
6794 eval "ac_cv_header_$ac_safe=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_header_$ac_safe=no"
6804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6807 cat >> confdefs.h <<EOF
6808 #define $ac_tr_hdr 1
6811 saved_CFLAGS=$CFLAGS
6812 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6813 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6814 echo "configure:6815: checking for XvSetPortAttribute in -lXv_pic" >&5
6815 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 ac_save_LIBS="$LIBS"
6820 LIBS="-lXv_pic $LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827 char XvSetPortAttribute();
6830 XvSetPortAttribute()
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 eval "ac_cv_lib_$ac_lib_var=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 eval "ac_cv_lib_$ac_lib_var=no"
6843 LIBS="$ac_save_LIBS"
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6849 PLUGINS="${PLUGINS} xvideo"
6850 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6851 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6853 echo "$ac_t""no" 1>&6
6854 # We don't have Xv_pic, let's make xvideo.a as builtin
6855 BUILTINS="${BUILTINS} xvideo"
6856 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6857 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6860 CFLAGS=$saved_CFLAGS
6862 CPPFLAGS=$saved_CPPFLAGS
6864 echo "$ac_t""no" 1>&6
6870 # Check whether --enable-sdl or --disable-sdl was given.
6871 if test "${enable_sdl+set}" = set; then
6872 enableval="$enable_sdl"
6876 if test "x$enable_sdl" != "xno"
6879 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6880 if test "${with_sdl_config_path+set}" = set; then
6881 withval="$with_sdl_config_path"
6882 if test "x$withval" != "xno"
6884 SDL_PATH=$withval:$PATH
6888 # Extract the first word of "sdl12-config", so it can be a program name with args.
6889 set dummy sdl12-config; ac_word=$2
6890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6891 echo "configure:6892: checking for $ac_word" >&5
6892 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 case "$SDL12_CONFIG" in
6897 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6900 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6904 ac_dummy="$SDL_PATH"
6905 for ac_dir in $ac_dummy; do
6906 test -z "$ac_dir" && ac_dir=.
6907 if test -f $ac_dir/$ac_word; then
6908 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6913 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6917 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6918 if test -n "$SDL12_CONFIG"; then
6919 echo "$ac_t""$SDL12_CONFIG" 1>&6
6921 echo "$ac_t""no" 1>&6
6924 SDL_CONFIG=${SDL12_CONFIG}
6925 SDL_HEADER="SDL12/SDL.h"
6926 if test x${SDL_CONFIG} = xno
6928 # Extract the first word of "sdl11-config", so it can be a program name with args.
6929 set dummy sdl11-config; ac_word=$2
6930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6931 echo "configure:6932: checking for $ac_word" >&5
6932 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 case "$SDL11_CONFIG" in
6937 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6940 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6944 ac_dummy="$SDL_PATH"
6945 for ac_dir in $ac_dummy; do
6946 test -z "$ac_dir" && ac_dir=.
6947 if test -f $ac_dir/$ac_word; then
6948 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6953 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6957 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6958 if test -n "$SDL11_CONFIG"; then
6959 echo "$ac_t""$SDL11_CONFIG" 1>&6
6961 echo "$ac_t""no" 1>&6
6964 SDL_CONFIG=${SDL11_CONFIG}
6965 SDL_HEADER="SDL11/SDL.h"
6967 if test x${SDL_CONFIG} = xno
6969 # Extract the first word of "sdl-config", so it can be a program name with args.
6970 set dummy sdl-config; ac_word=$2
6971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6972 echo "configure:6973: checking for $ac_word" >&5
6973 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 case "$SDL_CONFIG" in
6978 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6981 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6985 ac_dummy="$SDL_PATH"
6986 for ac_dir in $ac_dummy; do
6987 test -z "$ac_dir" && ac_dir=.
6988 if test -f $ac_dir/$ac_word; then
6989 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6994 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6998 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6999 if test -n "$SDL_CONFIG"; then
7000 echo "$ac_t""$SDL_CONFIG" 1>&6
7002 echo "$ac_t""no" 1>&6
7005 SDL_HEADER="SDL/SDL.h"
7007 if test x${SDL_CONFIG} != xno
7009 PLUGINS="${PLUGINS} sdl"
7010 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7011 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7012 save_CPPFLAGS=$CPPFLAGS
7013 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7014 for ac_hdr in ${SDL_HEADER}
7016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7018 echo "configure:7019: checking for $ac_hdr" >&5
7019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7020 echo $ac_n "(cached) $ac_c" 1>&6
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7028 { (eval echo configure:7029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7030 if test -z "$ac_err"; then
7032 eval "ac_cv_header_$ac_safe=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7038 eval "ac_cv_header_$ac_safe=no"
7042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7043 echo "$ac_t""yes" 1>&6
7044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7045 cat >> confdefs.h <<EOF
7046 #define $ac_tr_hdr 1
7048 cat >> confdefs.h <<EOF
7049 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7053 echo "$ac_t""no" 1>&6
7054 { echo "configure: error: The development package for SDL is not installed.
7055 Please install it and try again. Alternatively you can also configure with
7056 --disable-sdl." 1>&2; exit 1; }
7061 CPPFLAGS=$save_CPPFLAGS
7062 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7064 { echo "configure: error: The development package for SDL is not installed.
7065 Please install it and try again. Alternatively you can also configure with
7066 --disable-sdl." 1>&2; exit 1; }
7068 elif test "x$enable_sdl" = "xyes"
7070 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7071 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7076 # Check whether --enable-directx or --disable-directx was given.
7077 if test "${enable_directx+set}" = set; then
7078 enableval="$enable_directx"
7082 if test "x$enableval" != "xno"
7084 if test x$SYS = xmingw32
7086 # Check whether --with-directx or --without-directx was given.
7087 if test "${with_directx+set}" = set; then
7088 withval="$with_directx"
7092 if test "x$with_directx" = "x"
7094 for ac_hdr in ddraw.h
7096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7098 echo "configure:7099: checking for $ac_hdr" >&5
7099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7108 { (eval echo configure:7109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7110 if test -z "$ac_err"; then
7112 eval "ac_cv_header_$ac_safe=yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7118 eval "ac_cv_header_$ac_safe=no"
7122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7123 echo "$ac_t""yes" 1>&6
7124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7125 cat >> confdefs.h <<EOF
7126 #define $ac_tr_hdr 1
7128 PLUGINS="${PLUGINS} directx"
7129 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7131 echo "$ac_t""no" 1>&6
7136 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7137 echo "configure:7138: checking for directX headers in ${withval}" >&5
7138 if test -f ${withval}/ddraw.h
7140 PLUGINS="${PLUGINS} directx"
7141 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7142 INCLUDE="${INCLUDE} -I${withval}"
7143 echo "$ac_t""yes" 1>&6
7145 echo "$ac_t""no" 1>&6
7146 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7152 # Check whether --enable-fb or --disable-fb was given.
7153 if test "${enable_fb+set}" = set; then
7154 enableval="$enable_fb"
7158 if test x$enable_fb != xno
7160 for ac_hdr in linux/fb.h
7162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7164 echo "configure:7165: checking for $ac_hdr" >&5
7165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7174 { (eval echo configure:7175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7176 if test -z "$ac_err"; then
7178 eval "ac_cv_header_$ac_safe=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_header_$ac_safe=no"
7188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7189 echo "$ac_t""yes" 1>&6
7190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7191 cat >> confdefs.h <<EOF
7192 #define $ac_tr_hdr 1
7195 PLUGINS="${PLUGINS} fb"
7198 echo "$ac_t""no" 1>&6
7204 # Check whether --enable-mga or --disable-mga was given.
7205 if test "${enable_mga+set}" = set; then
7206 enableval="$enable_mga"
7207 if test x$enable_mga = xyes
7209 PLUGINS="${PLUGINS} mga xmga"
7214 # Check whether --enable-ggi or --disable-ggi was given.
7215 if test "${enable_ggi+set}" = set; then
7216 enableval="$enable_ggi"
7220 if test x$enable_ggi == xyes
7222 PLUGINS="${PLUGINS} ggi"
7223 LIB_GGI="${LIB_GGI} -lggi"
7224 # Check whether --with-ggi or --without-ggi was given.
7225 if test "${with_ggi+set}" = set; then
7227 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7229 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7230 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7236 # Check whether --enable-glide or --disable-glide was given.
7237 if test "${enable_glide+set}" = set; then
7238 enableval="$enable_glide"
7242 if test x$enable_glide == xyes
7244 PLUGINS="${PLUGINS} glide"
7245 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7246 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7247 # Check whether --with-glide or --without-glide was given.
7248 if test "${with_glide+set}" = set; then
7249 withval="$with_glide"
7250 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7252 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7253 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7260 # Check whether --with- or --without- was given.
7261 if test "${with_+set}" = set; then
7267 # Check whether --enable-dsp or --disable-dsp was given.
7268 if test "${enable_dsp+set}" = set; then
7269 enableval="$enable_dsp"
7274 if test x$enable_dsp != xno &&
7275 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7277 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7281 echo "configure:7282: checking for $ac_hdr" >&5
7282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then
7295 eval "ac_cv_header_$ac_safe=yes"
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 eval "ac_cv_header_$ac_safe=no"
7305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7306 echo "$ac_t""yes" 1>&6
7307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7308 cat >> confdefs.h <<EOF
7309 #define $ac_tr_hdr 1
7312 PLUGINS="${PLUGINS} dsp"
7313 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7314 echo "configure:7315: checking for main in -lossaudio" >&5
7315 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7319 ac_save_LIBS="$LIBS"
7320 LIBS="-lossaudio $LIBS"
7321 cat > conftest.$ac_ext <<EOF
7322 #line 7323 "configure"
7323 #include "confdefs.h"
7329 if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7331 eval "ac_cv_lib_$ac_lib_var=yes"
7333 echo "configure: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7336 eval "ac_cv_lib_$ac_lib_var=no"
7339 LIBS="$ac_save_LIBS"
7342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7343 echo "$ac_t""yes" 1>&6
7344 LIB_DSP="${LIB_DSP} -lossaudio"
7346 echo "$ac_t""no" 1>&6
7351 echo "$ac_t""no" 1>&6
7357 # Check whether --enable-esd or --disable-esd was given.
7358 if test "${enable_esd+set}" = set; then
7359 enableval="$enable_esd"
7360 if test x$enable_esd = xyes
7362 # Extract the first word of "esd-config", so it can be a program name with args.
7363 set dummy esd-config; ac_word=$2
7364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7365 echo "configure:7366: checking for $ac_word" >&5
7366 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 case "$ESD_CONFIG" in
7371 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7374 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7379 for ac_dir in $ac_dummy; do
7380 test -z "$ac_dir" && ac_dir=.
7381 if test -f $ac_dir/$ac_word; then
7382 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7387 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7391 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7392 if test -n "$ESD_CONFIG"; then
7393 echo "$ac_t""$ESD_CONFIG" 1>&6
7395 echo "$ac_t""no" 1>&6
7398 if test x${ESD_CONFIG} != xno
7400 PLUGINS="${PLUGINS} esd"
7401 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7402 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7408 # Check whether --enable-arts or --disable-arts was given.
7409 if test "${enable_arts+set}" = set; then
7410 enableval="$enable_arts"
7411 if test x$enable_arts = xyes
7413 # Extract the first word of "artsc-config", so it can be a program name with args.
7414 set dummy artsc-config; ac_word=$2
7415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7416 echo "configure:7417: checking for $ac_word" >&5
7417 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 case "$ARTS_CONFIG" in
7422 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7425 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7430 for ac_dir in $ac_dummy; do
7431 test -z "$ac_dir" && ac_dir=.
7432 if test -f $ac_dir/$ac_word; then
7433 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7438 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7442 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7443 if test -n "$ARTS_CONFIG"; then
7444 echo "$ac_t""$ARTS_CONFIG" 1>&6
7446 echo "$ac_t""no" 1>&6
7449 if test x${ARTS_CONFIG} != xno
7451 PLUGINS="${PLUGINS} arts"
7452 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7453 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7459 # Check whether --enable-alsa or --disable-alsa was given.
7460 if test "${enable_alsa+set}" = set; then
7461 enableval="$enable_alsa"
7462 if test x$enable_alsa = xyes
7464 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7465 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7466 echo "configure:7467: checking for alsa/asoundlib.h" >&5
7467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 #include <alsa/asoundlib.h>
7475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7476 { (eval echo configure:7477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7478 if test -z "$ac_err"; then
7480 eval "ac_cv_header_$ac_safe=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7486 eval "ac_cv_header_$ac_safe=no"
7490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7491 echo "$ac_t""yes" 1>&6
7492 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7493 echo "configure:7494: checking for main in -lasound" >&5
7494 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 ac_save_LIBS="$LIBS"
7499 LIBS="-lasound $LIBS"
7500 cat > conftest.$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7510 eval "ac_cv_lib_$ac_lib_var=yes"
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 eval "ac_cv_lib_$ac_lib_var=no"
7518 LIBS="$ac_save_LIBS"
7521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7522 echo "$ac_t""yes" 1>&6
7525 echo "$ac_t""no" 1>&6
7530 echo "$ac_t""no" 1>&6
7534 if test x$have_alsa = xtrue
7536 PLUGINS="${PLUGINS} alsa"
7537 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7543 # Check whether --enable-waveout or --disable-waveout was given.
7544 if test "${enable_waveout+set}" = set; then
7545 enableval="$enable_waveout"
7549 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7551 PLUGINS="${PLUGINS} waveout"
7552 LIB_WAVEOUT="-lwinmm"
7556 # Check whether --with- or --without- was given.
7557 if test "${with_+set}" = set; then
7563 # Check whether --enable-gtk or --disable-gtk was given.
7564 if test "${enable_gtk+set}" = set; then
7565 enableval="$enable_gtk"
7569 if test x$enable_gtk != xno
7572 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7573 if test "${with_gtk_config_path+set}" = set; then
7574 withval="$with_gtk_config_path"
7575 if test "x$withval" != "xno"
7577 GTK_PATH=$withval:$PATH
7581 # look for gtk-config
7582 # Extract the first word of "gtk12-config", so it can be a program name with args.
7583 set dummy gtk12-config; ac_word=$2
7584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_word" >&5
7586 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 case "$GTK12_CONFIG" in
7591 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7594 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7598 ac_dummy="$GTK_PATH"
7599 for ac_dir in $ac_dummy; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/$ac_word; then
7602 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7607 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7611 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7612 if test -n "$GTK12_CONFIG"; then
7613 echo "$ac_t""$GTK12_CONFIG" 1>&6
7615 echo "$ac_t""no" 1>&6
7618 GTK_CONFIG=${GTK12_CONFIG}
7619 if test x${GTK_CONFIG} = xno
7621 # Extract the first word of "gtk-config", so it can be a program name with args.
7622 set dummy gtk-config; ac_word=$2
7623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_word" >&5
7625 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7628 case "$GTK_CONFIG" in
7630 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7633 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7637 ac_dummy="$GTK_PATH"
7638 for ac_dir in $ac_dummy; do
7639 test -z "$ac_dir" && ac_dir=.
7640 if test -f $ac_dir/$ac_word; then
7641 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7646 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7650 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7651 if test -n "$GTK_CONFIG"; then
7652 echo "$ac_t""$GTK_CONFIG" 1>&6
7654 echo "$ac_t""no" 1>&6
7658 if test x${GTK_CONFIG} != xno
7660 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7662 { 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; }
7664 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7665 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7666 # now look for the gtk.h header
7667 saved_CPPFLAGS=$CPPFLAGS
7668 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7669 ac_cv_gtk_headers=yes
7670 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7674 echo "configure:7675: checking for $ac_hdr" >&5
7675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7684 { (eval echo configure:7685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7686 if test -z "$ac_err"; then
7688 eval "ac_cv_header_$ac_safe=yes"
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7694 eval "ac_cv_header_$ac_safe=no"
7698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7699 echo "$ac_t""yes" 1>&6
7700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7701 cat >> confdefs.h <<EOF
7702 #define $ac_tr_hdr 1
7706 echo "$ac_t""no" 1>&6
7707 ac_cv_gtk_headers=no
7708 echo "Cannot find gtk development headers."
7713 if test "x$ac_cv_gtk_headers" = xyes
7715 PLUGINS="${PLUGINS} gtk"
7716 ALIASES="${ALIASES} gvlc"
7718 CPPFLAGS=$saved_CPPFLAGS
7722 # Check whether --enable-gnome or --disable-gnome was given.
7723 if test "${enable_gnome+set}" = set; then
7724 enableval="$enable_gnome"
7725 if test x$enable_gnome = xyes; then
7726 # look for gnome-config
7727 # Extract the first word of "gnome-config", so it can be a program name with args.
7728 set dummy gnome-config; ac_word=$2
7729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_word" >&5
7731 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7734 case "$GNOME_CONFIG" in
7736 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7739 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7744 for ac_dir in $ac_dummy; do
7745 test -z "$ac_dir" && ac_dir=.
7746 if test -f $ac_dir/$ac_word; then
7747 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7752 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7756 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7757 if test -n "$GNOME_CONFIG"; then
7758 echo "$ac_t""$GNOME_CONFIG" 1>&6
7760 echo "$ac_t""no" 1>&6
7763 if test -x ${GNOME_CONFIG}
7765 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7766 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7768 # now look for the gnome.h header
7769 saved_CPPFLAGS=$CPPFLAGS
7770 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7771 for ac_hdr in gnome.h
7773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_hdr" >&5
7776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7785 { (eval echo configure:7786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7787 if test -z "$ac_err"; then
7789 eval "ac_cv_header_$ac_safe=yes"
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7795 eval "ac_cv_header_$ac_safe=no"
7799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7802 cat >> confdefs.h <<EOF
7803 #define $ac_tr_hdr 1
7806 PLUGINS="${PLUGINS} gnome"
7807 ALIASES="${ALIASES} gnome-vlc"
7810 echo "$ac_t""no" 1>&6
7811 { echo "configure: error: Can't find gnome headers. Please install the gnome
7812 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7818 CPPFLAGS=$saved_CPPFLAGS
7823 # Check whether --enable-qt or --disable-qt was given.
7824 if test "${enable_qt+set}" = set; then
7825 enableval="$enable_qt"
7826 if test x$enable_qt = xyes; then
7827 PLUGINS="${PLUGINS} qt"
7828 ALIASES="${ALIASES} qvlc"
7829 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7830 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7831 if test -x ${QTDIR}/bin/moc
7833 MOC=${QTDIR}/bin/moc
7841 # Check whether --enable-kde or --disable-kde was given.
7842 if test "${enable_kde+set}" = set; then
7843 enableval="$enable_kde"
7844 if test x$enable_kde = xyes; then
7845 PLUGINS="${PLUGINS} kde"
7846 ALIASES="${ALIASES} kvlc"
7847 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7848 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7849 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7850 if test -x ${QTDIR}/bin/moc
7852 MOC=${QTDIR}/bin/moc
7860 # Check whether --enable-macosx or --disable-macosx was given.
7861 if test "${enable_macosx+set}" = set; then
7862 enableval="$enable_macosx"
7863 if test x$enable_macosx = xyes
7865 BUILTINS="${BUILTINS} macosx"
7866 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7867 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7871 for ac_hdr in Cocoa/Cocoa.h
7873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_hdr" >&5
7876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7885 { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7887 if test -z "$ac_err"; then
7889 eval "ac_cv_header_$ac_safe=yes"
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7895 eval "ac_cv_header_$ac_safe=no"
7899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_hdr 1
7905 BUILTINS="${BUILTINS} macosx"
7906 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7907 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7911 echo "$ac_t""no" 1>&6
7918 # Check whether --enable-qnx or --disable-qnx was given.
7919 if test "${enable_qnx+set}" = set; then
7920 enableval="$enable_qnx"
7924 if test x$enable_qnx != xno
7928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7930 echo "configure:7931: checking for $ac_hdr" >&5
7931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7934 cat > conftest.$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7940 { (eval echo configure:7941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7942 if test -z "$ac_err"; then
7944 eval "ac_cv_header_$ac_safe=yes"
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7950 eval "ac_cv_header_$ac_safe=no"
7954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7955 echo "$ac_t""yes" 1>&6
7956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7957 cat >> confdefs.h <<EOF
7958 #define $ac_tr_hdr 1
7961 PLUGINS="${PLUGINS} qnx"
7962 LIB_QNX="${LIB_QNX} -lasound -lph"
7965 echo "$ac_t""no" 1>&6
7971 # Check whether --enable-win32 or --disable-win32 was given.
7972 if test "${enable_win32+set}" = set; then
7973 enableval="$enable_win32"
7974 if test "x$enableval" != "xno"
7976 PLUGINS="${PLUGINS} win32"
7981 # Check whether --enable-ncurses or --disable-ncurses was given.
7982 if test "${enable_ncurses+set}" = set; then
7983 enableval="$enable_ncurses"
7984 if test x$enable_ncurses = xyes; then
7985 PLUGINS="${PLUGINS} ncurses"
7986 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7991 # Check whether --enable-lirc or --disable-lirc was given.
7992 if test "${enable_lirc+set}" = set; then
7993 enableval="$enable_lirc"
7997 if test x$enable_lirc = xyes
7999 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8000 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8001 echo "configure:8002: checking for lirc/lirc_client.h" >&5
8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 #include <lirc/lirc_client.h>
8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8013 if test -z "$ac_err"; then
8015 eval "ac_cv_header_$ac_safe=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 eval "ac_cv_header_$ac_safe=no"
8025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8028 echo "configure:8029: checking for lirc_init in -llirc_client" >&5
8029 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 ac_save_LIBS="$LIBS"
8034 LIBS="-llirc_client $LIBS"
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8049 eval "ac_cv_lib_$ac_lib_var=yes"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 eval "ac_cv_lib_$ac_lib_var=no"
8057 LIBS="$ac_save_LIBS"
8060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8064 echo "$ac_t""no" 1>&6
8069 echo "$ac_t""no" 1>&6
8073 if test x$have_lirc = xtrue
8075 PLUGINS="${PLUGINS} lirc"
8076 LIB_LIRC="${LIB_LIRC} -llirc_client"
8082 # Check whether --with- or --without- was given.
8083 if test "${with_+set}" = set; then
8089 # Check whether --with-words or --without-words was given.
8090 if test "${with_words+set}" = set; then
8091 withval="$with_words"
8097 ac_cv_c_bigendian=yes
8100 ac_cv_c_bigendian=no
8103 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8104 echo "configure:8105: checking whether the byte order is big-endian" >&5
8105 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 ac_cv_c_bigendian=unknown
8109 cat >conftest.c <<EOF
8110 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8111 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8112 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8113 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8114 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8115 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8116 int main(void) { _a(); _e(); return 0; }
8119 if test -f conftest.c
8121 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8122 && test -f conftest.o
8124 if test "`strings conftest.o | grep BIGenDianSyS`"
8126 ac_cv_c_bigendian=yes
8128 if test "`strings conftest.o | grep LiTTleEnDian`"
8130 ac_cv_c_bigendian=no
8137 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8138 if test x$ac_cv_c_bigendian = xunknown
8140 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8144 if test $ac_cv_c_bigendian = yes
8146 cat >> confdefs.h <<\EOF
8147 #define WORDS_BIGENDIAN 1
8153 # Check whether --with-dll-path or --without-dll-path was given.
8154 if test "${with_dll_path+set}" = set; then
8155 withval="$with_dll_path"
8156 if test "x$withval" != "xno"
8164 # Check whether --enable-gprof or --disable-gprof was given.
8165 if test "${enable_gprof+set}" = set; then
8166 enableval="$enable_gprof"
8167 if test x$enableval = xyes; then GPROF=1; fi
8172 # Check whether --enable-cprof or --disable-cprof was given.
8173 if test "${enable_cprof+set}" = set; then
8174 enableval="$enable_cprof"
8175 if test x$enableval = xyes;
8177 LIB="${LIB} -lcprof"
8184 # Check whether --enable-pth or --disable-pth was given.
8185 if test "${enable_pth+set}" = set; then
8186 enableval="$enable_pth"
8187 if test x$enableval = xyes; then
8188 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8189 echo "configure:8190: checking for pth_init in -lpth" >&5
8190 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8192 echo $ac_n "(cached) $ac_c" 1>&6
8194 ac_save_LIBS="$LIBS"
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 eval "ac_cv_lib_$ac_lib_var=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 eval "ac_cv_lib_$ac_lib_var=no"
8218 LIBS="$ac_save_LIBS"
8221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8225 cat >> confdefs.h <<EOF
8226 #define $ac_tr_lib 1
8232 echo "$ac_t""no" 1>&6
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8241 egrep "pth_init" >/dev/null 2>&1; then
8244 cat >> confdefs.h <<\EOF
8245 #define PTH_INIT_IN_PTH_H 1
8257 # Check whether --enable-st or --disable-st was given.
8258 if test "${enable_st+set}" = set; then
8259 enableval="$enable_st"
8260 if test x$enableval = xyes; then
8261 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8262 echo "configure:8263: checking for st_init in -lst" >&5
8263 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 ac_save_LIBS="$LIBS"
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 eval "ac_cv_lib_$ac_lib_var=yes"
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_lib_$ac_lib_var=no"
8291 LIBS="$ac_save_LIBS"
8294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8297 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8298 cat >> confdefs.h <<EOF
8299 #define $ac_tr_lib 1
8305 echo "$ac_t""no" 1>&6
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 egrep "st_init" >/dev/null 2>&1; then
8317 cat >> confdefs.h <<\EOF
8318 #define ST_INIT_IN_ST_H 1
8330 LIB="${LIB} ${THREAD_LIB}"
8332 # Check whether --enable-plugins or --disable-plugins was given.
8333 if test "${enable_plugins+set}" = set; then
8334 enableval="$enable_plugins"
8335 if test x$enable_plugins = xno
8337 BUILTINS="${BUILTINS} ${PLUGINS}"
8343 cat >> confdefs.h <<EOF
8344 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8347 cat >> confdefs.h <<EOF
8348 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8352 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8353 cat >> confdefs.h <<EOF
8354 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8357 cat >> confdefs.h <<EOF
8358 #define MODULE_SYMBOL $VLC_SYMBOL
8362 DATA_PATH="${ac_tool_prefix}/share/videolan"
8364 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8462 cat > confcache <<\EOF
8463 # This file is a shell script that caches the results of configure
8464 # tests run on this system so they can be shared between configure
8465 # scripts and configure runs. It is not useful on other systems.
8466 # If it contains results you don't want to keep, you may remove or edit it.
8468 # By default, configure uses ./config.cache as the cache file,
8469 # creating it if it does not exist already. You can give configure
8470 # the --cache-file=FILE option to use a different cache file; that is
8471 # what configure does when it calls configure scripts in
8472 # subdirectories, so they share the cache.
8473 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8474 # config.status only pays attention to the cache file if you give it the
8475 # --recheck option to rerun configure.
8478 # The following way of writing the cache mishandles newlines in values,
8479 # but we know of no workaround that is simple, portable, and efficient.
8480 # So, don't put newlines in cache variables' values.
8481 # Ultrix sh set writes to stderr and can't be redirected directly,
8482 # and sets the high bit in the cache file unless we assign to the vars.
8484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8486 # `set' does not quote correctly, so add quotes (double-quote substitution
8487 # turns \\\\ into \\, and sed turns \\ into \).
8489 -e "s/'/'\\\\''/g" \
8490 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8493 # `set' quotes correctly as required by POSIX, so do not add quotes.
8494 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8497 if cmp -s $cache_file confcache; then
8500 if test -w $cache_file; then
8501 echo "updating cache $cache_file"
8502 cat confcache > $cache_file
8504 echo "not updating unwritable cache $cache_file"
8509 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8512 # Let make expand exec_prefix.
8513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8515 # Any assignment to VPATH causes Sun make to only execute
8516 # the first set of double-colon rules, so remove it if not needed.
8517 # If there is a colon in the path, we need to keep it.
8518 if test "x$srcdir" = x.; then
8519 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8522 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8524 DEFS=-DHAVE_CONFIG_H
8526 # Without the "./", some shells look in PATH for config.status.
8527 : ${CONFIG_STATUS=./config.status}
8529 echo creating $CONFIG_STATUS
8530 rm -f $CONFIG_STATUS
8531 cat > $CONFIG_STATUS <<EOF
8533 # Generated automatically by configure.
8534 # Run this file to recreate the current configuration.
8535 # This directory was configured as follows,
8536 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8538 # $0 $ac_configure_args
8540 # Compiler output produced by configure, useful for debugging
8541 # configure, is in ./config.log if it exists.
8543 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8546 case "\$ac_option" in
8547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8548 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8549 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8550 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8551 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8553 -help | --help | --hel | --he | --h)
8554 echo "\$ac_cs_usage"; exit 0 ;;
8555 *) echo "\$ac_cs_usage"; exit 1 ;;
8559 ac_given_srcdir=$srcdir
8560 ac_given_INSTALL="$INSTALL"
8562 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8564 cat >> $CONFIG_STATUS <<EOF
8566 # Protect against being on the right side of a sed subst in config.status.
8567 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8568 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8572 s%@CFLAGS@%$CFLAGS%g
8573 s%@CPPFLAGS@%$CPPFLAGS%g
8574 s%@CXXFLAGS@%$CXXFLAGS%g
8575 s%@FFLAGS@%$FFLAGS%g
8577 s%@LDFLAGS@%$LDFLAGS%g
8579 s%@exec_prefix@%$exec_prefix%g
8580 s%@prefix@%$prefix%g
8581 s%@program_transform_name@%$program_transform_name%g
8582 s%@bindir@%$bindir%g
8583 s%@sbindir@%$sbindir%g
8584 s%@libexecdir@%$libexecdir%g
8585 s%@datadir@%$datadir%g
8586 s%@sysconfdir@%$sysconfdir%g
8587 s%@sharedstatedir@%$sharedstatedir%g
8588 s%@localstatedir@%$localstatedir%g
8589 s%@libdir@%$libdir%g
8590 s%@includedir@%$includedir%g
8591 s%@oldincludedir@%$oldincludedir%g
8592 s%@infodir@%$infodir%g
8593 s%@mandir@%$mandir%g
8595 s%@host_alias@%$host_alias%g
8596 s%@host_cpu@%$host_cpu%g
8597 s%@host_vendor@%$host_vendor%g
8598 s%@host_os@%$host_os%g
8599 s%@target@%$target%g
8600 s%@target_alias@%$target_alias%g
8601 s%@target_cpu@%$target_cpu%g
8602 s%@target_vendor@%$target_vendor%g
8603 s%@target_os@%$target_os%g
8605 s%@build_alias@%$build_alias%g
8606 s%@build_cpu@%$build_cpu%g
8607 s%@build_vendor@%$build_vendor%g
8608 s%@build_os@%$build_os%g
8609 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8610 s%@SET_MAKE@%$SET_MAKE%g
8613 s%@RANLIB@%$RANLIB%g
8614 s%@ALLOCA@%$ALLOCA%g
8615 s%@GLIBC21@%$GLIBC21%g
8616 s%@LIBICONV@%$LIBICONV%g
8617 s%@USE_NLS@%$USE_NLS%g
8618 s%@MSGFMT@%$MSGFMT%g
8619 s%@GMSGFMT@%$GMSGFMT%g
8620 s%@XGETTEXT@%$XGETTEXT%g
8621 s%@INTLBISON@%$INTLBISON%g
8622 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8623 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8624 s%@CATALOGS@%$CATALOGS%g
8625 s%@CATOBJEXT@%$CATOBJEXT%g
8626 s%@GMOFILES@%$GMOFILES%g
8627 s%@INTLLIBS@%$INTLLIBS%g
8628 s%@INTLOBJS@%$INTLOBJS%g
8629 s%@POFILES@%$POFILES%g
8631 s%@DATADIRNAME@%$DATADIRNAME%g
8632 s%@INSTOBJEXT@%$INSTOBJEXT%g
8633 s%@GENCAT@%$GENCAT%g
8634 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8635 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8637 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8638 s%@INSTALL_DATA@%$INSTALL_DATA%g
8639 s%@WINDRES@%$WINDRES%g
8640 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8641 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8642 s%@SDL_CONFIG@%$SDL_CONFIG%g
8643 s%@ESD_CONFIG@%$ESD_CONFIG%g
8644 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8645 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8646 s%@GTK_CONFIG@%$GTK_CONFIG%g
8647 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8648 s%@DATA_PATH@%$DATA_PATH%g
8649 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8652 s%@PLUGINS@%$PLUGINS%g
8653 s%@BUILTINS@%$BUILTINS%g
8654 s%@ALIASES@%$ALIASES%g
8655 s%@INCLUDE@%$INCLUDE%g
8660 s%@OPTIMS@%$OPTIMS%g
8661 s%@TUNING@%$TUNING%g
8662 s%@RELEASE@%$RELEASE%g
8664 s%@DLL_PATH@%$DLL_PATH%g
8665 s%@PACKAGE@%$PACKAGE%g
8666 s%@VERSION@%$VERSION%g
8667 s%@VCD_DEVICE@%$VCD_DEVICE%g
8668 s%@DVD_DEVICE@%$DVD_DEVICE%g
8669 s%@PLDFLAGS@%$PLDFLAGS%g
8670 s%@SOFLAGS@%$SOFLAGS%g
8672 s%@LIB_ALSA@%$LIB_ALSA%g
8673 s%@LIB_ARTS@%$LIB_ARTS%g
8674 s%@LIB_BEOS@%$LIB_BEOS%g
8675 s%@LIB_DARWIN@%$LIB_DARWIN%g
8676 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8677 s%@LIB_DSP@%$LIB_DSP%g
8678 s%@LIB_DVD@%$LIB_DVD%g
8679 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8680 s%@LIB_ESD@%$LIB_ESD%g
8681 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8682 s%@LIB_GGI@%$LIB_GGI%g
8683 s%@LIB_GLIDE@%$LIB_GLIDE%g
8684 s%@LIB_GNOME@%$LIB_GNOME%g
8685 s%@LIB_GTK@%$LIB_GTK%g
8686 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8687 s%@LIB_IMDCT@%$LIB_IMDCT%g
8688 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8689 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8690 s%@LIB_IPV4@%$LIB_IPV4%g
8691 s%@LIB_IPV6@%$LIB_IPV6%g
8692 s%@LIB_KDE@%$LIB_KDE%g
8693 s%@LIB_A52@%$LIB_A52%g
8694 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8695 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8696 s%@LIB_LIRC@%$LIB_LIRC%g
8697 s%@LIB_MACOSX@%$LIB_MACOSX%g
8698 s%@LIB_MAD@%$LIB_MAD%g
8699 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8700 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8701 s%@LIB_NCURSES@%$LIB_NCURSES%g
8702 s%@LIB_QNX@%$LIB_QNX%g
8703 s%@LIB_QT@%$LIB_QT%g
8704 s%@LIB_RC@%$LIB_RC%g
8705 s%@LIB_SDL@%$LIB_SDL%g
8706 s%@LIB_VCD@%$LIB_VCD%g
8707 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8708 s%@LIB_WIN32@%$LIB_WIN32%g
8709 s%@LIB_X11@%$LIB_X11%g
8710 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8711 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8712 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8713 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8714 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8715 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8716 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8717 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8718 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8719 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8720 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8721 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8722 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8723 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8724 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8725 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8726 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8727 s%@CFLAGS_QT@%$CFLAGS_QT%g
8728 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8729 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8730 s%@CFLAGS_X11@%$CFLAGS_X11%g
8731 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8732 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8733 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8734 s%@NEED_GETOPT@%$NEED_GETOPT%g
8735 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8740 cat >> $CONFIG_STATUS <<\EOF
8742 # Split the substitutions into bite-sized pieces for seds with
8743 # small command number limits, like on Digital OSF/1 and HP-UX.
8744 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8745 ac_file=1 # Number of current file.
8746 ac_beg=1 # First line for current file.
8747 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8750 while $ac_more_lines; do
8751 if test $ac_beg -gt 1; then
8752 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8754 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8756 if test ! -s conftest.s$ac_file; then
8758 rm -f conftest.s$ac_file
8760 if test -z "$ac_sed_cmds"; then
8761 ac_sed_cmds="sed -f conftest.s$ac_file"
8763 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8765 ac_file=`expr $ac_file + 1`
8767 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8770 if test -z "$ac_sed_cmds"; then
8775 cat >> $CONFIG_STATUS <<EOF
8777 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8779 cat >> $CONFIG_STATUS <<\EOF
8780 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8783 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8784 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8785 *) ac_file_in="${ac_file}.in" ;;
8788 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8790 # Remove last slash and all that follows it. Not all systems have dirname.
8791 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8792 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8793 # The file is in a subdirectory.
8794 test ! -d "$ac_dir" && mkdir "$ac_dir"
8795 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8796 # A "../" for each directory in $ac_dir_suffix.
8797 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8799 ac_dir_suffix= ac_dots=
8802 case "$ac_given_srcdir" in
8804 if test -z "$ac_dots"; then top_srcdir=.
8805 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8806 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8808 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8809 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8812 case "$ac_given_INSTALL" in
8813 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8814 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8817 echo creating "$ac_file"
8819 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8821 *Makefile*) ac_comsub="1i\\
8822 # $configure_input" ;;
8826 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8828 s%@configure_input@%$configure_input%g
8829 s%@srcdir@%$srcdir%g
8830 s%@top_srcdir@%$top_srcdir%g
8831 s%@INSTALL@%$INSTALL%g
8832 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8836 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8837 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8839 # ac_d sets the value in "#define NAME VALUE" lines.
8840 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8841 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8844 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8845 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8846 ac_uB='\([ ]\)%\1#\2define\3'
8849 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8850 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8851 ac_eB='$%\1#\2define\3'
8855 if test "${CONFIG_HEADERS+set}" != set; then
8857 cat >> $CONFIG_STATUS <<EOF
8858 CONFIG_HEADERS="include/defs.h"
8860 cat >> $CONFIG_STATUS <<\EOF
8862 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8865 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8866 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8867 *) ac_file_in="${ac_file}.in" ;;
8870 echo creating $ac_file
8872 rm -f conftest.frag conftest.in conftest.out
8873 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8874 cat $ac_file_inputs > conftest.in
8878 # Transform confdefs.h into a sed script conftest.vals that substitutes
8879 # the proper values into config.h.in to produce config.h. And first:
8880 # Protect against being on the right side of a sed subst in config.status.
8881 # Protect against being in an unquoted here document in config.status.
8883 cat > conftest.hdr <<\EOF
8886 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8890 sed -n -f conftest.hdr confdefs.h > conftest.vals
8893 # This sed command replaces #undef with comments. This is necessary, for
8894 # example, in the case of _POSIX_SOURCE, which is predefined and required
8895 # on some systems where configure will not decide to define it.
8896 cat >> conftest.vals <<\EOF
8897 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8900 # Break up conftest.vals because some shells have a limit on
8901 # the size of here documents, and old seds have small limits too.
8906 ac_lines=`grep -c . conftest.vals`
8907 # grep -c gives empty output for an empty file on some AIX systems.
8908 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8909 # Write a limited-size here document to conftest.frag.
8910 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8911 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8913 sed -f conftest.frag conftest.in > conftest.out
8915 mv conftest.out conftest.in
8917 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8919 mv conftest.tail conftest.vals
8923 cat >> $CONFIG_STATUS <<\EOF
8924 rm -f conftest.frag conftest.h
8925 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8926 cat conftest.in >> conftest.h
8928 if cmp -s $ac_file conftest.h 2>/dev/null; then
8929 echo "$ac_file is unchanged"
8932 # Remove last slash and all that follows it. Not all systems have dirname.
8933 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8934 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8935 # The file is in a subdirectory.
8936 test ! -d "$ac_dir" && mkdir "$ac_dir"
8939 mv conftest.h $ac_file
8944 cat >> $CONFIG_STATUS <<EOF
8948 cat >> $CONFIG_STATUS <<\EOF
8949 for ac_file in $CONFIG_FILES; do
8950 # Support "outfile[:infile[:infile...]]"
8952 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8954 # PO directories have a Makefile.in generated from Makefile.in.in.
8955 case "$ac_file" in */Makefile.in)
8956 # Adjust a relative srcdir.
8957 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8958 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8959 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8960 # In autoconf-2.13 it is called $ac_given_srcdir.
8961 # In autoconf-2.50 it is called $srcdir.
8962 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8963 case "$ac_given_srcdir" in
8964 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8965 /*) top_srcdir="$ac_given_srcdir" ;;
8966 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8968 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8969 rm -f "$ac_dir/POTFILES"
8970 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8971 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8972 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8973 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8981 chmod +x $CONFIG_STATUS
8982 rm -fr confdefs* $ac_clean_files
8983 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8987 global configuration
8988 --------------------
8990 architecture : ${ARCH}
8991 optimizations : ${OPTIMS}
8993 release: : ${RELEASE}"
8995 if test x${HAVE_VLC} = x1
9000 vlc version : ${VLC_VERSION}
9001 debug mode : ${DEBUG}
9002 cprof/gprof support : ${CPROF}/${GPROF}
9003 need builtin getopt : ${NEED_GETOPT}
9004 built-in modules :${BUILTINS}
9005 plug-in modules :${PLUGINS}
9006 vlc aliases :${ALIASES}"
9010 libdvdcss configuration
9011 -----------------------
9012 can be built : ${CAN_BUILD_LIBDVDCSS}
9013 will be built : ${NEED_LIBDVDCSS}"
9014 if test x${NEED_LIBDVDCSS} = x1
9016 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
9017 echo "link statically : ${STATIC_LIBDVDCSS}"
9019 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9023 You may now tune Makefile.opts at your convenience, for instance to choose
9024 which modules get compiled as plugins.
9026 if test x${HAVE_VLC} = x1
9028 echo "To build vlc and its plugins, type \`make'."
9030 if test x${NEED_LIBDVDCSS} = x1
9032 echo "To build libdvdcss only, type \`make libdvdcss'."