3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-trace Enable trace mode (default disabled)"
34 --enable-gprof Enable gprof profiling (default disabled)"
36 --enable-cprof Enable cprof profiling (default disabled)"
38 --disable-optimizations Disable compiler optimizations (default enabled)"
40 --enable-pth Enable GNU Pth support (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --with-dvdread[=name] way to use libdvdread,
48 same options as --with-dvdcss (default no)"
50 --enable-vcd VCD support for Linux (default enabled)"
52 --disable-dummy dummy module (default enabled)"
54 --disable-null Null module (default enabled)"
56 --disable-rc Remote Control module (default enabled)"
58 --with-mad[=PATH] libmad module (default disabled)"
60 --disable-dsp Linux /dev/dsp support (default enabled)"
62 --enable-esd Esound library support (default disabled)"
64 --enable-arts aRts sound server (default disabled)"
66 --enable-macosx MacOS X support (default enabled on MacOS X)"
68 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
70 --disable-liba52 AC3 support with liba52 (default enabled)"
72 --enable-fb Linux framebuffer support (default disabled)"
74 --enable-mga Linux kernel Matrox support (default disabled)"
76 --with-ggi[=name] GGI support (default disabled)"
78 --disable-sdl SDL support (default enabled)"
80 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
82 --disable-directx Win32 DirectX support (default enabled on Win32)"
84 --with-directx-path=path Win32 DirectX headers and libraries"
86 --disable-waveout Win32 waveOut module (default enabled on Win32)"
88 --enable-win32 Win32 interface support (default disabled)"
90 --with-glide[=name] Glide (3dfx) support (default disabled)"
92 --enable-ncurses ncurses interface support (default disabled)"
94 --enable-qt Qt interface support (default disabled)"
96 --enable-kde KDE interface support (default disabled)"
98 --enable-gnome Gnome interface support (default disabled)"
100 --disable-gtk Gtk+ support (default enabled)"
102 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
104 --disable-x11 X11 support (default enabled)"
106 --disable-xvideo XVideo support (default enabled)"
108 --enable-alsa Alsa sound drivers support (Only for linux)
111 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
113 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
115 # Initialize some variables set by options.
116 # The variables have the same names as the options, with
117 # dashes changed to underlines.
119 cache_file=./config.cache
128 program_transform_name=s,x,x,
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datadir='${prefix}/share'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${prefix}/info'
147 mandir='${prefix}/man'
149 # Initialize some other variables.
152 SHELL=${CONFIG_SHELL-/bin/sh}
153 # Maximum number of lines to put in a shell here document.
160 # If the previous option needs an argument, assign it.
161 if test -n "$ac_prev"; then
162 eval "$ac_prev=\$ac_option"
168 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
172 # Accept the important Cygnus configure options, so we can diagnose typos.
176 -bindir | --bindir | --bindi | --bind | --bin | --bi)
178 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
179 bindir="$ac_optarg" ;;
181 -build | --build | --buil | --bui | --bu)
183 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
184 build="$ac_optarg" ;;
186 -cache-file | --cache-file | --cache-fil | --cache-fi \
187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
188 ac_prev=cache_file ;;
189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
191 cache_file="$ac_optarg" ;;
193 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
195 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
197 datadir="$ac_optarg" ;;
199 -disable-* | --disable-*)
200 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}=no" ;;
208 -enable-* | --enable-*)
209 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
210 # Reject names that are not valid shell variable names.
211 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
212 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
214 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
219 eval "enable_${ac_feature}='$ac_optarg'" ;;
221 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
222 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
223 | --exec | --exe | --ex)
224 ac_prev=exec_prefix ;;
225 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
226 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
227 | --exec=* | --exe=* | --ex=*)
228 exec_prefix="$ac_optarg" ;;
230 -gas | --gas | --ga | --g)
231 # Obsolete; use --with-gas.
234 -help | --help | --hel | --he)
235 # Omit some internal or obsolete options to make the list less imposing.
236 # This message is too long to be a string in the A/UX 3.1 sh.
238 Usage: configure [options] [host]
239 Options: [defaults in brackets after descriptions]
241 --cache-file=FILE cache test results in FILE
242 --help print this message
243 --no-create do not create output files
244 --quiet, --silent do not print \`checking...' messages
245 --version print the version of autoconf that created configure
246 Directory and file names:
247 --prefix=PREFIX install architecture-independent files in PREFIX
249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
251 --bindir=DIR user executables in DIR [EPREFIX/bin]
252 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
253 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
254 --datadir=DIR read-only architecture-independent data in DIR
256 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
257 --sharedstatedir=DIR modifiable architecture-independent data in DIR
259 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
260 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
261 --includedir=DIR C header files in DIR [PREFIX/include]
262 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
263 --infodir=DIR info documentation in DIR [PREFIX/info]
264 --mandir=DIR man documentation in DIR [PREFIX/man]
265 --srcdir=DIR find the sources in DIR [configure dir or ..]
266 --program-prefix=PREFIX prepend PREFIX to installed program names
267 --program-suffix=SUFFIX append SUFFIX to installed program names
268 --program-transform-name=PROGRAM
269 run sed PROGRAM on installed program names
273 --build=BUILD configure for building on BUILD [BUILD=HOST]
274 --host=HOST configure for HOST [guessed]
275 --target=TARGET configure for TARGET [TARGET=HOST]
276 Features and packages:
277 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
278 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
279 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
280 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
281 --x-includes=DIR X include files are in DIR
282 --x-libraries=DIR X library files are in DIR
284 if test -n "$ac_help"; then
285 echo "--enable and --with options recognized:$ac_help"
289 -host | --host | --hos | --ho)
291 -host=* | --host=* | --hos=* | --ho=*)
294 -includedir | --includedir | --includedi | --included | --include \
295 | --includ | --inclu | --incl | --inc)
296 ac_prev=includedir ;;
297 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
298 | --includ=* | --inclu=* | --incl=* | --inc=*)
299 includedir="$ac_optarg" ;;
301 -infodir | --infodir | --infodi | --infod | --info | --inf)
303 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
304 infodir="$ac_optarg" ;;
306 -libdir | --libdir | --libdi | --libd)
308 -libdir=* | --libdir=* | --libdi=* | --libd=*)
309 libdir="$ac_optarg" ;;
311 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
312 | --libexe | --libex | --libe)
313 ac_prev=libexecdir ;;
314 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
315 | --libexe=* | --libex=* | --libe=*)
316 libexecdir="$ac_optarg" ;;
318 -localstatedir | --localstatedir | --localstatedi | --localstated \
319 | --localstate | --localstat | --localsta | --localst \
320 | --locals | --local | --loca | --loc | --lo)
321 ac_prev=localstatedir ;;
322 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
323 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
324 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
325 localstatedir="$ac_optarg" ;;
327 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
329 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
330 mandir="$ac_optarg" ;;
333 # Obsolete; use --without-fp.
336 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
340 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
341 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
344 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
345 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
346 | --oldin | --oldi | --old | --ol | --o)
347 ac_prev=oldincludedir ;;
348 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
349 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
350 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
351 oldincludedir="$ac_optarg" ;;
353 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
355 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
356 prefix="$ac_optarg" ;;
358 -program-prefix | --program-prefix | --program-prefi | --program-pref \
359 | --program-pre | --program-pr | --program-p)
360 ac_prev=program_prefix ;;
361 -program-prefix=* | --program-prefix=* | --program-prefi=* \
362 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
363 program_prefix="$ac_optarg" ;;
365 -program-suffix | --program-suffix | --program-suffi | --program-suff \
366 | --program-suf | --program-su | --program-s)
367 ac_prev=program_suffix ;;
368 -program-suffix=* | --program-suffix=* | --program-suffi=* \
369 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
370 program_suffix="$ac_optarg" ;;
372 -program-transform-name | --program-transform-name \
373 | --program-transform-nam | --program-transform-na \
374 | --program-transform-n | --program-transform- \
375 | --program-transform | --program-transfor \
376 | --program-transfo | --program-transf \
377 | --program-trans | --program-tran \
378 | --progr-tra | --program-tr | --program-t)
379 ac_prev=program_transform_name ;;
380 -program-transform-name=* | --program-transform-name=* \
381 | --program-transform-nam=* | --program-transform-na=* \
382 | --program-transform-n=* | --program-transform-=* \
383 | --program-transform=* | --program-transfor=* \
384 | --program-transfo=* | --program-transf=* \
385 | --program-trans=* | --program-tran=* \
386 | --progr-tra=* | --program-tr=* | --program-t=*)
387 program_transform_name="$ac_optarg" ;;
389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
390 | -silent | --silent | --silen | --sile | --sil)
393 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
395 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
397 sbindir="$ac_optarg" ;;
399 -sharedstatedir | --sharedstatedir | --sharedstatedi \
400 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
401 | --sharedst | --shareds | --shared | --share | --shar \
403 ac_prev=sharedstatedir ;;
404 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
405 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
406 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
408 sharedstatedir="$ac_optarg" ;;
410 -site | --site | --sit)
412 -site=* | --site=* | --sit=*)
415 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
417 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
418 srcdir="$ac_optarg" ;;
420 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
421 | --syscon | --sysco | --sysc | --sys | --sy)
422 ac_prev=sysconfdir ;;
423 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
424 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
425 sysconfdir="$ac_optarg" ;;
427 -target | --target | --targe | --targ | --tar | --ta | --t)
429 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
430 target="$ac_optarg" ;;
432 -v | -verbose | --verbose | --verbos | --verbo | --verb)
435 -version | --version | --versio | --versi | --vers)
436 echo "configure generated by autoconf version 2.13"
440 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}='$ac_optarg'" ;;
452 -without-* | --without-*)
453 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
454 # Reject names that are not valid shell variable names.
455 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
456 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
458 ac_package=`echo $ac_package| sed 's/-/_/g'`
459 eval "with_${ac_package}=no" ;;
462 # Obsolete; use --with-x.
465 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
466 | --x-incl | --x-inc | --x-in | --x-i)
467 ac_prev=x_includes ;;
468 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
469 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
470 x_includes="$ac_optarg" ;;
472 -x-libraries | --x-libraries | --x-librarie | --x-librari \
473 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
474 ac_prev=x_libraries ;;
475 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
476 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
477 x_libraries="$ac_optarg" ;;
479 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
483 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
484 echo "configure: warning: $ac_option: invalid host type" 1>&2
486 if test "x$nonopt" != xNONE; then
487 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
495 if test -n "$ac_prev"; then
496 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
499 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
501 # File descriptor usage:
504 # 2 errors and warnings
505 # 3 some systems may open it to /dev/tty
506 # 4 used on the Kubota Titan
507 # 6 checking for... messages and results
508 # 5 compiler messages saved in config.log
509 if test "$silent" = yes; then
517 This file contains any messages produced by compilers while
518 running configure, to aid debugging if configure makes a mistake.
521 # Strip out --no-create and --no-recursion so they do not pile up.
522 # Also quote any args containing shell metacharacters.
527 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
528 | --no-cr | --no-c) ;;
529 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
530 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
531 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
532 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
533 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538 # Only set these to C if already set. These must not be set unconditionally
539 # because not all systems understand e.g. LANG=C (notably SCO).
540 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
541 # Non-C LC_CTYPE values break the ctype check.
542 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
543 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
544 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
545 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
548 rm -rf conftest* confdefs.h
549 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
552 # A filename unique to this package, relative to the directory that
553 # configure is in, which we can look for to find out if srcdir is correct.
554 ac_unique_file=include/main.h
556 # Find the source files, if location was not specified.
557 if test -z "$srcdir"; then
558 ac_srcdir_defaulted=yes
559 # Try the directory containing this script, then its parent.
561 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
562 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
564 if test ! -r $srcdir/$ac_unique_file; then
568 ac_srcdir_defaulted=no
570 if test ! -r $srcdir/$ac_unique_file; then
571 if test "$ac_srcdir_defaulted" = yes; then
572 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
574 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
577 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
579 # Prefer explicitly selected file to automatically selected ones.
580 if test -z "$CONFIG_SITE"; then
581 if test "x$prefix" != xNONE; then
582 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
584 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
587 for ac_site_file in $CONFIG_SITE; do
588 if test -r "$ac_site_file"; then
589 echo "loading site script $ac_site_file"
594 if test -r "$cache_file"; then
595 echo "loading cache $cache_file"
598 echo "creating cache $cache_file"
603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
604 ac_cpp='$CPP $CPPFLAGS'
605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
607 cross_compiling=$ac_cv_prog_cc_cross
611 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
612 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
613 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='\c' ac_t=
627 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
628 if test -f $ac_dir/install-sh; then
630 ac_install_sh="$ac_aux_dir/install-sh -c"
632 elif test -f $ac_dir/install.sh; then
634 ac_install_sh="$ac_aux_dir/install.sh -c"
638 if test -z "$ac_aux_dir"; then
639 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
641 ac_config_guess=$ac_aux_dir/config.guess
642 ac_config_sub=$ac_aux_dir/config.sub
643 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646 # Do some error checking and defaulting for the host and target type.
648 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
651 # 1. You are not allowed to specify --host, --target, and nonopt at the
653 # 2. Host defaults to nonopt.
654 # 3. If nonopt is not specified, then host defaults to the current host,
655 # as determined by config.guess.
656 # 4. Target and build default to nonopt.
657 # 5. If nonopt is not specified, then target and build default to host.
659 # The aliases save the names the user supplied, while $host etc.
660 # will get canonicalized.
661 case $host---$target---$nonopt in
662 NONE---*---* | *---NONE---* | *---*---NONE) ;;
663 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
667 # Make sure we can run config.sub.
668 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
669 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
672 echo $ac_n "checking host system type""... $ac_c" 1>&6
673 echo "configure:674: checking host system type" >&5
676 case "$host_alias" in
680 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
681 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
683 *) host_alias=$nonopt ;;
687 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
688 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$host" 1>&6
693 echo $ac_n "checking target system type""... $ac_c" 1>&6
694 echo "configure:695: checking target system type" >&5
697 case "$target_alias" in
700 NONE) target_alias=$host_alias ;;
701 *) target_alias=$nonopt ;;
705 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
706 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$target" 1>&6
711 echo $ac_n "checking build system type""... $ac_c" 1>&6
712 echo "configure:713: checking build system type" >&5
715 case "$build_alias" in
718 NONE) build_alias=$host_alias ;;
719 *) build_alias=$nonopt ;;
723 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
724 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$build" 1>&6
729 test "$host_alias" != "$target_alias" &&
730 test "$program_prefix$program_suffix$program_transform_name" = \
732 program_prefix=${target_alias}-
736 if test -r src/interface/main.c; then
738 VLC_VERSION="0.2.92-dev"
743 if test -r extras/libdvdcss/libdvdcss.c; then
745 LIBDVDCSS_VERSION="1.0.1-dev"
747 if test -r extras/libdvdcss/csskeys.h; then
748 cat >> confdefs.h <<\EOF
749 #define HAVE_CSSKEYS 1
755 save_CFLAGS="${CFLAGS}"
756 save_LDFLAGS="${LDFLAGS}"
758 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
759 echo "configure:760: checking whether ${MAKE-make} sets \${MAKE}" >&5
760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
761 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 cat > conftestmake <<\EOF
766 @echo 'ac_maketemp="${MAKE}"'
768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
769 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
770 if test -n "$ac_maketemp"; then
771 eval ac_cv_prog_make_${ac_make}_set=yes
773 eval ac_cv_prog_make_${ac_make}_set=no
777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
778 echo "$ac_t""yes" 1>&6
781 echo "$ac_t""no" 1>&6
782 SET_MAKE="MAKE=${MAKE-make}"
785 # Extract the first word of "gcc", so it can be a program name with args.
786 set dummy gcc; ac_word=$2
787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788 echo "configure:789: checking for $ac_word" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 if test -n "$CC"; then
793 ac_cv_prog_CC="$CC" # Let the user override the test.
795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
797 for ac_dir in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir=.
799 if test -f $ac_dir/$ac_word; then
808 if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
811 echo "$ac_t""no" 1>&6
814 if test -z "$CC"; then
815 # Extract the first word of "cc", so it can be a program name with args.
816 set dummy cc; ac_word=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
828 for ac_dir in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
831 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
840 if test $ac_prog_rejected = yes; then
841 # We found a bogon in the path, so make sure we never use it.
842 set dummy $ac_cv_prog_CC
844 if test $# -gt 0; then
845 # We chose a different compiler from the bogus one.
846 # However, it has the same basename, so the bogon will be chosen
847 # first if we set CC to just the basename; use the full file name.
849 set dummy "$ac_dir/$ac_word" "$@"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 if test -z "$CC"; then
866 # Extract the first word of "cl", so it can be a program name with args.
867 set dummy cl; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878 for ac_dir in $ac_dummy; do
879 test -z "$ac_dir" && ac_dir=.
880 if test -f $ac_dir/$ac_word; then
889 if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
892 echo "$ac_t""no" 1>&6
897 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905 ac_cpp='$CPP $CPPFLAGS'
906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908 cross_compiling=$ac_cv_prog_cc_cross
910 cat > conftest.$ac_ext << EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
918 ac_cv_prog_cc_works=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (./conftest; exit) 2>/dev/null; then
921 ac_cv_prog_cc_cross=no
923 ac_cv_prog_cc_cross=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 ac_cv_prog_cc_works=no
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp='$CPP $CPPFLAGS'
934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling=$ac_cv_prog_cc_cross
938 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
939 if test $ac_cv_prog_cc_works = no; then
940 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
943 echo "configure:944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
944 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
945 cross_compiling=$ac_cv_prog_cc_cross
947 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
948 echo "configure:949: checking whether we are using GNU C" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 cat > conftest.c <<EOF
957 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
964 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
966 if test $ac_cv_prog_gcc = yes; then
972 ac_test_CFLAGS="${CFLAGS+set}"
973 ac_save_CFLAGS="$CFLAGS"
975 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
990 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991 if test "$ac_test_CFLAGS" = set; then
992 CFLAGS="$ac_save_CFLAGS"
993 elif test $ac_cv_prog_cc_g = yes; then
994 if test "$GCC" = yes; then
1000 if test "$GCC" = yes; then
1007 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1008 echo "configure:1009: checking how to run the C preprocessor" >&5
1009 # On Suns, sometimes $CPP names a directory.
1010 if test -n "$CPP" && test -d "$CPP"; then
1013 if test -z "$CPP"; then
1014 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 # This must be in double quotes, not single quotes, because CPP may get
1018 # substituted into the Makefile and "${CC-cc}" will confuse make.
1020 # On the NeXT, cc -E runs the code through the compiler's parser,
1021 # not just through cpp.
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1029 { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1031 if test -z "$ac_err"; then
1035 echo "configure: failed program was:" >&5
1036 cat conftest.$ac_ext >&5
1038 CPP="${CC-cc} -E -traditional-cpp"
1039 cat > conftest.$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1046 { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1048 if test -z "$ac_err"; then
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1055 CPP="${CC-cc} -nologo -E"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1063 { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1065 if test -z "$ac_err"; then
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1079 ac_cv_prog_CPP="$CPP"
1081 CPP="$ac_cv_prog_CPP"
1083 ac_cv_prog_CPP="$CPP"
1085 echo "$ac_t""$CPP" 1>&6
1088 if test $host != $build; then
1089 ac_tool_prefix=${host_alias}-
1094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097 echo "configure:1098: checking for $ac_word" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 if test -n "$RANLIB"; then
1102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1116 RANLIB="$ac_cv_prog_RANLIB"
1117 if test -n "$RANLIB"; then
1118 echo "$ac_t""$RANLIB" 1>&6
1120 echo "$ac_t""no" 1>&6
1124 if test -z "$ac_cv_prog_RANLIB"; then
1125 if test -n "$ac_tool_prefix"; then
1126 # Extract the first word of "ranlib", so it can be a program name with args.
1127 set dummy ranlib; ac_word=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 if test -n "$RANLIB"; then
1134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1138 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1141 ac_cv_prog_RANLIB="ranlib"
1146 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1149 RANLIB="$ac_cv_prog_RANLIB"
1150 if test -n "$RANLIB"; then
1151 echo "$ac_t""$RANLIB" 1>&6
1153 echo "$ac_t""no" 1>&6
1162 ALL_LINGUAS="de fr ru"
1164 cat >> confdefs.h <<EOF
1165 #define PACKAGE "vlc"
1168 cat >> confdefs.h <<EOF
1169 #define VERSION "$VLC_VERSION"
1172 # Extract the first word of "ranlib", so it can be a program name with args.
1173 set dummy ranlib; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 if test -n "$RANLIB"; then
1180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_RANLIB="ranlib"
1192 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1195 RANLIB="$ac_cv_prog_RANLIB"
1196 if test -n "$RANLIB"; then
1197 echo "$ac_t""$RANLIB" 1>&6
1199 echo "$ac_t""no" 1>&6
1203 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1204 echo "configure:1205: checking for strerror in -lcposix" >&5
1205 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 ac_save_LIBS="$LIBS"
1210 LIBS="-lcposix $LIBS"
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1223 if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1225 eval "ac_cv_lib_$ac_lib_var=yes"
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1230 eval "ac_cv_lib_$ac_lib_var=no"
1233 LIBS="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 LIBS="$LIBS -lcposix"
1240 echo "$ac_t""no" 1>&6
1245 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1246 echo "configure:1247: checking for ANSI C header files" >&5
1247 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259 { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1261 if test -z "$ac_err"; then
1263 ac_cv_header_stdc=yes
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1269 ac_cv_header_stdc=no
1273 if test $ac_cv_header_stdc = yes; then
1274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1281 egrep "memchr" >/dev/null 2>&1; then
1285 ac_cv_header_stdc=no
1291 if test $ac_cv_header_stdc = yes; then
1292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1299 egrep "free" >/dev/null 2>&1; then
1303 ac_cv_header_stdc=no
1309 if test $ac_cv_header_stdc = yes; then
1310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1311 if test "$cross_compiling" = yes; then
1314 cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1318 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1319 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1321 int main () { int i; for (i = 0; i < 256; i++)
1322 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1333 ac_cv_header_stdc=no
1341 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1342 if test $ac_cv_header_stdc = yes; then
1343 cat >> confdefs.h <<\EOF
1344 #define STDC_HEADERS 1
1349 echo $ac_n "checking for working const""... $ac_c" 1>&6
1350 echo "configure:1351: checking for working const" >&5
1351 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1360 /* Ultrix mips cc rejects this. */
1361 typedef int charset[2]; const charset x;
1362 /* SunOS 4.1.1 cc rejects this. */
1363 char const *const *ccp;
1365 /* NEC SVR4.0.2 mips cc rejects this. */
1366 struct point {int x, y;};
1367 static struct point const zero = {0,0};
1368 /* AIX XL C 1.02.0.0 rejects this.
1369 It does not let you subtract one const X* pointer from another in an arm
1370 of an if-expression whose if-part is not a constant expression */
1371 const char *g = "string";
1372 ccp = &g + (g ? g-g : 0);
1373 /* HPUX 7.0 cc rejects these. */
1376 ccp = (char const *const *) p;
1377 { /* SCO 3.2v4 cc rejects this. */
1379 char const *s = 0 ? (char *) 0 : (char const *) 0;
1383 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1385 const int *foo = &x[0];
1388 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1389 typedef const int *iptr;
1393 { /* AIX XL C 1.02.0.0 rejects this saying
1394 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1395 struct s { int j; const int *ap[3]; };
1396 struct s *b; b->j = 5;
1398 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1404 if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1416 echo "$ac_t""$ac_cv_c_const" 1>&6
1417 if test $ac_cv_c_const = no; then
1418 cat >> confdefs.h <<\EOF
1424 echo $ac_n "checking for inline""... $ac_c" 1>&6
1425 echo "configure:1426: checking for inline" >&5
1426 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1430 for ac_kw in inline __inline__ __inline; do
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1439 if { (eval echo configure:1440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1441 ac_cv_c_inline=$ac_kw; break
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1451 echo "$ac_t""$ac_cv_c_inline" 1>&6
1452 case "$ac_cv_c_inline" in
1454 no) cat >> confdefs.h <<\EOF
1458 *) cat >> confdefs.h <<EOF
1459 #define inline $ac_cv_c_inline
1464 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1465 echo "configure:1466: checking for off_t" >&5
1466 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 #include <sys/types.h>
1478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1479 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1481 ac_cv_type_off_t=yes
1489 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1490 if test $ac_cv_type_off_t = no; then
1491 cat >> confdefs.h <<\EOF
1497 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1498 echo "configure:1499: checking for size_t" >&5
1499 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <sys/types.h>
1511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1512 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1514 ac_cv_type_size_t=yes
1517 ac_cv_type_size_t=no
1522 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1523 if test $ac_cv_type_size_t = no; then
1524 cat >> confdefs.h <<\EOF
1525 #define size_t unsigned
1530 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1531 # for constant arguments. Useless!
1532 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1533 echo "configure:1534: checking for working alloca.h" >&5
1534 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1542 char *p = alloca(2 * sizeof(int));
1545 if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1547 ac_cv_header_alloca_h=yes
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 ac_cv_header_alloca_h=no
1557 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1558 if test $ac_cv_header_alloca_h = yes; then
1559 cat >> confdefs.h <<\EOF
1560 #define HAVE_ALLOCA_H 1
1565 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1566 echo "configure:1567: checking for alloca" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1575 # define alloca __builtin_alloca
1578 # include <malloc.h>
1579 # define alloca _alloca
1582 # include <alloca.h>
1587 # ifndef alloca /* predefined by HP cc +Olibcalls */
1596 char *p = (char *) alloca(1);
1599 if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1601 ac_cv_func_alloca_works=yes
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1606 ac_cv_func_alloca_works=no
1611 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1612 if test $ac_cv_func_alloca_works = yes; then
1613 cat >> confdefs.h <<\EOF
1614 #define HAVE_ALLOCA 1
1619 if test $ac_cv_func_alloca_works = no; then
1620 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1621 # that cause trouble. Some versions do not even contain alloca or
1622 # contain a buggy version. If you still want to use their alloca,
1623 # use ar to extract alloca.o from them instead of compiling alloca.c.
1624 ALLOCA=alloca.${ac_objext}
1625 cat >> confdefs.h <<\EOF
1630 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1631 echo "configure:1632: checking whether alloca needs Cray hooks" >&5
1632 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 #if defined(CRAY) && ! defined(CRAY2)
1645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1646 egrep "webecray" >/dev/null 2>&1; then
1657 echo "$ac_t""$ac_cv_os_cray" 1>&6
1658 if test $ac_cv_os_cray = yes; then
1659 for ac_func in _getb67 GETB67 getb67; do
1660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_func" >&5
1662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 /* System header to define __stub macros and hopefully few prototypes,
1669 which can conflict with char $ac_func(); below. */
1671 /* Override any gcc2 internal prototype to avoid an error. */
1672 /* We use char because int might match the return type of a gcc2
1673 builtin and then its argument prototype would still apply. */
1678 /* The GNU C library defines this for functions which it implements
1679 to always fail with ENOSYS. Some functions are actually named
1680 something starting with __ and the normal name is an alias. */
1681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1689 if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1691 eval "ac_cv_func_$ac_func=yes"
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1696 eval "ac_cv_func_$ac_func=no"
1701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 cat >> confdefs.h <<EOF
1704 #define CRAY_STACKSEG_END $ac_func
1709 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1716 echo "configure:1717: checking stack direction for C alloca" >&5
1717 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 if test "$cross_compiling" = yes; then
1721 ac_cv_c_stack_direction=0
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 find_stack_direction ()
1728 static char *addr = 0;
1733 return find_stack_direction ();
1736 return (&dummy > addr) ? 1 : -1;
1740 exit (find_stack_direction() < 0);
1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1745 ac_cv_c_stack_direction=1
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1750 ac_cv_c_stack_direction=-1
1757 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1758 cat >> confdefs.h <<EOF
1759 #define STACK_DIRECTION $ac_cv_c_stack_direction
1764 for ac_hdr in unistd.h
1766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_hdr" >&5
1769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1778 { (eval echo configure:1779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1780 if test -z "$ac_err"; then
1782 eval "ac_cv_header_$ac_safe=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_header_$ac_safe=no"
1792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1795 cat >> confdefs.h <<EOF
1796 #define $ac_tr_hdr 1
1800 echo "$ac_t""no" 1>&6
1804 for ac_func in getpagesize
1806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_func" >&5
1808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $ac_func(); below. */
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837 eval "ac_cv_func_$ac_func=yes"
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 eval "ac_cv_func_$ac_func=no"
1847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1850 cat >> confdefs.h <<EOF
1851 #define $ac_tr_func 1
1855 echo "$ac_t""no" 1>&6
1859 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1860 echo "configure:1861: checking for working mmap" >&5
1861 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 if test "$cross_compiling" = yes; then
1865 ac_cv_func_mmap_fixed_mapped=no
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1871 /* Thanks to Mike Haertel and Jim Avera for this test.
1872 Here is a matrix of mmap possibilities:
1873 mmap private not fixed
1874 mmap private fixed at somewhere currently unmapped
1875 mmap private fixed at somewhere already mapped
1876 mmap shared not fixed
1877 mmap shared fixed at somewhere currently unmapped
1878 mmap shared fixed at somewhere already mapped
1879 For private mappings, we should verify that changes cannot be read()
1880 back from the file, nor mmap's back from the file at a different
1881 address. (There have been systems where private was not correctly
1882 implemented like the infamous i386 svr4.0, and systems where the
1883 VM page cache was not coherent with the filesystem buffer cache
1884 like early versions of FreeBSD and possibly contemporary NetBSD.)
1885 For shared mappings, we should conversely verify that changes get
1886 propogated back to all the places they're supposed to be.
1888 Grep wants private fixed already mapped.
1889 The main things grep needs to know about mmap are:
1890 * does it exist and is it safe to write into the mmap'd area
1891 * how to use it (BSD variants) */
1892 #include <sys/types.h>
1894 #include <sys/mman.h>
1896 /* This mess was copied from the GNU getpagesize.h. */
1897 #ifndef HAVE_GETPAGESIZE
1898 # ifdef HAVE_UNISTD_H
1899 # include <unistd.h>
1902 /* Assume that all systems that can run configure have sys/param.h. */
1903 # ifndef HAVE_SYS_PARAM_H
1904 # define HAVE_SYS_PARAM_H 1
1907 # ifdef _SC_PAGESIZE
1908 # define getpagesize() sysconf(_SC_PAGESIZE)
1909 # else /* no _SC_PAGESIZE */
1910 # ifdef HAVE_SYS_PARAM_H
1911 # include <sys/param.h>
1912 # ifdef EXEC_PAGESIZE
1913 # define getpagesize() EXEC_PAGESIZE
1914 # else /* no EXEC_PAGESIZE */
1916 # define getpagesize() NBPG * CLSIZE
1919 # endif /* no CLSIZE */
1920 # else /* no NBPG */
1922 # define getpagesize() NBPC
1923 # else /* no NBPC */
1925 # define getpagesize() PAGESIZE
1926 # endif /* PAGESIZE */
1927 # endif /* no NBPC */
1928 # endif /* no NBPG */
1929 # endif /* no EXEC_PAGESIZE */
1930 # else /* no HAVE_SYS_PARAM_H */
1931 # define getpagesize() 8192 /* punt totally */
1932 # endif /* no HAVE_SYS_PARAM_H */
1933 # endif /* no _SC_PAGESIZE */
1935 #endif /* no HAVE_GETPAGESIZE */
1938 extern "C" { void *malloc(unsigned); }
1946 char *data, *data2, *data3;
1950 pagesize = getpagesize();
1953 * First, make a file with some known garbage in it.
1955 data = malloc(pagesize);
1958 for (i = 0; i < pagesize; ++i)
1959 *(data + i) = rand();
1961 fd = creat("conftestmmap", 0600);
1964 if (write(fd, data, pagesize) != pagesize)
1969 * Next, try to mmap the file at a fixed address which
1970 * already has something else allocated at it. If we can,
1971 * also make sure that we see the same garbage.
1973 fd = open("conftestmmap", O_RDWR);
1976 data2 = malloc(2 * pagesize);
1979 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1980 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1981 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1983 for (i = 0; i < pagesize; ++i)
1984 if (*(data + i) != *(data2 + i))
1988 * Finally, make sure that changes to the mapped area
1989 * do not percolate back to the file as seen by read().
1990 * (This is a bug on some variants of i386 svr4.0.)
1992 for (i = 0; i < pagesize; ++i)
1993 *(data2 + i) = *(data2 + i) + 1;
1994 data3 = malloc(pagesize);
1997 if (read(fd, data3, pagesize) != pagesize)
1999 for (i = 0; i < pagesize; ++i)
2000 if (*(data + i) != *(data3 + i))
2003 unlink("conftestmmap");
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2010 ac_cv_func_mmap_fixed_mapped=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 ac_cv_func_mmap_fixed_mapped=no
2022 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2024 cat >> confdefs.h <<\EOF
2031 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether we are using the GNU C Library 2.1 or newer" >&5
2033 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2040 #include <features.h>
2041 #ifdef __GNU_LIBRARY__
2042 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2049 egrep "Lucky GNU user" >/dev/null 2>&1; then
2051 ac_cv_gnu_library_2_1=yes
2054 ac_cv_gnu_library_2_1=no
2062 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2064 GLIBC21="$ac_cv_gnu_library_2_1"
2068 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2069 stdlib.h string.h unistd.h sys/param.h
2071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_hdr" >&5
2074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2083 { (eval echo configure:2084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2085 if test -z "$ac_err"; then
2087 eval "ac_cv_header_$ac_safe=yes"
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 eval "ac_cv_header_$ac_safe=no"
2097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2098 echo "$ac_t""yes" 1>&6
2099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2100 cat >> confdefs.h <<EOF
2101 #define $ac_tr_hdr 1
2105 echo "$ac_t""no" 1>&6
2109 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2110 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2111 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_func" >&5
2115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $ac_func(); below. */
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2142 if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2144 eval "ac_cv_func_$ac_func=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 eval "ac_cv_func_$ac_func=no"
2154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2157 cat >> confdefs.h <<EOF
2158 #define $ac_tr_func 1
2162 echo "$ac_t""no" 1>&6
2169 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2170 if test "${with_libiconv_prefix+set}" = set; then
2171 withval="$with_libiconv_prefix"
2173 for dir in `echo "$withval" | tr : ' '`; do
2174 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2175 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2181 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2182 echo "configure:2183: checking for iconv" >&5
2183 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2187 am_cv_func_iconv="no, consider installing GNU libiconv"
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2195 iconv_t cd = iconv_open("","");
2196 iconv(cd,NULL,NULL,NULL,NULL);
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 am_cv_func_iconv=yes
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2208 if test "$am_cv_func_iconv" != yes; then
2209 am_save_LIBS="$LIBS"
2210 LIBS="$LIBS -liconv"
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2217 iconv_t cd = iconv_open("","");
2218 iconv(cd,NULL,NULL,NULL,NULL);
2222 if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 am_cv_func_iconv=yes
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2231 LIBS="$am_save_LIBS"
2236 echo "$ac_t""$am_cv_func_iconv" 1>&6
2237 if test "$am_cv_func_iconv" = yes; then
2238 cat >> confdefs.h <<\EOF
2239 #define HAVE_ICONV 1
2242 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2243 echo "configure:2244: checking for iconv declaration" >&5
2244 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2258 #if defined(__STDC__) || defined(__cplusplus)
2259 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 am_cv_proto_iconv_arg1=""
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 am_cv_proto_iconv_arg1="const"
2278 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);"
2281 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2282 echo "$ac_t""${ac_t:-
2283 }$am_cv_proto_iconv" 1>&6
2284 cat >> confdefs.h <<EOF
2285 #define ICONV_CONST $am_cv_proto_iconv_arg1
2290 if test "$am_cv_lib_iconv" = yes; then
2296 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2297 echo "configure:2298: checking for nl_langinfo and CODESET" >&5
2298 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <langinfo.h>
2306 char* cs = nl_langinfo(CODESET);
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 am_cv_langinfo_codeset=yes
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 am_cv_langinfo_codeset=no
2322 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2323 if test $am_cv_langinfo_codeset = yes; then
2324 cat >> confdefs.h <<\EOF
2325 #define HAVE_LANGINFO_CODESET 1
2330 if test $ac_cv_header_locale_h = yes; then
2331 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2332 echo "configure:2333: checking for LC_MESSAGES" >&5
2333 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346 am_cv_val_LC_MESSAGES=yes
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 am_cv_val_LC_MESSAGES=no
2356 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2357 if test $am_cv_val_LC_MESSAGES = yes; then
2358 cat >> confdefs.h <<\EOF
2359 #define HAVE_LC_MESSAGES 1
2364 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether NLS is requested" >&5
2366 # Check whether --enable-nls or --disable-nls was given.
2367 if test "${enable_nls+set}" = set; then
2368 enableval="$enable_nls"
2374 echo "$ac_t""$USE_NLS" 1>&6
2377 BUILD_INCLUDED_LIBINTL=no
2378 USE_INCLUDED_LIBINTL=no
2381 if test "$USE_NLS" = "yes"; then
2382 cat >> confdefs.h <<\EOF
2383 #define ENABLE_NLS 1
2386 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2387 echo "configure:2388: checking whether included gettext is requested" >&5
2388 # Check whether --with-included-gettext or --without-included-gettext was given.
2389 if test "${with_included_gettext+set}" = set; then
2390 withval="$with_included_gettext"
2391 nls_cv_force_use_gnu_gettext=$withval
2393 nls_cv_force_use_gnu_gettext=no
2396 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2398 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2399 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2405 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2406 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2407 echo "configure:2408: checking for libintl.h" >&5
2408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <libintl.h>
2416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2417 { (eval echo configure:2418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2419 if test -z "$ac_err"; then
2421 eval "ac_cv_header_$ac_safe=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 eval "ac_cv_header_$ac_safe=no"
2431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2434 echo "configure:2435: checking for GNU gettext in libc" >&5
2435 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <libintl.h>
2442 extern int _nl_msg_cat_cntr;
2444 bindtextdomain ("", "");
2445 return (int) gettext ("") + _nl_msg_cat_cntr
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 gt_cv_func_gnugettext1_libc=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 gt_cv_func_gnugettext1_libc=no
2460 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2462 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2463 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2464 echo "configure:2465: checking for GNU gettext in libintl" >&5
2465 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 gt_save_LIBS="$LIBS"
2469 LIBS="$LIBS -lintl $LIBICONV"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <libintl.h>
2474 extern int _nl_msg_cat_cntr;
2476 bindtextdomain ("", "");
2477 return (int) gettext ("") + _nl_msg_cat_cntr
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 gt_cv_func_gnugettext1_libintl=yes
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 gt_cv_func_gnugettext1_libintl=no
2490 LIBS="$gt_save_LIBS"
2493 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2496 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2497 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2498 && test "$PACKAGE" != gettext; }; then
2499 cat >> confdefs.h <<\EOF
2500 #define HAVE_GETTEXT 1
2504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2505 INTLLIBS="-lintl $LIBICONV"
2508 gt_save_LIBS="$LIBS"
2509 LIBS="$LIBS $INTLLIBS"
2510 for ac_func in dcgettext
2512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_func" >&5
2514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 eval "ac_cv_func_$ac_func=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_func_$ac_func=no"
2553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h <<EOF
2557 #define $ac_tr_func 1
2561 echo "$ac_t""no" 1>&6
2565 LIBS="$gt_save_LIBS"
2567 # Extract the first word of "msgfmt", so it can be a program name with args.
2568 set dummy msgfmt; ac_word=$2
2569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_word" >&5
2571 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2576 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2580 for ac_dir in $PATH; do
2581 test -z "$ac_dir" && ac_dir=.
2582 if test -f $ac_dir/$ac_word; then
2583 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2584 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2590 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2594 MSGFMT="$ac_cv_path_MSGFMT"
2595 if test "$MSGFMT" != ":"; then
2596 echo "$ac_t""$MSGFMT" 1>&6
2598 echo "$ac_t""no" 1>&6
2601 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2602 set dummy gmsgfmt; ac_word=$2
2603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_word" >&5
2605 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2610 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2613 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2618 for ac_dir in $ac_dummy; do
2619 test -z "$ac_dir" && ac_dir=.
2620 if test -f $ac_dir/$ac_word; then
2621 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2626 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2630 GMSGFMT="$ac_cv_path_GMSGFMT"
2631 if test -n "$GMSGFMT"; then
2632 echo "$ac_t""$GMSGFMT" 1>&6
2634 echo "$ac_t""no" 1>&6
2638 # Extract the first word of "xgettext", so it can be a program name with args.
2639 set dummy xgettext; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2651 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f $ac_dir/$ac_word; then
2654 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2655 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2665 XGETTEXT="$ac_cv_path_XGETTEXT"
2666 if test "$XGETTEXT" != ":"; then
2667 echo "$ac_t""$XGETTEXT" 1>&6
2669 echo "$ac_t""no" 1>&6
2677 echo "$ac_t""no" 1>&6
2681 if test "$CATOBJEXT" = "NONE"; then
2682 nls_cv_use_gnu_gettext=yes
2686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2687 INTLOBJS="\$(GETTOBJS)"
2688 # Extract the first word of "msgfmt", so it can be a program name with args.
2689 set dummy msgfmt; ac_word=$2
2690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_word" >&5
2692 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2697 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2701 for ac_dir in $PATH; do
2702 test -z "$ac_dir" && ac_dir=.
2703 if test -f $ac_dir/$ac_word; then
2704 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2705 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2711 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2715 MSGFMT="$ac_cv_path_MSGFMT"
2716 if test "$MSGFMT" != ":"; then
2717 echo "$ac_t""$MSGFMT" 1>&6
2719 echo "$ac_t""no" 1>&6
2722 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2723 set dummy gmsgfmt; ac_word=$2
2724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_word" >&5
2726 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2734 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2739 for ac_dir in $ac_dummy; do
2740 test -z "$ac_dir" && ac_dir=.
2741 if test -f $ac_dir/$ac_word; then
2742 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2747 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2751 GMSGFMT="$ac_cv_path_GMSGFMT"
2752 if test -n "$GMSGFMT"; then
2753 echo "$ac_t""$GMSGFMT" 1>&6
2755 echo "$ac_t""no" 1>&6
2758 # Extract the first word of "xgettext", so it can be a program name with args.
2759 set dummy xgettext; ac_word=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2767 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2771 for ac_dir in $PATH; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f $ac_dir/$ac_word; then
2774 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2775 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2781 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2785 XGETTEXT="$ac_cv_path_XGETTEXT"
2786 if test "$XGETTEXT" != ":"; then
2787 echo "$ac_t""$XGETTEXT" 1>&6
2789 echo "$ac_t""no" 1>&6
2793 BUILD_INCLUDED_LIBINTL=yes
2794 USE_INCLUDED_LIBINTL=yes
2796 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2797 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2800 if test "$GMSGFMT" != ":"; then
2801 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2804 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2809 if test "$XGETTEXT" != ":"; then
2810 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2813 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2823 if test "$PACKAGE" = gettext; then
2824 BUILD_INCLUDED_LIBINTL=yes
2827 for ac_prog in bison
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_word" >&5
2833 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 if test -n "$INTLBISON"; then
2837 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2841 for ac_dir in $ac_dummy; do
2842 test -z "$ac_dir" && ac_dir=.
2843 if test -f $ac_dir/$ac_word; then
2844 ac_cv_prog_INTLBISON="$ac_prog"
2851 INTLBISON="$ac_cv_prog_INTLBISON"
2852 if test -n "$INTLBISON"; then
2853 echo "$ac_t""$INTLBISON" 1>&6
2855 echo "$ac_t""no" 1>&6
2858 test -n "$INTLBISON" && break
2861 if test -z "$INTLBISON"; then
2864 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2865 echo "configure:2866: checking version of bison" >&5
2866 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2867 case $ac_prog_version in
2868 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2869 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2870 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2871 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2873 echo "$ac_t""$ac_prog_version" 1>&6
2875 if test $ac_verc_fail = yes; then
2879 for lang in $ALL_LINGUAS; do
2880 GMOFILES="$GMOFILES $lang.gmo"
2881 POFILES="$POFILES $lang.po"
2895 nls_cv_header_libgt=
2907 if test "x$CATOBJEXT" != "x"; then
2908 if test "x$ALL_LINGUAS" = "x"; then
2911 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2912 echo "configure:2913: checking for catalogs to be installed" >&5
2914 for presentlang in $ALL_LINGUAS; do
2916 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2917 # Use the presentlang catalog if desiredlang is
2918 # a. equal to presentlang, or
2919 # b. a variant of presentlang (because in this case,
2920 # presentlang can be used as a fallback for messages
2921 # which are not translated in the desiredlang catalog).
2922 case "$desiredlang" in
2923 "$presentlang"*) useit=yes;;
2926 if test $useit = yes; then
2927 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2930 LINGUAS=$NEW_LINGUAS
2931 echo "$ac_t""$LINGUAS" 1>&6
2934 if test -n "$LINGUAS"; then
2935 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2940 if test -n "$ac_aux_dir"; then
2941 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2943 if test -z "$MKINSTALLDIRS"; then
2944 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2948 INTL_LIBTOOL_SUFFIX_PREFIX=
2952 # Find a good install program. We prefer a C program (faster),
2953 # so one script is as good as another. But avoid the broken or
2954 # incompatible versions:
2955 # SysV /etc/install, /usr/sbin/install
2956 # SunOS /usr/etc/install
2957 # IRIX /sbin/install
2959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962 # ./install, which can be erroneously created by make from ./install.sh.
2963 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2964 echo "configure:2965: checking for a BSD compatible install" >&5
2965 if test -z "$INSTALL"; then
2966 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2970 for ac_dir in $PATH; do
2971 # Account for people who put trailing slashes in PATH elements.
2973 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2975 # OSF1 and SCO ODT 3.0 have their own names for install.
2976 # Don't use installbsd from OSF since it installs stuff as root
2978 for ac_prog in ginstall scoinst install; do
2979 if test -f $ac_dir/$ac_prog; then
2980 if test $ac_prog = install &&
2981 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2982 # AIX install. It has an incompatible calling convention.
2985 ac_cv_path_install="$ac_dir/$ac_prog -c"
2996 if test "${ac_cv_path_install+set}" = set; then
2997 INSTALL="$ac_cv_path_install"
2999 # As a last resort, use the slow shell script. We don't cache a
3000 # path for INSTALL within a source directory, because that will
3001 # break other packages using the cache if that directory is
3002 # removed, or if the path is relative.
3003 INSTALL="$ac_install_sh"
3006 echo "$ac_t""$INSTALL" 1>&6
3008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3009 # It thinks the first close brace ends the variable substitution.
3010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3017 # Check whether --with-words or --without-words was given.
3018 if test "${with_words+set}" = set; then
3019 withval="$with_words"
3025 ac_cv_c_bigendian=yes
3028 ac_cv_c_bigendian=no
3031 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether the byte order is big-endian" >&5
3033 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_cv_c_bigendian=unknown
3037 cat >conftest.c <<EOF
3038 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3039 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3040 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3041 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3042 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3043 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3044 int main(void) { _a(); _e(); return 0; }
3047 if test -f conftest.c
3049 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3050 && test -f conftest.o
3052 if test `grep -l BIGenDianSyS conftest.o`
3054 ac_cv_c_bigendian=yes
3056 if test `grep -l LiTTleEnDian conftest.o`
3058 ac_cv_c_bigendian=no
3065 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3066 if test $ac_cv_c_bigendian = xunknown
3068 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3072 if test $ac_cv_c_bigendian = yes
3074 cat >> confdefs.h <<\EOF
3075 #define WORDS_BIGENDIAN 1
3080 for ac_func in gettimeofday select strerror strtod strtol isatty
3082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_func" >&5
3084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char $ac_func(); below. */
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3100 /* The GNU C library defines this for functions which it implements
3101 to always fail with ENOSYS. Some functions are actually named
3102 something starting with __ and the normal name is an alias. */
3103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3113 eval "ac_cv_func_$ac_func=yes"
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3118 eval "ac_cv_func_$ac_func=no"
3123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3126 cat >> confdefs.h <<EOF
3127 #define $ac_tr_func 1
3131 echo "$ac_t""no" 1>&6
3135 echo $ac_n "checking for connect""... $ac_c" 1>&6
3136 echo "configure:3137: checking for connect" >&5
3137 if eval "test \"`echo '$''{'ac_cv_func_connect'+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 connect(); 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_connect) || defined (__stub___connect)
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_connect=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_func_connect=no"
3176 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3180 echo "$ac_t""no" 1>&6
3182 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3183 echo "configure:3184: checking for connect in -lsocket" >&5
3184 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_save_LIBS="$LIBS"
3189 LIBS="-lsocket $LIBS"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3202 if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3204 eval "ac_cv_lib_$ac_lib_var=yes"
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3209 eval "ac_cv_lib_$ac_lib_var=no"
3212 LIBS="$ac_save_LIBS"
3215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 LIB="${LIB} -lsocket"
3219 echo "$ac_t""no" 1>&6
3225 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3226 echo "configure:3227: checking for gethostbyname" >&5
3227 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 /* System header to define __stub macros and hopefully few prototypes,
3234 which can conflict with char gethostbyname(); below. */
3236 /* Override any gcc2 internal prototype to avoid an error. */
3237 /* We use char because int might match the return type of a gcc2
3238 builtin and then its argument prototype would still apply. */
3239 char gethostbyname();
3243 /* The GNU C library defines this for functions which it implements
3244 to always fail with ENOSYS. Some functions are actually named
3245 something starting with __ and the normal name is an alias. */
3246 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3254 if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3256 eval "ac_cv_func_gethostbyname=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 eval "ac_cv_func_gethostbyname=no"
3266 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6
3270 echo "$ac_t""no" 1>&6
3272 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3273 echo "configure:3274: checking for gethostbyname in -lnsl" >&5
3274 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 ac_save_LIBS="$LIBS"
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3286 char gethostbyname();
3292 if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3294 eval "ac_cv_lib_$ac_lib_var=yes"
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 eval "ac_cv_lib_$ac_lib_var=no"
3302 LIBS="$ac_save_LIBS"
3305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3309 echo "$ac_t""no" 1>&6
3315 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3316 echo "configure:3317: checking for nanosleep" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* System header to define __stub macros and hopefully few prototypes,
3324 which can conflict with char nanosleep(); below. */
3326 /* Override any gcc2 internal prototype to avoid an error. */
3327 /* We use char because int might match the return type of a gcc2
3328 builtin and then its argument prototype would still apply. */
3333 /* The GNU C library defines this for functions which it implements
3334 to always fail with ENOSYS. Some functions are actually named
3335 something starting with __ and the normal name is an alias. */
3336 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 eval "ac_cv_func_nanosleep=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 eval "ac_cv_func_nanosleep=no"
3356 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3360 echo "$ac_t""no" 1>&6
3362 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3363 echo "configure:3364: checking for nanosleep in -lrt" >&5
3364 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 ac_save_LIBS="$LIBS"
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3382 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3384 eval "ac_cv_lib_$ac_lib_var=yes"
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3389 eval "ac_cv_lib_$ac_lib_var=no"
3392 LIBS="$ac_save_LIBS"
3395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3399 echo "$ac_t""no" 1>&6
3401 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3402 echo "configure:3403: checking for nanosleep in -lposix4" >&5
3403 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 ac_save_LIBS="$LIBS"
3408 LIBS="-lposix4 $LIBS"
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 eval "ac_cv_lib_$ac_lib_var=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_lib_$ac_lib_var=no"
3431 LIBS="$ac_save_LIBS"
3434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 LIB="${LIB} -lposix4"
3438 echo "$ac_t""no" 1>&6
3447 for ac_func in usleep
3449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_func" >&5
3451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* System header to define __stub macros and hopefully few prototypes,
3458 which can conflict with char $ac_func(); below. */
3460 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3467 /* The GNU C library defines this for functions which it implements
3468 to always fail with ENOSYS. Some functions are actually named
3469 something starting with __ and the normal name is an alias. */
3470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3478 if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3480 eval "ac_cv_func_$ac_func=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 eval "ac_cv_func_$ac_func=no"
3490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3493 cat >> confdefs.h <<EOF
3494 #define $ac_tr_func 1
3498 echo "$ac_t""no" 1>&6
3502 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3503 echo "configure:3504: checking for inet_aton" >&5
3504 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* System header to define __stub macros and hopefully few prototypes,
3511 which can conflict with char inet_aton(); below. */
3513 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3520 /* The GNU C library defines this for functions which it implements
3521 to always fail with ENOSYS. Some functions are actually named
3522 something starting with __ and the normal name is an alias. */
3523 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 eval "ac_cv_func_inet_aton=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_func_inet_aton=no"
3543 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3547 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3550 echo "configure:3551: checking for inet_aton in -lresolv" >&5
3551 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lresolv $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 LIB="${LIB} -lresolv"
3586 echo "$ac_t""no" 1>&6
3592 for ac_func in vasprintf
3594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3595 echo "configure:3596: checking for $ac_func" >&5
3596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 /* System header to define __stub macros and hopefully few prototypes,
3603 which can conflict with char $ac_func(); below. */
3605 /* Override any gcc2 internal prototype to avoid an error. */
3606 /* We use char because int might match the return type of a gcc2
3607 builtin and then its argument prototype would still apply. */
3612 /* The GNU C library defines this for functions which it implements
3613 to always fail with ENOSYS. Some functions are actually named
3614 something starting with __ and the normal name is an alias. */
3615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3625 eval "ac_cv_func_$ac_func=yes"
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 eval "ac_cv_func_$ac_func=no"
3635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3638 cat >> confdefs.h <<EOF
3639 #define $ac_tr_func 1
3643 echo "$ac_t""no" 1>&6
3649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3650 echo "configure:3651: checking for $ac_func" >&5
3651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char $ac_func(); below. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3667 /* The GNU C library defines this for functions which it implements
3668 to always fail with ENOSYS. Some functions are actually named
3669 something starting with __ and the normal name is an alias. */
3670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 eval "ac_cv_func_$ac_func=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_func_$ac_func=no"
3690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3693 cat >> confdefs.h <<EOF
3694 #define $ac_tr_func 1
3698 echo "$ac_t""no" 1>&6
3702 for ac_func in memalign valloc
3704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3705 echo "configure:3706: checking for $ac_func" >&5
3706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 /* System header to define __stub macros and hopefully few prototypes,
3713 which can conflict with char $ac_func(); below. */
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3722 /* The GNU C library defines this for functions which it implements
3723 to always fail with ENOSYS. Some functions are actually named
3724 something starting with __ and the normal name is an alias. */
3725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3735 eval "ac_cv_func_$ac_func=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_func_$ac_func=no"
3745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3748 cat >> confdefs.h <<EOF
3749 #define $ac_tr_func 1
3753 echo "$ac_t""no" 1>&6
3758 for ac_func in sigrelse
3760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_func" >&5
3762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* System header to define __stub macros and hopefully few prototypes,
3769 which can conflict with char $ac_func(); below. */
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 /* We use char because int might match the return type of a gcc2
3773 builtin and then its argument prototype would still apply. */
3778 /* The GNU C library defines this for functions which it implements
3779 to always fail with ENOSYS. Some functions are actually named
3780 something starting with __ and the normal name is an alias. */
3781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 eval "ac_cv_func_$ac_func=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3796 eval "ac_cv_func_$ac_func=no"
3801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3804 cat >> confdefs.h <<EOF
3805 #define $ac_tr_func 1
3809 echo "$ac_t""no" 1>&6
3815 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3816 echo "configure:3817: checking for getopt_long" >&5
3817 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* System header to define __stub macros and hopefully few prototypes,
3824 which can conflict with char getopt_long(); below. */
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3833 /* The GNU C library defines this for functions which it implements
3834 to always fail with ENOSYS. Some functions are actually named
3835 something starting with __ and the normal name is an alias. */
3836 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 eval "ac_cv_func_getopt_long=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 eval "ac_cv_func_getopt_long=no"
3856 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 cat >> confdefs.h <<\EOF
3859 #define HAVE_GETOPT_LONG 1
3863 echo "$ac_t""no" 1>&6
3864 # FreeBSD has a gnugetopt library for this:
3865 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3866 echo "configure:3867: checking for getopt_long in -lgnugetopt" >&5
3867 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 ac_save_LIBS="$LIBS"
3872 LIBS="-lgnugetopt $LIBS"
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* Override any gcc2 internal prototype to avoid an error. */
3877 /* We use char because int might match the return type of a gcc2
3878 builtin and then its argument prototype would still apply. */
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887 eval "ac_cv_lib_$ac_lib_var=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_lib_$ac_lib_var=no"
3895 LIBS="$ac_save_LIBS"
3898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3900 cat >> confdefs.h <<\EOF
3901 #define HAVE_GETOPT_LONG 1
3903 LIB="${LIB} -lgnugetopt"
3905 echo "$ac_t""no" 1>&6
3912 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3913 echo "configure:3914: checking return type of signal handlers" >&5
3914 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <sys/types.h>
3926 extern "C" void (*signal (int, void (*)(int)))(int);
3928 void (*signal ()) ();
3935 if { (eval echo configure:3936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3937 ac_cv_type_signal=void
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 ac_cv_type_signal=int
3947 echo "$ac_t""$ac_cv_type_signal" 1>&6
3948 cat >> confdefs.h <<EOF
3949 #define RETSIGTYPE $ac_cv_type_signal
3953 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3954 echo "configure:3955: checking for dlopen in -ldl" >&5
3955 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 ac_save_LIBS="$LIBS"
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3975 eval "ac_cv_lib_$ac_lib_var=yes"
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 eval "ac_cv_lib_$ac_lib_var=no"
3983 LIBS="$ac_save_LIBS"
3986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3990 echo "$ac_t""no" 1>&6
3993 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3994 echo "configure:3995: checking for cos in -lm" >&5
3995 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_save_LIBS="$LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_lib_$ac_lib_var=no"
4023 LIBS="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 LIB_IMDCT="${LIB_IMDCT} -lm"
4029 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4031 echo "$ac_t""no" 1>&6
4034 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4035 echo "configure:4036: checking for pow in -lm" >&5
4036 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 ac_save_LIBS="$LIBS"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056 eval "ac_cv_lib_$ac_lib_var=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 eval "ac_cv_lib_$ac_lib_var=no"
4064 LIBS="$ac_save_LIBS"
4067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 LIB_IMDCT="${LIB_IMDCT} -lm"
4070 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4071 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4074 echo "$ac_t""no" 1>&6
4079 if test "x${THREAD_LIB}" = xerror; then
4080 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4081 echo "configure:4082: checking for pthread_attr_init in -lpthread" >&5
4082 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 ac_save_LIBS="$LIBS"
4087 LIBS="-lpthread $LIBS"
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char pthread_attr_init();
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_lib_$ac_lib_var=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_lib_$ac_lib_var=no"
4110 LIBS="$ac_save_LIBS"
4113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 THREAD_LIB="-lpthread"
4117 echo "$ac_t""no" 1>&6
4121 if test "x${THREAD_LIB}" = xerror; then
4122 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4123 echo "configure:4124: checking for pthread_attr_init in -lpthreads" >&5
4124 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 ac_save_LIBS="$LIBS"
4129 LIBS="-lpthreads $LIBS"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char pthread_attr_init();
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4144 eval "ac_cv_lib_$ac_lib_var=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 eval "ac_cv_lib_$ac_lib_var=no"
4152 LIBS="$ac_save_LIBS"
4155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 THREAD_LIB="-lpthreads"
4159 echo "$ac_t""no" 1>&6
4163 if test "x${THREAD_LIB}" = xerror; then
4164 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4165 echo "configure:4166: checking for pthread_attr_init in -lc_r" >&5
4166 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 ac_save_LIBS="$LIBS"
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178 char pthread_attr_init();
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_lib_$ac_lib_var=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_lib_$ac_lib_var=no"
4194 LIBS="$ac_save_LIBS"
4197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
4201 echo "$ac_t""no" 1>&6
4205 if test "x${THREAD_LIB}" = xerror; then
4206 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4207 echo "configure:4208: checking for pthread_attr_init" >&5
4208 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* System header to define __stub macros and hopefully few prototypes,
4215 which can conflict with char pthread_attr_init(); below. */
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char pthread_attr_init();
4224 /* The GNU C library defines this for functions which it implements
4225 to always fail with ENOSYS. Some functions are actually named
4226 something starting with __ and the normal name is an alias. */
4227 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4230 pthread_attr_init();
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 eval "ac_cv_func_pthread_attr_init=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 eval "ac_cv_func_pthread_attr_init=no"
4247 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4251 echo "$ac_t""no" 1>&6
4257 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4258 echo "configure:4259: checking for cthread_fork in -lthreads" >&5
4259 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lthreads $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char cthread_fork();
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 THREAD_LIB="-lthreads"
4294 echo "$ac_t""no" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 #include <pthread.h>
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 egrep "pthread_cond_t" >/dev/null 2>&1; then
4307 cat >> confdefs.h <<\EOF
4308 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <strings.h>
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 egrep "strncasecmp" >/dev/null 2>&1; then
4323 cat >> confdefs.h <<\EOF
4324 #define STRNCASECMP_IN_STRINGS_H 1
4331 for ac_hdr in getopt.h strings.h
4333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4335 echo "configure:4336: checking for $ac_hdr" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4349 eval "ac_cv_header_$ac_safe=yes"
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4355 eval "ac_cv_header_$ac_safe=no"
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4362 cat >> confdefs.h <<EOF
4363 #define $ac_tr_hdr 1
4367 echo "$ac_t""no" 1>&6
4371 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4389 eval "ac_cv_header_$ac_safe=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_header_$ac_safe=no"
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_hdr 1
4407 echo "$ac_t""no" 1>&6
4411 for ac_hdr in sys/soundcard.h machine/soundcard.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4447 echo "$ac_t""no" 1>&6
4451 for ac_hdr in dlfcn.h image.h
4453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_hdr" >&5
4456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4465 { (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4467 if test -z "$ac_err"; then
4469 eval "ac_cv_header_$ac_safe=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_header_$ac_safe=no"
4479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_hdr 1
4487 echo "$ac_t""no" 1>&6
4491 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_hdr" >&5
4496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4505 { (eval echo configure:4506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4507 if test -z "$ac_err"; then
4509 eval "ac_cv_header_$ac_safe=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 eval "ac_cv_header_$ac_safe=no"
4519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4520 echo "$ac_t""yes" 1>&6
4521 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4522 cat >> confdefs.h <<EOF
4523 #define $ac_tr_hdr 1
4527 echo "$ac_t""no" 1>&6
4531 for ac_hdr in machine/param.h
4533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4535 echo "configure:4536: checking for $ac_hdr" >&5
4536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4545 { (eval echo configure:4546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4547 if test -z "$ac_err"; then
4549 eval "ac_cv_header_$ac_safe=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_header_$ac_safe=no"
4559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4562 cat >> confdefs.h <<EOF
4563 #define $ac_tr_hdr 1
4567 echo "$ac_t""no" 1>&6
4572 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4573 echo "configure:4574: checking whether time.h and sys/time.h may both be included" >&5
4574 if eval "test \"`echo '$''{'ac_cv_header_time'+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"
4580 #include <sys/types.h>
4581 #include <sys/time.h>
4587 if { (eval echo configure:4588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4589 ac_cv_header_time=yes
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 ac_cv_header_time=no
4599 echo "$ac_t""$ac_cv_header_time" 1>&6
4600 if test $ac_cv_header_time = yes; then
4601 cat >> confdefs.h <<\EOF
4602 #define TIME_WITH_SYS_TIME 1
4608 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_hdr" >&5
4613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4622 { (eval echo configure:4623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4624 if test -z "$ac_err"; then
4626 eval "ac_cv_header_$ac_safe=yes"
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4632 eval "ac_cv_header_$ac_safe=no"
4636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4639 cat >> confdefs.h <<EOF
4640 #define $ac_tr_hdr 1
4644 echo "$ac_t""no" 1>&6
4649 if test x$SYS != xmingw32
4651 if test x$x_includes = xNONE; then
4652 x_includes=/usr/X11R6/include
4654 if test x$x_libraries = xNONE; then
4655 x_libraries=/usr/X11R6/lib
4657 saved_CPPFLAGS=$CPPFLAGS
4658 CPPFLAGS="$CPPFLAGS -I$x_includes"
4659 for ac_hdr in X11/extensions/dpms.h
4661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4663 echo "configure:4664: checking for $ac_hdr" >&5
4664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4673 { (eval echo configure:4674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4675 if test -z "$ac_err"; then
4677 eval "ac_cv_header_$ac_safe=yes"
4680 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4683 eval "ac_cv_header_$ac_safe=no"
4687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4690 cat >> confdefs.h <<EOF
4691 #define $ac_tr_hdr 1
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <X11/extensions/dpms.h>
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 egrep "DPMSInfo" >/dev/null 2>&1; then
4703 cat >> confdefs.h <<\EOF
4704 #define DPMSINFO_IN_DPMS_H 1
4713 echo "$ac_t""no" 1>&6
4717 CPPFLAGS=$saved_CPPFLAGS
4720 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4721 echo "configure:4722: checking for ntohl in sys/param.h" >&5
4722 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 CFLAGS="${save_CFLAGS} -Wall -Werror"
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <sys/param.h>
4731 void foo() { int meuh; ntohl(meuh); }
4734 if { (eval echo configure:4735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4736 ac_cv_c_ntohl_sys_param_h=yes
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 ac_cv_c_ntohl_sys_param_h=no
4746 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4747 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4748 cat >> confdefs.h <<\EOF
4749 #define NTOHL_IN_SYS_PARAM_H 1
4754 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4755 echo "configure:4756: checking if \$CC accepts -finline-limit" >&5
4756 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4768 if { (eval echo configure:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4770 ac_cv_c_inline_limit=yes
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 ac_cv_c_inline_limit=no
4780 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4781 if test x"$ac_cv_c_inline_limit" != x"no"; then
4782 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4785 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4786 echo "configure:4787: checking if \$CC accepts -Wall -Winline" >&5
4787 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 CFLAGS="${save_CFLAGS} -Wall -Winline"
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 ac_cv_c_Wall_Winline=yes
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 ac_cv_c_Wall_Winline=no
4811 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4812 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4813 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4815 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4816 echo "configure:4817: checking if \$CC accepts -wall -winline" >&5
4817 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 CFLAGS="${save_CFLAGS} -wall -winline"
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4829 if { (eval echo configure:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 ac_cv_c_wall_winline=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 ac_cv_c_wall_winline=no
4841 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4842 if test x"$ac_cv_c_wall_winline" != x"no"; then
4843 save_CFLAGS="${save_CFLAGS} -wall -winline"
4847 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4848 echo "configure:4849: checking if \$CC accepts -pipe" >&5
4849 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4852 CFLAGS="${save_CFLAGS} -pipe"
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4861 if { (eval echo configure:4862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4873 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4874 if test x"$ac_cv_c_pipe" != x"no"; then
4875 save_CFLAGS="${save_CFLAGS} -pipe"
4878 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4879 echo "configure:4880: checking if \$CC accepts -O3" >&5
4880 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 CFLAGS="${save_CFLAGS} -O3"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4892 if { (eval echo configure:4893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4904 echo "$ac_t""$ac_cv_c_o3" 1>&6
4905 if test x"$ac_cv_c_o3" != x"no"; then
4906 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4908 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4909 echo "configure:4910: checking if \$CC accepts -O2" >&5
4910 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 CFLAGS="${save_CFLAGS} -O2"
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4922 if { (eval echo configure:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4934 echo "$ac_t""$ac_cv_c_o2" 1>&6
4935 if test x"$ac_cv_c_o2" != x"no"; then
4936 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4938 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4939 echo "configure:4940: checking if \$CC accepts -O" >&5
4940 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 CFLAGS="${save_CFLAGS} -O"
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4952 if { (eval echo configure:4953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4964 echo "$ac_t""$ac_cv_c_o" 1>&6
4965 if test x"$ac_cv_c_o" != x"no"; then
4966 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4971 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4972 echo "configure:4973: checking if \$CC accepts -ffast-math" >&5
4973 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 CFLAGS="${save_CFLAGS} -ffast-math"
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4985 if { (eval echo configure:4986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4987 ac_cv_c_fast_math=yes
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4992 ac_cv_c_fast_math=no
4997 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
4998 if test x"$ac_cv_c_fast_math" != x"no"; then
4999 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5002 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5003 echo "configure:5004: checking if \$CC accepts -funroll-loops" >&5
5004 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 CFLAGS="${save_CFLAGS} -funroll-loops"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5016 if { (eval echo configure:5017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5018 ac_cv_c_unroll_loops=yes
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 ac_cv_c_unroll_loops=no
5028 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5029 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5030 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5033 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5034 echo "configure:5035: checking if \$CC accepts -fomit-frame-pointer" >&5
5035 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5047 if { (eval echo configure:5048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5049 ac_cv_c_omit_frame_pointer=yes
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5054 ac_cv_c_omit_frame_pointer=no
5059 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5060 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5061 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5064 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5065 echo "configure:5066: checking if \$CC accepts -bundle -undefined error" >&5
5066 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5090 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5091 if test x"$ac_cv_ld_darwin" != x"no"; then
5092 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5095 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5096 echo "configure:5097: checking if \$CC accepts -shared" >&5
5097 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 CFLAGS="${save_CFLAGS} -shared"
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 ac_cv_ld_plugins=yes
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5121 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5122 if test x"$ac_cv_ld_plugins" != x"no"; then
5123 PLDFLAGS="${PLDFLAGS} -shared"
5126 if test x"${SOFLAGS}" = x; then
5127 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5128 echo "configure:5129: checking for soname setting" >&5
5129 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5134 try_SOFLAGS="-Wl,-soname -Wl,"
5135 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 ac_cv_ld_soname="${try_SOFLAGS}"
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5153 try_SOFLAGS="-Wl,-h -Wl,"
5154 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5163 if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 ac_cv_ld_soname="${try_SOFLAGS}"
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 ac_cv_ld_soname=none
5178 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5179 if test x"$ac_cv_ld_soname" != x"none"; then
5180 SOFLAGS=$ac_cv_ld_soname
5184 Your system doesn't seem to have support for dynamic linking. You may
5185 have problems using libdvdcss.
5191 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5192 echo "configure:5193: checking __attribute__ ((aligned ())) support" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 ac_cv_c_attribute_aligned=0
5197 CFLAGS="${save_CFLAGS} -Werror"
5198 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5204 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5207 if { (eval echo configure:5208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5218 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5219 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5220 cat >> confdefs.h <<EOF
5221 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5226 CFLAGS="${save_CFLAGS}"
5227 LDFLAGS="${save_LDFLAGS}"
5229 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5230 echo "configure:5231: checking for boolean_t in sys/types.h" >&5
5231 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237 #include <sys/types.h>
5242 if { (eval echo configure:5243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5244 ac_cv_c_boolean_t_sys_types_h=yes
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5249 ac_cv_c_boolean_t_sys_types_h=no
5254 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5255 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5256 cat >> confdefs.h <<\EOF
5257 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5262 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5263 echo "configure:5264: checking for boolean_t in pthread.h" >&5
5264 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 #include <pthread.h>
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 ac_cv_c_boolean_t_pthread_h=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 ac_cv_c_boolean_t_pthread_h=no
5287 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5288 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5289 cat >> confdefs.h <<\EOF
5290 #define BOOLEAN_T_IN_PTHREAD_H 1
5295 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5296 echo "configure:5297: checking for boolean_t in cthreads.h" >&5
5297 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 #include <cthreads.h>
5308 if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310 ac_cv_c_boolean_t_cthreads_h=yes
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 ac_cv_c_boolean_t_cthreads_h=no
5320 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5321 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5322 cat >> confdefs.h <<\EOF
5323 #define BOOLEAN_T_IN_CTHREADS_H 1
5328 case x"${target_cpu}" in
5337 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5338 PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
5340 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5341 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5342 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5343 SSE_MODULES="imdctsse downmixsse"
5344 ALTIVEC_MODULES="idctaltivec motionaltivec"
5346 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5347 echo "configure:5348: checking if \$CC groks MMX inline assembly" >&5
5348 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5356 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5359 if { (eval echo configure:5360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5361 ac_cv_mmx_inline=yes
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5371 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5372 if test x"$ac_cv_mmx_inline" != x"no"; then
5373 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5376 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5377 echo "configure:5378: checking if \$CC groks MMX EXT inline assembly" >&5
5378 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5389 if { (eval echo configure:5390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5391 ac_cv_mmxext_inline=yes
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 ac_cv_mmxext_inline=no
5401 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5402 if test x"$ac_cv_mmxext_inline" != x"no"; then
5403 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5406 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5407 echo "configure:5408: checking if \$CC groks 3D Now! inline assembly" >&5
5408 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5409 echo $ac_n "(cached) $ac_c" 1>&6
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5416 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5419 if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5421 ac_cv_3dnow_inline=yes
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 ac_cv_3dnow_inline=no
5431 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5432 if test x"$ac_cv_3dnow_inline" != x"no"; then
5433 cat >> confdefs.h <<\EOF
5434 #define CAN_COMPILE_3DNOW 1
5437 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5440 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5441 echo "configure:5442: checking if \$CC groks SSE inline assembly" >&5
5442 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5450 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5453 if { (eval echo configure:5454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5455 ac_cv_sse_inline=yes
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5465 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5466 if test x"$ac_cv_sse_inline" != x"no"; then
5467 cat >> confdefs.h <<\EOF
5468 #define CAN_COMPILE_SSE 1
5471 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5474 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5475 echo "configure:5476: checking if \$CC groks Altivec inline assembly" >&5
5476 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5484 asm volatile("vperm 0,1,2,3");
5487 if { (eval echo configure:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5489 ac_cv_altivec_inline=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5495 CFLAGS="$CFLAGS -Wa,-m7400"
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5501 asm volatile("vperm 0,1,2,3");
5504 if { (eval echo configure:5505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5506 ac_cv_altivec_inline="-Wa,-m7400"
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5511 ac_cv_altivec_inline=no
5520 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5521 if test x"$ac_cv_altivec_inline" != x"no"; then
5522 cat >> confdefs.h <<\EOF
5523 #define CAN_COMPILE_ALTIVEC 1
5526 if test x"$ac_cv_altivec_inline" != x"yes"; then
5527 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5528 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5529 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5531 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5534 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5535 echo "configure:5536: checking if \$CC groks Altivec C extensions" >&5
5536 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5540 CFLAGS="$CFLAGS -faltivec"
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 vec_mtvscr((vector unsigned int)(0));
5550 if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552 ac_cv_c_altivec=-faltivec
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5559 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 vec_mtvscr((vector unsigned int)(0));
5568 if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5570 ac_cv_c_altivec="-fvec"
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5585 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5586 if test x"$ac_cv_c_altivec" != x"no"; then
5587 cat >> confdefs.h <<\EOF
5588 #define CAN_COMPILE_C_ALTIVEC 1
5591 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5592 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5593 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5594 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5597 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5598 echo "configure:5599: checking if linker needs -framework vecLib" >&5
5599 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5602 save_LDFLAGS=$LDFLAGS
5603 LDFLAGS="$LDFLAGS -framework vecLib"
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5614 ac_cv_ld_altivec=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5622 LDFLAGS=$save_LDFLAGS
5626 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5627 if test x"$ac_cv_ld_altivec" != x"no"; then
5628 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5629 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5630 LIB="${LIB} -framework vecLib"
5633 case x"${target_os}" in
5648 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}windres; ac_word=$2
5650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5651 echo "configure:5652: checking for $ac_word" >&5
5652 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 if test -n "$WINDRES"; then
5656 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5660 for ac_dir in $ac_dummy; do
5661 test -z "$ac_dir" && ac_dir=.
5662 if test -f $ac_dir/$ac_word; then
5663 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5670 WINDRES="$ac_cv_prog_WINDRES"
5671 if test -n "$WINDRES"; then
5672 echo "$ac_t""$WINDRES" 1>&6
5674 echo "$ac_t""no" 1>&6
5678 if test -z "$ac_cv_prog_WINDRES"; then
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "windres", so it can be a program name with args.
5681 set dummy windres; ac_word=$2
5682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5683 echo "configure:5684: checking for $ac_word" >&5
5684 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 if test -n "$WINDRES"; then
5688 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5692 for ac_dir in $ac_dummy; do
5693 test -z "$ac_dir" && ac_dir=.
5694 if test -f $ac_dir/$ac_word; then
5695 ac_cv_prog_WINDRES="windres"
5700 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5703 WINDRES="$ac_cv_prog_WINDRES"
5704 if test -n "$WINDRES"; then
5705 echo "$ac_t""$WINDRES" 1>&6
5707 echo "$ac_t""no" 1>&6
5715 LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
5716 LIB_RC="${LIB_RC} -lws2_32"
5720 LIB_X11="${LIB_X11} -lsocket"
5721 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5726 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5727 PLDFLAGS="${PLDFLAGS} -nostart"
5740 DVD_DEVICE="/dev/dvd"
5741 VCD_DEVICE="/dev/cdrom"
5745 cat >> confdefs.h <<EOF
5746 #define DVD_DEVICE "$DVD_DEVICE"
5749 cat >> confdefs.h <<EOF
5750 #define VCD_DEVICE "$VCD_DEVICE"
5756 CAN_BUILD_LIBDVDCSS=0
5758 for ac_hdr in winioctl.h
5760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_hdr" >&5
5763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5772 { (eval echo configure:5773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5774 if test -z "$ac_err"; then
5776 eval "ac_cv_header_$ac_safe=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 eval "ac_cv_header_$ac_safe=no"
5786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5787 echo "$ac_t""yes" 1>&6
5788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5789 cat >> confdefs.h <<EOF
5790 #define $ac_tr_hdr 1
5793 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5796 echo "$ac_t""no" 1>&6
5801 for ac_hdr in sys/ioctl.h
5803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_hdr" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5819 eval "ac_cv_header_$ac_safe=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_header_$ac_safe=no"
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_hdr 1
5836 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5837 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_hdr" >&5
5842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5853 if test -z "$ac_err"; then
5855 eval "ac_cv_header_$ac_safe=yes"
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 eval "ac_cv_header_$ac_safe=no"
5865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_hdr 1
5873 echo "$ac_t""no" 1>&6
5879 OPENBSD_DVD_STRUCT=0
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <sys/cdio.h>
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 egrep "dvd_struct" >/dev/null 2>&1; then
5889 cat >> confdefs.h <<\EOF
5890 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 #include <sys/cdio.h>
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 egrep "struct dvd_struct" >/dev/null 2>&1; then
5905 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5913 cat > conftest.$ac_ext <<EOF
5914 #line 5915 "configure"
5915 #include "confdefs.h"
5916 #include <sys/dvdio.h>
5918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919 egrep "dvd_struct" >/dev/null 2>&1; then
5922 cat >> confdefs.h <<\EOF
5923 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 #include <sys/dvdio.h>
5931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5932 egrep "struct dvd_struct" >/dev/null 2>&1; then
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 #include <linux/cdrom.h>
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 egrep "dvd_struct" >/dev/null 2>&1; then
5955 cat >> confdefs.h <<\EOF
5956 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971 egrep "dvd_struct" >/dev/null 2>&1; then
5974 cat >> confdefs.h <<\EOF
5975 #define DVD_STRUCT_IN_DVD_H 1
5978 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5984 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_hdr" >&5
5989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5998 { (eval echo configure:5999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6000 if test -z "$ac_err"; then
6002 eval "ac_cv_header_$ac_safe=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_header_$ac_safe=no"
6012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_hdr 1
6020 cat >> confdefs.h <<\EOF
6021 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6024 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6028 echo "$ac_t""no" 1>&6
6036 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6037 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6038 echo "configure:6039: checking for sys/scsi/scsi_types.h" >&5
6039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <sys/scsi/scsi_types.h>
6047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6048 { (eval echo configure:6049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6050 if test -z "$ac_err"; then
6052 eval "ac_cv_header_$ac_safe=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_header_$ac_safe=no"
6062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6065 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6066 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6067 echo "configure:6068: checking for sys/scsi/impl/uscsi.h" >&5
6068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <sys/scsi/impl/uscsi.h>
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6079 if test -z "$ac_err"; then
6081 eval "ac_cv_header_$ac_safe=yes"
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6087 eval "ac_cv_header_$ac_safe=no"
6091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6094 cat >> confdefs.h <<\EOF
6095 #define SOLARIS_USCSI 1
6100 echo "$ac_t""no" 1>&6
6105 echo "$ac_t""no" 1>&6
6108 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6109 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6110 echo "configure:6111: checking for sys/scsi.h" >&5
6111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 #include <sys/scsi.h>
6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6122 if test -z "$ac_err"; then
6124 eval "ac_cv_header_$ac_safe=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 eval "ac_cv_header_$ac_safe=no"
6134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 #include <sys/scsi.h>
6142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143 egrep "sctl_io" >/dev/null 2>&1; then
6146 cat >> confdefs.h <<\EOF
6147 #define HPUX_SCTL_IO 1
6156 echo "$ac_t""no" 1>&6
6159 if test x$LINUX_DVD_STRUCT = x1; then
6160 cat >> confdefs.h <<\EOF
6161 #define HAVE_LINUX_DVD_STRUCT 1
6164 if test x$OPENBSD_DVD_STRUCT = x1; then
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_OPENBSD_DVD_STRUCT 1
6171 if test x$BSD_DVD_STRUCT = x1; then
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_BSD_DVD_STRUCT 1
6180 echo "$ac_t""no" 1>&6
6185 # Check whether --with-tuning or --without-tuning was given.
6186 if test "${with_tuning+set}" = set; then
6187 withval="$with_tuning"
6191 if test "x$withval" != "x"; then
6194 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6196 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6200 # Check whether --enable-release or --disable-release was given.
6201 if test "${enable_release+set}" = set; then
6202 enableval="$enable_release"
6203 if test x$enableval = xyes; then RELEASE=1; fi
6205 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6206 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6210 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6213 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6216 # Check whether --enable-altivec or --disable-altivec was given.
6217 if test "${enable_altivec+set}" = set; then
6218 enableval="$enable_altivec"
6219 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6220 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6222 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6223 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6228 # Check whether --enable-debug or --disable-debug was given.
6229 if test "${enable_debug+set}" = set; then
6230 enableval="$enable_debug"
6231 if test x$enableval = xyes; then DEBUG=1; fi
6236 # Check whether --enable-trace or --disable-trace was given.
6237 if test "${enable_trace+set}" = set; then
6238 enableval="$enable_trace"
6239 if test x$enableval = xyes; then TRACE=1; fi
6244 # Check whether --enable-gprof or --disable-gprof was given.
6245 if test "${enable_gprof+set}" = set; then
6246 enableval="$enable_gprof"
6247 if test x$enableval = xyes; then GPROF=1; fi
6252 # Check whether --enable-cprof or --disable-cprof was given.
6253 if test "${enable_cprof+set}" = set; then
6254 enableval="$enable_cprof"
6255 if test x$enableval = xyes;
6257 LIB="${LIB} -lcprof"
6264 # Check whether --enable-optimizations or --disable-optimizations was given.
6265 if test "${enable_optimizations+set}" = set; then
6266 enableval="$enable_optimizations"
6267 if test x$enableval = xno; then OPTIMS=0; fi
6273 # Check whether --enable-pth or --disable-pth was given.
6274 if test "${enable_pth+set}" = set; then
6275 enableval="$enable_pth"
6276 if test x$enableval = xyes; then
6277 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6278 echo "configure:6279: checking for pth_init in -lpth" >&5
6279 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 ac_save_LIBS="$LIBS"
6285 cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6299 eval "ac_cv_lib_$ac_lib_var=yes"
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6304 eval "ac_cv_lib_$ac_lib_var=no"
6307 LIBS="$ac_save_LIBS"
6310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6311 echo "$ac_t""yes" 1>&6
6312 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_lib 1
6321 echo "$ac_t""no" 1>&6
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 egrep "pth_init" >/dev/null 2>&1; then
6333 cat >> confdefs.h <<\EOF
6334 #define PTH_INIT_IN_PTH_H 1
6346 LIB="${LIB} ${THREAD_LIB}"
6351 # Check whether --with-dvdcss or --without-dvdcss was given.
6352 if test "${with_dvdcss+set}" = set; then
6353 withval="$with_dvdcss"
6354 case "x${withval}" in
6356 # local libdvdcss, statically linked
6357 BUILTINS="${BUILTINS} dvd"
6358 if test x${CAN_BUILD_LIBDVDCSS} = x1
6362 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6363 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6367 # local libdvdcss, dynamically linked
6368 PLUGINS="${PLUGINS} dvd"
6369 if test x${CAN_BUILD_LIBDVDCSS} = x1
6372 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6373 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6377 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6378 BUILTINS="${BUILTINS} dvd"
6380 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6381 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6382 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6383 LIB_DVD="${LIB_DVD} -ldl"
6386 # existing libdvdcss
6387 PLUGINS="${PLUGINS} dvd"
6388 if test "x$withval" != "xyes"
6390 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6391 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6393 LIB_DVD="${LIB_DVD} -ldvdcss"
6396 # user didn't decide, we choose to use local libdvdcss and link statically
6397 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6398 if test x${CAN_BUILD_LIBDVDCSS} = x1
6400 BUILTINS="${BUILTINS} dvd"
6403 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6404 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6406 # XXX: no check for libdl is done, don't try this at home !
6407 BUILTINS="${BUILTINS} dvd"
6409 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6410 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6411 LIB_DVD="${LIB_DVD} -ldl"
6416 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6417 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6418 # Check whether --with-dvdread or --without-dvdread was given.
6419 if test "${with_dvdread+set}" = set; then
6420 withval="$with_dvdread"
6421 case "x${withval}" in
6423 if test x${STATIC_LIBDVDREAD} = x1
6425 BUILTINS="${BUILTINS} dvdread"
6426 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6427 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6429 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6435 if test x${STATIC_LIBDVDREAD} = x1
6437 BUILTINS="${BUILTINS} dvdread"
6438 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6439 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6441 PLUGINS="${PLUGINS} dvdread"
6442 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6443 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6447 if test "x$withval" != "xlocal-shared"
6449 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6450 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6452 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6453 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6455 if test x${STATIC_LIBDVDCSS} = x1
6457 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6459 PLUGINS="${PLUGINS} dvdread"
6460 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6461 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6464 if test x${DUMMY_LIBDVDCSS} = x1
6466 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6468 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6473 # Check whether --enable-vcd or --disable-vcd was given.
6474 if test "${enable_vcd+set}" = set; then
6475 enableval="$enable_vcd"
6480 if test x$enable_vcd != xno
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <linux/cdrom.h>
6487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6488 egrep "cdrom_msf0" >/dev/null 2>&1; then
6491 BUILTINS="${BUILTINS} vcd"
6498 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6500 BUILTINS="${BUILTINS} vcd"
6503 # Check whether --enable-dummy or --disable-dummy was given.
6504 if test "${enable_dummy+set}" = set; then
6505 enableval="$enable_dummy"
6510 if test x$enable_dummy != xno
6512 BUILTINS="${BUILTINS} dummy"
6515 # Check whether --enable-null or --disable-null was given.
6516 if test "${enable_null+set}" = set; then
6517 enableval="$enable_null"
6522 if test x$enable_null != xno
6524 BUILTINS="${BUILTINS} null"
6527 # Check whether --enable-rc or --disable-rc was given.
6528 if test "${enable_rc+set}" = set; then
6529 enableval="$enable_rc"
6534 if test x$enable_rc != xno
6536 BUILTINS="${BUILTINS} rc"
6539 # Check whether --with-mad or --without-mad was given.
6540 if test "${with_mad+set}" = set; then
6542 if test "x$with_val" != "xno"; then
6543 if test -n $with_val; then
6544 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6545 LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6547 LIB_MAD="${LIB_MAD} -lmad"
6550 save_LDFLAGS=$LDFLAGS
6551 CFLAGS="$CFLAGS $CFLAGS_MAD"
6552 LDFLAGS="$LDFLAGS $LIB_MAD"
6555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6557 echo "configure:6558: checking for $ac_hdr" >&5
6558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6567 { (eval echo configure:6568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6569 if test -z "$ac_err"; then
6571 eval "ac_cv_header_$ac_safe=yes"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_header_$ac_safe=no"
6581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6582 echo "$ac_t""yes" 1>&6
6583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6584 cat >> confdefs.h <<EOF
6585 #define $ac_tr_hdr 1
6589 echo "$ac_t""no" 1>&6
6590 echo "Cannot find development headers for libmad..."
6596 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6597 echo "configure:6598: checking for mad_bit_init in -lmad" >&5
6598 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6602 ac_save_LIBS="$LIBS"
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char mad_bit_init();
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_lib_$ac_lib_var=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_lib_$ac_lib_var=no"
6626 LIBS="$ac_save_LIBS"
6629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6632 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6633 cat >> confdefs.h <<EOF
6634 #define $ac_tr_lib 1
6640 echo "$ac_t""no" 1>&6
6641 echo "Cannot find libmad library..."
6647 LDFLAGS=$save_LDFLAGS
6648 PLUGINS="${PLUGINS} mad"
6653 if test x$SYS = xbeos
6655 BUILTINS="${BUILTINS} beos"
6659 # Check whether --enable-dsp or --disable-dsp was given.
6660 if test "${enable_dsp+set}" = set; then
6661 enableval="$enable_dsp"
6666 if test x$enable_dsp != xno &&
6667 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6669 for ac_hdr in sys/soundcard.h machine/soundcard.h
6671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6673 echo "configure:6674: checking for $ac_hdr" >&5
6674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6683 { (eval echo configure:6684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6685 if test -z "$ac_err"; then
6687 eval "ac_cv_header_$ac_safe=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 eval "ac_cv_header_$ac_safe=no"
6697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6700 cat >> confdefs.h <<EOF
6701 #define $ac_tr_hdr 1
6704 PLUGINS="${PLUGINS} dsp"
6707 echo "$ac_t""no" 1>&6
6713 # Check whether --enable-esd or --disable-esd was given.
6714 if test "${enable_esd+set}" = set; then
6715 enableval="$enable_esd"
6716 if test x$enable_esd = xyes
6718 # Extract the first word of "esd-config", so it can be a program name with args.
6719 set dummy esd-config; ac_word=$2
6720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6721 echo "configure:6722: checking for $ac_word" >&5
6722 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6725 case "$ESD_CONFIG" in
6727 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6730 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6735 for ac_dir in $ac_dummy; do
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f $ac_dir/$ac_word; then
6738 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6743 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6747 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6748 if test -n "$ESD_CONFIG"; then
6749 echo "$ac_t""$ESD_CONFIG" 1>&6
6751 echo "$ac_t""no" 1>&6
6754 if test x${ESD_CONFIG} != xno
6756 PLUGINS="${PLUGINS} esd"
6757 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6758 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6764 # Check whether --enable-arts or --disable-arts was given.
6765 if test "${enable_arts+set}" = set; then
6766 enableval="$enable_arts"
6767 if test x$enable_arts = xyes
6769 # Extract the first word of "artsc-config", so it can be a program name with args.
6770 set dummy artsc-config; ac_word=$2
6771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6772 echo "configure:6773: checking for $ac_word" >&5
6773 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 case "$ARTS_CONFIG" in
6778 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6781 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6786 for ac_dir in $ac_dummy; do
6787 test -z "$ac_dir" && ac_dir=.
6788 if test -f $ac_dir/$ac_word; then
6789 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6794 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6798 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6799 if test -n "$ARTS_CONFIG"; then
6800 echo "$ac_t""$ARTS_CONFIG" 1>&6
6802 echo "$ac_t""no" 1>&6
6805 if test x${ARTS_CONFIG} != xno
6807 PLUGINS="${PLUGINS} arts"
6808 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
6809 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
6815 # Check whether --enable-macosx or --disable-macosx was given.
6816 if test "${enable_macosx+set}" = set; then
6817 enableval="$enable_macosx"
6818 if test x$enable_macosx = xyes
6820 BUILTINS="${BUILTINS} macosx"
6821 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6822 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6826 for ac_hdr in Cocoa/Cocoa.h
6828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6830 echo "configure:6831: checking for $ac_hdr" >&5
6831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6840 { (eval echo configure:6841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6842 if test -z "$ac_err"; then
6844 eval "ac_cv_header_$ac_safe=yes"
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 eval "ac_cv_header_$ac_safe=no"
6854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6857 cat >> confdefs.h <<EOF
6858 #define $ac_tr_hdr 1
6860 BUILTINS="${BUILTINS} macosx"
6861 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6862 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6866 echo "$ac_t""no" 1>&6
6873 # Check whether --enable-qnx or --disable-qnx was given.
6874 if test "${enable_qnx+set}" = set; then
6875 enableval="$enable_qnx"
6879 if test x$enable_qnx != xno
6883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6885 echo "configure:6886: checking for $ac_hdr" >&5
6886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6895 { (eval echo configure:6896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6897 if test -z "$ac_err"; then
6899 eval "ac_cv_header_$ac_safe=yes"
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 eval "ac_cv_header_$ac_safe=no"
6909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6910 echo "$ac_t""yes" 1>&6
6911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6912 cat >> confdefs.h <<EOF
6913 #define $ac_tr_hdr 1
6916 PLUGINS="${PLUGINS} qnx"
6917 LIB_QNX="${LIB_QNX} -lasound -lph"
6920 echo "$ac_t""no" 1>&6
6926 # Check whether --enable-liba52 or --disable-liba52 was given.
6927 if test "${enable_liba52+set}" = set; then
6928 enableval="$enable_liba52"
6932 if ((test "x$enableval" != "xno") && (test x$SYS != xmingw32))
6934 for ac_hdr in a52dec/a52.h
6936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6938 echo "configure:6939: checking for $ac_hdr" >&5
6939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6948 { (eval echo configure:6949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6950 if test -z "$ac_err"; then
6952 eval "ac_cv_header_$ac_safe=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 eval "ac_cv_header_$ac_safe=no"
6962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6963 echo "$ac_t""yes" 1>&6
6964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6965 cat >> confdefs.h <<EOF
6966 #define $ac_tr_hdr 1
6969 PLUGINS="${PLUGINS} liba52_adec"
6970 LIB_LIBA52_ADEC="-la52"
6973 echo "$ac_t""no" 1>&6
6979 # Check whether --enable-fb or --disable-fb was given.
6980 if test "${enable_fb+set}" = set; then
6981 enableval="$enable_fb"
6982 if test x$enable_fb = xyes
6984 PLUGINS="${PLUGINS} fb"
6989 # Check whether --enable-mga or --disable-mga was given.
6990 if test "${enable_mga+set}" = set; then
6991 enableval="$enable_mga"
6992 if test x$enable_mga = xyes
6994 PLUGINS="${PLUGINS} mga xmga"
6999 # Check whether --with-ggi or --without-ggi was given.
7000 if test "${with_ggi+set}" = set; then
7002 if test "x$withval" != "xno"
7004 PLUGINS="${PLUGINS} ggi"
7005 if test "x$withval" != "xyes"
7007 LIB_GGI="${LIB_GGI} -l$withval"
7009 LIB_GGI="${LIB_GGI} -lggi"
7015 # Check whether --enable-sdl or --disable-sdl was given.
7016 if test "${enable_sdl+set}" = set; then
7017 enableval="$enable_sdl"
7021 if test "x$enable_sdl" != "xno"
7024 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7025 if test "${with_sdl_config_path+set}" = set; then
7026 withval="$with_sdl_config_path"
7027 if test "x$withval" != "xno"
7029 SDL_PATH=$withval:$PATH
7033 # Extract the first word of "sdl12-config", so it can be a program name with args.
7034 set dummy sdl12-config; ac_word=$2
7035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7036 echo "configure:7037: checking for $ac_word" >&5
7037 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 case "$SDL12_CONFIG" in
7042 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7045 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7049 ac_dummy="$SDL_PATH"
7050 for ac_dir in $ac_dummy; do
7051 test -z "$ac_dir" && ac_dir=.
7052 if test -f $ac_dir/$ac_word; then
7053 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7058 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7062 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7063 if test -n "$SDL12_CONFIG"; then
7064 echo "$ac_t""$SDL12_CONFIG" 1>&6
7066 echo "$ac_t""no" 1>&6
7069 SDL_CONFIG=${SDL12_CONFIG}
7070 SDL_HEADER="SDL12/SDL.h"
7071 if test x${SDL_CONFIG} = xno
7073 # Extract the first word of "sdl11-config", so it can be a program name with args.
7074 set dummy sdl11-config; ac_word=$2
7075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_word" >&5
7077 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 case "$SDL11_CONFIG" in
7082 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7085 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7089 ac_dummy="$SDL_PATH"
7090 for ac_dir in $ac_dummy; do
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/$ac_word; then
7093 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7098 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7102 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7103 if test -n "$SDL11_CONFIG"; then
7104 echo "$ac_t""$SDL11_CONFIG" 1>&6
7106 echo "$ac_t""no" 1>&6
7109 SDL_CONFIG=${SDL11_CONFIG}
7110 SDL_HEADER="SDL11/SDL.h"
7112 if test x${SDL_CONFIG} = xno
7114 # Extract the first word of "sdl-config", so it can be a program name with args.
7115 set dummy sdl-config; ac_word=$2
7116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7117 echo "configure:7118: checking for $ac_word" >&5
7118 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7121 case "$SDL_CONFIG" in
7123 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7126 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7130 ac_dummy="$SDL_PATH"
7131 for ac_dir in $ac_dummy; do
7132 test -z "$ac_dir" && ac_dir=.
7133 if test -f $ac_dir/$ac_word; then
7134 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7139 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7143 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7144 if test -n "$SDL_CONFIG"; then
7145 echo "$ac_t""$SDL_CONFIG" 1>&6
7147 echo "$ac_t""no" 1>&6
7150 SDL_HEADER="SDL/SDL.h"
7152 if test x${SDL_CONFIG} != xno
7154 PLUGINS="${PLUGINS} sdl"
7155 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7156 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7157 save_CPPFLAGS=$CPPFLAGS
7158 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7159 for ac_hdr in ${SDL_HEADER}
7161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7163 echo "configure:7164: checking for $ac_hdr" >&5
7164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7173 { (eval echo configure:7174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7175 if test -z "$ac_err"; then
7177 eval "ac_cv_header_$ac_safe=yes"
7180 echo "configure: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7183 eval "ac_cv_header_$ac_safe=no"
7187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7188 echo "$ac_t""yes" 1>&6
7189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7190 cat >> confdefs.h <<EOF
7191 #define $ac_tr_hdr 1
7193 cat >> confdefs.h <<EOF
7194 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7198 echo "$ac_t""no" 1>&6
7199 { echo "configure: error: The development package for SDL is not installed.
7200 Please install it and try again. Alternatively you can also configure with
7201 --disable-sdl." 1>&2; exit 1; }
7206 CPPFLAGS=$save_CPPFLAGS
7207 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7209 { echo "configure: error: The development package for SDL is not installed.
7210 Please install it and try again. Alternatively you can also configure with
7211 --disable-sdl." 1>&2; exit 1; }
7213 elif test "x$enable_sdl" = "xyes"
7215 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7216 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7221 # Check whether --enable-directx or --disable-directx was given.
7222 if test "${enable_directx+set}" = set; then
7223 enableval="$enable_directx"
7227 if test "x$enableval" != "xno"
7229 if test x$SYS = xmingw32
7231 # Check whether --with-directx-path or --without-directx-path was given.
7232 if test "${with_directx_path+set}" = set; then
7233 withval="$with_directx_path"
7237 if test "x$with_directx_path" = "x"
7239 for ac_hdr in directx.h
7241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7243 echo "configure:7244: checking for $ac_hdr" >&5
7244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7255 if test -z "$ac_err"; then
7257 eval "ac_cv_header_$ac_safe=yes"
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 eval "ac_cv_header_$ac_safe=no"
7267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7268 echo "$ac_t""yes" 1>&6
7269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7270 cat >> confdefs.h <<EOF
7271 #define $ac_tr_hdr 1
7273 PLUGINS="${PLUGINS} directx"
7274 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7276 echo "$ac_t""no" 1>&6
7281 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7282 echo "configure:7283: checking for directX headers in ${withval}" >&5
7283 if test -f ${withval}/include/directx.h
7285 PLUGINS="${PLUGINS} directx"
7286 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7287 INCLUDE="${INCLUDE} -I${withval}/include"
7288 echo "$ac_t""yes" 1>&6
7290 echo "$ac_t""no" 1>&6
7291 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7297 # Check whether --enable-waveout or --disable-waveout was given.
7298 if test "${enable_waveout+set}" = set; then
7299 enableval="$enable_waveout"
7303 if ((test "x$enableval" != "xno") && (test x$SYS = xmingw32))
7305 PLUGINS="${PLUGINS} waveout"
7306 LIB_WAVEOUT="-lwinmm"
7309 # Check whether --enable-win32 or --disable-win32 was given.
7310 if test "${enable_win32+set}" = set; then
7311 enableval="$enable_win32"
7312 if test "x$enableval" != "xno"
7314 PLUGINS="${PLUGINS} win32"
7319 # Check whether --with-glide or --without-glide was given.
7320 if test "${with_glide+set}" = set; then
7321 withval="$with_glide"
7322 if test "x$withval" != "xno"
7324 PLUGINS="${PLUGINS} glide"
7325 if test "x$withval" != "xyes"
7327 LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
7329 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7331 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7336 # Check whether --enable-ncurses or --disable-ncurses was given.
7337 if test "${enable_ncurses+set}" = set; then
7338 enableval="$enable_ncurses"
7339 if test x$enable_ncurses = xyes; then
7340 PLUGINS="${PLUGINS} ncurses"
7341 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7346 # Check whether --enable-qt or --disable-qt was given.
7347 if test "${enable_qt+set}" = set; then
7348 enableval="$enable_qt"
7349 if test x$enable_qt = xyes; then
7350 PLUGINS="${PLUGINS} qt"
7351 ALIASES="${ALIASES} qvlc"
7352 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7353 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7354 if test -x ${QTDIR}/bin/moc
7356 MOC=${QTDIR}/bin/moc
7364 # Check whether --enable-kde or --disable-kde was given.
7365 if test "${enable_kde+set}" = set; then
7366 enableval="$enable_kde"
7367 if test x$enable_kde = xyes; then
7368 PLUGINS="${PLUGINS} kde"
7369 ALIASES="${ALIASES} kvlc"
7370 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7371 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7372 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7373 if test -x ${QTDIR}/bin/moc
7375 MOC=${QTDIR}/bin/moc
7383 # Check whether --enable-gnome or --disable-gnome was given.
7384 if test "${enable_gnome+set}" = set; then
7385 enableval="$enable_gnome"
7386 if test x$enable_gnome = xyes; then
7387 # look for gnome-config
7388 # Extract the first word of "gnome-config", so it can be a program name with args.
7389 set dummy gnome-config; ac_word=$2
7390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_word" >&5
7392 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7395 case "$GNOME_CONFIG" in
7397 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7400 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7405 for ac_dir in $ac_dummy; do
7406 test -z "$ac_dir" && ac_dir=.
7407 if test -f $ac_dir/$ac_word; then
7408 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7413 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7417 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7418 if test -n "$GNOME_CONFIG"; then
7419 echo "$ac_t""$GNOME_CONFIG" 1>&6
7421 echo "$ac_t""no" 1>&6
7424 if test -x ${GNOME_CONFIG}
7426 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7427 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7429 # now look for the gnome.h header
7430 saved_CPPFLAGS=$CPPFLAGS
7431 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7432 for ac_hdr in gnome.h
7434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_hdr" >&5
7437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7446 { (eval echo configure:7447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7448 if test -z "$ac_err"; then
7450 eval "ac_cv_header_$ac_safe=yes"
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 eval "ac_cv_header_$ac_safe=no"
7460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7463 cat >> confdefs.h <<EOF
7464 #define $ac_tr_hdr 1
7467 PLUGINS="${PLUGINS} gnome"
7468 ALIASES="${ALIASES} gnome-vlc"
7471 echo "$ac_t""no" 1>&6
7472 { echo "configure: error: Can't find gnome headers. Please install the gnome
7473 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7479 CPPFLAGS=$saved_CPPFLAGS
7484 # Check whether --enable-gtk or --disable-gtk was given.
7485 if test "${enable_gtk+set}" = set; then
7486 enableval="$enable_gtk"
7490 if test x$enable_gtk != xno
7493 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7494 if test "${with_gtk_config_path+set}" = set; then
7495 withval="$with_gtk_config_path"
7496 if test "x$withval" != "xno"
7498 GTK_PATH=$withval:$PATH
7502 # look for gtk-config
7503 # Extract the first word of "gtk-config", so it can be a program name with args.
7504 set dummy gtk-config; ac_word=$2
7505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7506 echo "configure:7507: checking for $ac_word" >&5
7507 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 case "$GTK_CONFIG" in
7512 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7515 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7519 ac_dummy="$GTK_PATH"
7520 for ac_dir in $ac_dummy; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f $ac_dir/$ac_word; then
7523 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7528 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7532 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7533 if test -n "$GTK_CONFIG"; then
7534 echo "$ac_t""$GTK_CONFIG" 1>&6
7536 echo "$ac_t""no" 1>&6
7539 if test -x ${GTK_CONFIG}
7541 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7543 { 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; }
7545 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7546 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7548 # now look for the gtk.h header
7549 saved_CPPFLAGS=$CPPFLAGS
7550 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7551 ac_cv_gtk_headers=yes
7552 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7556 echo "configure:7557: checking for $ac_hdr" >&5
7557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7568 if test -z "$ac_err"; then
7570 eval "ac_cv_header_$ac_safe=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_header_$ac_safe=no"
7580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7583 cat >> confdefs.h <<EOF
7584 #define $ac_tr_hdr 1
7588 echo "$ac_t""no" 1>&6
7589 ac_cv_gtk_headers=no
7590 echo "Cannot find gtk development headers."
7595 if test "x$ac_cv_gtk_headers" = xyes
7597 PLUGINS="${PLUGINS} gtk"
7598 ALIASES="${ALIASES} gvlc"
7600 CPPFLAGS=$saved_CPPFLAGS
7603 # Check whether --enable-x11 or --disable-x11 was given.
7604 if test "${enable_x11+set}" = set; then
7605 enableval="$enable_x11"
7609 if test x$enable_x11 != xno &&
7610 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
7611 if test x$x_includes = xNONE; then
7612 x_includes=/usr/X11R6/include
7614 if test x$x_libraries = xNONE; then
7615 x_libraries=/usr/X11R6/lib
7617 saved_CPPFLAGS=$CPPFLAGS
7618 CPPFLAGS="$CPPFLAGS -I$x_includes"
7619 for ac_hdr in X11/Xlib.h
7621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7623 echo "configure:7624: checking for $ac_hdr" >&5
7624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7633 { (eval echo configure:7634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7635 if test -z "$ac_err"; then
7637 eval "ac_cv_header_$ac_safe=yes"
7640 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7643 eval "ac_cv_header_$ac_safe=no"
7647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7648 echo "$ac_t""yes" 1>&6
7649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_hdr 1
7654 PLUGINS="${PLUGINS} x11"
7655 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7656 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7659 echo "$ac_t""no" 1>&6
7663 CPPFLAGS=$saved_CPPFLAGS
7666 # Check whether --enable-xvideo or --disable-xvideo was given.
7667 if test "${enable_xvideo+set}" = set; then
7668 enableval="$enable_xvideo"
7672 if test x$enable_xvideo != xno &&
7673 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7674 if test x$x_includes = xNONE; then
7675 x_includes=/usr/X11R6/include
7677 if test x$x_libraries = xNONE; then
7678 x_libraries=/usr/X11R6/lib
7680 saved_CPPFLAGS=$CPPFLAGS
7681 CPPFLAGS="$CPPFLAGS -I$x_includes"
7682 for ac_hdr in X11/extensions/Xv.h
7684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_hdr" >&5
7687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7696 { (eval echo configure:7697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7698 if test -z "$ac_err"; then
7700 eval "ac_cv_header_$ac_safe=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 eval "ac_cv_header_$ac_safe=no"
7710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7713 cat >> confdefs.h <<EOF
7714 #define $ac_tr_hdr 1
7717 saved_CFLAGS=$CFLAGS
7718 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7719 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7720 echo "configure:7721: checking for XvSetPortAttribute in -lXv_pic" >&5
7721 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7725 ac_save_LIBS="$LIBS"
7726 LIBS="-lXv_pic $LIBS"
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char XvSetPortAttribute();
7736 XvSetPortAttribute()
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 eval "ac_cv_lib_$ac_lib_var=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 eval "ac_cv_lib_$ac_lib_var=no"
7749 LIBS="$ac_save_LIBS"
7752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7753 echo "$ac_t""yes" 1>&6
7754 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7755 PLUGINS="${PLUGINS} xvideo"
7756 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7757 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7759 echo "$ac_t""no" 1>&6
7760 # We don't have Xv_pic, let's make xvideo.a as builtin
7761 BUILTINS="${BUILTINS} xvideo"
7762 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7763 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7766 CFLAGS=$saved_CFLAGS
7768 CPPFLAGS=$saved_CPPFLAGS
7770 echo "$ac_t""no" 1>&6
7776 # Check whether --enable-alsa or --disable-alsa was given.
7777 if test "${enable_alsa+set}" = set; then
7778 enableval="$enable_alsa"
7779 if test x$enable_alsa = xyes
7781 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7782 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7783 echo "configure:7784: checking for alsa/asoundlib.h" >&5
7784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 #include <alsa/asoundlib.h>
7792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7793 { (eval echo configure:7794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7795 if test -z "$ac_err"; then
7797 eval "ac_cv_header_$ac_safe=yes"
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7803 eval "ac_cv_header_$ac_safe=no"
7807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7810 echo "configure:7811: checking for main in -lasound" >&5
7811 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_save_LIBS="$LIBS"
7816 LIBS="-lasound $LIBS"
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7827 eval "ac_cv_lib_$ac_lib_var=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7832 eval "ac_cv_lib_$ac_lib_var=no"
7835 LIBS="$ac_save_LIBS"
7838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7839 echo "$ac_t""yes" 1>&6
7842 echo "$ac_t""no" 1>&6
7847 echo "$ac_t""no" 1>&6
7851 if test x$have_alsa = xtrue
7853 PLUGINS="${PLUGINS} alsa"
7854 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7862 # Check whether --enable-plugins or --disable-plugins was given.
7863 if test "${enable_plugins+set}" = set; then
7864 enableval="$enable_plugins"
7865 if test x$enable_plugins = xno
7867 BUILTINS="${BUILTINS} ${PLUGINS}"
7874 # Check whether --with-dll-path or --without-dll-path was given.
7875 if test "${with_dll_path+set}" = set; then
7876 withval="$with_dll_path"
7877 if test "x$withval" != "xno"
7884 cat >> confdefs.h <<EOF
7885 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7888 cat >> confdefs.h <<EOF
7889 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7893 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7894 cat >> confdefs.h <<EOF
7895 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7898 cat >> confdefs.h <<EOF
7899 #define MODULE_SYMBOL $VLC_SYMBOL
7903 DATA_PATH="${ac_tool_prefix}/share/videolan"
7905 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7999 cat > confcache <<\EOF
8000 # This file is a shell script that caches the results of configure
8001 # tests run on this system so they can be shared between configure
8002 # scripts and configure runs. It is not useful on other systems.
8003 # If it contains results you don't want to keep, you may remove or edit it.
8005 # By default, configure uses ./config.cache as the cache file,
8006 # creating it if it does not exist already. You can give configure
8007 # the --cache-file=FILE option to use a different cache file; that is
8008 # what configure does when it calls configure scripts in
8009 # subdirectories, so they share the cache.
8010 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8011 # config.status only pays attention to the cache file if you give it the
8012 # --recheck option to rerun configure.
8015 # The following way of writing the cache mishandles newlines in values,
8016 # but we know of no workaround that is simple, portable, and efficient.
8017 # So, don't put newlines in cache variables' values.
8018 # Ultrix sh set writes to stderr and can't be redirected directly,
8019 # and sets the high bit in the cache file unless we assign to the vars.
8021 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8023 # `set' does not quote correctly, so add quotes (double-quote substitution
8024 # turns \\\\ into \\, and sed turns \\ into \).
8026 -e "s/'/'\\\\''/g" \
8027 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8030 # `set' quotes correctly as required by POSIX, so do not add quotes.
8031 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8034 if cmp -s $cache_file confcache; then
8037 if test -w $cache_file; then
8038 echo "updating cache $cache_file"
8039 cat confcache > $cache_file
8041 echo "not updating unwritable cache $cache_file"
8046 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8049 # Let make expand exec_prefix.
8050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8052 # Any assignment to VPATH causes Sun make to only execute
8053 # the first set of double-colon rules, so remove it if not needed.
8054 # If there is a colon in the path, we need to keep it.
8055 if test "x$srcdir" = x.; then
8056 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8059 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8061 DEFS=-DHAVE_CONFIG_H
8063 # Without the "./", some shells look in PATH for config.status.
8064 : ${CONFIG_STATUS=./config.status}
8066 echo creating $CONFIG_STATUS
8067 rm -f $CONFIG_STATUS
8068 cat > $CONFIG_STATUS <<EOF
8070 # Generated automatically by configure.
8071 # Run this file to recreate the current configuration.
8072 # This directory was configured as follows,
8073 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8075 # $0 $ac_configure_args
8077 # Compiler output produced by configure, useful for debugging
8078 # configure, is in ./config.log if it exists.
8080 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8083 case "\$ac_option" in
8084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8085 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8086 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8087 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8088 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8090 -help | --help | --hel | --he | --h)
8091 echo "\$ac_cs_usage"; exit 0 ;;
8092 *) echo "\$ac_cs_usage"; exit 1 ;;
8096 ac_given_srcdir=$srcdir
8097 ac_given_INSTALL="$INSTALL"
8099 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8101 cat >> $CONFIG_STATUS <<EOF
8103 # Protect against being on the right side of a sed subst in config.status.
8104 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8105 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8109 s%@CFLAGS@%$CFLAGS%g
8110 s%@CPPFLAGS@%$CPPFLAGS%g
8111 s%@CXXFLAGS@%$CXXFLAGS%g
8112 s%@FFLAGS@%$FFLAGS%g
8114 s%@LDFLAGS@%$LDFLAGS%g
8116 s%@exec_prefix@%$exec_prefix%g
8117 s%@prefix@%$prefix%g
8118 s%@program_transform_name@%$program_transform_name%g
8119 s%@bindir@%$bindir%g
8120 s%@sbindir@%$sbindir%g
8121 s%@libexecdir@%$libexecdir%g
8122 s%@datadir@%$datadir%g
8123 s%@sysconfdir@%$sysconfdir%g
8124 s%@sharedstatedir@%$sharedstatedir%g
8125 s%@localstatedir@%$localstatedir%g
8126 s%@libdir@%$libdir%g
8127 s%@includedir@%$includedir%g
8128 s%@oldincludedir@%$oldincludedir%g
8129 s%@infodir@%$infodir%g
8130 s%@mandir@%$mandir%g
8132 s%@host_alias@%$host_alias%g
8133 s%@host_cpu@%$host_cpu%g
8134 s%@host_vendor@%$host_vendor%g
8135 s%@host_os@%$host_os%g
8136 s%@target@%$target%g
8137 s%@target_alias@%$target_alias%g
8138 s%@target_cpu@%$target_cpu%g
8139 s%@target_vendor@%$target_vendor%g
8140 s%@target_os@%$target_os%g
8142 s%@build_alias@%$build_alias%g
8143 s%@build_cpu@%$build_cpu%g
8144 s%@build_vendor@%$build_vendor%g
8145 s%@build_os@%$build_os%g
8146 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8147 s%@SET_MAKE@%$SET_MAKE%g
8150 s%@RANLIB@%$RANLIB%g
8151 s%@ALLOCA@%$ALLOCA%g
8152 s%@GLIBC21@%$GLIBC21%g
8153 s%@LIBICONV@%$LIBICONV%g
8154 s%@USE_NLS@%$USE_NLS%g
8155 s%@MSGFMT@%$MSGFMT%g
8156 s%@GMSGFMT@%$GMSGFMT%g
8157 s%@XGETTEXT@%$XGETTEXT%g
8158 s%@INTLBISON@%$INTLBISON%g
8159 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8160 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8161 s%@CATALOGS@%$CATALOGS%g
8162 s%@CATOBJEXT@%$CATOBJEXT%g
8163 s%@GMOFILES@%$GMOFILES%g
8164 s%@INTLLIBS@%$INTLLIBS%g
8165 s%@INTLOBJS@%$INTLOBJS%g
8166 s%@POFILES@%$POFILES%g
8168 s%@DATADIRNAME@%$DATADIRNAME%g
8169 s%@INSTOBJEXT@%$INSTOBJEXT%g
8170 s%@GENCAT@%$GENCAT%g
8171 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8172 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8173 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8174 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8175 s%@INSTALL_DATA@%$INSTALL_DATA%g
8176 s%@WINDRES@%$WINDRES%g
8177 s%@ESD_CONFIG@%$ESD_CONFIG%g
8178 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8179 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8180 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8181 s%@SDL_CONFIG@%$SDL_CONFIG%g
8182 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8183 s%@GTK_CONFIG@%$GTK_CONFIG%g
8184 s%@DATA_PATH@%$DATA_PATH%g
8185 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8188 s%@PLUGINS@%$PLUGINS%g
8189 s%@BUILTINS@%$BUILTINS%g
8190 s%@ALIASES@%$ALIASES%g
8191 s%@INCLUDE@%$INCLUDE%g
8197 s%@OPTIMS@%$OPTIMS%g
8198 s%@TUNING@%$TUNING%g
8199 s%@RELEASE@%$RELEASE%g
8201 s%@DLL_PATH@%$DLL_PATH%g
8202 s%@PACKAGE@%$PACKAGE%g
8203 s%@VERSION@%$VERSION%g
8204 s%@VCD_DEVICE@%$VCD_DEVICE%g
8205 s%@DVD_DEVICE@%$DVD_DEVICE%g
8206 s%@PLDFLAGS@%$PLDFLAGS%g
8207 s%@SOFLAGS@%$SOFLAGS%g
8209 s%@LIB_ALSA@%$LIB_ALSA%g
8210 s%@LIB_ARTS@%$LIB_ARTS%g
8211 s%@LIB_BEOS@%$LIB_BEOS%g
8212 s%@LIB_DARWIN@%$LIB_DARWIN%g
8213 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8214 s%@LIB_DVD@%$LIB_DVD%g
8215 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8216 s%@LIB_ESD@%$LIB_ESD%g
8217 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8218 s%@LIB_GGI@%$LIB_GGI%g
8219 s%@LIB_GLIDE@%$LIB_GLIDE%g
8220 s%@LIB_GNOME@%$LIB_GNOME%g
8221 s%@LIB_GTK@%$LIB_GTK%g
8222 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8223 s%@LIB_IMDCT@%$LIB_IMDCT%g
8224 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8225 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8226 s%@LIB_KDE@%$LIB_KDE%g
8227 s%@LIB_LIBA52_ADEC@%$LIB_LIBA52_ADEC%g
8228 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8229 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8230 s%@LIB_MACOSX@%$LIB_MACOSX%g
8231 s%@LIB_MAD@%$LIB_MAD%g
8232 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8233 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8234 s%@LIB_NCURSES@%$LIB_NCURSES%g
8235 s%@LIB_QNX@%$LIB_QNX%g
8236 s%@LIB_QT@%$LIB_QT%g
8237 s%@LIB_RC@%$LIB_RC%g
8238 s%@LIB_SDL@%$LIB_SDL%g
8239 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8240 s%@LIB_WIN32@%$LIB_WIN32%g
8241 s%@LIB_X11@%$LIB_X11%g
8242 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8243 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8244 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8245 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8246 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8247 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8248 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8249 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8250 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8251 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8252 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8253 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8254 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8255 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8256 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8257 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8258 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8259 s%@CFLAGS_QT@%$CFLAGS_QT%g
8260 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8261 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8262 s%@CFLAGS_X11@%$CFLAGS_X11%g
8263 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8264 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8265 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8266 s%@NEED_GETOPT@%$NEED_GETOPT%g
8267 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8272 cat >> $CONFIG_STATUS <<\EOF
8274 # Split the substitutions into bite-sized pieces for seds with
8275 # small command number limits, like on Digital OSF/1 and HP-UX.
8276 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8277 ac_file=1 # Number of current file.
8278 ac_beg=1 # First line for current file.
8279 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8282 while $ac_more_lines; do
8283 if test $ac_beg -gt 1; then
8284 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8286 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8288 if test ! -s conftest.s$ac_file; then
8290 rm -f conftest.s$ac_file
8292 if test -z "$ac_sed_cmds"; then
8293 ac_sed_cmds="sed -f conftest.s$ac_file"
8295 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8297 ac_file=`expr $ac_file + 1`
8299 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8302 if test -z "$ac_sed_cmds"; then
8307 cat >> $CONFIG_STATUS <<EOF
8309 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8311 cat >> $CONFIG_STATUS <<\EOF
8312 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8315 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8316 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8317 *) ac_file_in="${ac_file}.in" ;;
8320 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8322 # Remove last slash and all that follows it. Not all systems have dirname.
8323 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8324 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8325 # The file is in a subdirectory.
8326 test ! -d "$ac_dir" && mkdir "$ac_dir"
8327 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8328 # A "../" for each directory in $ac_dir_suffix.
8329 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8331 ac_dir_suffix= ac_dots=
8334 case "$ac_given_srcdir" in
8336 if test -z "$ac_dots"; then top_srcdir=.
8337 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8338 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8340 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8341 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8344 case "$ac_given_INSTALL" in
8345 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8346 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8349 echo creating "$ac_file"
8351 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8353 *Makefile*) ac_comsub="1i\\
8354 # $configure_input" ;;
8358 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8360 s%@configure_input@%$configure_input%g
8361 s%@srcdir@%$srcdir%g
8362 s%@top_srcdir@%$top_srcdir%g
8363 s%@INSTALL@%$INSTALL%g
8364 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8368 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8369 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8371 # ac_d sets the value in "#define NAME VALUE" lines.
8372 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8373 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8376 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8377 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8378 ac_uB='\([ ]\)%\1#\2define\3'
8381 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8382 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8383 ac_eB='$%\1#\2define\3'
8387 if test "${CONFIG_HEADERS+set}" != set; then
8389 cat >> $CONFIG_STATUS <<EOF
8390 CONFIG_HEADERS="include/defs.h"
8392 cat >> $CONFIG_STATUS <<\EOF
8394 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8395 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8397 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8398 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8399 *) ac_file_in="${ac_file}.in" ;;
8402 echo creating $ac_file
8404 rm -f conftest.frag conftest.in conftest.out
8405 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8406 cat $ac_file_inputs > conftest.in
8410 # Transform confdefs.h into a sed script conftest.vals that substitutes
8411 # the proper values into config.h.in to produce config.h. And first:
8412 # Protect against being on the right side of a sed subst in config.status.
8413 # Protect against being in an unquoted here document in config.status.
8415 cat > conftest.hdr <<\EOF
8418 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8422 sed -n -f conftest.hdr confdefs.h > conftest.vals
8425 # This sed command replaces #undef with comments. This is necessary, for
8426 # example, in the case of _POSIX_SOURCE, which is predefined and required
8427 # on some systems where configure will not decide to define it.
8428 cat >> conftest.vals <<\EOF
8429 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8432 # Break up conftest.vals because some shells have a limit on
8433 # the size of here documents, and old seds have small limits too.
8438 ac_lines=`grep -c . conftest.vals`
8439 # grep -c gives empty output for an empty file on some AIX systems.
8440 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8441 # Write a limited-size here document to conftest.frag.
8442 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8443 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8445 sed -f conftest.frag conftest.in > conftest.out
8447 mv conftest.out conftest.in
8449 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8451 mv conftest.tail conftest.vals
8455 cat >> $CONFIG_STATUS <<\EOF
8456 rm -f conftest.frag conftest.h
8457 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8458 cat conftest.in >> conftest.h
8460 if cmp -s $ac_file conftest.h 2>/dev/null; then
8461 echo "$ac_file is unchanged"
8464 # Remove last slash and all that follows it. Not all systems have dirname.
8465 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8467 # The file is in a subdirectory.
8468 test ! -d "$ac_dir" && mkdir "$ac_dir"
8471 mv conftest.h $ac_file
8476 cat >> $CONFIG_STATUS <<EOF
8480 cat >> $CONFIG_STATUS <<\EOF
8481 for ac_file in $CONFIG_FILES; do
8482 # Support "outfile[:infile[:infile...]]"
8484 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8486 # PO directories have a Makefile.in generated from Makefile.in.in.
8487 case "$ac_file" in */Makefile.in)
8488 # Adjust a relative srcdir.
8489 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8490 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8491 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8492 # In autoconf-2.13 it is called $ac_given_srcdir.
8493 # In autoconf-2.50 it is called $srcdir.
8494 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8495 case "$ac_given_srcdir" in
8496 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8497 /*) top_srcdir="$ac_given_srcdir" ;;
8498 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8500 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8501 rm -f "$ac_dir/POTFILES"
8502 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8503 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8504 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8505 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8513 chmod +x $CONFIG_STATUS
8514 rm -fr confdefs* $ac_clean_files
8515 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8519 global configuration
8520 --------------------
8522 architecture : ${ARCH}
8523 optimizations : ${OPTIMS}
8525 release: : ${RELEASE}"
8527 if test x${HAVE_VLC} = x1
8532 vlc version : ${VLC_VERSION}
8533 debug mode : ${DEBUG}
8534 trace mode : ${TRACE}
8535 cprof/gprof support : ${CPROF}/${GPROF}
8536 need builtin getopt : ${NEED_GETOPT}
8537 built-in modules :${BUILTINS}
8538 plug-in modules :${PLUGINS}
8539 vlc aliases :${ALIASES}"
8543 libdvdcss configuration
8544 -----------------------
8545 can be built : ${CAN_BUILD_LIBDVDCSS}
8546 will be built : ${NEED_LIBDVDCSS}"
8547 if test x${NEED_LIBDVDCSS} = x1
8549 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8550 echo "link statically : ${STATIC_LIBDVDCSS}"
8552 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8556 You may now tune Makefile.opts at your convenience, for instance to choose
8557 which modules get compiled as plugins.
8559 if test x${HAVE_VLC} = x1
8561 echo "To build vlc and its plugins, type \`make vlc plugins'."
8563 if test x${HAVE_LIBDVDCSS} = x1
8565 echo "To build libdvdcss only, type \`make libdvdcss'."