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-dummy dummy module (default enabled)"
17 --disable-null Null module (default enabled)"
19 --disable-rc rc module (default enabled)"
21 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
23 --disable-mmx Disable MMX optimizations (default enabled for x86)"
25 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
27 --disable-css Disable DVD CSS decryption (default enabled)"
29 --enable-debug Enable debug mode (default disabled)"
31 --enable-stats Enable printing of statistics (default disabled)"
33 --enable-trace Enable trace mode (default disabled)"
35 --disable-optimizations Disable compiler optimizations (default enabled)"
37 --disable-dsp Linux /dev/dsp support (default enabled)"
39 --enable-esd Esound library support (default disabled)"
41 --enable-darwin Darwin sound support (default disabled)"
43 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
45 --enable-fb Linux framebuffer support (default disabled)"
47 --with-ggi[=name] GGI support (default disabled)"
49 --with-sdl[=name] SDL support (default enabled)"
51 --with-glide[=name] Glide (3dfx) support (default disabled)"
53 --enable-ncurses ncurses interface support (default disabled)"
55 --enable-qt Qt interface support (default disabled)"
57 --enable-kde KDE interface support (default disabled)"
59 --enable-gnome Gnome interface support (default disabled)"
61 --disable-gtk Gtk+ support (default enabled)"
63 --disable-x11 X11 support (default enabled)"
65 --disable-xvideo XVideo support (default enabled)"
67 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=src/interface/main.c
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
582 if test -f $ac_dir/install-sh; then
584 ac_install_sh="$ac_aux_dir/install-sh -c"
586 elif test -f $ac_dir/install.sh; then
588 ac_install_sh="$ac_aux_dir/install.sh -c"
592 if test -z "$ac_aux_dir"; then
593 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
595 ac_config_guess=$ac_aux_dir/config.guess
596 ac_config_sub=$ac_aux_dir/config.sub
597 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
609 case "$host_alias" in
613 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616 *) host_alias=$nonopt ;;
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
632 save_CFLAGS="${CFLAGS}"
634 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
635 echo "configure:636: checking whether ${MAKE-make} sets \${MAKE}" >&5
636 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
637 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
640 cat > conftestmake <<\EOF
642 @echo 'ac_maketemp="${MAKE}"'
644 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
645 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
646 if test -n "$ac_maketemp"; then
647 eval ac_cv_prog_make_${ac_make}_set=yes
649 eval ac_cv_prog_make_${ac_make}_set=no
653 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
654 echo "$ac_t""yes" 1>&6
657 echo "$ac_t""no" 1>&6
658 SET_MAKE="MAKE=${MAKE-make}"
661 # Extract the first word of "gcc", so it can be a program name with args.
662 set dummy gcc; ac_word=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 echo "configure:665: checking for $ac_word" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
684 if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
687 echo "$ac_t""no" 1>&6
690 if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692 set dummy cc; ac_word=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
725 set dummy "$ac_dir/$ac_word" "$@"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
736 echo "$ac_t""no" 1>&6
739 if test -z "$CC"; then
742 # Extract the first word of "cl", so it can be a program name with args.
743 set dummy cl; ac_word=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
765 if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
768 echo "$ac_t""no" 1>&6
773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781 ac_cpp='$CPP $CPPFLAGS'
782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784 cross_compiling=$ac_cv_prog_cc_cross
786 cat > conftest.$ac_ext << EOF
788 #line 789 "configure"
789 #include "confdefs.h"
793 if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
794 ac_cv_prog_cc_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cc_cross=no
799 ac_cv_prog_cc_cross=yes
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cc_works=no
808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809 ac_cpp='$CPP $CPPFLAGS'
810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812 cross_compiling=$ac_cv_prog_cc_cross
814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
815 if test $ac_cv_prog_cc_works = no; then
816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
819 echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
821 cross_compiling=$ac_cv_prog_cc_cross
823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
824 echo "configure:825: checking whether we are using GNU C" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 cat > conftest.c <<EOF
833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
842 if test $ac_cv_prog_gcc = yes; then
848 ac_test_CFLAGS="${CFLAGS+set}"
849 ac_save_CFLAGS="$CFLAGS"
851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
852 echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 echo 'void f(){}' > conftest.c
857 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
866 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
867 if test "$ac_test_CFLAGS" = set; then
868 CFLAGS="$ac_save_CFLAGS"
869 elif test $ac_cv_prog_cc_g = yes; then
870 if test "$GCC" = yes; then
876 if test "$GCC" = yes; then
883 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
884 echo "configure:885: checking how to run the C preprocessor" >&5
885 # On Suns, sometimes $CPP names a directory.
886 if test -n "$CPP" && test -d "$CPP"; then
889 if test -z "$CPP"; then
890 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 # This must be in double quotes, not single quotes, because CPP may get
894 # substituted into the Makefile and "${CC-cc}" will confuse make.
896 # On the NeXT, cc -E runs the code through the compiler's parser,
897 # not just through cpp.
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905 { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
907 if test -z "$ac_err"; then
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
914 CPP="${CC-cc} -E -traditional-cpp"
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924 if test -z "$ac_err"; then
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
931 CPP="${CC-cc} -nologo -E"
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
939 { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941 if test -z "$ac_err"; then
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
955 ac_cv_prog_CPP="$CPP"
957 CPP="$ac_cv_prog_CPP"
959 ac_cv_prog_CPP="$CPP"
961 echo "$ac_t""$CPP" 1>&6
963 # Extract the first word of "ranlib", so it can be a program name with args.
964 set dummy ranlib; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$RANLIB"; then
971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 for ac_dir in $ac_dummy; do
976 test -z "$ac_dir" && ac_dir=.
977 if test -f $ac_dir/$ac_word; then
978 ac_cv_prog_RANLIB="ranlib"
983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
986 RANLIB="$ac_cv_prog_RANLIB"
987 if test -n "$RANLIB"; then
988 echo "$ac_t""$RANLIB" 1>&6
990 echo "$ac_t""no" 1>&6
994 # Find a good install program. We prefer a C program (faster),
995 # so one script is as good as another. But avoid the broken or
996 # incompatible versions:
997 # SysV /etc/install, /usr/sbin/install
998 # SunOS /usr/etc/install
1001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1004 # ./install, which can be erroneously created by make from ./install.sh.
1005 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1006 echo "configure:1007: checking for a BSD compatible install" >&5
1007 if test -z "$INSTALL"; then
1008 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1012 for ac_dir in $PATH; do
1013 # Account for people who put trailing slashes in PATH elements.
1015 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1017 # OSF1 and SCO ODT 3.0 have their own names for install.
1018 # Don't use installbsd from OSF since it installs stuff as root
1020 for ac_prog in ginstall scoinst install; do
1021 if test -f $ac_dir/$ac_prog; then
1022 if test $ac_prog = install &&
1023 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1024 # AIX install. It has an incompatible calling convention.
1027 ac_cv_path_install="$ac_dir/$ac_prog -c"
1038 if test "${ac_cv_path_install+set}" = set; then
1039 INSTALL="$ac_cv_path_install"
1041 # As a last resort, use the slow shell script. We don't cache a
1042 # path for INSTALL within a source directory, because that will
1043 # break other packages using the cache if that directory is
1044 # removed, or if the path is relative.
1045 INSTALL="$ac_install_sh"
1048 echo "$ac_t""$INSTALL" 1>&6
1050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1051 # It thinks the first close brace ends the variable substitution.
1052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1059 echo $ac_n "checking for working const""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working const" >&5
1061 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 /* Ultrix mips cc rejects this. */
1071 typedef int charset[2]; const charset x;
1072 /* SunOS 4.1.1 cc rejects this. */
1073 char const *const *ccp;
1075 /* NEC SVR4.0.2 mips cc rejects this. */
1076 struct point {int x, y;};
1077 static struct point const zero = {0,0};
1078 /* AIX XL C 1.02.0.0 rejects this.
1079 It does not let you subtract one const X* pointer from another in an arm
1080 of an if-expression whose if-part is not a constant expression */
1081 const char *g = "string";
1082 ccp = &g + (g ? g-g : 0);
1083 /* HPUX 7.0 cc rejects these. */
1086 ccp = (char const *const *) p;
1087 { /* SCO 3.2v4 cc rejects this. */
1089 char const *s = 0 ? (char *) 0 : (char const *) 0;
1093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1095 const int *foo = &x[0];
1098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1099 typedef const int *iptr;
1103 { /* AIX XL C 1.02.0.0 rejects this saying
1104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1105 struct s { int j; const int *ap[3]; };
1106 struct s *b; b->j = 5;
1108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1114 if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1126 echo "$ac_t""$ac_cv_c_const" 1>&6
1127 if test $ac_cv_c_const = no; then
1128 cat >> confdefs.h <<\EOF
1135 if test x${cross_compiling} != xyes; then
1136 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether byte ordering is bigendian" >&5
1138 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 ac_cv_c_bigendian=unknown
1142 # See if sys/param.h defines the BYTE_ORDER macro.
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 #include <sys/types.h>
1147 #include <sys/param.h>
1150 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1155 if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1157 # It does; now see whether it defined to BIG_ENDIAN or not.
1158 cat > conftest.$ac_ext <<EOF
1159 #line 1160 "configure"
1160 #include "confdefs.h"
1161 #include <sys/types.h>
1162 #include <sys/param.h>
1165 #if BYTE_ORDER != BIG_ENDIAN
1170 if { (eval echo configure:1171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1172 ac_cv_c_bigendian=yes
1174 echo "configure: failed program was:" >&5
1175 cat conftest.$ac_ext >&5
1177 ac_cv_c_bigendian=no
1181 echo "configure: failed program was:" >&5
1182 cat conftest.$ac_ext >&5
1185 if test $ac_cv_c_bigendian = unknown; then
1186 if test "$cross_compiling" = yes; then
1187 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1193 /* Are we little or big endian? From Harbison&Steele. */
1197 char c[sizeof (long)];
1200 exit (u.c[sizeof (long) - 1] == 1);
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1205 ac_cv_c_bigendian=no
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 ac_cv_c_bigendian=yes
1218 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1219 if test $ac_cv_c_bigendian = yes; then
1220 cat >> confdefs.h <<\EOF
1221 #define WORDS_BIGENDIAN 1
1228 for ac_func in gettimeofday select strerror strtod strtol
1230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_func" >&5
1232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 /* System header to define __stub macros and hopefully few prototypes,
1239 which can conflict with char $ac_func(); below. */
1241 /* Override any gcc2 internal prototype to avoid an error. */
1242 /* We use char because int might match the return type of a gcc2
1243 builtin and then its argument prototype would still apply. */
1248 /* The GNU C library defines this for functions which it implements
1249 to always fail with ENOSYS. Some functions are actually named
1250 something starting with __ and the normal name is an alias. */
1251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1259 if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1261 eval "ac_cv_func_$ac_func=yes"
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 eval "ac_cv_func_$ac_func=no"
1271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1272 echo "$ac_t""yes" 1>&6
1273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1274 cat >> confdefs.h <<EOF
1275 #define $ac_tr_func 1
1279 echo "$ac_t""no" 1>&6
1283 for ac_func in setenv putenv
1285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_func" >&5
1287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* System header to define __stub macros and hopefully few prototypes,
1294 which can conflict with char $ac_func(); below. */
1296 /* Override any gcc2 internal prototype to avoid an error. */
1297 /* We use char because int might match the return type of a gcc2
1298 builtin and then its argument prototype would still apply. */
1303 /* The GNU C library defines this for functions which it implements
1304 to always fail with ENOSYS. Some functions are actually named
1305 something starting with __ and the normal name is an alias. */
1306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1316 eval "ac_cv_func_$ac_func=yes"
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1321 eval "ac_cv_func_$ac_func=no"
1326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1329 cat >> confdefs.h <<EOF
1330 #define $ac_tr_func 1
1334 echo "$ac_t""no" 1>&6
1338 echo $ac_n "checking for connect""... $ac_c" 1>&6
1339 echo "configure:1340: checking for connect" >&5
1340 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* System header to define __stub macros and hopefully few prototypes,
1347 which can conflict with char connect(); below. */
1349 /* Override any gcc2 internal prototype to avoid an error. */
1350 /* We use char because int might match the return type of a gcc2
1351 builtin and then its argument prototype would still apply. */
1356 /* The GNU C library defines this for functions which it implements
1357 to always fail with ENOSYS. Some functions are actually named
1358 something starting with __ and the normal name is an alias. */
1359 #if defined (__stub_connect) || defined (__stub___connect)
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369 eval "ac_cv_func_connect=yes"
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1374 eval "ac_cv_func_connect=no"
1379 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1383 echo "$ac_t""no" 1>&6
1385 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1386 echo "configure:1387: checking for connect in -lsocket" >&5
1387 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 ac_save_LIBS="$LIBS"
1392 LIBS="-lsocket $LIBS"
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 /* Override any gcc2 internal prototype to avoid an error. */
1397 /* We use char because int might match the return type of a gcc2
1398 builtin and then its argument prototype would still apply. */
1405 if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1407 eval "ac_cv_lib_$ac_lib_var=yes"
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1412 eval "ac_cv_lib_$ac_lib_var=no"
1415 LIBS="$ac_save_LIBS"
1418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1419 echo "$ac_t""yes" 1>&6
1420 LIB="${LIB} -lsocket"
1422 echo "$ac_t""no" 1>&6
1428 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1429 echo "configure:1430: checking for gethostbyname" >&5
1430 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1436 /* System header to define __stub macros and hopefully few prototypes,
1437 which can conflict with char gethostbyname(); below. */
1439 /* Override any gcc2 internal prototype to avoid an error. */
1440 /* We use char because int might match the return type of a gcc2
1441 builtin and then its argument prototype would still apply. */
1442 char gethostbyname();
1446 /* The GNU C library defines this for functions which it implements
1447 to always fail with ENOSYS. Some functions are actually named
1448 something starting with __ and the normal name is an alias. */
1449 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1459 eval "ac_cv_func_gethostbyname=yes"
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1464 eval "ac_cv_func_gethostbyname=no"
1469 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1470 echo "$ac_t""yes" 1>&6
1473 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1476 echo "configure:1477: checking for gethostbyname in -lnsl" >&5
1477 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 ac_save_LIBS="$LIBS"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1489 char gethostbyname();
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1497 eval "ac_cv_lib_$ac_lib_var=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_lib_$ac_lib_var=no"
1505 LIBS="$ac_save_LIBS"
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1512 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1519 echo "configure:1520: checking for nanosleep" >&5
1520 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* System header to define __stub macros and hopefully few prototypes,
1527 which can conflict with char nanosleep(); below. */
1529 /* Override any gcc2 internal prototype to avoid an error. */
1530 /* We use char because int might match the return type of a gcc2
1531 builtin and then its argument prototype would still apply. */
1536 /* The GNU C library defines this for functions which it implements
1537 to always fail with ENOSYS. Some functions are actually named
1538 something starting with __ and the normal name is an alias. */
1539 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1549 eval "ac_cv_func_nanosleep=yes"
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 eval "ac_cv_func_nanosleep=no"
1559 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1560 echo "$ac_t""yes" 1>&6
1563 echo "$ac_t""no" 1>&6
1565 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1566 echo "configure:1567: checking for nanosleep in -lrt" >&5
1567 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 ac_save_LIBS="$LIBS"
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1587 eval "ac_cv_lib_$ac_lib_var=yes"
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1592 eval "ac_cv_lib_$ac_lib_var=no"
1595 LIBS="$ac_save_LIBS"
1598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1602 echo "$ac_t""no" 1>&6
1604 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1605 echo "configure:1606: checking for nanosleep in -lposix4" >&5
1606 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 ac_save_LIBS="$LIBS"
1611 LIBS="-lposix4 $LIBS"
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 /* Override any gcc2 internal prototype to avoid an error. */
1616 /* We use char because int might match the return type of a gcc2
1617 builtin and then its argument prototype would still apply. */
1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1626 eval "ac_cv_lib_$ac_lib_var=yes"
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1631 eval "ac_cv_lib_$ac_lib_var=no"
1634 LIBS="$ac_save_LIBS"
1637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1639 LIB="${LIB} -lposix4"
1641 echo "$ac_t""no" 1>&6
1650 for ac_func in usleep
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char $ac_func(); below. */
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_func_$ac_func=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_func_$ac_func=no"
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696 cat >> confdefs.h <<EOF
1697 #define $ac_tr_func 1
1701 echo "$ac_t""no" 1>&6
1705 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1706 echo "configure:1707: checking for inet_aton" >&5
1707 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char inet_aton(); below. */
1716 /* Override any gcc2 internal prototype to avoid an error. */
1717 /* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 eval "ac_cv_func_inet_aton=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_func_inet_aton=no"
1746 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1750 echo "$ac_t""no" 1>&6
1752 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1753 echo "configure:1754: checking for inet_aton in -lresolv" >&5
1754 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 ac_save_LIBS="$LIBS"
1759 LIBS="-lresolv $LIBS"
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 /* Override any gcc2 internal prototype to avoid an error. */
1764 /* We use char because int might match the return type of a gcc2
1765 builtin and then its argument prototype would still apply. */
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1774 eval "ac_cv_lib_$ac_lib_var=yes"
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1779 eval "ac_cv_lib_$ac_lib_var=no"
1782 LIBS="$ac_save_LIBS"
1785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1786 echo "$ac_t""yes" 1>&6
1787 LIB="${LIB} -lresolv"
1789 echo "$ac_t""no" 1>&6
1795 for ac_func in vasprintf
1797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_func" >&5
1799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $ac_func(); below. */
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1826 if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1828 eval "ac_cv_func_$ac_func=yes"
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1833 eval "ac_cv_func_$ac_func=no"
1838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1839 echo "$ac_t""yes" 1>&6
1840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1841 cat >> confdefs.h <<EOF
1842 #define $ac_tr_func 1
1846 echo "$ac_t""no" 1>&6
1852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_func" >&5
1854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $ac_func(); below. */
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1881 if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1883 eval "ac_cv_func_$ac_func=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 eval "ac_cv_func_$ac_func=no"
1893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1896 cat >> confdefs.h <<EOF
1897 #define $ac_tr_func 1
1901 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1907 echo "configure:1908: checking for getopt_long" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 /* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char getopt_long(); below. */
1917 /* Override any gcc2 internal prototype to avoid an error. */
1918 /* We use char because int might match the return type of a gcc2
1919 builtin and then its argument prototype would still apply. */
1924 /* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 eval "ac_cv_func_getopt_long=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_func_getopt_long=no"
1947 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 cat >> confdefs.h <<\EOF
1950 #define HAVE_GETOPT_LONG 1
1954 echo "$ac_t""no" 1>&6
1955 # FreeBSD has a gnugetopt library for this:
1956 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1957 echo "configure:1958: checking for getopt_long in -lgnugetopt" >&5
1958 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 ac_save_LIBS="$LIBS"
1963 LIBS="-lgnugetopt $LIBS"
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* Override any gcc2 internal prototype to avoid an error. */
1968 /* We use char because int might match the return type of a gcc2
1969 builtin and then its argument prototype would still apply. */
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1978 eval "ac_cv_lib_$ac_lib_var=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1983 eval "ac_cv_lib_$ac_lib_var=no"
1986 LIBS="$ac_save_LIBS"
1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 cat >> confdefs.h <<\EOF
1992 #define HAVE_GETOPT_LONG 1
1994 LIB="${LIB} -lgnugetopt"
1996 echo "$ac_t""no" 1>&6
2004 for ac_hdr in unistd.h
2006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_hdr" >&5
2009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 cat > conftest.$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2018 { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2020 if test -z "$ac_err"; then
2022 eval "ac_cv_header_$ac_safe=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2028 eval "ac_cv_header_$ac_safe=no"
2032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2035 cat >> confdefs.h <<EOF
2036 #define $ac_tr_hdr 1
2040 echo "$ac_t""no" 1>&6
2044 for ac_func in getpagesize
2046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_func" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_func 1
2095 echo "$ac_t""no" 1>&6
2099 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2100 echo "configure:2101: checking for working mmap" >&5
2101 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test "$cross_compiling" = yes; then
2105 ac_cv_func_mmap_fixed_mapped=no
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2111 /* Thanks to Mike Haertel and Jim Avera for this test.
2112 Here is a matrix of mmap possibilities:
2113 mmap private not fixed
2114 mmap private fixed at somewhere currently unmapped
2115 mmap private fixed at somewhere already mapped
2116 mmap shared not fixed
2117 mmap shared fixed at somewhere currently unmapped
2118 mmap shared fixed at somewhere already mapped
2119 For private mappings, we should verify that changes cannot be read()
2120 back from the file, nor mmap's back from the file at a different
2121 address. (There have been systems where private was not correctly
2122 implemented like the infamous i386 svr4.0, and systems where the
2123 VM page cache was not coherent with the filesystem buffer cache
2124 like early versions of FreeBSD and possibly contemporary NetBSD.)
2125 For shared mappings, we should conversely verify that changes get
2126 propogated back to all the places they're supposed to be.
2128 Grep wants private fixed already mapped.
2129 The main things grep needs to know about mmap are:
2130 * does it exist and is it safe to write into the mmap'd area
2131 * how to use it (BSD variants) */
2132 #include <sys/types.h>
2134 #include <sys/mman.h>
2136 /* This mess was copied from the GNU getpagesize.h. */
2137 #ifndef HAVE_GETPAGESIZE
2138 # ifdef HAVE_UNISTD_H
2139 # include <unistd.h>
2142 /* Assume that all systems that can run configure have sys/param.h. */
2143 # ifndef HAVE_SYS_PARAM_H
2144 # define HAVE_SYS_PARAM_H 1
2147 # ifdef _SC_PAGESIZE
2148 # define getpagesize() sysconf(_SC_PAGESIZE)
2149 # else /* no _SC_PAGESIZE */
2150 # ifdef HAVE_SYS_PARAM_H
2151 # include <sys/param.h>
2152 # ifdef EXEC_PAGESIZE
2153 # define getpagesize() EXEC_PAGESIZE
2154 # else /* no EXEC_PAGESIZE */
2156 # define getpagesize() NBPG * CLSIZE
2159 # endif /* no CLSIZE */
2160 # else /* no NBPG */
2162 # define getpagesize() NBPC
2163 # else /* no NBPC */
2165 # define getpagesize() PAGESIZE
2166 # endif /* PAGESIZE */
2167 # endif /* no NBPC */
2168 # endif /* no NBPG */
2169 # endif /* no EXEC_PAGESIZE */
2170 # else /* no HAVE_SYS_PARAM_H */
2171 # define getpagesize() 8192 /* punt totally */
2172 # endif /* no HAVE_SYS_PARAM_H */
2173 # endif /* no _SC_PAGESIZE */
2175 #endif /* no HAVE_GETPAGESIZE */
2178 extern "C" { void *malloc(unsigned); }
2186 char *data, *data2, *data3;
2190 pagesize = getpagesize();
2193 * First, make a file with some known garbage in it.
2195 data = malloc(pagesize);
2198 for (i = 0; i < pagesize; ++i)
2199 *(data + i) = rand();
2201 fd = creat("conftestmmap", 0600);
2204 if (write(fd, data, pagesize) != pagesize)
2209 * Next, try to mmap the file at a fixed address which
2210 * already has something else allocated at it. If we can,
2211 * also make sure that we see the same garbage.
2213 fd = open("conftestmmap", O_RDWR);
2216 data2 = malloc(2 * pagesize);
2219 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2220 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2223 for (i = 0; i < pagesize; ++i)
2224 if (*(data + i) != *(data2 + i))
2228 * Finally, make sure that changes to the mapped area
2229 * do not percolate back to the file as seen by read().
2230 * (This is a bug on some variants of i386 svr4.0.)
2232 for (i = 0; i < pagesize; ++i)
2233 *(data2 + i) = *(data2 + i) + 1;
2234 data3 = malloc(pagesize);
2237 if (read(fd, data3, pagesize) != pagesize)
2239 for (i = 0; i < pagesize; ++i)
2240 if (*(data + i) != *(data3 + i))
2243 unlink("conftestmmap");
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2250 ac_cv_func_mmap_fixed_mapped=yes
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 ac_cv_func_mmap_fixed_mapped=no
2262 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2263 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2264 cat >> confdefs.h <<\EOF
2270 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2271 echo "configure:2272: checking return type of signal handlers" >&5
2272 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 #include <sys/types.h>
2284 extern "C" void (*signal (int, void (*)(int)))(int);
2286 void (*signal ()) ();
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 ac_cv_type_signal=void
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 ac_cv_type_signal=int
2305 echo "$ac_t""$ac_cv_type_signal" 1>&6
2306 cat >> confdefs.h <<EOF
2307 #define RETSIGTYPE $ac_cv_type_signal
2311 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2312 echo "configure:2313: checking for dlopen in -ldl" >&5
2313 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_save_LIBS="$LIBS"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* Override any gcc2 internal prototype to avoid an error. */
2323 /* We use char because int might match the return type of a gcc2
2324 builtin and then its argument prototype would still apply. */
2331 if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 eval "ac_cv_lib_$ac_lib_var=yes"
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 eval "ac_cv_lib_$ac_lib_var=no"
2341 LIBS="$ac_save_LIBS"
2344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2345 echo "$ac_t""yes" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2352 echo "configure:2353: checking for pow in -lm" >&5
2353 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 ac_save_LIBS="$LIBS"
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373 eval "ac_cv_lib_$ac_lib_var=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2378 eval "ac_cv_lib_$ac_lib_var=no"
2381 LIBS="$ac_save_LIBS"
2384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2385 echo "$ac_t""yes" 1>&6
2386 LIB_YUV="${LIB_YUV} -lm"
2388 echo "$ac_t""no" 1>&6
2392 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2393 CFLAGS="${CFLAGS} -I/usr/local/include"
2396 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2397 echo "configure:2398: checking for pthread_attr_init in -lpthread" >&5
2398 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_save_LIBS="$LIBS"
2403 LIBS="-lpthread $LIBS"
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2410 char pthread_attr_init();
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 eval "ac_cv_lib_$ac_lib_var=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_lib_$ac_lib_var=no"
2426 LIBS="$ac_save_LIBS"
2429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 PTHREAD_LIBS="-lpthread"
2433 echo "$ac_t""no" 1>&6
2436 if test "x$PTHREAD_LIBS" = xerror; then
2437 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2438 echo "configure:2439: checking for pthread_attr_init in -lpthreads" >&5
2439 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_save_LIBS="$LIBS"
2444 LIBS="-lpthreads $LIBS"
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* Override any gcc2 internal prototype to avoid an error. */
2449 /* We use char because int might match the return type of a gcc2
2450 builtin and then its argument prototype would still apply. */
2451 char pthread_attr_init();
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459 eval "ac_cv_lib_$ac_lib_var=yes"
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 eval "ac_cv_lib_$ac_lib_var=no"
2467 LIBS="$ac_save_LIBS"
2470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2472 PTHREAD_LIBS="-lpthreads"
2474 echo "$ac_t""no" 1>&6
2478 if test "x$PTHREAD_LIBS" = xerror; then
2479 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2480 echo "configure:2481: checking for pthread_attr_init in -lc_r" >&5
2481 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 ac_save_LIBS="$LIBS"
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 /* Override any gcc2 internal prototype to avoid an error. */
2491 /* We use char because int might match the return type of a gcc2
2492 builtin and then its argument prototype would still apply. */
2493 char pthread_attr_init();
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 eval "ac_cv_lib_$ac_lib_var=yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 eval "ac_cv_lib_$ac_lib_var=no"
2509 LIBS="$ac_save_LIBS"
2512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 PTHREAD_LIBS="-lc_r"
2516 echo "$ac_t""no" 1>&6
2520 if test "x$PTHREAD_LIBS" = xerror; then
2522 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2523 echo "configure:2524: checking for pthread_attr_init" >&5
2524 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char pthread_attr_init(); below. */
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536 char pthread_attr_init();
2540 /* The GNU C library defines this for functions which it implements
2541 to always fail with ENOSYS. Some functions are actually named
2542 something starting with __ and the normal name is an alias. */
2543 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2546 pthread_attr_init();
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 eval "ac_cv_func_pthread_attr_init=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 eval "ac_cv_func_pthread_attr_init=no"
2563 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2567 echo "$ac_t""no" 1>&6
2571 LIB="${LIB} ${PTHREAD_LIBS}"
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 #include <pthread.h>
2578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2579 egrep "pthread_cond_t" >/dev/null 2>&1; then
2582 cat >> confdefs.h <<\EOF
2583 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <strings.h>
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "strncasecmp" >/dev/null 2>&1; then
2599 cat >> confdefs.h <<\EOF
2600 #define STRNCASECMP_IN_STRINGS_H 1
2608 for ac_hdr in stddef.h getopt.h strings.h
2610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_hdr" >&5
2613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2622 { (eval echo configure:2623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2624 if test -z "$ac_err"; then
2626 eval "ac_cv_header_$ac_safe=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_header_$ac_safe=no"
2636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2639 cat >> confdefs.h <<EOF
2640 #define $ac_tr_hdr 1
2644 echo "$ac_t""no" 1>&6
2648 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_hdr" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2664 if test -z "$ac_err"; then
2666 eval "ac_cv_header_$ac_safe=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_header_$ac_safe=no"
2676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_hdr 1
2684 echo "$ac_t""no" 1>&6
2688 for ac_hdr in sys/soundcard.h machine/soundcard.h
2690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2692 echo "configure:2693: checking for $ac_hdr" >&5
2693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 eval "ac_cv_header_$ac_safe=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_header_$ac_safe=no"
2716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_hdr 1
2724 echo "$ac_t""no" 1>&6
2728 for ac_hdr in dlfcn.h image.h
2730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2732 echo "configure:2733: checking for $ac_hdr" >&5
2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2746 eval "ac_cv_header_$ac_safe=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_header_$ac_safe=no"
2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2759 cat >> confdefs.h <<EOF
2760 #define $ac_tr_hdr 1
2764 echo "$ac_t""no" 1>&6
2768 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_hdr" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2786 eval "ac_cv_header_$ac_safe=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_header_$ac_safe=no"
2796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2799 cat >> confdefs.h <<EOF
2800 #define $ac_tr_hdr 1
2804 echo "$ac_t""no" 1>&6
2808 for ac_hdr in machine/param.h
2810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_hdr" >&5
2813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2822 { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2824 if test -z "$ac_err"; then
2826 eval "ac_cv_header_$ac_safe=yes"
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 eval "ac_cv_header_$ac_safe=no"
2836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2839 cat >> confdefs.h <<EOF
2840 #define $ac_tr_hdr 1
2844 echo "$ac_t""no" 1>&6
2849 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2867 eval "ac_cv_header_$ac_safe=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2873 eval "ac_cv_header_$ac_safe=no"
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2885 echo "$ac_t""no" 1>&6
2890 CFLAGS="${CFLAGS} -Wall -Werror"
2891 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2892 echo "configure:2893: checking for ntohl in sys/param.h" >&5
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 #include <sys/param.h>
2897 void foo() { int meuh; ntohl(meuh); }
2902 if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904 cat >> confdefs.h <<\EOF
2905 #define NTOHL_IN_SYS_PARAM_H 1
2908 echo "$ac_t""yes" 1>&6
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2913 echo "$ac_t""no" 1>&6
2917 CFLAGS="${save_CFLAGS}"
2919 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2920 echo "configure:2921: checking for boolean_t in sys/types.h" >&5
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 #include <sys/types.h>
2925 void quux() { boolean_t foo; }
2930 if { (eval echo configure:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2932 cat >> confdefs.h <<\EOF
2933 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2936 echo "$ac_t""yes" 1>&6
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
2945 echo "configure:2946: checking for boolean_t in pthread.h" >&5
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <pthread.h>
2950 void quux() { boolean_t foo; }
2955 if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2957 cat >> confdefs.h <<\EOF
2958 #define BOOLEAN_T_IN_PTHREAD_H 1
2961 echo "$ac_t""yes" 1>&6
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 echo "$ac_t""no" 1>&6
2970 echo $ac_n "checking for working const""... $ac_c" 1>&6
2971 echo "configure:2972: checking for working const" >&5
2972 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2981 /* Ultrix mips cc rejects this. */
2982 typedef int charset[2]; const charset x;
2983 /* SunOS 4.1.1 cc rejects this. */
2984 char const *const *ccp;
2986 /* NEC SVR4.0.2 mips cc rejects this. */
2987 struct point {int x, y;};
2988 static struct point const zero = {0,0};
2989 /* AIX XL C 1.02.0.0 rejects this.
2990 It does not let you subtract one const X* pointer from another in an arm
2991 of an if-expression whose if-part is not a constant expression */
2992 const char *g = "string";
2993 ccp = &g + (g ? g-g : 0);
2994 /* HPUX 7.0 cc rejects these. */
2997 ccp = (char const *const *) p;
2998 { /* SCO 3.2v4 cc rejects this. */
3000 char const *s = 0 ? (char *) 0 : (char const *) 0;
3004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3006 const int *foo = &x[0];
3009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3010 typedef const int *iptr;
3014 { /* AIX XL C 1.02.0.0 rejects this saying
3015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3016 struct s { int j; const int *ap[3]; };
3017 struct s *b; b->j = 5;
3019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3025 if { (eval echo configure:3026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3037 echo "$ac_t""$ac_cv_c_const" 1>&6
3038 if test $ac_cv_c_const = no; then
3039 cat >> confdefs.h <<\EOF
3045 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3046 echo "configure:3047: checking for ANSI C header files" >&5
3047 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3061 if test -z "$ac_err"; then
3063 ac_cv_header_stdc=yes
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 ac_cv_header_stdc=no
3073 if test $ac_cv_header_stdc = yes; then
3074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081 egrep "memchr" >/dev/null 2>&1; then
3085 ac_cv_header_stdc=no
3091 if test $ac_cv_header_stdc = yes; then
3092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 egrep "free" >/dev/null 2>&1; then
3103 ac_cv_header_stdc=no
3109 if test $ac_cv_header_stdc = yes; then
3110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3111 if test "$cross_compiling" = yes; then
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3118 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3119 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3121 int main () { int i; for (i = 0; i < 256; i++)
3122 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 ac_cv_header_stdc=no
3141 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3142 if test $ac_cv_header_stdc = yes; then
3143 cat >> confdefs.h <<\EOF
3144 #define STDC_HEADERS 1
3149 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3150 echo "configure:3151: checking for size_t" >&5
3151 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 #include <sys/types.h>
3163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3164 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3166 ac_cv_type_size_t=yes
3169 ac_cv_type_size_t=no
3174 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3175 if test $ac_cv_type_size_t = no; then
3176 cat >> confdefs.h <<\EOF
3177 #define size_t unsigned
3182 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3183 echo "configure:3184: checking whether time.h and sys/time.h may both be included" >&5
3184 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3191 #include <sys/time.h>
3197 if { (eval echo configure:3198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3199 ac_cv_header_time=yes
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 ac_cv_header_time=no
3209 echo "$ac_t""$ac_cv_header_time" 1>&6
3210 if test $ac_cv_header_time = yes; then
3211 cat >> confdefs.h <<\EOF
3212 #define TIME_WITH_SYS_TIME 1
3220 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3224 MMX_PLUGINS="idctmmx motionmmx"
3225 MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn"
3228 MMX_PLUGINS="yuvmmx idctmmx motionmmx"
3229 MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3233 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3234 echo "configure:3235: checking if \$CC groks MMX inline assembly" >&5
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMX_PLUGINS}"
3246 echo "$ac_t""yes" 1>&6
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 echo "$ac_t""no" 1>&6
3255 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3256 echo "configure:3257: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3265 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3267 ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMXEXT_PLUGINS}"
3268 echo "$ac_t""yes" 1>&6
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3273 echo "$ac_t""no" 1>&6
3277 for ac_hdr in sys/ioctl.h
3279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_hdr" >&5
3282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3295 eval "ac_cv_header_$ac_safe=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_header_$ac_safe=no"
3305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3308 cat >> confdefs.h <<EOF
3309 #define $ac_tr_hdr 1
3312 BUILTINS="${BUILTINS} dvd"
3313 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3317 echo "configure:3318: checking for $ac_hdr" >&5
3318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3327 { (eval echo configure:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3329 if test -z "$ac_err"; then
3331 eval "ac_cv_header_$ac_safe=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_header_$ac_safe=no"
3341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3344 cat >> confdefs.h <<EOF
3345 #define $ac_tr_hdr 1
3349 echo "$ac_t""no" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 #include <sys/dvdio.h>
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 egrep "dvd_struct" >/dev/null 2>&1; then
3363 cat >> confdefs.h <<\EOF
3364 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <sys/cdio.h>
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "dvd_struct" >/dev/null 2>&1; then
3381 cat >> confdefs.h <<\EOF
3382 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3390 if test x$BSD_DVD_STRUCT = x1; then
3391 cat >> confdefs.h <<\EOF
3392 #define HAVE_BSD_DVD_STRUCT 1
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 #include <linux/cdrom.h>
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "dvd_struct" >/dev/null 2>&1; then
3405 cat >> confdefs.h <<\EOF
3406 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3415 echo "$ac_t""no" 1>&6
3420 # Check whether --enable-dummy or --disable-dummy was given.
3421 if test "${enable_dummy+set}" = set; then
3422 enableval="$enable_dummy"
3426 if test x$enable_dummy != xno; then
3427 BUILTINS="${BUILTINS} dummy"; fi
3429 # Check whether --enable-null or --disable-null was given.
3430 if test "${enable_null+set}" = set; then
3431 enableval="$enable_null"
3435 if test x$enable_null != xno; then
3436 BUILTINS="${BUILTINS} null"; fi
3438 # Check whether --enable-rc or --disable-rc was given.
3439 if test "${enable_rc+set}" = set; then
3440 enableval="$enable_rc"
3444 if test x$enable_rc != xno; then
3445 BUILTINS="${BUILTINS} rc"; fi
3447 # Check whether --enable-ppro or --disable-ppro was given.
3448 if test "${enable_ppro+set}" = set; then
3449 enableval="$enable_ppro"
3450 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3452 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3456 # Check whether --enable-mmx or --disable-mmx was given.
3457 if test "${enable_mmx+set}" = set; then
3458 enableval="$enable_mmx"
3459 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3460 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3462 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";
3463 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3467 # Check whether --enable-altivec or --disable-altivec was given.
3468 if test "${enable_altivec+set}" = set; then
3469 enableval="$enable_altivec"
3470 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
3471 BUILTINS="${BUILTINS} idctaltivec"
3472 LIB_IDCTALTIVEC="-framework vecLib"
3476 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3478 # Check whether --enable-css or --disable-css was given.
3479 if test "${enable_css+set}" = set; then
3480 enableval="$enable_css"
3481 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3486 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3491 # Check whether --enable-debug or --disable-debug was given.
3492 if test "${enable_debug+set}" = set; then
3493 enableval="$enable_debug"
3494 if test x$enableval = xyes; then DEBUG=1; fi
3498 # Check whether --enable-stats or --disable-stats was given.
3499 if test "${enable_stats+set}" = set; then
3500 enableval="$enable_stats"
3501 if test x$enableval = xyes; then STATS=1; fi
3505 # Check whether --enable-trace or --disable-trace was given.
3506 if test "${enable_trace+set}" = set; then
3507 enableval="$enable_trace"
3508 if test x$enableval = xyes; then TRACE=1; fi
3512 # Check whether --enable-optimizations or --disable-optimizations was given.
3513 if test "${enable_optimizations+set}" = set; then
3514 enableval="$enable_optimizations"
3515 if test x$enableval = xno; then OPTIMS=0; fi
3523 if test x$host_os = xbeos; then
3524 BUILTINS="${BUILTINS} beos"
3525 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3529 # Check whether --enable-dsp or --disable-dsp was given.
3530 if test "${enable_dsp+set}" = set; then
3531 enableval="$enable_dsp"
3535 if test x$enable_dsp != xno; then
3536 if test -c /dev/dsp; then
3537 PLUGINS="${PLUGINS} dsp"
3541 # Check whether --enable-esd or --disable-esd was given.
3542 if test "${enable_esd+set}" = set; then
3543 enableval="$enable_esd"
3544 if test x$enable_esd = xyes; then
3545 # Extract the first word of "esd-config", so it can be a program name with args.
3546 set dummy esd-config; ac_word=$2
3547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3548 echo "configure:3549: checking for $ac_word" >&5
3549 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 case "$ESD_CONFIG" in
3554 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3557 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3562 for ac_dir in $ac_dummy; do
3563 test -z "$ac_dir" && ac_dir=.
3564 if test -f $ac_dir/$ac_word; then
3565 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3570 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3574 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3575 if test -n "$ESD_CONFIG"; then
3576 echo "$ac_t""$ESD_CONFIG" 1>&6
3578 echo "$ac_t""no" 1>&6
3581 if test x${ESD_CONFIG} != xno; then
3582 PLUGINS="${PLUGINS} esd"
3583 LIB_ESD="`${ESD_CONFIG} --libs`"
3589 # Check whether --enable-darwin or --disable-darwin was given.
3590 if test "${enable_darwin+set}" = set; then
3591 enableval="$enable_darwin"
3592 if test x$enable_darwin = xyes; then
3593 PLUGINS="${PLUGINS} darwin"
3594 LIB_DARWIN="-framework CoreAudio"
3599 # Check whether --enable-macosx or --disable-macosx was given.
3600 if test "${enable_macosx+set}" = set; then
3601 enableval="$enable_macosx"
3602 if test x$enable_macosx = xyes; then
3603 BUILTINS="${BUILTINS} macosx"
3604 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3605 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3606 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3609 for ac_hdr in Carbon/Carbon.h
3611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_hdr" >&5
3614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625 if test -z "$ac_err"; then
3627 eval "ac_cv_header_$ac_safe=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_header_$ac_safe=no"
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3640 cat >> confdefs.h <<EOF
3641 #define $ac_tr_hdr 1
3643 BUILTINS="${BUILTINS} macosx"
3644 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3645 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3646 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3649 echo "$ac_t""no" 1>&6
3656 # Check whether --enable-fb or --disable-fb was given.
3657 if test "${enable_fb+set}" = set; then
3658 enableval="$enable_fb"
3659 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
3663 # Check whether --with-ggi or --without-ggi was given.
3664 if test "${with_ggi+set}" = set; then
3666 if test "x$withval" != "xno";
3668 PLUGINS="${PLUGINS} ggi";
3669 if test "x$withval" != "xyes";
3671 LIB_GGI="-l"$withval
3679 # Check whether --with-sdl or --without-sdl was given.
3680 if test "${with_sdl+set}" = set; then
3682 if test "x$withval" != "xno";
3684 PLUGINS="${PLUGINS} sdl";
3685 if test "x$withval" != "xyes";
3687 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
3688 INCLUDE="${INCLUDE} -I"$withval"/include"
3690 for ac_hdr in SDL/SDL.h
3692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3694 echo "configure:3695: checking for $ac_hdr" >&5
3695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3704 { (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3706 if test -z "$ac_err"; then
3708 eval "ac_cv_header_$ac_safe=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 eval "ac_cv_header_$ac_safe=no"
3718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3721 cat >> confdefs.h <<EOF
3722 #define $ac_tr_hdr 1
3726 echo "$ac_t""no" 1>&6
3727 echo "Cannot find SDL headers !"; exit
3731 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
3736 if test "x$withval" = "x";
3738 for ac_hdr in SDL/SDL.h
3740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_hdr" >&5
3743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3752 { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3754 if test -z "$ac_err"; then
3756 eval "ac_cv_header_$ac_safe=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_header_$ac_safe=no"
3766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3769 cat >> confdefs.h <<EOF
3770 #define $ac_tr_hdr 1
3772 PLUGINS="${PLUGINS} sdl"
3773 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
3775 echo "$ac_t""no" 1>&6
3781 # Check whether --with-glide or --without-glide was given.
3782 if test "${with_glide+set}" = set; then
3783 withval="$with_glide"
3784 if test "x$withval" != "xno";
3786 PLUGINS="${PLUGINS} glide";
3787 if test "x$withval" != "xyes";
3789 LIB_GLIDE="-l"$withval" -lm"
3791 LIB_GLIDE="-lglide2x -lm"
3797 # Check whether --enable-ncurses or --disable-ncurses was given.
3798 if test "${enable_ncurses+set}" = set; then
3799 enableval="$enable_ncurses"
3800 if test x$enable_ncurses = xyes; then
3801 PLUGINS="${PLUGINS} ncurses"
3802 LIB_NCURSES="-lncurses"
3807 # Check whether --enable-qt or --disable-qt was given.
3808 if test "${enable_qt+set}" = set; then
3809 enableval="$enable_qt"
3810 if test x$enable_qt = xyes; then
3811 PLUGINS="${PLUGINS} qt"
3812 ALIASES="${ALIASES} qvlc"
3813 LIB_QT="-lqt -L${QTDIR}/lib"
3814 if test -x ${QTDIR}/bin/moc ;
3816 MOC=${QTDIR}/bin/moc
3824 # Check whether --enable-kde or --disable-kde was given.
3825 if test "${enable_kde+set}" = set; then
3826 enableval="$enable_kde"
3827 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi
3831 # Check whether --enable-gnome or --disable-gnome was given.
3832 if test "${enable_gnome+set}" = set; then
3833 enableval="$enable_gnome"
3834 if test x$enable_gnome = xyes; then
3835 PLUGINS="${PLUGINS} gnome"
3836 ALIASES="${ALIASES} gnome-vlc"
3837 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
3842 # Check whether --enable-gtk or --disable-gtk was given.
3843 if test "${enable_gtk+set}" = set; then
3844 enableval="$enable_gtk"
3848 if test x$enable_gtk != xno; then
3849 # Extract the first word of "gtk-config", so it can be a program name with args.
3850 set dummy gtk-config; ac_word=$2
3851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3852 echo "configure:3853: checking for $ac_word" >&5
3853 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 case "$GTK_CONFIG" in
3858 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3861 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3866 for ac_dir in $ac_dummy; do
3867 test -z "$ac_dir" && ac_dir=.
3868 if test -f $ac_dir/$ac_word; then
3869 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
3874 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
3878 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
3879 if test -n "$GTK_CONFIG"; then
3880 echo "$ac_t""$GTK_CONFIG" 1>&6
3882 echo "$ac_t""no" 1>&6
3885 if test x${GTK_CONFIG} != xno; then
3886 PLUGINS="${PLUGINS} gtk"
3887 ALIASES="${ALIASES} gvlc"
3888 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
3889 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
3893 # Check whether --enable-x11 or --disable-x11 was given.
3894 if test "${enable_x11+set}" = set; then
3895 enableval="$enable_x11"
3899 if test x$enable_x11 != xno; then
3900 if test x$x_includes = xNONE; then
3901 x_includes=/usr/X11R6/include
3903 if test x$x_libraries = xNONE; then
3904 x_libraries=/usr/X11R6/lib
3906 saved_CPPFLAGS=$CPPFLAGS
3907 CPPFLAGS="$CPPFLAGS -I$x_includes"
3908 for ac_hdr in X11/Xlib.h
3910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_hdr" >&5
3913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3922 { (eval echo configure:3923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3924 if test -z "$ac_err"; then
3926 eval "ac_cv_header_$ac_safe=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_header_$ac_safe=no"
3936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3939 cat >> confdefs.h <<EOF
3940 #define $ac_tr_hdr 1
3943 PLUGINS="${PLUGINS} x11"
3944 LIB_X11="-L$x_libraries -lX11 -lXext"
3945 CFLAGS_X11="-I$x_includes"
3947 CPPFLAGS=$saved_CPPFLAGS
3949 echo "$ac_t""no" 1>&6
3955 # Check whether --enable-xvideo or --disable-xvideo was given.
3956 if test "${enable_xvideo+set}" = set; then
3957 enableval="$enable_xvideo"
3961 if test x$enable_xvideo != xno; then
3962 if test x$x_includes = xNONE; then
3963 x_includes=/usr/X11R6/include
3965 if test x$x_libraries = xNONE; then
3966 x_libraries=/usr/X11R6/lib
3968 saved_CPPFLAGS=$CPPFLAGS
3969 CPPFLAGS="$CPPFLAGS -I$x_includes"
3970 for ac_hdr in X11/extensions/Xv.h
3972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_hdr" >&5
3975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3984 { (eval echo configure:3985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3986 if test -z "$ac_err"; then
3988 eval "ac_cv_header_$ac_safe=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_header_$ac_safe=no"
3998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4001 cat >> confdefs.h <<EOF
4002 #define $ac_tr_hdr 1
4005 PLUGINS="${PLUGINS} xvideo"
4006 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4007 CFLAGS_X11="-I$x_includes"
4009 CPPFLAGS=$saved_CPPFLAGS
4011 echo "$ac_t""no" 1>&6
4017 # Check whether --enable-alsa or --disable-alsa was given.
4018 if test "${enable_alsa+set}" = set; then
4019 enableval="$enable_alsa"
4020 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4021 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4022 echo "configure:4023: checking for sys/asoundlib.h" >&5
4023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <sys/asoundlib.h>
4031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4032 { (eval echo configure:4033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4034 if test -z "$ac_err"; then
4036 eval "ac_cv_header_$ac_safe=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 eval "ac_cv_header_$ac_safe=no"
4046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4049 echo "configure:4050: checking for main in -lasound" >&5
4050 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4054 ac_save_LIBS="$LIBS"
4055 LIBS="-lasound $LIBS"
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 eval "ac_cv_lib_$ac_lib_var=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_lib_$ac_lib_var=no"
4074 LIBS="$ac_save_LIBS"
4077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4081 echo "$ac_t""no" 1>&6
4086 echo "$ac_t""no" 1>&6
4089 if test x$have_alsa = xtrue; then
4090 PLUGINS="${PLUGINS} alsa"
4138 cat > confcache <<\EOF
4139 # This file is a shell script that caches the results of configure
4140 # tests run on this system so they can be shared between configure
4141 # scripts and configure runs. It is not useful on other systems.
4142 # If it contains results you don't want to keep, you may remove or edit it.
4144 # By default, configure uses ./config.cache as the cache file,
4145 # creating it if it does not exist already. You can give configure
4146 # the --cache-file=FILE option to use a different cache file; that is
4147 # what configure does when it calls configure scripts in
4148 # subdirectories, so they share the cache.
4149 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4150 # config.status only pays attention to the cache file if you give it the
4151 # --recheck option to rerun configure.
4154 # The following way of writing the cache mishandles newlines in values,
4155 # but we know of no workaround that is simple, portable, and efficient.
4156 # So, don't put newlines in cache variables' values.
4157 # Ultrix sh set writes to stderr and can't be redirected directly,
4158 # and sets the high bit in the cache file unless we assign to the vars.
4160 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4162 # `set' does not quote correctly, so add quotes (double-quote substitution
4163 # turns \\\\ into \\, and sed turns \\ into \).
4165 -e "s/'/'\\\\''/g" \
4166 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4169 # `set' quotes correctly as required by POSIX, so do not add quotes.
4170 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4173 if cmp -s $cache_file confcache; then
4176 if test -w $cache_file; then
4177 echo "updating cache $cache_file"
4178 cat confcache > $cache_file
4180 echo "not updating unwritable cache $cache_file"
4185 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4188 # Let make expand exec_prefix.
4189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4191 # Any assignment to VPATH causes Sun make to only execute
4192 # the first set of double-colon rules, so remove it if not needed.
4193 # If there is a colon in the path, we need to keep it.
4194 if test "x$srcdir" = x.; then
4195 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4198 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4200 DEFS=-DHAVE_CONFIG_H
4202 # Without the "./", some shells look in PATH for config.status.
4203 : ${CONFIG_STATUS=./config.status}
4205 echo creating $CONFIG_STATUS
4206 rm -f $CONFIG_STATUS
4207 cat > $CONFIG_STATUS <<EOF
4209 # Generated automatically by configure.
4210 # Run this file to recreate the current configuration.
4211 # This directory was configured as follows,
4212 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4214 # $0 $ac_configure_args
4216 # Compiler output produced by configure, useful for debugging
4217 # configure, is in ./config.log if it exists.
4219 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4222 case "\$ac_option" in
4223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4227 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4229 -help | --help | --hel | --he | --h)
4230 echo "\$ac_cs_usage"; exit 0 ;;
4231 *) echo "\$ac_cs_usage"; exit 1 ;;
4235 ac_given_srcdir=$srcdir
4236 ac_given_INSTALL="$INSTALL"
4238 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4240 cat >> $CONFIG_STATUS <<EOF
4242 # Protect against being on the right side of a sed subst in config.status.
4243 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4244 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4248 s%@CFLAGS@%$CFLAGS%g
4249 s%@CPPFLAGS@%$CPPFLAGS%g
4250 s%@CXXFLAGS@%$CXXFLAGS%g
4251 s%@FFLAGS@%$FFLAGS%g
4253 s%@LDFLAGS@%$LDFLAGS%g
4255 s%@exec_prefix@%$exec_prefix%g
4256 s%@prefix@%$prefix%g
4257 s%@program_transform_name@%$program_transform_name%g
4258 s%@bindir@%$bindir%g
4259 s%@sbindir@%$sbindir%g
4260 s%@libexecdir@%$libexecdir%g
4261 s%@datadir@%$datadir%g
4262 s%@sysconfdir@%$sysconfdir%g
4263 s%@sharedstatedir@%$sharedstatedir%g
4264 s%@localstatedir@%$localstatedir%g
4265 s%@libdir@%$libdir%g
4266 s%@includedir@%$includedir%g
4267 s%@oldincludedir@%$oldincludedir%g
4268 s%@infodir@%$infodir%g
4269 s%@mandir@%$mandir%g
4271 s%@host_alias@%$host_alias%g
4272 s%@host_cpu@%$host_cpu%g
4273 s%@host_vendor@%$host_vendor%g
4274 s%@host_os@%$host_os%g
4275 s%@VLC_VERSION@%$VLC_VERSION%g
4276 s%@VLC_CODENAME@%$VLC_CODENAME%g
4277 s%@SET_MAKE@%$SET_MAKE%g
4280 s%@RANLIB@%$RANLIB%g
4281 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4282 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4283 s%@INSTALL_DATA@%$INSTALL_DATA%g
4284 s%@GETOPT@%$GETOPT%g
4285 s%@ESD_CONFIG@%$ESD_CONFIG%g
4286 s%@GTK_CONFIG@%$GTK_CONFIG%g
4289 s%@PLUGINS@%$PLUGINS%g
4290 s%@BUILTINS@%$BUILTINS%g
4291 s%@ALIASES@%$ALIASES%g
4292 s%@DEFINE@%$DEFINE%g
4293 s%@INCLUDE@%$INCLUDE%g
4297 s%@OPTIMS@%$OPTIMS%g
4300 s%@LCFLAGS@%$LCFLAGS%g
4302 s%@LIB_ALSA@%$LIB_ALSA%g
4303 s%@LIB_BEOS@%$LIB_BEOS%g
4304 s%@LIB_DARWIN@%$LIB_DARWIN%g
4305 s%@LIB_ESD@%$LIB_ESD%g
4306 s%@LIB_GGI@%$LIB_GGI%g
4307 s%@LIB_GLIDE@%$LIB_GLIDE%g
4308 s%@LIB_GNOME@%$LIB_GNOME%g
4309 s%@LIB_GTK@%$LIB_GTK%g
4310 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4311 s%@LIB_MACOSX@%$LIB_MACOSX%g
4312 s%@LIB_NCURSES@%$LIB_NCURSES%g
4313 s%@LIB_QT@%$LIB_QT%g
4314 s%@LIB_TS@%$LIB_TS%g
4315 s%@LIB_SDL@%$LIB_SDL%g
4316 s%@LIB_X11@%$LIB_X11%g
4317 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4318 s%@LIB_YUV@%$LIB_YUV%g
4319 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4320 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4321 s%@CFLAGS_X11@%$CFLAGS_X11%g
4326 cat >> $CONFIG_STATUS <<\EOF
4328 # Split the substitutions into bite-sized pieces for seds with
4329 # small command number limits, like on Digital OSF/1 and HP-UX.
4330 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4331 ac_file=1 # Number of current file.
4332 ac_beg=1 # First line for current file.
4333 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4336 while $ac_more_lines; do
4337 if test $ac_beg -gt 1; then
4338 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4340 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4342 if test ! -s conftest.s$ac_file; then
4344 rm -f conftest.s$ac_file
4346 if test -z "$ac_sed_cmds"; then
4347 ac_sed_cmds="sed -f conftest.s$ac_file"
4349 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4351 ac_file=`expr $ac_file + 1`
4353 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4356 if test -z "$ac_sed_cmds"; then
4361 cat >> $CONFIG_STATUS <<EOF
4363 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4365 cat >> $CONFIG_STATUS <<\EOF
4366 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4369 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4370 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4371 *) ac_file_in="${ac_file}.in" ;;
4374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4376 # Remove last slash and all that follows it. Not all systems have dirname.
4377 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4379 # The file is in a subdirectory.
4380 test ! -d "$ac_dir" && mkdir "$ac_dir"
4381 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4382 # A "../" for each directory in $ac_dir_suffix.
4383 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4385 ac_dir_suffix= ac_dots=
4388 case "$ac_given_srcdir" in
4390 if test -z "$ac_dots"; then top_srcdir=.
4391 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4392 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4394 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4395 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4398 case "$ac_given_INSTALL" in
4399 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4400 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4403 echo creating "$ac_file"
4405 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4407 *Makefile*) ac_comsub="1i\\
4408 # $configure_input" ;;
4412 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4414 s%@configure_input@%$configure_input%g
4415 s%@srcdir@%$srcdir%g
4416 s%@top_srcdir@%$top_srcdir%g
4417 s%@INSTALL@%$INSTALL%g
4418 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4425 # ac_d sets the value in "#define NAME VALUE" lines.
4426 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4427 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4430 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4431 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4432 ac_uB='\([ ]\)%\1#\2define\3'
4435 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4436 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4437 ac_eB='$%\1#\2define\3'
4441 if test "${CONFIG_HEADERS+set}" != set; then
4443 cat >> $CONFIG_STATUS <<EOF
4444 CONFIG_HEADERS="include/defs.h"
4446 cat >> $CONFIG_STATUS <<\EOF
4448 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4451 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4452 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4453 *) ac_file_in="${ac_file}.in" ;;
4456 echo creating $ac_file
4458 rm -f conftest.frag conftest.in conftest.out
4459 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4460 cat $ac_file_inputs > conftest.in
4464 # Transform confdefs.h into a sed script conftest.vals that substitutes
4465 # the proper values into config.h.in to produce config.h. And first:
4466 # Protect against being on the right side of a sed subst in config.status.
4467 # Protect against being in an unquoted here document in config.status.
4469 cat > conftest.hdr <<\EOF
4472 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4476 sed -n -f conftest.hdr confdefs.h > conftest.vals
4479 # This sed command replaces #undef with comments. This is necessary, for
4480 # example, in the case of _POSIX_SOURCE, which is predefined and required
4481 # on some systems where configure will not decide to define it.
4482 cat >> conftest.vals <<\EOF
4483 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4486 # Break up conftest.vals because some shells have a limit on
4487 # the size of here documents, and old seds have small limits too.
4492 ac_lines=`grep -c . conftest.vals`
4493 # grep -c gives empty output for an empty file on some AIX systems.
4494 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4495 # Write a limited-size here document to conftest.frag.
4496 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4497 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4499 sed -f conftest.frag conftest.in > conftest.out
4501 mv conftest.out conftest.in
4503 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4505 mv conftest.tail conftest.vals
4509 cat >> $CONFIG_STATUS <<\EOF
4510 rm -f conftest.frag conftest.h
4511 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4512 cat conftest.in >> conftest.h
4514 if cmp -s $ac_file conftest.h 2>/dev/null; then
4515 echo "$ac_file is unchanged"
4518 # Remove last slash and all that follows it. Not all systems have dirname.
4519 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4520 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4521 # The file is in a subdirectory.
4522 test ! -d "$ac_dir" && mkdir "$ac_dir"
4525 mv conftest.h $ac_file
4530 cat >> $CONFIG_STATUS <<EOF
4533 cat >> $CONFIG_STATUS <<\EOF
4537 chmod +x $CONFIG_STATUS
4538 rm -fr confdefs* $ac_clean_files
4539 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4545 vlc version : ${VLC_VERSION}
4547 architecture : ${ARCH}
4548 debug mode : ${DEBUG}
4549 statistics : ${STATS}
4550 trace mode : ${TRACE}
4551 optimizations : ${OPTIMS}
4552 CSS decryption : ${CSS}
4553 need builtin getopt : ${GETOPT}
4554 built-in modules :${BUILTINS}
4555 plugin modules :${PLUGINS}
4556 vlc aliases :${ALIASES}
4558 You may now tune Makefile.opts at your convenience."