3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --with-dvdcss[=name] way to use libdvdcss, either local-static, local-shared or a path to another libdvdcss such as /usr/local (default local-static)"
35 --disable-css Disable DVD CSS decryption (default enabled)"
37 --disable-dummy dummy module (default enabled)"
39 --disable-null Null module (default enabled)"
41 --disable-rc rc module (default enabled)"
43 --disable-dsp Linux /dev/dsp support (default enabled)"
45 --enable-esd Esound library support (default disabled)"
47 --enable-darwin Darwin sound support (default disabled)"
49 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
51 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
53 --enable-fb Linux framebuffer support (default disabled)"
55 --with-ggi[=name] GGI support (default disabled)"
57 --disable-sdl SDL support (default enabled)"
59 --with-directx[=name] Windows DirectX support (default enabled)"
61 --with-glide[=name] Glide (3dfx) support (default disabled)"
63 --enable-ncurses ncurses interface support (default disabled)"
65 --enable-qt Qt interface support (default disabled)"
67 --enable-kde KDE interface support (default disabled)"
69 --enable-gnome Gnome interface support (default disabled)"
71 --disable-gtk Gtk+ support (default enabled)"
73 --disable-x11 X11 support (default enabled)"
75 --disable-xvideo XVideo support (default enabled)"
77 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=include/main.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592 if test -f $ac_dir/install-sh; then
594 ac_install_sh="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh; then
598 ac_install_sh="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
639 LIBDVDCSS_VERSION=0.0.2
644 save_CFLAGS="${CFLAGS}"
646 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
647 echo "configure:648: checking whether ${MAKE-make} sets \${MAKE}" >&5
648 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
649 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 cat > conftestmake <<\EOF
654 @echo 'ac_maketemp="${MAKE}"'
656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
657 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
658 if test -n "$ac_maketemp"; then
659 eval ac_cv_prog_make_${ac_make}_set=yes
661 eval ac_cv_prog_make_${ac_make}_set=no
665 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
666 echo "$ac_t""yes" 1>&6
669 echo "$ac_t""no" 1>&6
670 SET_MAKE="MAKE=${MAKE-make}"
673 # Extract the first word of "gcc", so it can be a program name with args.
674 set dummy gcc; ac_word=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC="$CC" # Let the user override the test.
683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
703 # Extract the first word of "cc", so it can be a program name with args.
704 set dummy cc; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$CC"; then
711 ac_cv_prog_CC="$CC" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
716 for ac_dir in $ac_dummy; do
717 test -z "$ac_dir" && ac_dir=.
718 if test -f $ac_dir/$ac_word; then
719 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
728 if test $ac_prog_rejected = yes; then
729 # We found a bogon in the path, so make sure we never use it.
730 set dummy $ac_cv_prog_CC
732 if test $# -gt 0; then
733 # We chose a different compiler from the bogus one.
734 # However, it has the same basename, so the bogon will be chosen
735 # first if we set CC to just the basename; use the full file name.
737 set dummy "$ac_dir/$ac_word" "$@"
745 if test -n "$CC"; then
746 echo "$ac_t""$CC" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test -z "$CC"; then
754 # Extract the first word of "cl", so it can be a program name with args.
755 set dummy cl; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
785 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
788 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cc_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cc_cross=no
811 ac_cv_prog_cc_cross=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cc_works=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
827 if test $ac_cv_prog_cc_works = no; then
828 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cc_cross
835 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 cat > conftest.c <<EOF
845 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854 if test $ac_cv_prog_gcc = yes; then
860 ac_test_CFLAGS="${CFLAGS+set}"
861 ac_save_CFLAGS="$CFLAGS"
863 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CC-cc} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 echo 'void f(){}' > conftest.c
869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
878 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
879 if test "$ac_test_CFLAGS" = set; then
880 CFLAGS="$ac_save_CFLAGS"
881 elif test $ac_cv_prog_cc_g = yes; then
882 if test "$GCC" = yes; then
888 if test "$GCC" = yes; then
895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
896 echo "configure:897: checking how to run the C preprocessor" >&5
897 # On Suns, sometimes $CPP names a directory.
898 if test -n "$CPP" && test -d "$CPP"; then
901 if test -z "$CPP"; then
902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 # This must be in double quotes, not single quotes, because CPP may get
906 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 # On the NeXT, cc -E runs the code through the compiler's parser,
909 # not just through cpp.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
926 CPP="${CC-cc} -E -traditional-cpp"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
943 CPP="${CC-cc} -nologo -E"
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
953 if test -z "$ac_err"; then
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
967 ac_cv_prog_CPP="$CPP"
969 CPP="$ac_cv_prog_CPP"
971 ac_cv_prog_CPP="$CPP"
973 echo "$ac_t""$CPP" 1>&6
975 # Extract the first word of "ranlib", so it can be a program name with args.
976 set dummy ranlib; ac_word=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 echo "configure:979: checking for $ac_word" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 if test -n "$RANLIB"; then
983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_RANLIB="ranlib"
995 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
998 RANLIB="$ac_cv_prog_RANLIB"
999 if test -n "$RANLIB"; then
1000 echo "$ac_t""$RANLIB" 1>&6
1002 echo "$ac_t""no" 1>&6
1006 # Find a good install program. We prefer a C program (faster),
1007 # so one script is as good as another. But avoid the broken or
1008 # incompatible versions:
1009 # SysV /etc/install, /usr/sbin/install
1010 # SunOS /usr/etc/install
1011 # IRIX /sbin/install
1013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1016 # ./install, which can be erroneously created by make from ./install.sh.
1017 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1018 echo "configure:1019: checking for a BSD compatible install" >&5
1019 if test -z "$INSTALL"; then
1020 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1024 for ac_dir in $PATH; do
1025 # Account for people who put trailing slashes in PATH elements.
1027 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1029 # OSF1 and SCO ODT 3.0 have their own names for install.
1030 # Don't use installbsd from OSF since it installs stuff as root
1032 for ac_prog in ginstall scoinst install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1039 ac_cv_path_install="$ac_dir/$ac_prog -c"
1050 if test "${ac_cv_path_install+set}" = set; then
1051 INSTALL="$ac_cv_path_install"
1053 # As a last resort, use the slow shell script. We don't cache a
1054 # path for INSTALL within a source directory, because that will
1055 # break other packages using the cache if that directory is
1056 # removed, or if the path is relative.
1057 INSTALL="$ac_install_sh"
1060 echo "$ac_t""$INSTALL" 1>&6
1062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1063 # It thinks the first close brace ends the variable substitution.
1064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1071 if test x${cross_compiling} != xyes; then
1072 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether byte ordering is bigendian" >&5
1074 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 ac_cv_c_bigendian=unknown
1078 # See if sys/param.h defines the BYTE_ORDER macro.
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <sys/types.h>
1083 #include <sys/param.h>
1086 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1091 if { (eval echo configure:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1093 # It does; now see whether it defined to BIG_ENDIAN or not.
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 #include <sys/types.h>
1098 #include <sys/param.h>
1101 #if BYTE_ORDER != BIG_ENDIAN
1106 if { (eval echo configure:1107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1108 ac_cv_c_bigendian=yes
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1113 ac_cv_c_bigendian=no
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1121 if test $ac_cv_c_bigendian = unknown; then
1122 if test "$cross_compiling" = yes; then
1123 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1125 cat > conftest.$ac_ext <<EOF
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1129 /* Are we little or big endian? From Harbison&Steele. */
1133 char c[sizeof (long)];
1136 exit (u.c[sizeof (long) - 1] == 1);
1139 if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1141 ac_cv_c_bigendian=no
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1146 ac_cv_c_bigendian=yes
1154 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1155 if test $ac_cv_c_bigendian = yes; then
1156 cat >> confdefs.h <<\EOF
1157 #define WORDS_BIGENDIAN 1
1164 for ac_func in gettimeofday select strerror strtod strtol
1166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_func" >&5
1168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 cat > conftest.$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1174 /* System header to define __stub macros and hopefully few prototypes,
1175 which can conflict with char $ac_func(); below. */
1177 /* Override any gcc2 internal prototype to avoid an error. */
1178 /* We use char because int might match the return type of a gcc2
1179 builtin and then its argument prototype would still apply. */
1184 /* The GNU C library defines this for functions which it implements
1185 to always fail with ENOSYS. Some functions are actually named
1186 something starting with __ and the normal name is an alias. */
1187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1195 if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1197 eval "ac_cv_func_$ac_func=yes"
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1202 eval "ac_cv_func_$ac_func=no"
1207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1210 cat >> confdefs.h <<EOF
1211 #define $ac_tr_func 1
1215 echo "$ac_t""no" 1>&6
1219 for ac_func in setenv putenv
1221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_func" >&5
1223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 /* System header to define __stub macros and hopefully few prototypes,
1230 which can conflict with char $ac_func(); below. */
1232 /* Override any gcc2 internal prototype to avoid an error. */
1233 /* We use char because int might match the return type of a gcc2
1234 builtin and then its argument prototype would still apply. */
1239 /* The GNU C library defines this for functions which it implements
1240 to always fail with ENOSYS. Some functions are actually named
1241 something starting with __ and the normal name is an alias. */
1242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1250 if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1252 eval "ac_cv_func_$ac_func=yes"
1254 echo "configure: failed program was:" >&5
1255 cat conftest.$ac_ext >&5
1257 eval "ac_cv_func_$ac_func=no"
1262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1265 cat >> confdefs.h <<EOF
1266 #define $ac_tr_func 1
1270 echo "$ac_t""no" 1>&6
1274 echo $ac_n "checking for connect""... $ac_c" 1>&6
1275 echo "configure:1276: checking for connect" >&5
1276 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 /* System header to define __stub macros and hopefully few prototypes,
1283 which can conflict with char connect(); below. */
1285 /* Override any gcc2 internal prototype to avoid an error. */
1286 /* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1292 /* The GNU C library defines this for functions which it implements
1293 to always fail with ENOSYS. Some functions are actually named
1294 something starting with __ and the normal name is an alias. */
1295 #if defined (__stub_connect) || defined (__stub___connect)
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305 eval "ac_cv_func_connect=yes"
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1310 eval "ac_cv_func_connect=no"
1315 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1316 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1321 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1322 echo "configure:1323: checking for connect in -lsocket" >&5
1323 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 ac_save_LIBS="$LIBS"
1328 LIBS="-lsocket $LIBS"
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 /* Override any gcc2 internal prototype to avoid an error. */
1333 /* We use char because int might match the return type of a gcc2
1334 builtin and then its argument prototype would still apply. */
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 eval "ac_cv_lib_$ac_lib_var=yes"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 eval "ac_cv_lib_$ac_lib_var=no"
1351 LIBS="$ac_save_LIBS"
1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1356 LIB="${LIB} -lsocket"
1358 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1365 echo "configure:1366: checking for gethostbyname" >&5
1366 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 /* System header to define __stub macros and hopefully few prototypes,
1373 which can conflict with char gethostbyname(); below. */
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1378 char gethostbyname();
1382 /* The GNU C library defines this for functions which it implements
1383 to always fail with ENOSYS. Some functions are actually named
1384 something starting with __ and the normal name is an alias. */
1385 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 eval "ac_cv_func_gethostbyname=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_func_gethostbyname=no"
1405 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1411 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1412 echo "configure:1413: checking for gethostbyname in -lnsl" >&5
1413 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 ac_save_LIBS="$LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error. */
1423 /* We use char because int might match the return type of a gcc2
1424 builtin and then its argument prototype would still apply. */
1425 char gethostbyname();
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1433 eval "ac_cv_lib_$ac_lib_var=yes"
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 eval "ac_cv_lib_$ac_lib_var=no"
1441 LIBS="$ac_save_LIBS"
1444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1445 echo "$ac_t""yes" 1>&6
1448 echo "$ac_t""no" 1>&6
1454 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1455 echo "configure:1456: checking for nanosleep" >&5
1456 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* System header to define __stub macros and hopefully few prototypes,
1463 which can conflict with char nanosleep(); below. */
1465 /* Override any gcc2 internal prototype to avoid an error. */
1466 /* We use char because int might match the return type of a gcc2
1467 builtin and then its argument prototype would still apply. */
1472 /* The GNU C library defines this for functions which it implements
1473 to always fail with ENOSYS. Some functions are actually named
1474 something starting with __ and the normal name is an alias. */
1475 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1485 eval "ac_cv_func_nanosleep=yes"
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1490 eval "ac_cv_func_nanosleep=no"
1495 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1501 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1502 echo "configure:1503: checking for nanosleep in -lrt" >&5
1503 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 ac_save_LIBS="$LIBS"
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* Override any gcc2 internal prototype to avoid an error. */
1513 /* We use char because int might match the return type of a gcc2
1514 builtin and then its argument prototype would still apply. */
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1523 eval "ac_cv_lib_$ac_lib_var=yes"
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1528 eval "ac_cv_lib_$ac_lib_var=no"
1531 LIBS="$ac_save_LIBS"
1534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1535 echo "$ac_t""yes" 1>&6
1538 echo "$ac_t""no" 1>&6
1540 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1541 echo "configure:1542: checking for nanosleep in -lposix4" >&5
1542 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_save_LIBS="$LIBS"
1547 LIBS="-lposix4 $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 eval "ac_cv_lib_$ac_lib_var=no"
1570 LIBS="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 LIB="${LIB} -lposix4"
1577 echo "$ac_t""no" 1>&6
1586 for ac_func in usleep
1588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_func" >&5
1590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 cat > conftest.$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1596 /* System header to define __stub macros and hopefully few prototypes,
1597 which can conflict with char $ac_func(); below. */
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1606 /* The GNU C library defines this for functions which it implements
1607 to always fail with ENOSYS. Some functions are actually named
1608 something starting with __ and the normal name is an alias. */
1609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1619 eval "ac_cv_func_$ac_func=yes"
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1624 eval "ac_cv_func_$ac_func=no"
1629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1630 echo "$ac_t""yes" 1>&6
1631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1632 cat >> confdefs.h <<EOF
1633 #define $ac_tr_func 1
1637 echo "$ac_t""no" 1>&6
1641 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1642 echo "configure:1643: checking for inet_aton" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char inet_aton(); below. */
1652 /* Override any gcc2 internal prototype to avoid an error. */
1653 /* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672 eval "ac_cv_func_inet_aton=yes"
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1677 eval "ac_cv_func_inet_aton=no"
1682 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1686 echo "$ac_t""no" 1>&6
1688 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1689 echo "configure:1690: checking for inet_aton in -lresolv" >&5
1690 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 ac_save_LIBS="$LIBS"
1695 LIBS="-lresolv $LIBS"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 /* Override any gcc2 internal prototype to avoid an error. */
1700 /* We use char because int might match the return type of a gcc2
1701 builtin and then its argument prototype would still apply. */
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 eval "ac_cv_lib_$ac_lib_var=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_lib_$ac_lib_var=no"
1718 LIBS="$ac_save_LIBS"
1721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1723 LIB="${LIB} -lresolv"
1725 echo "$ac_t""no" 1>&6
1731 for ac_func in vasprintf
1733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_func" >&5
1735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $ac_func(); below. */
1744 /* Override any gcc2 internal prototype to avoid an error. */
1745 /* We use char because int might match the return type of a gcc2
1746 builtin and then its argument prototype would still apply. */
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1764 eval "ac_cv_func_$ac_func=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 eval "ac_cv_func_$ac_func=no"
1774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1777 cat >> confdefs.h <<EOF
1778 #define $ac_tr_func 1
1782 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_func" >&5
1790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $ac_func(); below. */
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1819 eval "ac_cv_func_$ac_func=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 eval "ac_cv_func_$ac_func=no"
1829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1832 cat >> confdefs.h <<EOF
1833 #define $ac_tr_func 1
1837 echo "$ac_t""no" 1>&6
1842 for ac_func in sigrelse
1844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_func" >&5
1846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $ac_func(); below. */
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 eval "ac_cv_func_$ac_func=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1880 eval "ac_cv_func_$ac_func=no"
1885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1888 cat >> confdefs.h <<EOF
1889 #define $ac_tr_func 1
1893 echo "$ac_t""no" 1>&6
1899 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1900 echo "configure:1901: checking for getopt_long" >&5
1901 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 /* System header to define __stub macros and hopefully few prototypes,
1908 which can conflict with char getopt_long(); below. */
1910 /* Override any gcc2 internal prototype to avoid an error. */
1911 /* We use char because int might match the return type of a gcc2
1912 builtin and then its argument prototype would still apply. */
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1928 if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1930 eval "ac_cv_func_getopt_long=yes"
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 eval "ac_cv_func_getopt_long=no"
1940 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1941 echo "$ac_t""yes" 1>&6
1942 cat >> confdefs.h <<\EOF
1943 #define HAVE_GETOPT_LONG 1
1947 echo "$ac_t""no" 1>&6
1948 # FreeBSD has a gnugetopt library for this:
1949 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1950 echo "configure:1951: checking for getopt_long in -lgnugetopt" >&5
1951 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 ac_save_LIBS="$LIBS"
1956 LIBS="-lgnugetopt $LIBS"
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 /* Override any gcc2 internal prototype to avoid an error. */
1961 /* We use char because int might match the return type of a gcc2
1962 builtin and then its argument prototype would still apply. */
1969 if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1971 eval "ac_cv_lib_$ac_lib_var=yes"
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1976 eval "ac_cv_lib_$ac_lib_var=no"
1979 LIBS="$ac_save_LIBS"
1982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1983 echo "$ac_t""yes" 1>&6
1984 cat >> confdefs.h <<\EOF
1985 #define HAVE_GETOPT_LONG 1
1987 LIB="${LIB} -lgnugetopt"
1989 echo "$ac_t""no" 1>&6
1996 for ac_hdr in unistd.h
1998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_hdr" >&5
2001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2014 eval "ac_cv_header_$ac_safe=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 eval "ac_cv_header_$ac_safe=no"
2024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2027 cat >> confdefs.h <<EOF
2028 #define $ac_tr_hdr 1
2032 echo "$ac_t""no" 1>&6
2036 for ac_func in getpagesize
2038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2039 echo "configure:2040: checking for $ac_func" >&5
2040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $ac_func(); below. */
2049 /* Override any gcc2 internal prototype to avoid an error. */
2050 /* We use char because int might match the return type of a gcc2
2051 builtin and then its argument prototype would still apply. */
2056 /* The GNU C library defines this for functions which it implements
2057 to always fail with ENOSYS. Some functions are actually named
2058 something starting with __ and the normal name is an alias. */
2059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2067 if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2069 eval "ac_cv_func_$ac_func=yes"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2074 eval "ac_cv_func_$ac_func=no"
2079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2082 cat >> confdefs.h <<EOF
2083 #define $ac_tr_func 1
2087 echo "$ac_t""no" 1>&6
2091 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2092 echo "configure:2093: checking for working mmap" >&5
2093 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 if test "$cross_compiling" = yes; then
2097 ac_cv_func_mmap_fixed_mapped=no
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 /* Thanks to Mike Haertel and Jim Avera for this test.
2104 Here is a matrix of mmap possibilities:
2105 mmap private not fixed
2106 mmap private fixed at somewhere currently unmapped
2107 mmap private fixed at somewhere already mapped
2108 mmap shared not fixed
2109 mmap shared fixed at somewhere currently unmapped
2110 mmap shared fixed at somewhere already mapped
2111 For private mappings, we should verify that changes cannot be read()
2112 back from the file, nor mmap's back from the file at a different
2113 address. (There have been systems where private was not correctly
2114 implemented like the infamous i386 svr4.0, and systems where the
2115 VM page cache was not coherent with the filesystem buffer cache
2116 like early versions of FreeBSD and possibly contemporary NetBSD.)
2117 For shared mappings, we should conversely verify that changes get
2118 propogated back to all the places they're supposed to be.
2120 Grep wants private fixed already mapped.
2121 The main things grep needs to know about mmap are:
2122 * does it exist and is it safe to write into the mmap'd area
2123 * how to use it (BSD variants) */
2124 #include <sys/types.h>
2126 #include <sys/mman.h>
2128 #include <sys/stat.h>
2130 #ifdef HAVE_UNISTD_H
2131 # include <unistd.h>
2134 /* This mess was copied from the GNU getpagesize.h. */
2135 #ifndef HAVE_GETPAGESIZE
2137 /* Assume that all systems that can run configure have sys/param.h. */
2138 # ifndef HAVE_SYS_PARAM_H
2139 # define HAVE_SYS_PARAM_H 1
2142 # ifdef _SC_PAGESIZE
2143 # define getpagesize() sysconf(_SC_PAGESIZE)
2144 # else /* no _SC_PAGESIZE */
2145 # ifdef HAVE_SYS_PARAM_H
2146 # include <sys/param.h>
2147 # ifdef EXEC_PAGESIZE
2148 # define getpagesize() EXEC_PAGESIZE
2149 # else /* no EXEC_PAGESIZE */
2151 # define getpagesize() NBPG * CLSIZE
2154 # endif /* no CLSIZE */
2155 # else /* no NBPG */
2157 # define getpagesize() NBPC
2158 # else /* no NBPC */
2160 # define getpagesize() PAGESIZE
2161 # endif /* PAGESIZE */
2162 # endif /* no NBPC */
2163 # endif /* no NBPG */
2164 # endif /* no EXEC_PAGESIZE */
2165 # else /* no HAVE_SYS_PARAM_H */
2166 # define getpagesize() 8192 /* punt totally */
2167 # endif /* no HAVE_SYS_PARAM_H */
2168 # endif /* no _SC_PAGESIZE */
2170 #endif /* no HAVE_GETPAGESIZE */
2173 extern "C" { void *malloc(unsigned); }
2181 char *data, *data2, *data3;
2185 pagesize = getpagesize();
2188 * First, make a file with some known garbage in it.
2190 data = (char*)malloc(pagesize);
2193 for (i = 0; i < pagesize; ++i)
2194 *(data + i) = rand();
2196 fd = creat("conftestmmap", 0600);
2199 if (write(fd, data, pagesize) != pagesize)
2204 * Next, try to mmap the file at a fixed address which
2205 * already has something else allocated at it. If we can,
2206 * also make sure that we see the same garbage.
2208 fd = open("conftestmmap", O_RDWR);
2211 data2 = (char*)malloc(2 * pagesize);
2214 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2215 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2216 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2218 for (i = 0; i < pagesize; ++i)
2219 if (*(data + i) != *(data2 + i))
2223 * Finally, make sure that changes to the mapped area
2224 * do not percolate back to the file as seen by read().
2225 * (This is a bug on some variants of i386 svr4.0.)
2227 for (i = 0; i < pagesize; ++i)
2228 *(data2 + i) = *(data2 + i) + 1;
2229 data3 = (char*)malloc(pagesize);
2232 if (read(fd, data3, pagesize) != pagesize)
2234 for (i = 0; i < pagesize; ++i)
2235 if (*(data + i) != *(data3 + i))
2238 unlink("conftestmmap");
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2245 ac_cv_func_mmap_fixed_mapped=yes
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 ac_cv_func_mmap_fixed_mapped=no
2257 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2259 cat >> confdefs.h <<\EOF
2265 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2266 echo "configure:2267: checking return type of signal handlers" >&5
2267 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2279 extern "C" void (*signal (int, void (*)(int)))(int);
2281 void (*signal ()) ();
2288 if { (eval echo configure:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2290 ac_cv_type_signal=void
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 ac_cv_type_signal=int
2300 echo "$ac_t""$ac_cv_type_signal" 1>&6
2301 cat >> confdefs.h <<EOF
2302 #define RETSIGTYPE $ac_cv_type_signal
2306 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2307 echo "configure:2308: checking for dlopen in -ldl" >&5
2308 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_save_LIBS="$LIBS"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2343 echo "$ac_t""no" 1>&6
2346 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2347 echo "configure:2348: checking for pow in -lm" >&5
2348 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 LIB_YUV="${LIB_YUV} -lm"
2383 echo "$ac_t""no" 1>&6
2387 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2388 CFLAGS="${CFLAGS} -I/usr/local/include"
2391 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2392 echo "configure:2393: checking for pthread_attr_init in -lpthread" >&5
2393 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 ac_save_LIBS="$LIBS"
2398 LIBS="-lpthread $LIBS"
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405 char pthread_attr_init();
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2418 eval "ac_cv_lib_$ac_lib_var=no"
2421 LIBS="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 THREAD_LIB="-lpthread"
2428 echo "$ac_t""no" 1>&6
2431 if test "x${THREAD_LIB}" = xerror; then
2432 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2433 echo "configure:2434: checking for pthread_attr_init in -lpthreads" >&5
2434 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 ac_save_LIBS="$LIBS"
2439 LIBS="-lpthreads $LIBS"
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* Override any gcc2 internal prototype to avoid an error. */
2444 /* We use char because int might match the return type of a gcc2
2445 builtin and then its argument prototype would still apply. */
2446 char pthread_attr_init();
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454 eval "ac_cv_lib_$ac_lib_var=yes"
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 eval "ac_cv_lib_$ac_lib_var=no"
2462 LIBS="$ac_save_LIBS"
2465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 THREAD_LIB="-lpthreads"
2469 echo "$ac_t""no" 1>&6
2473 if test "x${THREAD_LIB}" = xerror; then
2474 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2475 echo "configure:2476: checking for pthread_attr_init in -lc_r" >&5
2476 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 ac_save_LIBS="$LIBS"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2488 char pthread_attr_init();
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 eval "ac_cv_lib_$ac_lib_var=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 eval "ac_cv_lib_$ac_lib_var=no"
2504 LIBS="$ac_save_LIBS"
2507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2511 echo "$ac_t""no" 1>&6
2515 if test "x${THREAD_LIB}" = xerror; then
2517 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2518 echo "configure:2519: checking for pthread_attr_init" >&5
2519 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char pthread_attr_init(); below. */
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531 char pthread_attr_init();
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2541 pthread_attr_init();
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2548 eval "ac_cv_func_pthread_attr_init=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2553 eval "ac_cv_func_pthread_attr_init=no"
2558 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2562 echo "$ac_t""no" 1>&6
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 #include <pthread.h>
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "pthread_cond_t" >/dev/null 2>&1; then
2576 cat >> confdefs.h <<\EOF
2577 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <strings.h>
2588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2589 egrep "strncasecmp" >/dev/null 2>&1; then
2592 cat >> confdefs.h <<\EOF
2593 #define STRNCASECMP_IN_STRINGS_H 1
2600 for ac_hdr in stddef.h getopt.h strings.h
2602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_hdr" >&5
2605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2618 eval "ac_cv_header_$ac_safe=yes"
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 eval "ac_cv_header_$ac_safe=no"
2628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2629 echo "$ac_t""yes" 1>&6
2630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2631 cat >> confdefs.h <<EOF
2632 #define $ac_tr_hdr 1
2636 echo "$ac_t""no" 1>&6
2640 for ac_hdr in sys/sockio.h fcntl.h sys/time.h
2642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_hdr" >&5
2645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2654 { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2656 if test -z "$ac_err"; then
2658 eval "ac_cv_header_$ac_safe=yes"
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 eval "ac_cv_header_$ac_safe=no"
2668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2671 cat >> confdefs.h <<EOF
2672 #define $ac_tr_hdr 1
2676 echo "$ac_t""no" 1>&6
2680 for ac_hdr in sys/soundcard.h machine/soundcard.h
2682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_hdr" >&5
2685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2696 if test -z "$ac_err"; then
2698 eval "ac_cv_header_$ac_safe=yes"
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 eval "ac_cv_header_$ac_safe=no"
2708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2711 cat >> confdefs.h <<EOF
2712 #define $ac_tr_hdr 1
2716 echo "$ac_t""no" 1>&6
2720 for ac_hdr in dlfcn.h image.h
2722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_hdr" >&5
2725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2738 eval "ac_cv_header_$ac_safe=yes"
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2744 eval "ac_cv_header_$ac_safe=no"
2748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2749 echo "$ac_t""yes" 1>&6
2750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2751 cat >> confdefs.h <<EOF
2752 #define $ac_tr_hdr 1
2756 echo "$ac_t""no" 1>&6
2760 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_hdr" >&5
2765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2774 { (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2776 if test -z "$ac_err"; then
2778 eval "ac_cv_header_$ac_safe=yes"
2781 echo "configure: failed program was:" >&5
2782 cat conftest.$ac_ext >&5
2784 eval "ac_cv_header_$ac_safe=no"
2788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2791 cat >> confdefs.h <<EOF
2792 #define $ac_tr_hdr 1
2796 echo "$ac_t""no" 1>&6
2800 for ac_hdr in machine/param.h
2802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_hdr" >&5
2805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2814 { (eval echo configure:2815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2816 if test -z "$ac_err"; then
2818 eval "ac_cv_header_$ac_safe=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 eval "ac_cv_header_$ac_safe=no"
2828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2829 echo "$ac_t""yes" 1>&6
2830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2831 cat >> confdefs.h <<EOF
2832 #define $ac_tr_hdr 1
2836 echo "$ac_t""no" 1>&6
2841 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_hdr" >&5
2846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2859 eval "ac_cv_header_$ac_safe=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2865 eval "ac_cv_header_$ac_safe=no"
2869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2872 cat >> confdefs.h <<EOF
2873 #define $ac_tr_hdr 1
2877 echo "$ac_t""no" 1>&6
2882 CFLAGS="${save_CFLAGS} -Wall -Werror"
2883 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2884 echo "configure:2885: checking for ntohl in sys/param.h" >&5
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <sys/param.h>
2889 void foo() { int meuh; ntohl(meuh); }
2894 if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 cat >> confdefs.h <<\EOF
2897 #define NTOHL_IN_SYS_PARAM_H 1
2900 echo "$ac_t""yes" 1>&6
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2905 echo "$ac_t""no" 1>&6
2909 CFLAGS="${save_CFLAGS} -finline-limit=12"
2910 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2911 echo "configure:2912: checking if \$CC accepts -finline-limit" >&5
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2920 if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2922 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2927 echo "$ac_t""no" 1>&6
2931 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
2932 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
2933 echo "configure:2934: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 echo "$ac_t""no" 1>&6
2953 CFLAGS="${save_CFLAGS} -shared"
2954 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
2955 echo "configure:2956: checking if \$CC compiles plugins with -shared" >&5
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2964 if { (eval echo configure:2965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2966 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 echo "$ac_t""no" 1>&6
2975 CFLAGS="${save_CFLAGS}"
2977 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2978 echo "configure:2979: checking for boolean_t in sys/types.h" >&5
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2983 void quux() { boolean_t foo; }
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 cat >> confdefs.h <<\EOF
2991 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2994 echo "$ac_t""yes" 1>&6
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 echo "$ac_t""no" 1>&6
3002 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3003 echo "configure:3004: checking for boolean_t in pthread.h" >&5
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 #include <pthread.h>
3008 void quux() { boolean_t foo; }
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3015 cat >> confdefs.h <<\EOF
3016 #define BOOLEAN_T_IN_PTHREAD_H 1
3019 echo "$ac_t""yes" 1>&6
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for working const""... $ac_c" 1>&6
3029 echo "configure:3030: checking for working const" >&5
3030 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3039 /* Ultrix mips cc rejects this. */
3040 typedef int charset[2]; const charset x = {0,0};
3041 /* SunOS 4.1.1 cc rejects this. */
3042 char const *const *ccp;
3044 /* NEC SVR4.0.2 mips cc rejects this. */
3045 struct point {int x, y;};
3046 static struct point const zero = {0,0};
3047 /* AIX XL C 1.02.0.0 rejects this.
3048 It does not let you subtract one const X* pointer from another in an arm
3049 of an if-expression whose if-part is not a constant expression */
3050 const char *g = "string";
3051 ccp = &g + (g ? g-g : 0);
3052 /* HPUX 7.0 cc rejects these. */
3055 ccp = (char const *const *) p;
3056 { /* SCO 3.2v4 cc rejects this. */
3058 char const *s = 0 ? (char *) 0 : (char const *) 0;
3062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3064 const int *foo = &x[0];
3067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3068 typedef const int *iptr;
3072 { /* AIX XL C 1.02.0.0 rejects this saying
3073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3074 struct s { int j; const int *ap[3]; };
3075 struct s *b; b->j = 5;
3077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3083 if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3095 echo "$ac_t""$ac_cv_c_const" 1>&6
3096 if test $ac_cv_c_const = no; then
3097 cat >> confdefs.h <<\EOF
3103 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3104 echo "configure:3105: checking for ANSI C header files" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3117 { (eval echo configure:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3119 if test -z "$ac_err"; then
3121 ac_cv_header_stdc=yes
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 ac_cv_header_stdc=no
3131 if test $ac_cv_header_stdc = yes; then
3132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 egrep "memchr" >/dev/null 2>&1; then
3143 ac_cv_header_stdc=no
3149 if test $ac_cv_header_stdc = yes; then
3150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 egrep "free" >/dev/null 2>&1; then
3161 ac_cv_header_stdc=no
3167 if test $ac_cv_header_stdc = yes; then
3168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3169 if test "$cross_compiling" = yes; then
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3176 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3177 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3179 int main () { int i; for (i = 0; i < 256; i++)
3180 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 ac_cv_header_stdc=no
3199 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3200 if test $ac_cv_header_stdc = yes; then
3201 cat >> confdefs.h <<\EOF
3202 #define STDC_HEADERS 1
3207 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3208 echo "configure:3209: checking for size_t" >&5
3209 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <sys/types.h>
3221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3222 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3224 ac_cv_type_size_t=yes
3227 ac_cv_type_size_t=no
3232 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3233 if test $ac_cv_type_size_t = no; then
3234 cat >> confdefs.h <<\EOF
3235 #define size_t unsigned
3240 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether time.h and sys/time.h may both be included" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <sys/types.h>
3249 #include <sys/time.h>
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 ac_cv_header_time=yes
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 ac_cv_header_time=no
3267 echo "$ac_t""$ac_cv_header_time" 1>&6
3268 if test $ac_cv_header_time = yes; then
3269 cat >> confdefs.h <<\EOF
3270 #define TIME_WITH_SYS_TIME 1
3278 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3279 PLUGINS="${PLUGINS}"
3281 MMX_MODULES="yuvmmx idctmmx motionmmx"
3282 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3284 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3285 echo "configure:3286: checking if \$CC groks MMX inline assembly" >&5
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3296 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3297 echo "$ac_t""yes" 1>&6
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3302 echo "$ac_t""no" 1>&6
3306 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3307 echo "configure:3308: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3319 echo "$ac_t""yes" 1>&6
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 echo "$ac_t""no" 1>&6
3329 for ac_hdr in winioctl.h
3331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_hdr" >&5
3334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343 { (eval echo configure:3344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3345 if test -z "$ac_err"; then
3347 eval "ac_cv_header_$ac_safe=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_header_$ac_safe=no"
3357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3360 cat >> confdefs.h <<EOF
3361 #define $ac_tr_hdr 1
3364 CAN_BUILD_LIBDVDCSS=1
3367 echo "$ac_t""no" 1>&6
3372 for ac_hdr in sys/ioctl.h
3374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_hdr" >&5
3377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3386 { (eval echo configure:3387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3388 if test -z "$ac_err"; then
3390 eval "ac_cv_header_$ac_safe=yes"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 eval "ac_cv_header_$ac_safe=no"
3400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3403 cat >> confdefs.h <<EOF
3404 #define $ac_tr_hdr 1
3407 CAN_BUILD_LIBDVDCSS=1
3408 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_hdr" >&5
3413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3422 { (eval echo configure:3423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3424 if test -z "$ac_err"; then
3426 eval "ac_cv_header_$ac_safe=yes"
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3432 eval "ac_cv_header_$ac_safe=no"
3436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3439 cat >> confdefs.h <<EOF
3440 #define $ac_tr_hdr 1
3444 echo "$ac_t""no" 1>&6
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include <sys/dvdio.h>
3454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 egrep "dvd_struct" >/dev/null 2>&1; then
3458 cat >> confdefs.h <<\EOF
3459 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <sys/cdio.h>
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "dvd_struct" >/dev/null 2>&1; then
3476 cat >> confdefs.h <<\EOF
3477 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3485 if test x$BSD_DVD_STRUCT = x1; then
3486 cat >> confdefs.h <<\EOF
3487 #define HAVE_BSD_DVD_STRUCT 1
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <linux/cdrom.h>
3496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 egrep "dvd_struct" >/dev/null 2>&1; then
3500 cat >> confdefs.h <<\EOF
3501 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3510 echo "$ac_t""no" 1>&6
3524 # Check whether --enable-ppro or --disable-ppro was given.
3525 if test "${enable_ppro+set}" = set; then
3526 enableval="$enable_ppro"
3527 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3529 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3533 # Check whether --enable-mmx or --disable-mmx was given.
3534 if test "${enable_mmx+set}" = set; then
3535 enableval="$enable_mmx"
3536 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3537 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3539 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
3540 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3544 # Check whether --enable-altivec or --disable-altivec was given.
3545 if test "${enable_altivec+set}" = set; then
3546 enableval="$enable_altivec"
3547 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3548 BUILTINS="${BUILTINS} idctaltivec"
3549 LIB_IDCTALTIVEC="-framework vecLib"
3553 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3556 # Check whether --enable-debug or --disable-debug was given.
3557 if test "${enable_debug+set}" = set; then
3558 enableval="$enable_debug"
3559 if test x$enableval = xyes; then DEBUG=1; fi
3564 # Check whether --enable-stats or --disable-stats was given.
3565 if test "${enable_stats+set}" = set; then
3566 enableval="$enable_stats"
3567 if test x$enableval = xyes; then STATS=1; fi
3572 # Check whether --enable-trace or --disable-trace was given.
3573 if test "${enable_trace+set}" = set; then
3574 enableval="$enable_trace"
3575 if test x$enableval = xyes; then TRACE=1; fi
3580 # Check whether --enable-profiling or --disable-profiling was given.
3581 if test "${enable_profiling+set}" = set; then
3582 enableval="$enable_profiling"
3583 if test x$enableval = xyes; then PROFILING=1; fi
3587 # Check whether --enable-optimizations or --disable-optimizations was given.
3588 if test "${enable_optimizations+set}" = set; then
3589 enableval="$enable_optimizations"
3590 if test x$enableval = xno; then OPTIMS=0; fi
3596 # Check whether --enable-pth or --disable-pth was given.
3597 if test "${enable_pth+set}" = set; then
3598 enableval="$enable_pth"
3599 if test x$enableval = xyes; then
3600 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3601 echo "configure:3602: checking for pth_init in -lpth" >&5
3602 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_save_LIBS="$LIBS"
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 eval "ac_cv_lib_$ac_lib_var=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_lib_$ac_lib_var=no"
3630 LIBS="$ac_save_LIBS"
3633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3636 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_lib 1
3644 echo "$ac_t""no" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 egrep "pth_init" >/dev/null 2>&1; then
3656 cat >> confdefs.h <<\EOF
3657 #define PTH_INIT_IN_PTH_H 1
3669 LIB="${LIB} ${THREAD_LIB}"
3673 # Check whether --with-dvdcss or --without-dvdcss was given.
3674 if test "${with_dvdcss+set}" = set; then
3675 withval="$with_dvdcss"
3676 case "x${withval}" in
3678 # local libdvdcss, statically linked
3679 if test x${CAN_BUILD_LIBDVDCSS} = x1
3683 BUILTINS="${BUILTINS} dvd"
3684 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3685 LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
3686 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
3690 # local libdvdcss, dynamically linked
3691 if test x${CAN_BUILD_LIBDVDCSS} = x1
3694 BUILTINS="${BUILTINS} dvd"
3695 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3696 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
3697 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
3701 # existing libdvdcss
3702 BUILTINS="${BUILTINS} dvd"
3703 if test "x$withval" != "xyes"
3705 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
3706 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
3708 LIB_DVD="${LIB_DVD} -ldvdcss"
3709 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
3712 # user didn't decide, we choose to use local libdvdcss and link statically
3713 if test x${CAN_BUILD_LIBDVDCSS} = x1
3717 BUILTINS="${BUILTINS} dvd"
3718 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3719 LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
3720 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
3726 # Check whether --enable-css or --disable-css was given.
3727 if test "${enable_css+set}" = set; then
3728 enableval="$enable_css"
3729 if test x$enableval = xyes
3738 if test x${CSS} = x1
3740 cat >> confdefs.h <<\EOF
3746 # Check whether --enable-dummy or --disable-dummy was given.
3747 if test "${enable_dummy+set}" = set; then
3748 enableval="$enable_dummy"
3753 if test x$enable_dummy != xno
3755 BUILTINS="${BUILTINS} dummy"
3758 # Check whether --enable-null or --disable-null was given.
3759 if test "${enable_null+set}" = set; then
3760 enableval="$enable_null"
3765 if test x$enable_null != xno
3767 BUILTINS="${BUILTINS} null"
3770 # Check whether --enable-rc or --disable-rc was given.
3771 if test "${enable_rc+set}" = set; then
3772 enableval="$enable_rc"
3777 if test x$enable_rc != xno
3779 BUILTINS="${BUILTINS} rc"
3782 if test x$SYS = xbeos
3784 BUILTINS="${BUILTINS} beos"
3785 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3786 PLCFLAGS="${PLCFLAGS} -nostart"
3790 # Check whether --enable-dsp or --disable-dsp was given.
3791 if test "${enable_dsp+set}" = set; then
3792 enableval="$enable_dsp"
3797 if test x$enable_dsp != xno
3801 PLUGINS="${PLUGINS} dsp"
3805 # Check whether --enable-esd or --disable-esd was given.
3806 if test "${enable_esd+set}" = set; then
3807 enableval="$enable_esd"
3808 if test x$enable_esd = xyes
3810 # Extract the first word of "esd-config", so it can be a program name with args.
3811 set dummy esd-config; ac_word=$2
3812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3813 echo "configure:3814: checking for $ac_word" >&5
3814 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 case "$ESD_CONFIG" in
3819 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3822 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3827 for ac_dir in $ac_dummy; do
3828 test -z "$ac_dir" && ac_dir=.
3829 if test -f $ac_dir/$ac_word; then
3830 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3835 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3839 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3840 if test -n "$ESD_CONFIG"; then
3841 echo "$ac_t""$ESD_CONFIG" 1>&6
3843 echo "$ac_t""no" 1>&6
3846 if test x${ESD_CONFIG} != xno
3848 PLUGINS="${PLUGINS} esd"
3849 LIB_ESD="`${ESD_CONFIG} --libs`"
3855 # Check whether --enable-darwin or --disable-darwin was given.
3856 if test "${enable_darwin+set}" = set; then
3857 enableval="$enable_darwin"
3858 if test x$enable_darwin = xyes; then
3859 PLUGINS="${PLUGINS} darwin"
3860 LIB_DARWIN="-framework CoreAudio"
3865 # Check whether --enable-macosx or --disable-macosx was given.
3866 if test "${enable_macosx+set}" = set; then
3867 enableval="$enable_macosx"
3868 if test x$enable_macosx = xyes
3870 BUILTINS="${BUILTINS} macosx"
3871 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3872 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3873 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3876 for ac_hdr in Carbon/Carbon.h
3878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3880 echo "configure:3881: checking for $ac_hdr" >&5
3881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3890 { (eval echo configure:3891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3892 if test -z "$ac_err"; then
3894 eval "ac_cv_header_$ac_safe=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_header_$ac_safe=no"
3904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3907 cat >> confdefs.h <<EOF
3908 #define $ac_tr_hdr 1
3910 BUILTINS="${BUILTINS} macosx"
3911 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3912 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3913 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3916 echo "$ac_t""no" 1>&6
3923 # Check whether --enable-qnx or --disable-qnx was given.
3924 if test "${enable_qnx+set}" = set; then
3925 enableval="$enable_qnx"
3929 if test x$enable_qnx != xno
3933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_hdr" >&5
3936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3945 { (eval echo configure:3946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3947 if test -z "$ac_err"; then
3949 eval "ac_cv_header_$ac_safe=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 eval "ac_cv_header_$ac_safe=no"
3959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3962 cat >> confdefs.h <<EOF
3963 #define $ac_tr_hdr 1
3966 PLUGINS="${PLUGINS} qnx"
3967 LIB_QNX="-lasound -lph"
3970 echo "$ac_t""no" 1>&6
3976 # Check whether --enable-fb or --disable-fb was given.
3977 if test "${enable_fb+set}" = set; then
3978 enableval="$enable_fb"
3979 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
3983 # Check whether --with-ggi or --without-ggi was given.
3984 if test "${with_ggi+set}" = set; then
3986 if test "x$withval" != "xno"
3988 PLUGINS="${PLUGINS} ggi"
3989 if test "x$withval" != "xyes"
3991 LIB_GGI="-l"$withval
3999 # Check whether --enable-sdl or --disable-sdl was given.
4000 if test "${enable_sdl+set}" = set; then
4001 enableval="$enable_sdl"
4005 if test "x$enable_sdl" != "xno"
4007 # Extract the first word of "sdl12-config", so it can be a program name with args.
4008 set dummy sdl12-config; ac_word=$2
4009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_word" >&5
4011 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 case "$SDL12_CONFIG" in
4016 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4019 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4024 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f $ac_dir/$ac_word; then
4027 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4032 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4036 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4037 if test -n "$SDL12_CONFIG"; then
4038 echo "$ac_t""$SDL12_CONFIG" 1>&6
4040 echo "$ac_t""no" 1>&6
4043 SDL_CONFIG=${SDL12_CONFIG}
4044 SDL_HEADER="SDL12/SDL.h"
4045 if test x${SDL_CONFIG} = xno
4047 # Extract the first word of "sdl11-config", so it can be a program name with args.
4048 set dummy sdl11-config; ac_word=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4051: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4054 case "$SDL11_CONFIG" in
4056 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4059 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4064 for ac_dir in $ac_dummy; do
4065 test -z "$ac_dir" && ac_dir=.
4066 if test -f $ac_dir/$ac_word; then
4067 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4072 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4076 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4077 if test -n "$SDL11_CONFIG"; then
4078 echo "$ac_t""$SDL11_CONFIG" 1>&6
4080 echo "$ac_t""no" 1>&6
4083 SDL_CONFIG=${SDL11_CONFIG}
4084 SDL_HEADER="SDL11/SDL.h"
4086 if test x${SDL_CONFIG} = xno
4088 # Extract the first word of "sdl-config", so it can be a program name with args.
4089 set dummy sdl-config; ac_word=$2
4090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_word" >&5
4092 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 case "$SDL_CONFIG" in
4097 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4100 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4105 for ac_dir in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4113 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4117 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4118 if test -n "$SDL_CONFIG"; then
4119 echo "$ac_t""$SDL_CONFIG" 1>&6
4121 echo "$ac_t""no" 1>&6
4124 SDL_HEADER="SDL/SDL.h"
4126 if test x${SDL_CONFIG} != xno
4128 for ac_hdr in ${SDL_HEADER}
4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_hdr" >&5
4133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4144 if test -z "$ac_err"; then
4146 eval "ac_cv_header_$ac_safe=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_header_$ac_safe=no"
4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_hdr 1
4162 cat >> confdefs.h <<EOF
4163 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
4167 echo "$ac_t""no" 1>&6
4168 echo "The development package for SDL is not installed. Please install it"
4169 echo "and try again. Alternatively you can also configure with --disable-sdl."
4174 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
4176 echo "You need SDL version 1.1.5 or later. Install it and try again."
4177 echo "Alternatively, you can also configure with --disable-sdl."
4180 PLUGINS="${PLUGINS} sdl"
4181 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4182 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4183 elif test "x$enable_sdl" = "xyes"
4185 echo "I couldn't find the SDL package. You can download libSDL from"
4186 echo "http://www.libsdl.org/, or configure with --disable-sdl. Have a"
4192 # Check whether --with-directx or --without-directx was given.
4193 if test "${with_directx+set}" = set; then
4194 withval="$with_directx"
4195 if test "x$withval" != "xno"
4197 PLUGINS="${PLUGINS} directx"
4198 if test "x$withval" != "xyes"
4200 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4201 INCLUDE="${INCLUDE} -I"$withval"/include"
4203 for ac_hdr in directx.h
4205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4207 echo "configure:4208: checking for $ac_hdr" >&5
4208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
4216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4217 { (eval echo configure:4218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4219 if test -z "$ac_err"; then
4221 eval "ac_cv_header_$ac_safe=yes"
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4227 eval "ac_cv_header_$ac_safe=no"
4231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4232 echo "$ac_t""yes" 1>&6
4233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4234 cat >> confdefs.h <<EOF
4235 #define $ac_tr_hdr 1
4239 echo "$ac_t""no" 1>&6
4240 echo "Cannot find DirectX headers !"; exit
4244 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4249 if test "x$withval" = "x"
4251 for ac_hdr in directx.h
4253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4255 echo "configure:4256: checking for $ac_hdr" >&5
4256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4259 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4265 { (eval echo configure:4266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4267 if test -z "$ac_err"; then
4269 eval "ac_cv_header_$ac_safe=yes"
4272 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5
4275 eval "ac_cv_header_$ac_safe=no"
4279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4282 cat >> confdefs.h <<EOF
4283 #define $ac_tr_hdr 1
4285 PLUGINS="${PLUGINS} directx"
4286 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4288 echo "$ac_t""no" 1>&6
4294 # Check whether --with-glide or --without-glide was given.
4295 if test "${with_glide+set}" = set; then
4296 withval="$with_glide"
4297 if test "x$withval" != "xno"
4299 PLUGINS="${PLUGINS} glide"
4300 if test "x$withval" != "xyes"
4302 LIB_GLIDE="-l"$withval" -lm"
4304 LIB_GLIDE="-lglide2x -lm"
4310 # Check whether --enable-ncurses or --disable-ncurses was given.
4311 if test "${enable_ncurses+set}" = set; then
4312 enableval="$enable_ncurses"
4313 if test x$enable_ncurses = xyes; then
4314 PLUGINS="${PLUGINS} ncurses"
4315 LIB_NCURSES="-lncurses"
4320 # Check whether --enable-qt or --disable-qt was given.
4321 if test "${enable_qt+set}" = set; then
4322 enableval="$enable_qt"
4323 if test x$enable_qt = xyes; then
4324 PLUGINS="${PLUGINS} qt"
4325 ALIASES="${ALIASES} qvlc"
4326 LIB_QT="-lqt -L${QTDIR}/lib"
4327 if test -x ${QTDIR}/bin/moc
4329 MOC=${QTDIR}/bin/moc
4337 # Check whether --enable-kde or --disable-kde was given.
4338 if test "${enable_kde+set}" = set; then
4339 enableval="$enable_kde"
4340 if test x$enable_kde = xyes; then
4341 PLUGINS="${PLUGINS} kde"
4342 ALIASES="${ALIASES} kvlc"
4343 LIB_KDE="-L${KDEDIR}/lib -lkfile"
4344 if test -x ${QTDIR}/bin/moc
4346 MOC=${QTDIR}/bin/moc
4354 # Check whether --enable-gnome or --disable-gnome was given.
4355 if test "${enable_gnome+set}" = set; then
4356 enableval="$enable_gnome"
4357 if test x$enable_gnome = xyes; then
4358 PLUGINS="${PLUGINS} gnome"
4359 ALIASES="${ALIASES} gnome-vlc"
4360 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4365 # Check whether --enable-gtk or --disable-gtk was given.
4366 if test "${enable_gtk+set}" = set; then
4367 enableval="$enable_gtk"
4371 if test x$enable_gtk != xno
4373 # look for gtk-config
4374 # Extract the first word of "gtk-config", so it can be a program name with args.
4375 set dummy gtk-config; ac_word=$2
4376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 case "$GTK_CONFIG" in
4383 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4386 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4391 for ac_dir in $ac_dummy; do
4392 test -z "$ac_dir" && ac_dir=.
4393 if test -f $ac_dir/$ac_word; then
4394 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4399 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4403 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4404 if test -n "$GTK_CONFIG"; then
4405 echo "$ac_t""$GTK_CONFIG" 1>&6
4407 echo "$ac_t""no" 1>&6
4410 if test -x ${GTK_CONFIG}
4412 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4413 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4415 # now look for the gtk.h header
4416 saved_CPPFLAGS=$CPPFLAGS
4417 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
4418 for ac_hdr in gtk/gtk.h
4420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_hdr" >&5
4423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4432 { (eval echo configure:4433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4434 if test -z "$ac_err"; then
4436 eval "ac_cv_header_$ac_safe=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_header_$ac_safe=no"
4446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_hdr 1
4453 PLUGINS="${PLUGINS} gtk"
4454 ALIASES="${ALIASES} gvlc"
4457 echo "$ac_t""no" 1>&6
4461 CPPFLAGS=$saved_CPPFLAGS
4464 # Check whether --enable-x11 or --disable-x11 was given.
4465 if test "${enable_x11+set}" = set; then
4466 enableval="$enable_x11"
4470 if test x$enable_x11 != xno; then
4471 if test x$x_includes = xNONE; then
4472 x_includes=/usr/X11R6/include
4474 if test x$x_libraries = xNONE; then
4475 x_libraries=/usr/X11R6/lib
4477 saved_CPPFLAGS=$CPPFLAGS
4478 CPPFLAGS="$CPPFLAGS -I$x_includes"
4479 for ac_hdr in X11/Xlib.h
4481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4483 echo "configure:4484: checking for $ac_hdr" >&5
4484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4493 { (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4495 if test -z "$ac_err"; then
4497 eval "ac_cv_header_$ac_safe=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 eval "ac_cv_header_$ac_safe=no"
4507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4510 cat >> confdefs.h <<EOF
4511 #define $ac_tr_hdr 1
4514 PLUGINS="${PLUGINS} x11"
4515 LIB_X11="-L$x_libraries -lX11 -lXext"
4516 CFLAGS_X11="-I$x_includes"
4518 CPPFLAGS=$saved_CPPFLAGS
4520 echo "$ac_t""no" 1>&6
4526 # Check whether --enable-xvideo or --disable-xvideo was given.
4527 if test "${enable_xvideo+set}" = set; then
4528 enableval="$enable_xvideo"
4532 if test x$enable_xvideo != xno; then
4533 if test x$x_includes = xNONE; then
4534 x_includes=/usr/X11R6/include
4536 if test x$x_libraries = xNONE; then
4537 x_libraries=/usr/X11R6/lib
4539 saved_CPPFLAGS=$CPPFLAGS
4540 CPPFLAGS="$CPPFLAGS -I$x_includes"
4541 for ac_hdr in X11/extensions/Xv.h
4543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4545 echo "configure:4546: checking for $ac_hdr" >&5
4546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4555 { (eval echo configure:4556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4557 if test -z "$ac_err"; then
4559 eval "ac_cv_header_$ac_safe=yes"
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 eval "ac_cv_header_$ac_safe=no"
4569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4570 echo "$ac_t""yes" 1>&6
4571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4572 cat >> confdefs.h <<EOF
4573 #define $ac_tr_hdr 1
4576 PLUGINS="${PLUGINS} xvideo"
4577 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4578 CFLAGS_X11="-I$x_includes"
4580 CPPFLAGS=$saved_CPPFLAGS
4582 echo "$ac_t""no" 1>&6
4588 # Check whether --enable-alsa or --disable-alsa was given.
4589 if test "${enable_alsa+set}" = set; then
4590 enableval="$enable_alsa"
4591 if test x$enable_alsa = xyes
4593 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4594 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4595 echo "configure:4596: checking for sys/asoundlib.h" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 #include <sys/asoundlib.h>
4604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4609 eval "ac_cv_header_$ac_safe=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_header_$ac_safe=no"
4619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4622 echo "configure:4623: checking for main in -lasound" >&5
4623 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4628 LIBS="-lasound $LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 eval "ac_cv_lib_$ac_lib_var=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_lib_$ac_lib_var=no"
4647 LIBS="$ac_save_LIBS"
4650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4654 echo "$ac_t""no" 1>&6
4659 echo "$ac_t""no" 1>&6
4663 if test x$have_alsa = xtrue
4665 PLUGINS="${PLUGINS} alsa"
4728 cat > confcache <<\EOF
4729 # This file is a shell script that caches the results of configure
4730 # tests run on this system so they can be shared between configure
4731 # scripts and configure runs. It is not useful on other systems.
4732 # If it contains results you don't want to keep, you may remove or edit it.
4734 # By default, configure uses ./config.cache as the cache file,
4735 # creating it if it does not exist already. You can give configure
4736 # the --cache-file=FILE option to use a different cache file; that is
4737 # what configure does when it calls configure scripts in
4738 # subdirectories, so they share the cache.
4739 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4740 # config.status only pays attention to the cache file if you give it the
4741 # --recheck option to rerun configure.
4744 # The following way of writing the cache mishandles newlines in values,
4745 # but we know of no workaround that is simple, portable, and efficient.
4746 # So, don't put newlines in cache variables' values.
4747 # Ultrix sh set writes to stderr and can't be redirected directly,
4748 # and sets the high bit in the cache file unless we assign to the vars.
4750 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4752 # `set' does not quote correctly, so add quotes (double-quote substitution
4753 # turns \\\\ into \\, and sed turns \\ into \).
4755 -e "s/'/'\\\\''/g" \
4756 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4759 # `set' quotes correctly as required by POSIX, so do not add quotes.
4760 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4763 if cmp -s $cache_file confcache; then
4766 if test -w $cache_file; then
4767 echo "updating cache $cache_file"
4768 cat confcache > $cache_file
4770 echo "not updating unwritable cache $cache_file"
4775 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4778 # Let make expand exec_prefix.
4779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4781 # Any assignment to VPATH causes Sun make to only execute
4782 # the first set of double-colon rules, so remove it if not needed.
4783 # If there is a colon in the path, we need to keep it.
4784 if test "x$srcdir" = x.; then
4785 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4788 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4790 DEFS=-DHAVE_CONFIG_H
4792 # Without the "./", some shells look in PATH for config.status.
4793 : ${CONFIG_STATUS=./config.status}
4795 echo creating $CONFIG_STATUS
4796 rm -f $CONFIG_STATUS
4797 cat > $CONFIG_STATUS <<EOF
4799 # Generated automatically by configure.
4800 # Run this file to recreate the current configuration.
4801 # This directory was configured as follows,
4802 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4804 # $0 $ac_configure_args
4806 # Compiler output produced by configure, useful for debugging
4807 # configure, is in ./config.log if it exists.
4809 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4812 case "\$ac_option" in
4813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4814 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4815 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4816 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4817 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4819 -help | --help | --hel | --he | --h)
4820 echo "\$ac_cs_usage"; exit 0 ;;
4821 *) echo "\$ac_cs_usage"; exit 1 ;;
4825 ac_given_srcdir=$srcdir
4826 ac_given_INSTALL="$INSTALL"
4828 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4830 cat >> $CONFIG_STATUS <<EOF
4832 # Protect against being on the right side of a sed subst in config.status.
4833 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4834 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4838 s%@CFLAGS@%$CFLAGS%g
4839 s%@CPPFLAGS@%$CPPFLAGS%g
4840 s%@CXXFLAGS@%$CXXFLAGS%g
4841 s%@FFLAGS@%$FFLAGS%g
4843 s%@LDFLAGS@%$LDFLAGS%g
4845 s%@exec_prefix@%$exec_prefix%g
4846 s%@prefix@%$prefix%g
4847 s%@program_transform_name@%$program_transform_name%g
4848 s%@bindir@%$bindir%g
4849 s%@sbindir@%$sbindir%g
4850 s%@libexecdir@%$libexecdir%g
4851 s%@datadir@%$datadir%g
4852 s%@sysconfdir@%$sysconfdir%g
4853 s%@sharedstatedir@%$sharedstatedir%g
4854 s%@localstatedir@%$localstatedir%g
4855 s%@libdir@%$libdir%g
4856 s%@includedir@%$includedir%g
4857 s%@oldincludedir@%$oldincludedir%g
4858 s%@infodir@%$infodir%g
4859 s%@mandir@%$mandir%g
4861 s%@host_alias@%$host_alias%g
4862 s%@host_cpu@%$host_cpu%g
4863 s%@host_vendor@%$host_vendor%g
4864 s%@host_os@%$host_os%g
4865 s%@VLC_VERSION@%$VLC_VERSION%g
4866 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4867 s%@VLC_CODENAME@%$VLC_CODENAME%g
4868 s%@SET_MAKE@%$SET_MAKE%g
4871 s%@RANLIB@%$RANLIB%g
4872 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4873 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4874 s%@INSTALL_DATA@%$INSTALL_DATA%g
4875 s%@ESD_CONFIG@%$ESD_CONFIG%g
4876 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
4877 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
4878 s%@SDL_CONFIG@%$SDL_CONFIG%g
4879 s%@GTK_CONFIG@%$GTK_CONFIG%g
4882 s%@PLUGINS@%$PLUGINS%g
4883 s%@BUILTINS@%$BUILTINS%g
4884 s%@ALIASES@%$ALIASES%g
4885 s%@DEFINE@%$DEFINE%g
4886 s%@INCLUDE@%$INCLUDE%g
4891 s%@PROFILING@%$PROFILING%g
4892 s%@OPTIMS@%$OPTIMS%g
4893 s%@GETOPT@%$GETOPT%g
4896 s%@WINDRES@%$WINDRES%g
4897 s%@LCFLAGS@%$LCFLAGS%g
4898 s%@PLCFLAGS@%$PLCFLAGS%g
4900 s%@LIB_ALSA@%$LIB_ALSA%g
4901 s%@LIB_BEOS@%$LIB_BEOS%g
4902 s%@LIB_DARWIN@%$LIB_DARWIN%g
4903 s%@LIB_DVD@%$LIB_DVD%g
4904 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
4905 s%@LIB_ESD@%$LIB_ESD%g
4906 s%@LIB_GGI@%$LIB_GGI%g
4907 s%@LIB_GLIDE@%$LIB_GLIDE%g
4908 s%@LIB_GNOME@%$LIB_GNOME%g
4909 s%@LIB_GTK@%$LIB_GTK%g
4910 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4911 s%@LIB_KDE@%$LIB_KDE%g
4912 s%@LIB_MACOSX@%$LIB_MACOSX%g
4913 s%@LIB_QNX@%$LIB_QNX%g
4914 s%@LIB_NCURSES@%$LIB_NCURSES%g
4915 s%@LIB_QT@%$LIB_QT%g
4916 s%@LIB_TS@%$LIB_TS%g
4917 s%@LIB_SDL@%$LIB_SDL%g
4918 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4919 s%@LIB_X11@%$LIB_X11%g
4920 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4921 s%@LIB_YUV@%$LIB_YUV%g
4922 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4923 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4924 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4925 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4926 s%@CFLAGS_X11@%$CFLAGS_X11%g
4927 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4932 cat >> $CONFIG_STATUS <<\EOF
4934 # Split the substitutions into bite-sized pieces for seds with
4935 # small command number limits, like on Digital OSF/1 and HP-UX.
4936 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4937 ac_file=1 # Number of current file.
4938 ac_beg=1 # First line for current file.
4939 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4942 while $ac_more_lines; do
4943 if test $ac_beg -gt 1; then
4944 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4946 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4948 if test ! -s conftest.s$ac_file; then
4950 rm -f conftest.s$ac_file
4952 if test -z "$ac_sed_cmds"; then
4953 ac_sed_cmds="sed -f conftest.s$ac_file"
4955 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4957 ac_file=`expr $ac_file + 1`
4959 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4962 if test -z "$ac_sed_cmds"; then
4967 cat >> $CONFIG_STATUS <<EOF
4969 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4971 cat >> $CONFIG_STATUS <<\EOF
4972 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4973 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4975 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4976 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4977 *) ac_file_in="${ac_file}.in" ;;
4980 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4982 # Remove last slash and all that follows it. Not all systems have dirname.
4983 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4984 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4985 # The file is in a subdirectory.
4986 test ! -d "$ac_dir" && mkdir "$ac_dir"
4987 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4988 # A "../" for each directory in $ac_dir_suffix.
4989 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4991 ac_dir_suffix= ac_dots=
4994 case "$ac_given_srcdir" in
4996 if test -z "$ac_dots"; then top_srcdir=.
4997 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4998 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5000 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5001 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5004 case "$ac_given_INSTALL" in
5005 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5006 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5009 echo creating "$ac_file"
5011 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5013 *Makefile*) ac_comsub="1i\\
5014 # $configure_input" ;;
5018 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5020 s%@configure_input@%$configure_input%g
5021 s%@srcdir@%$srcdir%g
5022 s%@top_srcdir@%$top_srcdir%g
5023 s%@INSTALL@%$INSTALL%g
5024 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5028 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5029 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5031 # ac_d sets the value in "#define NAME VALUE" lines.
5032 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5033 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5036 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5037 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5038 ac_uB='\([ ]\)%\1#\2define\3'
5041 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5042 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5043 ac_eB='$%\1#\2define\3'
5047 if test "${CONFIG_HEADERS+set}" != set; then
5049 cat >> $CONFIG_STATUS <<EOF
5050 CONFIG_HEADERS="include/defs.h"
5052 cat >> $CONFIG_STATUS <<\EOF
5054 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5057 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5058 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5059 *) ac_file_in="${ac_file}.in" ;;
5062 echo creating $ac_file
5064 rm -f conftest.frag conftest.in conftest.out
5065 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5066 cat $ac_file_inputs > conftest.in
5070 # Transform confdefs.h into a sed script conftest.vals that substitutes
5071 # the proper values into config.h.in to produce config.h. And first:
5072 # Protect against being on the right side of a sed subst in config.status.
5073 # Protect against being in an unquoted here document in config.status.
5075 cat > conftest.hdr <<\EOF
5078 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5082 sed -n -f conftest.hdr confdefs.h > conftest.vals
5085 # This sed command replaces #undef with comments. This is necessary, for
5086 # example, in the case of _POSIX_SOURCE, which is predefined and required
5087 # on some systems where configure will not decide to define it.
5088 cat >> conftest.vals <<\EOF
5089 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5092 # Break up conftest.vals because some shells have a limit on
5093 # the size of here documents, and old seds have small limits too.
5098 ac_lines=`grep -c . conftest.vals`
5099 # grep -c gives empty output for an empty file on some AIX systems.
5100 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5101 # Write a limited-size here document to conftest.frag.
5102 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5103 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5105 sed -f conftest.frag conftest.in > conftest.out
5107 mv conftest.out conftest.in
5109 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5111 mv conftest.tail conftest.vals
5115 cat >> $CONFIG_STATUS <<\EOF
5116 rm -f conftest.frag conftest.h
5117 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5118 cat conftest.in >> conftest.h
5120 if cmp -s $ac_file conftest.h 2>/dev/null; then
5121 echo "$ac_file is unchanged"
5124 # Remove last slash and all that follows it. Not all systems have dirname.
5125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5127 # The file is in a subdirectory.
5128 test ! -d "$ac_dir" && mkdir "$ac_dir"
5131 mv conftest.h $ac_file
5136 cat >> $CONFIG_STATUS <<EOF
5139 cat >> $CONFIG_STATUS <<\EOF
5143 chmod +x $CONFIG_STATUS
5144 rm -fr confdefs* $ac_clean_files
5145 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5149 global configuration
5150 --------------------
5152 architecture : ${ARCH}
5153 optimizations : ${OPTIMS}
5157 vlc version : ${VLC_VERSION}
5158 debug mode : ${DEBUG}
5159 statistics : ${STATS}
5160 trace mode : ${TRACE}
5161 profiling : ${PROFILING}
5162 need builtin getopt : ${GETOPT}
5163 built-in modules :${BUILTINS}
5164 plugin modules :${PLUGINS}
5165 vlc aliases :${ALIASES}
5167 libdvdcss configuration
5168 -----------------------
5169 need to be built : ${LOCAL_LIBDVDCSS}"
5171 if test x${LOCAL_LIBDVDCSS} = x1
5173 echo "link statically : ${STATIC_LIBDVDCSS}
5174 CSS decryption : ${CSS}"
5178 You may now tune Makefile.opts at your convenience. To build vlc and its
5179 plugins, type \`make vlc plugins'. If you want to build libdvdcss only,
5180 type \`make libdvdcss'."