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