2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18 # Name of the executable.
19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21 if expr a : '\(a\)' >/dev/null 2>&1; then
27 rm -f conf$$ conf$$.exe conf$$.file
29 if ln -s conf$$.file conf$$ 2>/dev/null; then
30 # We could just check for DJGPP; but this test a) works b) is more generic
31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32 if test -f conf$$.exe; then
33 # Don't use ln at all; we don't have any links
38 elif ln conf$$.file conf$$ 2>/dev/null; then
43 rm -f conf$$ conf$$.exe conf$$.file
45 as_executable_p="test -f"
47 # Support unset when possible.
48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
65 # We need space, tab and new line, in precisely that order.
71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75 # so uname gets run too.
76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
83 ac_default_prefix=/usr/local
87 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
90 # This variable seems obsolete. It should probably be removed, and
91 # only ac_max_sed_lines should be used.
92 : ${ac_max_here_lines=38}
94 # Avoid depending upon Character Ranges.
95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
100 # Sed expression to map a string onto a valid sh and CPP variable names.
101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
104 ac_unique_file="src/interface/main.c"
105 # Factoring default headers for most tests.
106 ac_includes_default="\
108 #include <sys/types.h>
109 #include <sys/stat.h>
119 # if !STDC_HEADERS && HAVE_MEMORY_H
125 # include <strings.h>
129 # include <inttypes.h>
135 # Initialize some variables set by options.
137 ac_init_version=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
147 program_transform_name=s,x,x,
155 # Installation directory options.
156 # These are left unexpanded so users can "make install exec_prefix=/foo"
157 # and all the variables that are supposed to be based on exec_prefix
158 # by default will actually change.
159 # Use braces instead of parens because sh, perl, etc. also accept them.
160 bindir='${exec_prefix}/bin'
161 sbindir='${exec_prefix}/sbin'
162 libexecdir='${exec_prefix}/libexec'
163 datadir='${prefix}/share'
164 sysconfdir='${prefix}/etc'
165 sharedstatedir='${prefix}/com'
166 localstatedir='${prefix}/var'
167 libdir='${exec_prefix}/lib'
168 includedir='${prefix}/include'
169 oldincludedir='/usr/include'
170 infodir='${prefix}/info'
171 mandir='${prefix}/man'
173 # Identity of this package.
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
192 # Accept the important Cygnus configure options, so we can diagnose typos.
196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
201 -build | --build | --buil | --bui | --bu)
202 ac_prev=build_alias ;;
203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
204 build_alias=$ac_optarg ;;
206 -cache-file | --cache-file | --cache-fil | --cache-fi \
207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
208 ac_prev=cache_file ;;
209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
211 cache_file=$ac_optarg ;;
214 cache_file=config.cache ;;
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
220 datadir=$ac_optarg ;;
222 -disable-* | --disable-*)
223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224 # Reject names that are not valid shell variable names.
225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227 { (exit 1); exit 1; }; }
228 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
229 eval "enable_$ac_feature=no" ;;
231 -enable-* | --enable-*)
232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
242 eval "enable_$ac_feature='$ac_optarg'" ;;
244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246 | --exec | --exe | --ex)
247 ac_prev=exec_prefix ;;
248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250 | --exec=* | --exe=* | --ex=*)
251 exec_prefix=$ac_optarg ;;
253 -gas | --gas | --ga | --g)
254 # Obsolete; use --with-gas.
257 -help | --help | --hel | --he | -h)
259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
260 ac_init_help=recursive ;;
261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
262 ac_init_help=short ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host_alias ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host_alias=$ac_optarg ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir=$ac_optarg ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir=$ac_optarg ;;
281 -libdir | --libdir | --libdi | --libd)
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir=$ac_optarg ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir=$ac_optarg ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
308 # Obsolete; use --without-fp.
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir=$ac_optarg ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix=$ac_optarg ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix=$ac_optarg ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name=$ac_optarg ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
372 sbindir=$ac_optarg ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
383 sharedstatedir=$ac_optarg ;;
385 -site | --site | --sit)
387 -site=* | --site=* | --sit=*)
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir=$ac_optarg ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target_alias ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target_alias=$ac_optarg ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 -version | --version | --versio | --versi | --vers | -V)
414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid package name: $ac_package" >&2
418 { (exit 1); exit 1; }; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
424 eval "with_$ac_package='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package=`echo $ac_package | sed 's/-/_/g'`
433 eval "with_$ac_package=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes=$ac_optarg ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries=$ac_optarg ;;
453 -*) { echo "$as_me: error: unrecognized option: $ac_option
454 Try \`$0 --help' for more information." >&2
455 { (exit 1); exit 1; }; }
459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460 # Reject names that are not valid shell variable names.
461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463 { (exit 1); exit 1; }; }
464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465 eval "$ac_envvar='$ac_optarg'"
469 # FIXME: should be removed in autoconf 3.0.
470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
479 if test -n "$ac_prev"; then
480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
481 { echo "$as_me: error: missing argument to $ac_option" >&2
482 { (exit 1); exit 1; }; }
485 # Be sure to have absolute paths.
486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487 localstatedir libdir includedir oldincludedir infodir mandir \
490 eval ac_val=$`echo $ac_var`
492 [\\/$]* | ?:[\\/]* ) ;;
494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495 { (exit 1); exit 1; }; };;
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
505 # FIXME: should be removed in autoconf 3.0.
506 if test "x$host_alias" != x; then
507 if test "x$build_alias" = x; then
508 cross_compiling=maybe
509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510 If a cross compiler is detected then cross compile mode will be used." >&2
511 elif test "x$build_alias" != "x$host_alias"; then
517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
519 test "$silent" = yes && exec 6>/dev/null
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538 { (exit 1); exit 1; }; }
540 { echo "$as_me: error: cannot find sources in $srcdir" >&2
541 { (exit 1); exit 1; }; }
544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545 ac_env_build_alias_set=${build_alias+set}
546 ac_env_build_alias_value=$build_alias
547 ac_cv_env_build_alias_set=${build_alias+set}
548 ac_cv_env_build_alias_value=$build_alias
549 ac_env_host_alias_set=${host_alias+set}
550 ac_env_host_alias_value=$host_alias
551 ac_cv_env_host_alias_set=${host_alias+set}
552 ac_cv_env_host_alias_value=$host_alias
553 ac_env_target_alias_set=${target_alias+set}
554 ac_env_target_alias_value=$target_alias
555 ac_cv_env_target_alias_set=${target_alias+set}
556 ac_cv_env_target_alias_value=$target_alias
557 ac_env_CC_set=${CC+set}
559 ac_cv_env_CC_set=${CC+set}
560 ac_cv_env_CC_value=$CC
561 ac_env_CFLAGS_set=${CFLAGS+set}
562 ac_env_CFLAGS_value=$CFLAGS
563 ac_cv_env_CFLAGS_set=${CFLAGS+set}
564 ac_cv_env_CFLAGS_value=$CFLAGS
565 ac_env_LDFLAGS_set=${LDFLAGS+set}
566 ac_env_LDFLAGS_value=$LDFLAGS
567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
568 ac_cv_env_LDFLAGS_value=$LDFLAGS
569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
570 ac_env_CPPFLAGS_value=$CPPFLAGS
571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
573 ac_env_CPP_set=${CPP+set}
574 ac_env_CPP_value=$CPP
575 ac_cv_env_CPP_set=${CPP+set}
576 ac_cv_env_CPP_value=$CPP
579 # Report the --help message.
581 if test "$ac_init_help" = "long"; then
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
585 \`configure' configures this package to adapt to many kinds of systems.
587 Usage: $0 [OPTION]... [VAR=VALUE]...
589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
590 VAR=VALUE. See below for descriptions of some of the useful variables.
592 Defaults for the options are specified in brackets.
595 -h, --help display this help and exit
596 --help=short display options specific to this package
597 --help=recursive display the short help of all the included packages
598 -V, --version display version information and exit
599 -q, --quiet, --silent do not print \`checking...' messages
600 --cache-file=FILE cache test results in FILE [disabled]
601 -C, --config-cache alias for \`--cache-file=config.cache'
602 -n, --no-create do not create output files
603 --srcdir=DIR find the sources in DIR [configure dir or \`..']
608 Installation directories:
609 --prefix=PREFIX install architecture-independent files in PREFIX
611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
617 for instance \`--prefix=\$HOME'.
619 For better control, use the options below.
621 Fine tuning of the installation directories:
622 --bindir=DIR user executables [EPREFIX/bin]
623 --sbindir=DIR system admin executables [EPREFIX/sbin]
624 --libexecdir=DIR program executables [EPREFIX/libexec]
625 --datadir=DIR read-only architecture-independent data [PREFIX/share]
626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
629 --libdir=DIR object code libraries [EPREFIX/lib]
630 --includedir=DIR C header files [PREFIX/include]
631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
632 --infodir=DIR info documentation [PREFIX/info]
633 --mandir=DIR man documentation [PREFIX/man]
639 --build=BUILD configure for building on BUILD [guessed]
640 --host=HOST build programs to run on HOST [BUILD]
644 if test -n "$ac_init_help"; then
649 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
650 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
651 --disable-dummy dummy module (default enabled)
652 --disable-null Null module (default enabled)
653 --disable-rc rc module (default enabled)
654 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)
655 --disable-mmx Disable MMX optimizations (default enabled for x86)
656 --enable-altivec Enable altivec optimizations (default disabled since it is broken)
657 --disable-css Disable DVD CSS decryption (default enabled)
658 --enable-debug Enable debug mode (default disabled)
659 --enable-stats Enable printing of statistics (default disabled)
660 --enable-trace Enable trace mode (default disabled)
661 --disable-optimizations Disable compiler optimizations (default enabled)
662 --disable-dsp Linux /dev/dsp support (default enabled)
663 --enable-esd Esound library support (default disabled)
664 --enable-darwin Darwin sound support (default disabled)
665 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)
666 --enable-fb Linux framebuffer support (default disabled)
667 --enable-ncurses ncurses interface support (default disabled)
668 --enable-qt Qt interface support (default disabled)
669 --enable-kde KDE interface support (default disabled)
670 --enable-gnome Gnome interface support (default disabled)
671 --disable-gtk Gtk+ support (default enabled)
672 --disable-x11 X11 support (default enabled)
673 --disable-xvideo XVideo support (default enabled)
674 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
679 --with-ggi=name GGI support (default disabled)
680 --with-sdl=name SDL support (default enabled)
681 --with-glide=name Glide (3dfx) support (default disabled)
683 Some influential environment variables:
684 CC C compiler command
685 CFLAGS C compiler flags
686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
687 nonstandard directory <lib dir>
688 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
689 headers in a nonstandard directory <include dir>
692 Use these variables to override the choices made by `configure' or to help
693 it to find libraries and programs with nonstandard names/locations.
698 if test "$ac_init_help" = "recursive"; then
699 # If there are subdirs, report their specific --help.
701 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 # A "../" for each directory in /$ac_subdir.
704 ac_dots=`echo $ac_subdir |
705 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
708 .) # No --srcdir option. We are building in place.
709 ac_sub_srcdir=$srcdir ;;
710 [\\/]* | ?:[\\/]* ) # Absolute path.
711 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
716 # Check for guested configure; otherwise get Cygnus style configure.
717 if test -f $ac_sub_srcdir/configure.gnu; then
719 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
720 elif test -f $ac_sub_srcdir/configure; then
722 $SHELL $ac_sub_srcdir/configure --help=recursive
723 elif test -f $ac_sub_srcdir/configure.ac ||
724 test -f $ac_sub_srcdir/configure.in; then
728 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation, Inc.
740 This configure script is free software; the Free Software Foundation
741 gives unlimited permission to copy, distribute and modify it.
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.50. Invocation command line was
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
810 # Get rid of the leading space.
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log. We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
817 # Save into config.log some information that might help in debugging.
819 echo "## ----------------- ##" >&5
820 echo "## Cache variables. ##" >&5
821 echo "## ----------------- ##" >&5
823 # The following way of writing the cache mishandles newlines in values,
826 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
829 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
834 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
838 sed "/^$/d" confdefs.h >conftest.log
839 if test -s conftest.log; then
841 echo "## ------------ ##" >&5
842 echo "## confdefs.h. ##" >&5
843 echo "## ------------ ##" >&5
848 test "$ac_signal" != 0 &&
849 echo "$as_me: caught signal $ac_signal" >&5
850 echo "$as_me: exit $exit_status" >&5
851 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
854 for ac_signal in 1 2 13 15; do
855 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867 if test "x$prefix" != xNONE; then
868 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
873 for ac_site_file in $CONFIG_SITE; do
874 if test -r "$ac_site_file"; then
875 { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877 cat "$ac_site_file" >&5
882 if test -r "$cache_file"; then
883 # Some versions of bash will fail to source /dev/null (special
884 # files actually), so we avoid doing that.
885 if test -f "$cache_file"; then
886 { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
889 [\\/]* | ?:[\\/]* ) . $cache_file;;
894 { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
899 # Check that the precious variables saved in the cache have kept the same
901 ac_suggest_removing_cache=false
902 for ac_var in `(set) 2>&1 |
903 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
905 eval ac_new_set=\$ac_env_${ac_var}_set
906 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
907 eval ac_new_val="\$ac_env_${ac_var}_value"
908 case $ac_old_set,$ac_new_set in
910 { echo "$as_me:910: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912 ac_suggest_removing_cache=: ;;
914 { echo "$as_me:914: WARNING: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
916 ac_suggest_removing_cache=: ;;
919 if test "x$ac_old_val" != "x$ac_new_val"; then
920 { echo "$as_me:920: WARNING: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
922 { echo "$as_me:922: WARNING: former value: $ac_old_val" >&5
923 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
924 { echo "$as_me:924: WARNING: current value: $ac_new_val" >&5
925 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
926 ac_suggest_removing_cache=:
930 if $ac_suggest_removing_cache; then
931 { echo "$as_me:931: WARNING: changes in the environment can compromise the build" >&5
932 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
933 { echo "$as_me:933: WARNING: consider removing $cache_file and starting over" >&5
934 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
943 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
944 *c*,-n*) ECHO_N= ECHO_C='
946 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
947 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
949 echo "#! $SHELL" >conftest.sh
950 echo "exit 0" >>conftest.sh
952 if { (echo "$as_me:952: PATH=\".;.\"; conftest.sh") >&5
953 (PATH=".;."; conftest.sh) 2>&5
955 echo "$as_me:955: \$? = $ac_status" >&5
956 (exit $ac_status); }; then
957 ac_path_separator=';'
961 PATH_SEPARATOR="$ac_path_separator"
964 ac_config_headers="$ac_config_headers include/defs.h"
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
970 ac_install_sh="$ac_aux_dir/install-sh -c"
972 elif test -f $ac_dir/install.sh; then
974 ac_install_sh="$ac_aux_dir/install.sh -c"
976 elif test -f $ac_dir/shtool; then
978 ac_install_sh="$ac_aux_dir/shtool install -c"
982 if test -z "$ac_aux_dir"; then
983 { { echo "$as_me:983: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
984 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
985 { (exit 1); exit 1; }; }
987 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
988 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
989 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
991 # Make sure we can run config.sub.
992 $ac_config_sub sun4 >/dev/null 2>&1 ||
993 { { echo "$as_me:993: error: cannot run $ac_config_sub" >&5
994 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
995 { (exit 1); exit 1; }; }
997 echo "$as_me:997: checking build system type" >&5
998 echo $ECHO_N "checking build system type... $ECHO_C" >&6
999 if test "${ac_cv_build+set}" = set; then
1000 echo $ECHO_N "(cached) $ECHO_C" >&6
1002 ac_cv_build_alias=$build_alias
1003 test -z "$ac_cv_build_alias" &&
1004 ac_cv_build_alias=`$ac_config_guess`
1005 test -z "$ac_cv_build_alias" &&
1006 { { echo "$as_me:1006: error: cannot guess build type; you must specify one" >&5
1007 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1008 { (exit 1); exit 1; }; }
1009 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1010 { { echo "$as_me:1010: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1011 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1012 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: result: $ac_cv_build" >&5
1016 echo "${ECHO_T}$ac_cv_build" >&6
1018 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$as_me:1022: checking host system type" >&5
1023 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1024 if test "${ac_cv_host+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1027 ac_cv_host_alias=$host_alias
1028 test -z "$ac_cv_host_alias" &&
1029 ac_cv_host_alias=$ac_cv_build_alias
1030 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1031 { { echo "$as_me:1031: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1032 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1033 { (exit 1); exit 1; }; }
1036 echo "$as_me:1036: result: $ac_cv_host" >&5
1037 echo "${ECHO_T}$ac_cv_host" >&6
1039 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1045 VLC_CODENAME=Ourumov
1047 save_CFLAGS="${CFLAGS}"
1049 echo "$as_me:1049: checking whether ${MAKE-make} sets \${MAKE}" >&5
1050 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1051 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1052 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1053 echo $ECHO_N "(cached) $ECHO_C" >&6
1055 cat >conftest.make <<\EOF
1057 @echo 'ac_maketemp="${MAKE}"'
1059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1060 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1061 if test -n "$ac_maketemp"; then
1062 eval ac_cv_prog_make_${ac_make}_set=yes
1064 eval ac_cv_prog_make_${ac_make}_set=no
1068 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1069 echo "$as_me:1069: result: yes" >&5
1070 echo "${ECHO_T}yes" >&6
1073 echo "$as_me:1073: result: no" >&5
1074 echo "${ECHO_T}no" >&6
1075 SET_MAKE="MAKE=${MAKE-make}"
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1083 if test -n "$ac_tool_prefix"; then
1084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1086 echo "$as_me:1086: checking for $ac_word" >&5
1087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1088 if test "${ac_cv_prog_CC+set}" = set; then
1089 echo $ECHO_N "(cached) $ECHO_C" >&6
1091 if test -n "$CC"; then
1092 ac_cv_prog_CC="$CC" # Let the user override the test.
1094 ac_save_IFS=$IFS; IFS=$ac_path_separator
1096 for ac_dir in $ac_dummy; do
1098 test -z "$ac_dir" && ac_dir=.
1099 $as_executable_p "$ac_dir/$ac_word" || continue
1100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1101 echo "$as_me:1101: found $ac_dir/$ac_word" >&5
1108 if test -n "$CC"; then
1109 echo "$as_me:1109: result: $CC" >&5
1110 echo "${ECHO_T}$CC" >&6
1112 echo "$as_me:1112: result: no" >&5
1113 echo "${ECHO_T}no" >&6
1117 if test -z "$ac_cv_prog_CC"; then
1119 # Extract the first word of "gcc", so it can be a program name with args.
1120 set dummy gcc; ac_word=$2
1121 echo "$as_me:1121: checking for $ac_word" >&5
1122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1124 echo $ECHO_N "(cached) $ECHO_C" >&6
1126 if test -n "$ac_ct_CC"; then
1127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1129 ac_save_IFS=$IFS; IFS=$ac_path_separator
1131 for ac_dir in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir=.
1134 $as_executable_p "$ac_dir/$ac_word" || continue
1135 ac_cv_prog_ac_ct_CC="gcc"
1136 echo "$as_me:1136: found $ac_dir/$ac_word" >&5
1142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1143 if test -n "$ac_ct_CC"; then
1144 echo "$as_me:1144: result: $ac_ct_CC" >&5
1145 echo "${ECHO_T}$ac_ct_CC" >&6
1147 echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1156 if test -z "$CC"; then
1157 if test -n "$ac_tool_prefix"; then
1158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1159 set dummy ${ac_tool_prefix}cc; ac_word=$2
1160 echo "$as_me:1160: checking for $ac_word" >&5
1161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1162 if test "${ac_cv_prog_CC+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1165 if test -n "$CC"; then
1166 ac_cv_prog_CC="$CC" # Let the user override the test.
1168 ac_save_IFS=$IFS; IFS=$ac_path_separator
1170 for ac_dir in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir=.
1173 $as_executable_p "$ac_dir/$ac_word" || continue
1174 ac_cv_prog_CC="${ac_tool_prefix}cc"
1175 echo "$as_me:1175: found $ac_dir/$ac_word" >&5
1182 if test -n "$CC"; then
1183 echo "$as_me:1183: result: $CC" >&5
1184 echo "${ECHO_T}$CC" >&6
1186 echo "$as_me:1186: result: no" >&5
1187 echo "${ECHO_T}no" >&6
1191 if test -z "$ac_cv_prog_CC"; then
1193 # Extract the first word of "cc", so it can be a program name with args.
1194 set dummy cc; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 if test -n "$ac_ct_CC"; then
1201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_ac_ct_CC="cc"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1217 if test -n "$ac_ct_CC"; then
1218 echo "$as_me:1218: result: $ac_ct_CC" >&5
1219 echo "${ECHO_T}$ac_ct_CC" >&6
1221 echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1231 if test -z "$CC"; then
1232 # Extract the first word of "cc", so it can be a program name with args.
1233 set dummy cc; ac_word=$2
1234 echo "$as_me:1234: checking for $ac_word" >&5
1235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1236 if test "${ac_cv_prog_CC+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 if test -n "$CC"; then
1240 ac_cv_prog_CC="$CC" # Let the user override the test.
1243 ac_save_IFS=$IFS; IFS=$ac_path_separator
1245 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 $as_executable_p "$ac_dir/$ac_word" || continue
1249 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1250 ac_prog_rejected=yes
1254 echo "$as_me:1254: found $ac_dir/$ac_word" >&5
1258 if test $ac_prog_rejected = yes; then
1259 # We found a bogon in the path, so make sure we never use it.
1260 set dummy $ac_cv_prog_CC
1262 if test $# != 0; then
1263 # We chose a different compiler from the bogus one.
1264 # However, it has the same basename, so the bogon will be chosen
1265 # first if we set CC to just the basename; use the full file name.
1267 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1275 if test -n "$CC"; then
1276 echo "$as_me:1276: result: $CC" >&5
1277 echo "${ECHO_T}$CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1284 if test -z "$CC"; then
1285 if test -n "$ac_tool_prefix"; then
1288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1290 echo "$as_me:1290: checking for $ac_word" >&5
1291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292 if test "${ac_cv_prog_CC+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1300 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1305 echo "$as_me:1305: found $ac_dir/$ac_word" >&5
1312 if test -n "$CC"; then
1313 echo "$as_me:1313: result: $CC" >&5
1314 echo "${ECHO_T}$CC" >&6
1316 echo "$as_me:1316: result: no" >&5
1317 echo "${ECHO_T}no" >&6
1320 test -n "$CC" && break
1323 if test -z "$CC"; then
1327 # Extract the first word of "$ac_prog", so it can be a program name with args.
1328 set dummy $ac_prog; ac_word=$2
1329 echo "$as_me:1329: checking for $ac_word" >&5
1330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 if test -n "$ac_ct_CC"; then
1335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1337 ac_save_IFS=$IFS; IFS=$ac_path_separator
1339 for ac_dir in $ac_dummy; do
1341 test -z "$ac_dir" && ac_dir=.
1342 $as_executable_p "$ac_dir/$ac_word" || continue
1343 ac_cv_prog_ac_ct_CC="$ac_prog"
1344 echo "$as_me:1344: found $ac_dir/$ac_word" >&5
1350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1351 if test -n "$ac_ct_CC"; then
1352 echo "$as_me:1352: result: $ac_ct_CC" >&5
1353 echo "${ECHO_T}$ac_ct_CC" >&6
1355 echo "$as_me:1355: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1359 test -n "$ac_ct_CC" && break
1367 test -z "$CC" && { { echo "$as_me:1367: error: no acceptable cc found in \$PATH" >&5
1368 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1369 { (exit 1); exit 1; }; }
1371 cat >conftest.$ac_ext <<_ACEOF
1372 #line 1372 "configure"
1373 #include "confdefs.h"
1383 ac_clean_files_save=$ac_clean_files
1384 ac_clean_files="$ac_clean_files a.out a.exe"
1385 # Try to create an executable without -o first, disregard a.out.
1386 # It will help us diagnose broken compiler, and finding out an intuition
1388 echo "$as_me:1388: checking for C compiler default output" >&5
1389 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1391 if { (eval echo "$as_me:1391: \"$ac_link_default\"") >&5
1392 (eval $ac_link_default) 2>&5
1394 echo "$as_me:1394: \$? = $ac_status" >&5
1395 (exit $ac_status); }; then
1396 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1398 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1399 a.out ) # We found the default executable, but exeext='' is most
1402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1409 echo "$as_me: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1411 { { echo "$as_me:1411: error: C compiler cannot create executables" >&5
1412 echo "$as_me: error: C compiler cannot create executables" >&2;}
1413 { (exit 77); exit 77; }; }
1416 ac_exeext=$ac_cv_exeext
1417 echo "$as_me:1417: result: $ac_file" >&5
1418 echo "${ECHO_T}$ac_file" >&6
1420 # Check the compiler produces executables we can run. If not, either
1421 # the compiler is broken, or we cross compile.
1422 echo "$as_me:1422: checking whether the C compiler works" >&5
1423 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1424 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1425 # If not cross compiling, check that we can run a simple program.
1426 if test "$cross_compiling" != yes; then
1427 if { ac_try='./$ac_file'
1428 { (eval echo "$as_me:1428: \"$ac_try\"") >&5
1431 echo "$as_me:1431: \$? = $ac_status" >&5
1432 (exit $ac_status); }; }; then
1435 if test "$cross_compiling" = maybe; then
1438 { { echo "$as_me:1438: error: cannot run C compiled programs.
1439 If you meant to cross compile, use \`--host'." >&5
1440 echo "$as_me: error: cannot run C compiled programs.
1441 If you meant to cross compile, use \`--host'." >&2;}
1442 { (exit 1); exit 1; }; }
1446 echo "$as_me:1446: result: yes" >&5
1447 echo "${ECHO_T}yes" >&6
1449 rm -f a.out a.exe conftest$ac_cv_exeext
1450 ac_clean_files=$ac_clean_files_save
1451 # Check the compiler produces executables we can run. If not, either
1452 # the compiler is broken, or we cross compile.
1453 echo "$as_me:1453: checking whether we are cross compiling" >&5
1454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1455 echo "$as_me:1455: result: $cross_compiling" >&5
1456 echo "${ECHO_T}$cross_compiling" >&6
1458 echo "$as_me:1458: checking for executable suffix" >&5
1459 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1460 if { (eval echo "$as_me:1460: \"$ac_link\"") >&5
1461 (eval $ac_link) 2>&5
1463 echo "$as_me:1463: \$? = $ac_status" >&5
1464 (exit $ac_status); }; then
1465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1467 # work properly (i.e., refer to `conftest.exe'), while it won't with
1469 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1471 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1479 { { echo "$as_me:1479: error: cannot compute EXEEXT: cannot compile and link" >&5
1480 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1481 { (exit 1); exit 1; }; }
1484 rm -f conftest$ac_cv_exeext
1485 echo "$as_me:1485: result: $ac_cv_exeext" >&5
1486 echo "${ECHO_T}$ac_cv_exeext" >&6
1488 rm -f conftest.$ac_ext
1489 EXEEXT=$ac_cv_exeext
1491 echo "$as_me:1491: checking for object suffix" >&5
1492 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1493 if test "${ac_cv_objext+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 cat >conftest.$ac_ext <<_ACEOF
1497 #line 1497 "configure"
1498 #include "confdefs.h"
1508 rm -f conftest.o conftest.obj
1509 if { (eval echo "$as_me:1509: \"$ac_compile\"") >&5
1510 (eval $ac_compile) 2>&5
1512 echo "$as_me:1512: \$? = $ac_status" >&5
1513 (exit $ac_status); }; then
1514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1522 echo "$as_me: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1524 { { echo "$as_me:1524: error: cannot compute OBJEXT: cannot compile" >&5
1525 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1526 { (exit 1); exit 1; }; }
1529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1531 echo "$as_me:1531: result: $ac_cv_objext" >&5
1532 echo "${ECHO_T}$ac_cv_objext" >&6
1533 OBJEXT=$ac_cv_objext
1535 echo "$as_me:1535: checking whether we are using the GNU C compiler" >&5
1536 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 cat >conftest.$ac_ext <<_ACEOF
1541 #line 1541 "configure"
1542 #include "confdefs.h"
1555 rm -f conftest.$ac_objext
1556 if { (eval echo "$as_me:1556: \"$ac_compile\"") >&5
1557 (eval $ac_compile) 2>&5
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit $ac_status); } &&
1561 { ac_try='test -s conftest.$ac_objext'
1562 { (eval echo "$as_me:1562: \"$ac_try\"") >&5
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); }; }; then
1569 echo "$as_me: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1573 rm -f conftest.$ac_objext conftest.$ac_ext
1574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1577 echo "$as_me:1577: result: $ac_cv_c_compiler_gnu" >&5
1578 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1579 GCC=`test $ac_compiler_gnu = yes && echo yes`
1580 ac_test_CFLAGS=${CFLAGS+set}
1581 ac_save_CFLAGS=$CFLAGS
1583 echo "$as_me:1583: checking whether $CC accepts -g" >&5
1584 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1585 if test "${ac_cv_prog_cc_g+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 cat >conftest.$ac_ext <<_ACEOF
1589 #line 1589 "configure"
1590 #include "confdefs.h"
1600 rm -f conftest.$ac_objext
1601 if { (eval echo "$as_me:1601: \"$ac_compile\"") >&5
1602 (eval $ac_compile) 2>&5
1604 echo "$as_me:1604: \$? = $ac_status" >&5
1605 (exit $ac_status); } &&
1606 { ac_try='test -s conftest.$ac_objext'
1607 { (eval echo "$as_me:1607: \"$ac_try\"") >&5
1610 echo "$as_me:1610: \$? = $ac_status" >&5
1611 (exit $ac_status); }; }; then
1614 echo "$as_me: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1618 rm -f conftest.$ac_objext conftest.$ac_ext
1620 echo "$as_me:1620: result: $ac_cv_prog_cc_g" >&5
1621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1622 if test "$ac_test_CFLAGS" = set; then
1623 CFLAGS=$ac_save_CFLAGS
1624 elif test $ac_cv_prog_cc_g = yes; then
1625 if test "$GCC" = yes; then
1631 if test "$GCC" = yes; then
1637 # Some people use a C++ compiler to compile C. Since we use `exit',
1638 # in C++ we need to declare it. In case someone uses the same compiler
1639 # for both compiling C and C++ we need to have the C++ compiler decide
1640 # the declaration of exit, since it's the most demanding environment.
1641 cat >conftest.$ac_ext <<_ACEOF
1646 rm -f conftest.$ac_objext
1647 if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648 (eval $ac_compile) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try='test -s conftest.$ac_objext'
1653 { (eval echo "$as_me:1653: \"$ac_try\"") >&5
1656 echo "$as_me:1656: \$? = $ac_status" >&5
1657 (exit $ac_status); }; }; then
1658 for ac_declaration in \
1660 '#include <stdlib.h>' \
1661 'extern "C" void std::exit (int) throw (); using std::exit;' \
1662 'extern "C" void std::exit (int); using std::exit;' \
1663 'extern "C" void exit (int) throw ();' \
1664 'extern "C" void exit (int);' \
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1680 rm -f conftest.$ac_objext
1681 if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5
1682 (eval $ac_compile) 2>&5
1684 echo "$as_me:1684: \$? = $ac_status" >&5
1685 (exit $ac_status); } &&
1686 { ac_try='test -s conftest.$ac_objext'
1687 { (eval echo "$as_me:1687: \"$ac_try\"") >&5
1690 echo "$as_me:1690: \$? = $ac_status" >&5
1691 (exit $ac_status); }; }; then
1694 echo "$as_me: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1698 rm -f conftest.$ac_objext conftest.$ac_ext
1699 cat >conftest.$ac_ext <<_ACEOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1711 rm -f conftest.$ac_objext
1712 if { (eval echo "$as_me:1712: \"$ac_compile\"") >&5
1713 (eval $ac_compile) 2>&5
1715 echo "$as_me:1715: \$? = $ac_status" >&5
1716 (exit $ac_status); } &&
1717 { ac_try='test -s conftest.$ac_objext'
1718 { (eval echo "$as_me:1718: \"$ac_try\"") >&5
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); }; }; then
1725 echo "$as_me: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1728 rm -f conftest.$ac_objext conftest.$ac_ext
1730 echo '#ifdef __cplusplus' >>confdefs.h
1731 echo $ac_declaration >>confdefs.h
1732 echo '#endif' >>confdefs.h
1735 echo "$as_me: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1738 rm -f conftest.$ac_objext conftest.$ac_ext
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1746 ac_cpp='$CPP $CPPFLAGS'
1747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1750 echo "$as_me:1750: checking how to run the C preprocessor" >&5
1751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1752 # On Suns, sometimes $CPP names a directory.
1753 if test -n "$CPP" && test -d "$CPP"; then
1756 if test -z "$CPP"; then
1757 if test "${ac_cv_prog_CPP+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 # Double quotes because CPP needs to be expanded
1761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1763 # break 2 since there is a loop in there.
1765 for ac_c_preproc_warn_flag in '' yes
1767 # Use a header file that comes with gcc, so configuring glibc
1768 # with a fresh cross-compiler works.
1769 # On the NeXT, cc -E runs the code through the compiler's parser,
1770 # not just through cpp. "Syntax error" is here to catch this case.
1771 cat >conftest.$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1777 if { (eval echo "$as_me:1777: \"$ac_cpp conftest.$ac_ext\"") >&5
1778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1780 egrep -v '^ *\+' conftest.er1 >conftest.err
1782 cat conftest.err >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); } >/dev/null; then
1785 if test -s conftest.err; then
1786 ac_cpp_err=$ac_c_preproc_warn_flag
1793 if test -z "$ac_cpp_err"; then
1796 echo "$as_me: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 # Broken: fails on valid input.
1801 rm -f conftest.err conftest.$ac_ext
1803 # OK, works on sane cases. Now check whether non-existent headers
1804 # can be detected and how.
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1808 #include <ac_nonexistent.h>
1810 if { (eval echo "$as_me:1810: \"$ac_cpp conftest.$ac_ext\"") >&5
1811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1813 egrep -v '^ *\+' conftest.er1 >conftest.err
1815 cat conftest.err >&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } >/dev/null; then
1818 if test -s conftest.err; then
1819 ac_cpp_err=$ac_c_preproc_warn_flag
1826 if test -z "$ac_cpp_err"; then
1827 # Broken: success on invalid input.
1830 echo "$as_me: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 # Passes both tests.
1836 rm -f conftest.err conftest.$ac_ext
1839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1840 rm -f conftest.err conftest.$ac_ext
1841 if $ac_preproc_ok; then
1853 echo "$as_me:1853: result: $CPP" >&5
1854 echo "${ECHO_T}$CPP" >&6
1856 for ac_c_preproc_warn_flag in '' yes
1858 # Use a header file that comes with gcc, so configuring glibc
1859 # with a fresh cross-compiler works.
1860 # On the NeXT, cc -E runs the code through the compiler's parser,
1861 # not just through cpp. "Syntax error" is here to catch this case.
1862 cat >conftest.$ac_ext <<_ACEOF
1863 #line 1863 "configure"
1864 #include "confdefs.h"
1868 if { (eval echo "$as_me:1868: \"$ac_cpp conftest.$ac_ext\"") >&5
1869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1871 egrep -v '^ *\+' conftest.er1 >conftest.err
1873 cat conftest.err >&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); } >/dev/null; then
1876 if test -s conftest.err; then
1877 ac_cpp_err=$ac_c_preproc_warn_flag
1884 if test -z "$ac_cpp_err"; then
1887 echo "$as_me: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 # Broken: fails on valid input.
1892 rm -f conftest.err conftest.$ac_ext
1894 # OK, works on sane cases. Now check whether non-existent headers
1895 # can be detected and how.
1896 cat >conftest.$ac_ext <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1899 #include <ac_nonexistent.h>
1901 if { (eval echo "$as_me:1901: \"$ac_cpp conftest.$ac_ext\"") >&5
1902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1904 egrep -v '^ *\+' conftest.er1 >conftest.err
1906 cat conftest.err >&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); } >/dev/null; then
1909 if test -s conftest.err; then
1910 ac_cpp_err=$ac_c_preproc_warn_flag
1917 if test -z "$ac_cpp_err"; then
1918 # Broken: success on invalid input.
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1923 # Passes both tests.
1927 rm -f conftest.err conftest.$ac_ext
1930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1931 rm -f conftest.err conftest.$ac_ext
1932 if $ac_preproc_ok; then
1935 { { echo "$as_me:1935: error: C preprocessor \"$CPP\" fails sanity check" >&5
1936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1937 { (exit 1); exit 1; }; }
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1949 echo "$as_me:1949: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_RANLIB+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$RANLIB"; then
1955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1957 ac_save_IFS=$IFS; IFS=$ac_path_separator
1959 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 $as_executable_p "$ac_dir/$ac_word" || continue
1963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1964 echo "$as_me:1964: found $ac_dir/$ac_word" >&5
1970 RANLIB=$ac_cv_prog_RANLIB
1971 if test -n "$RANLIB"; then
1972 echo "$as_me:1972: result: $RANLIB" >&5
1973 echo "${ECHO_T}$RANLIB" >&6
1975 echo "$as_me:1975: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$ac_cv_prog_RANLIB"; then
1981 ac_ct_RANLIB=$RANLIB
1982 # Extract the first word of "ranlib", so it can be a program name with args.
1983 set dummy ranlib; ac_word=$2
1984 echo "$as_me:1984: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$ac_ct_RANLIB"; then
1990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1992 ac_save_IFS=$IFS; IFS=$ac_path_separator
1994 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 $as_executable_p "$ac_dir/$ac_word" || continue
1998 ac_cv_prog_ac_ct_RANLIB="ranlib"
1999 echo "$as_me:1999: found $ac_dir/$ac_word" >&5
2003 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2007 if test -n "$ac_ct_RANLIB"; then
2008 echo "$as_me:2008: result: $ac_ct_RANLIB" >&5
2009 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2011 echo "$as_me:2011: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2015 RANLIB=$ac_ct_RANLIB
2017 RANLIB="$ac_cv_prog_RANLIB"
2020 # Find a good install program. We prefer a C program (faster),
2021 # so one script is as good as another. But avoid the broken or
2022 # incompatible versions:
2023 # SysV /etc/install, /usr/sbin/install
2024 # SunOS /usr/etc/install
2025 # IRIX /sbin/install
2027 # AmigaOS /C/install, which installs bootblocks on floppy discs
2028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2031 # ./install, which can be erroneously created by make from ./install.sh.
2032 echo "$as_me:2032: checking for a BSD compatible install" >&5
2033 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2034 if test -z "$INSTALL"; then
2035 if test "${ac_cv_path_install+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 ac_save_IFS=$IFS; IFS=$ac_path_separator
2039 for ac_dir in $PATH; do
2041 # Account for people who put trailing slashes in PATH elements.
2043 / | ./ | .// | /cC/* \
2044 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2047 # OSF1 and SCO ODT 3.0 have their own names for install.
2048 # Don't use installbsd from OSF since it installs stuff as root
2050 for ac_prog in ginstall scoinst install; do
2051 if $as_executable_p "$ac_dir/$ac_prog"; then
2052 if test $ac_prog = install &&
2053 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2054 # AIX install. It has an incompatible calling convention.
2056 elif test $ac_prog = install &&
2057 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2058 # program-specific install script used by HP pwplus--don't use.
2061 ac_cv_path_install="$ac_dir/$ac_prog -c"
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL=$ac_cv_path_install
2074 # As a last resort, use the slow shell script. We don't cache a
2075 # path for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the path is relative.
2078 INSTALL=$ac_install_sh
2081 echo "$as_me:2081: result: $INSTALL" >&5
2082 echo "${ECHO_T}$INSTALL" >&6
2084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085 # It thinks the first close brace ends the variable substitution.
2086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092 echo "$as_me:2092: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_cv_prog_cc_stdc=no
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2104 #include <sys/types.h>
2105 #include <sys/stat.h>
2106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2107 struct buf { int x; };
2108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2109 static char *e (p, i)
2115 static char *f (char * (*g) (char **, int), char **p, ...)
2120 s = g (p, va_arg (v,int));
2124 int test (int i, double x);
2125 struct s1 {int (*f) (int a);};
2126 struct s2 {int (*f) (double a);};
2127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2138 # Don't try gcc -ansi; that turns off useful extensions and
2139 # breaks some systems' header files.
2140 # AIX -qlanglvl=ansi
2141 # Ultrix and OSF/1 -std1
2142 # HP-UX 10.20 and later -Ae
2143 # HP-UX older versions -Aa -D_HPUX_SOURCE
2144 # SVR4 -Xc -D__EXTENSIONS__
2145 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2147 CC="$ac_save_CC $ac_arg"
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:2149: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:2152: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:2155: \"$ac_try\"") >&5
2158 echo "$as_me:2158: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2160 ac_cv_prog_cc_stdc=$ac_arg
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 rm -f conftest.$ac_objext
2168 rm -f conftest.$ac_ext conftest.$ac_objext
2173 case "x$ac_cv_prog_cc_stdc" in
2175 echo "$as_me:2175: result: none needed" >&5
2176 echo "${ECHO_T}none needed" >&6 ;;
2178 echo "$as_me:2178: result: $ac_cv_prog_cc_stdc" >&5
2179 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2180 CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 echo "$as_me:2183: checking for an ANSI C-conforming const" >&5
2184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2185 if test "${ac_cv_c_const+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.$ac_ext <<_ACEOF
2189 #line 2189 "configure"
2190 #include "confdefs.h"
2195 /* FIXME: Include the comments suggested by Paul. */
2197 /* Ultrix mips cc rejects this. */
2198 typedef int charset[2];
2200 /* SunOS 4.1.1 cc rejects this. */
2201 char const *const *ccp;
2203 /* NEC SVR4.0.2 mips cc rejects this. */
2204 struct point {int x, y;};
2205 static struct point const zero = {0,0};
2206 /* AIX XL C 1.02.0.0 rejects this.
2207 It does not let you subtract one const X* pointer from another in
2208 an arm of an if-expression whose if-part is not a constant
2210 const char *g = "string";
2211 ccp = &g + (g ? g-g : 0);
2212 /* HPUX 7.0 cc rejects these. */
2215 ccp = (char const *const *) p;
2216 { /* SCO 3.2v4 cc rejects this. */
2218 char const *s = 0 ? (char *) 0 : (char const *) 0;
2222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2224 const int *foo = &x[0];
2227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2228 typedef const int *iptr;
2232 { /* AIX XL C 1.02.0.0 rejects this saying
2233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2234 struct s { int j; const int *ap[3]; };
2235 struct s *b; b->j = 5;
2237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2246 rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:2247: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>&5
2250 echo "$as_me:2250: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:2253: \"$ac_try\"") >&5
2256 echo "$as_me:2256: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2264 rm -f conftest.$ac_objext conftest.$ac_ext
2266 echo "$as_me:2266: result: $ac_cv_c_const" >&5
2267 echo "${ECHO_T}$ac_cv_c_const" >&6
2268 if test $ac_cv_c_const = no; then
2270 cat >>confdefs.h <<\EOF
2276 if test x${cross_compiling} != xyes; then
2277 echo "$as_me:2277: checking whether byte ordering is bigendian" >&5
2278 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2279 if test "${ac_cv_c_bigendian+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 ac_cv_c_bigendian=unknown
2283 # See if sys/param.h defines the BYTE_ORDER macro.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2288 #include <sys/param.h>
2293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:2302: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:2305: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:2308: \"$ac_try\"") >&5
2311 echo "$as_me:2311: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 # It does; now see whether it defined to BIG_ENDIAN or not.
2314 cat >conftest.$ac_ext <<_ACEOF
2315 #line 2315 "configure"
2316 #include "confdefs.h"
2317 #include <sys/types.h>
2318 #include <sys/param.h>
2323 #if BYTE_ORDER != BIG_ENDIAN
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:2332: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:2338: \"$ac_try\"") >&5
2341 echo "$as_me:2341: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2343 ac_cv_c_bigendian=yes
2345 echo "$as_me: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 ac_cv_c_bigendian=no
2349 rm -f conftest.$ac_objext conftest.$ac_ext
2351 echo "$as_me: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 rm -f conftest.$ac_objext conftest.$ac_ext
2355 if test $ac_cv_c_bigendian = unknown; then
2356 if test "$cross_compiling" = yes; then
2357 { { echo "$as_me:2357: error: cannot run test program while cross compiling" >&5
2358 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2359 { (exit 1); exit 1; }; }
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line 2362 "configure"
2363 #include "confdefs.h"
2367 /* Are we little or big endian? From Harbison&Steele. */
2371 char c[sizeof (long)];
2374 exit (u.c[sizeof (long) - 1] == 1);
2377 rm -f conftest$ac_exeext
2378 if { (eval echo "$as_me:2378: \"$ac_link\"") >&5
2379 (eval $ac_link) 2>&5
2381 echo "$as_me:2381: \$? = $ac_status" >&5
2382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2383 { (eval echo "$as_me:2383: \"$ac_try\"") >&5
2386 echo "$as_me:2386: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_cv_c_bigendian=no
2390 echo "$as_me: program exited with status $ac_status" >&5
2391 echo "$as_me: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 ac_cv_c_bigendian=yes
2395 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2399 echo "$as_me:2399: result: $ac_cv_c_bigendian" >&5
2400 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2401 if test $ac_cv_c_bigendian = yes; then
2403 cat >>confdefs.h <<\EOF
2404 #define WORDS_BIGENDIAN 1
2411 for ac_func in gettimeofday select strerror strtod strtol
2413 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2414 echo "$as_me:2414: checking for $ac_func" >&5
2415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2416 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2422 /* System header to define __stub macros and hopefully few prototypes,
2423 which can conflict with char $ac_func (); below. */
2425 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2437 /* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:2451: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>&5
2454 echo "$as_me:2454: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -s conftest$ac_exeext'
2457 { (eval echo "$as_me:2457: \"$ac_try\"") >&5
2460 echo "$as_me:2460: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 eval "$ac_ac_var=yes"
2464 echo "$as_me: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2466 eval "$ac_ac_var=no"
2468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2470 echo "$as_me:2470: result: `eval echo '${'$ac_ac_var'}'`" >&5
2471 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2472 if test `eval echo '${'$ac_ac_var'}'` = yes; then
2473 cat >>confdefs.h <<EOF
2474 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2480 for ac_func in setenv putenv
2482 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2483 echo "$as_me:2483: checking for $ac_func" >&5
2484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2485 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2491 /* System header to define __stub macros and hopefully few prototypes,
2492 which can conflict with char $ac_func (); below. */
2494 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2519 rm -f conftest.$ac_objext conftest$ac_exeext
2520 if { (eval echo "$as_me:2520: \"$ac_link\"") >&5
2521 (eval $ac_link) 2>&5
2523 echo "$as_me:2523: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -s conftest$ac_exeext'
2526 { (eval echo "$as_me:2526: \"$ac_try\"") >&5
2529 echo "$as_me:2529: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 eval "$ac_ac_var=yes"
2533 echo "$as_me: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 eval "$ac_ac_var=no"
2537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2539 echo "$as_me:2539: result: `eval echo '${'$ac_ac_var'}'`" >&5
2540 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2541 if test `eval echo '${'$ac_ac_var'}'` = yes; then
2542 cat >>confdefs.h <<EOF
2543 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2549 echo "$as_me:2549: checking for connect" >&5
2550 echo $ECHO_N "checking for connect... $ECHO_C" >&6
2551 if test "${ac_cv_func_connect+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 cat >conftest.$ac_ext <<_ACEOF
2555 #line 2555 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char connect (); below. */
2560 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2572 /* The GNU C library defines this for functions which it implements
2573 to always fail with ENOSYS. Some functions are actually named
2574 something starting with __ and the normal name is an alias. */
2575 #if defined (__stub_connect) || defined (__stub___connect)
2585 rm -f conftest.$ac_objext conftest$ac_exeext
2586 if { (eval echo "$as_me:2586: \"$ac_link\"") >&5
2587 (eval $ac_link) 2>&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -s conftest$ac_exeext'
2592 { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 ac_cv_func_connect=yes
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 ac_cv_func_connect=no
2603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2605 echo "$as_me:2605: result: $ac_cv_func_connect" >&5
2606 echo "${ECHO_T}$ac_cv_func_connect" >&6
2607 if test $ac_cv_func_connect = yes; then
2611 echo "$as_me:2611: checking for connect in -lsocket" >&5
2612 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2613 if test "${ac_cv_lib_socket_connect+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 ac_check_lib_save_LIBS=$LIBS
2617 LIBS="-lsocket $LIBS"
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line 2619 "configure"
2620 #include "confdefs.h"
2622 /* Override any gcc2 internal prototype to avoid an error. */
2626 /* We use char because int might match the return type of a gcc2
2627 builtin and then its argument prototype would still apply. */
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { (eval echo "$as_me:2638: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2641 echo "$as_me:2641: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:2644: \"$ac_try\"") >&5
2647 echo "$as_me:2647: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_lib_socket_connect=yes
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 ac_cv_lib_socket_connect=no
2655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2656 LIBS=$ac_check_lib_save_LIBS
2658 echo "$as_me:2658: result: $ac_cv_lib_socket_connect" >&5
2659 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2660 if test $ac_cv_lib_socket_connect = yes; then
2661 LIB="${LIB} -lsocket"
2666 echo "$as_me:2666: checking for gethostbyname" >&5
2667 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2668 if test "${ac_cv_func_gethostbyname+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line 2672 "configure"
2673 #include "confdefs.h"
2674 /* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char gethostbyname (); below. */
2677 /* Override any gcc2 internal prototype to avoid an error. */
2681 /* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2683 char gethostbyname ();
2689 /* The GNU C library defines this for functions which it implements
2690 to always fail with ENOSYS. Some functions are actually named
2691 something starting with __ and the normal name is an alias. */
2692 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2702 rm -f conftest.$ac_objext conftest$ac_exeext
2703 if { (eval echo "$as_me:2703: \"$ac_link\"") >&5
2704 (eval $ac_link) 2>&5
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 { (eval echo "$as_me:2709: \"$ac_try\"") >&5
2712 echo "$as_me:2712: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_func_gethostbyname=yes
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 ac_cv_func_gethostbyname=no
2720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2722 echo "$as_me:2722: result: $ac_cv_func_gethostbyname" >&5
2723 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2724 if test $ac_cv_func_gethostbyname = yes; then
2728 echo "$as_me:2728: checking for gethostbyname in -lnsl" >&5
2729 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2730 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_check_lib_save_LIBS=$LIBS
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line 2736 "configure"
2737 #include "confdefs.h"
2739 /* Override any gcc2 internal prototype to avoid an error. */
2743 /* We use char because int might match the return type of a gcc2
2744 builtin and then its argument prototype would still apply. */
2745 char gethostbyname ();
2754 rm -f conftest.$ac_objext conftest$ac_exeext
2755 if { (eval echo "$as_me:2755: \"$ac_link\"") >&5
2756 (eval $ac_link) 2>&5
2758 echo "$as_me:2758: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest$ac_exeext'
2761 { (eval echo "$as_me:2761: \"$ac_try\"") >&5
2764 echo "$as_me:2764: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_lib_nsl_gethostbyname=yes
2768 echo "$as_me: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 ac_cv_lib_nsl_gethostbyname=no
2772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2773 LIBS=$ac_check_lib_save_LIBS
2775 echo "$as_me:2775: result: $ac_cv_lib_nsl_gethostbyname" >&5
2776 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2777 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2783 echo "$as_me:2783: checking for nanosleep" >&5
2784 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
2785 if test "${ac_cv_func_nanosleep+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char nanosleep (); below. */
2794 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
2819 rm -f conftest.$ac_objext conftest$ac_exeext
2820 if { (eval echo "$as_me:2820: \"$ac_link\"") >&5
2821 (eval $ac_link) 2>&5
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -s conftest$ac_exeext'
2826 { (eval echo "$as_me:2826: \"$ac_try\"") >&5
2829 echo "$as_me:2829: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_func_nanosleep=yes
2833 echo "$as_me: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 ac_cv_func_nanosleep=no
2837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2839 echo "$as_me:2839: result: $ac_cv_func_nanosleep" >&5
2840 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
2841 if test $ac_cv_func_nanosleep = yes; then
2845 echo "$as_me:2845: checking for nanosleep in -lrt" >&5
2846 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
2847 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 ac_check_lib_save_LIBS=$LIBS
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line 2853 "configure"
2854 #include "confdefs.h"
2856 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2871 rm -f conftest.$ac_objext conftest$ac_exeext
2872 if { (eval echo "$as_me:2872: \"$ac_link\"") >&5
2873 (eval $ac_link) 2>&5
2875 echo "$as_me:2875: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -s conftest$ac_exeext'
2878 { (eval echo "$as_me:2878: \"$ac_try\"") >&5
2881 echo "$as_me:2881: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_cv_lib_rt_nanosleep=yes
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_cv_lib_rt_nanosleep=no
2889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2890 LIBS=$ac_check_lib_save_LIBS
2892 echo "$as_me:2892: result: $ac_cv_lib_rt_nanosleep" >&5
2893 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
2894 if test $ac_cv_lib_rt_nanosleep = yes; then
2898 echo "$as_me:2898: checking for nanosleep in -lposix4" >&5
2899 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
2900 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-lposix4 $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line 2906 "configure"
2907 #include "confdefs.h"
2909 /* Override any gcc2 internal prototype to avoid an error. */
2913 /* We use char because int might match the return type of a gcc2
2914 builtin and then its argument prototype would still apply. */
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:2925: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest$ac_exeext'
2931 { (eval echo "$as_me:2931: \"$ac_try\"") >&5
2934 echo "$as_me:2934: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_lib_posix4_nanosleep=yes
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_posix4_nanosleep=no
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2945 echo "$as_me:2945: result: $ac_cv_lib_posix4_nanosleep" >&5
2946 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
2947 if test $ac_cv_lib_posix4_nanosleep = yes; then
2948 LIB="${LIB} -lposix4"
2955 for ac_func in usleep
2957 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2958 echo "$as_me:2958: checking for $ac_func" >&5
2959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2960 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2966 /* System header to define __stub macros and hopefully few prototypes,
2967 which can conflict with char $ac_func (); below. */
2969 /* Override any gcc2 internal prototype to avoid an error. */
2973 /* We use char because int might match the return type of a gcc2
2974 builtin and then its argument prototype would still apply. */
2981 /* The GNU C library defines this for functions which it implements
2982 to always fail with ENOSYS. Some functions are actually named
2983 something starting with __ and the normal name is an alias. */
2984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2994 rm -f conftest.$ac_objext conftest$ac_exeext
2995 if { (eval echo "$as_me:2995: \"$ac_link\"") >&5
2996 (eval $ac_link) 2>&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -s conftest$ac_exeext'
3001 { (eval echo "$as_me:3001: \"$ac_try\"") >&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 eval "$ac_ac_var=yes"
3008 echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 eval "$ac_ac_var=no"
3012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3014 echo "$as_me:3014: result: `eval echo '${'$ac_ac_var'}'`" >&5
3015 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3016 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3017 cat >>confdefs.h <<EOF
3018 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3024 echo "$as_me:3024: checking for inet_aton" >&5
3025 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
3026 if test "${ac_cv_func_inet_aton+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char inet_aton (); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3060 rm -f conftest.$ac_objext conftest$ac_exeext
3061 if { (eval echo "$as_me:3061: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try='test -s conftest$ac_exeext'
3067 { (eval echo "$as_me:3067: \"$ac_try\"") >&5
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_func_inet_aton=yes
3074 echo "$as_me: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 ac_cv_func_inet_aton=no
3078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3080 echo "$as_me:3080: result: $ac_cv_func_inet_aton" >&5
3081 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
3082 if test $ac_cv_func_inet_aton = yes; then
3086 echo "$as_me:3086: checking for inet_aton in -lresolv" >&5
3087 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
3088 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_check_lib_save_LIBS=$LIBS
3092 LIBS="-lresolv $LIBS"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line 3094 "configure"
3095 #include "confdefs.h"
3097 /* Override any gcc2 internal prototype to avoid an error. */
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3112 rm -f conftest.$ac_objext conftest$ac_exeext
3113 if { (eval echo "$as_me:3113: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>&5
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -s conftest$ac_exeext'
3119 { (eval echo "$as_me:3119: \"$ac_try\"") >&5
3122 echo "$as_me:3122: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_lib_resolv_inet_aton=yes
3126 echo "$as_me: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 ac_cv_lib_resolv_inet_aton=no
3130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3131 LIBS=$ac_check_lib_save_LIBS
3133 echo "$as_me:3133: result: $ac_cv_lib_resolv_inet_aton" >&5
3134 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
3135 if test $ac_cv_lib_resolv_inet_aton = yes; then
3136 LIB="${LIB} -lresolv"
3141 for ac_func in vasprintf
3143 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3144 echo "$as_me:3144: checking for $ac_func" >&5
3145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3146 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line 3150 "configure"
3151 #include "confdefs.h"
3152 /* System header to define __stub macros and hopefully few prototypes,
3153 which can conflict with char $ac_func (); below. */
3155 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:3187: \"$ac_try\"") >&5
3190 echo "$as_me:3190: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 eval "$ac_ac_var=yes"
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 eval "$ac_ac_var=no"
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3200 echo "$as_me:3200: result: `eval echo '${'$ac_ac_var'}'`" >&5
3201 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3202 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3203 cat >>confdefs.h <<EOF
3204 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3212 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3213 echo "$as_me:3213: checking for $ac_func" >&5
3214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3215 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 cat >conftest.$ac_ext <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3221 /* System header to define __stub macros and hopefully few prototypes,
3222 which can conflict with char $ac_func (); below. */
3224 /* Override any gcc2 internal prototype to avoid an error. */
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3236 /* The GNU C library defines this for functions which it implements
3237 to always fail with ENOSYS. Some functions are actually named
3238 something starting with __ and the normal name is an alias. */
3239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3249 rm -f conftest.$ac_objext conftest$ac_exeext
3250 if { (eval echo "$as_me:3250: \"$ac_link\"") >&5
3251 (eval $ac_link) 2>&5
3253 echo "$as_me:3253: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -s conftest$ac_exeext'
3256 { (eval echo "$as_me:3256: \"$ac_try\"") >&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 eval "$ac_ac_var=yes"
3263 echo "$as_me: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3265 eval "$ac_ac_var=no"
3267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3269 echo "$as_me:3269: result: `eval echo '${'$ac_ac_var'}'`" >&5
3270 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3271 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3272 cat >>confdefs.h <<EOF
3273 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3279 echo "$as_me:3279: checking for getopt_long" >&5
3280 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
3281 if test "${ac_cv_func_getopt_long+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line 3285 "configure"
3286 #include "confdefs.h"
3287 /* System header to define __stub macros and hopefully few prototypes,
3288 which can conflict with char getopt_long (); below. */
3290 /* Override any gcc2 internal prototype to avoid an error. */
3294 /* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
3296 char getopt_long ();
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3315 rm -f conftest.$ac_objext conftest$ac_exeext
3316 if { (eval echo "$as_me:3316: \"$ac_link\"") >&5
3317 (eval $ac_link) 2>&5
3319 echo "$as_me:3319: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -s conftest$ac_exeext'
3322 { (eval echo "$as_me:3322: \"$ac_try\"") >&5
3325 echo "$as_me:3325: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_cv_func_getopt_long=yes
3329 echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 ac_cv_func_getopt_long=no
3333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3335 echo "$as_me:3335: result: $ac_cv_func_getopt_long" >&5
3336 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
3337 if test $ac_cv_func_getopt_long = yes; then
3339 cat >>confdefs.h <<\EOF
3340 #define HAVE_GETOPT_LONG 1
3344 # FreeBSD has a gnugetopt library for this:
3345 echo "$as_me:3345: checking for getopt_long in -lgnugetopt" >&5
3346 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
3347 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 ac_check_lib_save_LIBS=$LIBS
3351 LIBS="-lgnugetopt $LIBS"
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line 3353 "configure"
3354 #include "confdefs.h"
3356 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3362 char getopt_long ();
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:3372: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3375 echo "$as_me:3375: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:3378: \"$ac_try\"") >&5
3381 echo "$as_me:3381: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_lib_gnugetopt_getopt_long=yes
3385 echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_cv_lib_gnugetopt_getopt_long=no
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_check_lib_save_LIBS
3392 echo "$as_me:3392: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
3393 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
3394 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
3396 cat >>confdefs.h <<\EOF
3397 #define HAVE_GETOPT_LONG 1
3399 LIB="${LIB} -lgnugetopt"
3406 for ac_header in stdlib.h unistd.h
3408 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3409 echo "$as_me:3409: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3415 #line 3415 "configure"
3416 #include "confdefs.h"
3417 #include <$ac_header>
3419 if { (eval echo "$as_me:3419: \"$ac_cpp conftest.$ac_ext\"") >&5
3420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422 egrep -v '^ *\+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:3425: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null; then
3427 if test -s conftest.err; then
3428 ac_cpp_err=$ac_c_preproc_warn_flag
3435 if test -z "$ac_cpp_err"; then
3436 eval "$ac_ac_Header=yes"
3438 echo "$as_me: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3440 eval "$ac_ac_Header=no"
3442 rm -f conftest.err conftest.$ac_ext
3444 echo "$as_me:3444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3447 cat >>confdefs.h <<EOF
3448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3454 for ac_func in getpagesize
3456 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3457 echo "$as_me:3457: checking for $ac_func" >&5
3458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3459 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line 3463 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func (); below. */
3468 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3480 /* The GNU C library defines this for functions which it implements
3481 to always fail with ENOSYS. Some functions are actually named
3482 something starting with __ and the normal name is an alias. */
3483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3493 rm -f conftest.$ac_objext conftest$ac_exeext
3494 if { (eval echo "$as_me:3494: \"$ac_link\"") >&5
3495 (eval $ac_link) 2>&5
3497 echo "$as_me:3497: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:3500: \"$ac_try\"") >&5
3503 echo "$as_me:3503: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 eval "$ac_ac_var=yes"
3507 echo "$as_me: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 eval "$ac_ac_var=no"
3511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3513 echo "$as_me:3513: result: `eval echo '${'$ac_ac_var'}'`" >&5
3514 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3515 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3516 cat >>confdefs.h <<EOF
3517 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3523 echo "$as_me:3523: checking for working mmap" >&5
3524 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3525 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 if test "$cross_compiling" = yes; then
3529 ac_cv_func_mmap_fixed_mapped=no
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3534 /* Thanks to Mike Haertel and Jim Avera for this test.
3535 Here is a matrix of mmap possibilities:
3536 mmap private not fixed
3537 mmap private fixed at somewhere currently unmapped
3538 mmap private fixed at somewhere already mapped
3539 mmap shared not fixed
3540 mmap shared fixed at somewhere currently unmapped
3541 mmap shared fixed at somewhere already mapped
3542 For private mappings, we should verify that changes cannot be read()
3543 back from the file, nor mmap's back from the file at a different
3544 address. (There have been systems where private was not correctly
3545 implemented like the infamous i386 svr4.0, and systems where the
3546 VM page cache was not coherent with the file system buffer cache
3547 like early versions of FreeBSD and possibly contemporary NetBSD.)
3548 For shared mappings, we should conversely verify that changes get
3549 propogated back to all the places they're supposed to be.
3551 Grep wants private fixed already mapped.
3552 The main things grep needs to know about mmap are:
3553 * does it exist and is it safe to write into the mmap'd area
3554 * how to use it (BSD variants) */
3555 #include <sys/types.h>
3557 #include <sys/mman.h>
3559 #if STDC_HEADERS || HAVE_STDLIB_H
3560 # include <stdlib.h>
3565 # include <unistd.h>
3567 #include <sys/stat.h>
3569 /* This mess was copied from the GNU getpagesize.h. */
3570 #if !HAVE_GETPAGESIZE
3571 /* Assume that all systems that can run configure have sys/param.h. */
3572 # if !HAVE_SYS_PARAM_H
3573 # define HAVE_SYS_PARAM_H 1
3576 # ifdef _SC_PAGESIZE
3577 # define getpagesize() sysconf(_SC_PAGESIZE)
3578 # else /* no _SC_PAGESIZE */
3579 # if HAVE_SYS_PARAM_H
3580 # include <sys/param.h>
3581 # ifdef EXEC_PAGESIZE
3582 # define getpagesize() EXEC_PAGESIZE
3583 # else /* no EXEC_PAGESIZE */
3585 # define getpagesize() NBPG * CLSIZE
3588 # endif /* no CLSIZE */
3589 # else /* no NBPG */
3591 # define getpagesize() NBPC
3592 # else /* no NBPC */
3594 # define getpagesize() PAGESIZE
3595 # endif /* PAGESIZE */
3596 # endif /* no NBPC */
3597 # endif /* no NBPG */
3598 # endif /* no EXEC_PAGESIZE */
3599 # else /* no HAVE_SYS_PARAM_H */
3600 # define getpagesize() 8192 /* punt totally */
3601 # endif /* no HAVE_SYS_PARAM_H */
3602 # endif /* no _SC_PAGESIZE */
3604 #endif /* no HAVE_GETPAGESIZE */
3609 char *data, *data2, *data3;
3613 pagesize = getpagesize ();
3615 /* First, make a file with some known garbage in it. */
3616 data = (char *) malloc (pagesize);
3619 for (i = 0; i < pagesize; ++i)
3620 *(data + i) = rand ();
3622 fd = creat ("conftest.mmap", 0600);
3625 if (write (fd, data, pagesize) != pagesize)
3629 /* Next, try to mmap the file at a fixed address which already has
3630 something else allocated at it. If we can, also make sure that
3631 we see the same garbage. */
3632 fd = open ("conftest.mmap", O_RDWR);
3635 data2 = (char *) malloc (2 * pagesize);
3638 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3639 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3640 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3642 for (i = 0; i < pagesize; ++i)
3643 if (*(data + i) != *(data2 + i))
3646 /* Finally, make sure that changes to the mapped area do not
3647 percolate back to the file as seen by read(). (This is a bug on
3648 some variants of i386 svr4.0.) */
3649 for (i = 0; i < pagesize; ++i)
3650 *(data2 + i) = *(data2 + i) + 1;
3651 data3 = (char *) malloc (pagesize);
3654 if (read (fd, data3, pagesize) != pagesize)
3656 for (i = 0; i < pagesize; ++i)
3657 if (*(data + i) != *(data3 + i))
3663 rm -f conftest$ac_exeext
3664 if { (eval echo "$as_me:3664: \"$ac_link\"") >&5
3665 (eval $ac_link) 2>&5
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3672 echo "$as_me:3672: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_func_mmap_fixed_mapped=yes
3676 echo "$as_me: program exited with status $ac_status" >&5
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 ac_cv_func_mmap_fixed_mapped=no
3681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3684 echo "$as_me:3684: result: $ac_cv_func_mmap_fixed_mapped" >&5
3685 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3686 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3688 cat >>confdefs.h <<\EOF
3695 echo "$as_me:3695: checking return type of signal handlers" >&5
3696 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3697 if test "${ac_cv_type_signal+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 cat >conftest.$ac_ext <<_ACEOF
3701 #line 3701 "configure"
3702 #include "confdefs.h"
3703 #include <sys/types.h>
3709 extern "C" void (*signal (int, void (*)(int)))(int);
3711 void (*signal ()) ();
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:3723: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>&5
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:3729: \"$ac_try\"") >&5
3732 echo "$as_me:3732: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_type_signal=void
3736 echo "$as_me: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 ac_cv_type_signal=int
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3742 echo "$as_me:3742: result: $ac_cv_type_signal" >&5
3743 echo "${ECHO_T}$ac_cv_type_signal" >&6
3745 cat >>confdefs.h <<EOF
3746 #define RETSIGTYPE $ac_cv_type_signal
3749 echo "$as_me:3749: checking for dlopen in -ldl" >&5
3750 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3751 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 ac_check_lib_save_LIBS=$LIBS
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3760 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3775 rm -f conftest.$ac_objext conftest$ac_exeext
3776 if { (eval echo "$as_me:3776: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>&5
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -s conftest$ac_exeext'
3782 { (eval echo "$as_me:3782: \"$ac_try\"") >&5
3785 echo "$as_me:3785: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_lib_dl_dlopen=yes
3789 echo "$as_me: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 ac_cv_lib_dl_dlopen=no
3793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3796 echo "$as_me:3796: result: $ac_cv_lib_dl_dlopen" >&5
3797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3798 if test $ac_cv_lib_dl_dlopen = yes; then
3802 echo "$as_me:3802: checking for pow in -lm" >&5
3803 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
3804 if test "${ac_cv_lib_m_pow+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_check_lib_save_LIBS=$LIBS
3809 cat >conftest.$ac_ext <<_ACEOF
3810 #line 3810 "configure"
3811 #include "confdefs.h"
3813 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:3829: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>&5
3832 echo "$as_me:3832: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest$ac_exeext'
3835 { (eval echo "$as_me:3835: \"$ac_try\"") >&5
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3847 LIBS=$ac_check_lib_save_LIBS
3849 echo "$as_me:3849: result: $ac_cv_lib_m_pow" >&5
3850 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
3851 if test $ac_cv_lib_m_pow = yes; then
3852 LIB_YUV="${LIB_YUV} -lm"
3855 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
3856 CFLAGS="${CFLAGS} -I/usr/local/include"
3859 echo "$as_me:3859: checking for pthread_attr_init in -lpthread" >&5
3860 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
3861 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lpthread $LIBS"
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char pthread_attr_init ();
3880 pthread_attr_init ();
3885 rm -f conftest.$ac_objext conftest$ac_exeext
3886 if { (eval echo "$as_me:3886: \"$ac_link\"") >&5
3887 (eval $ac_link) 2>&5
3889 echo "$as_me:3889: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_lib_pthread_pthread_attr_init=yes
3899 echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 ac_cv_lib_pthread_pthread_attr_init=no
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904 LIBS=$ac_check_lib_save_LIBS
3906 echo "$as_me:3906: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
3907 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
3908 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
3909 PTHREAD_LIBS="-lpthread"
3912 if test "x$PTHREAD_LIBS" = xerror; then
3913 echo "$as_me:3913: checking for pthread_attr_init in -lpthreads" >&5
3914 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
3915 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_check_lib_save_LIBS=$LIBS
3919 LIBS="-lpthreads $LIBS"
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line 3921 "configure"
3922 #include "confdefs.h"
3924 /* Override any gcc2 internal prototype to avoid an error. */
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
3930 char pthread_attr_init ();
3934 pthread_attr_init ();
3939 rm -f conftest.$ac_objext conftest$ac_exeext
3940 if { (eval echo "$as_me:3940: \"$ac_link\"") >&5
3941 (eval $ac_link) 2>&5
3943 echo "$as_me:3943: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:3946: \"$ac_try\"") >&5
3949 echo "$as_me:3949: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_lib_pthreads_pthread_attr_init=yes
3953 echo "$as_me: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 ac_cv_lib_pthreads_pthread_attr_init=no
3957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3958 LIBS=$ac_check_lib_save_LIBS
3960 echo "$as_me:3960: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
3961 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
3962 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
3963 PTHREAD_LIBS="-lpthreads"
3967 if test "x$PTHREAD_LIBS" = xerror; then
3968 echo "$as_me:3968: checking for pthread_attr_init in -lc_r" >&5
3969 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
3970 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_check_lib_save_LIBS=$LIBS
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char pthread_attr_init ();
3989 pthread_attr_init ();
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>&5
3998 echo "$as_me:3998: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4004 echo "$as_me:4004: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_lib_c_r_pthread_attr_init=yes
4008 echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 ac_cv_lib_c_r_pthread_attr_init=no
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4015 echo "$as_me:4015: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
4016 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
4017 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
4018 PTHREAD_LIBS="-lc_r"
4022 if test "x$PTHREAD_LIBS" = xerror; then
4024 echo "$as_me:4024: checking for pthread_attr_init" >&5
4025 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
4026 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line 4030 "configure"
4031 #include "confdefs.h"
4032 /* System header to define __stub macros and hopefully few prototypes,
4033 which can conflict with char pthread_attr_init (); below. */
4035 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4041 char pthread_attr_init ();
4047 /* The GNU C library defines this for functions which it implements
4048 to always fail with ENOSYS. Some functions are actually named
4049 something starting with __ and the normal name is an alias. */
4050 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4053 f = pthread_attr_init;
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:4061: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4064 echo "$as_me:4064: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest$ac_exeext'
4067 { (eval echo "$as_me:4067: \"$ac_try\"") >&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 ac_cv_func_pthread_attr_init=yes
4074 echo "$as_me: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4076 ac_cv_func_pthread_attr_init=no
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4080 echo "$as_me:4080: result: $ac_cv_func_pthread_attr_init" >&5
4081 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
4084 LIB="${LIB} ${PTHREAD_LIBS}"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line 4087 "configure"
4088 #include "confdefs.h"
4089 #include <pthread.h>
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 egrep "pthread_cond_t" >/dev/null 2>&1; then
4095 cat >>confdefs.h <<\EOF
4096 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4105 #include <strings.h>
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "strncasecmp" >/dev/null 2>&1; then
4111 cat >>confdefs.h <<\EOF
4112 #define STRNCASECMP_IN_STRINGS_H 1
4118 for ac_header in stddef.h getopt.h strings.h
4120 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4121 echo "$as_me:4121: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.$ac_ext <<_ACEOF
4127 #line 4127 "configure"
4128 #include "confdefs.h"
4129 #include <$ac_header>
4131 if { (eval echo "$as_me:4131: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 egrep -v '^ *\+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:4137: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_c_preproc_warn_flag
4147 if test -z "$ac_cpp_err"; then
4148 eval "$ac_ac_Header=yes"
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 eval "$ac_ac_Header=no"
4154 rm -f conftest.err conftest.$ac_ext
4156 echo "$as_me:4156: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4157 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4158 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4159 cat >>confdefs.h <<EOF
4160 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4166 for ac_header in sys/sockio.h fcntl.h sys/time.h unistd.h
4168 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4169 echo "$as_me:4169: checking for $ac_header" >&5
4170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4171 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line 4175 "configure"
4176 #include "confdefs.h"
4177 #include <$ac_header>
4179 if { (eval echo "$as_me:4179: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_c_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4196 eval "$ac_ac_Header=yes"
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 eval "$ac_ac_Header=no"
4202 rm -f conftest.err conftest.$ac_ext
4204 echo "$as_me:4204: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4205 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4206 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4207 cat >>confdefs.h <<EOF
4208 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4214 for ac_header in sys/soundcard.h machine/soundcard.h
4216 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4217 echo "$as_me:4217: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4223 #line 4223 "configure"
4224 #include "confdefs.h"
4225 #include <$ac_header>
4227 if { (eval echo "$as_me:4227: \"$ac_cpp conftest.$ac_ext\"") >&5
4228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4230 egrep -v '^ *\+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:4233: \$? = $ac_status" >&5
4234 (exit $ac_status); } >/dev/null; then
4235 if test -s conftest.err; then
4236 ac_cpp_err=$ac_c_preproc_warn_flag
4243 if test -z "$ac_cpp_err"; then
4244 eval "$ac_ac_Header=yes"
4246 echo "$as_me: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4248 eval "$ac_ac_Header=no"
4250 rm -f conftest.err conftest.$ac_ext
4252 echo "$as_me:4252: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4253 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4254 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4255 cat >>confdefs.h <<EOF
4256 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4262 for ac_header in dlfcn.h image.h
4264 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4265 echo "$as_me:4265: checking for $ac_header" >&5
4266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4267 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 #line 4271 "configure"
4272 #include "confdefs.h"
4273 #include <$ac_header>
4275 if { (eval echo "$as_me:4275: \"$ac_cpp conftest.$ac_ext\"") >&5
4276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4278 egrep -v '^ *\+' conftest.er1 >conftest.err
4280 cat conftest.err >&5
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); } >/dev/null; then
4283 if test -s conftest.err; then
4284 ac_cpp_err=$ac_c_preproc_warn_flag
4291 if test -z "$ac_cpp_err"; then
4292 eval "$ac_ac_Header=yes"
4294 echo "$as_me: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 eval "$ac_ac_Header=no"
4298 rm -f conftest.err conftest.$ac_ext
4300 echo "$as_me:4300: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4302 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4303 cat >>confdefs.h <<EOF
4304 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4310 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4312 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4313 echo "$as_me:4313: checking for $ac_header" >&5
4314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4315 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4319 #line 4319 "configure"
4320 #include "confdefs.h"
4321 #include <$ac_header>
4323 if { (eval echo "$as_me:4323: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4326 egrep -v '^ *\+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null; then
4331 if test -s conftest.err; then
4332 ac_cpp_err=$ac_c_preproc_warn_flag
4339 if test -z "$ac_cpp_err"; then
4340 eval "$ac_ac_Header=yes"
4342 echo "$as_me: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 eval "$ac_ac_Header=no"
4346 rm -f conftest.err conftest.$ac_ext
4348 echo "$as_me:4348: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4349 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4350 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4351 cat >>confdefs.h <<EOF
4352 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4358 for ac_header in machine/param.h
4360 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4361 echo "$as_me:4361: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line 4367 "configure"
4368 #include "confdefs.h"
4369 #include <$ac_header>
4371 if { (eval echo "$as_me:4371: \"$ac_cpp conftest.$ac_ext\"") >&5
4372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4374 egrep -v '^ *\+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:4377: \$? = $ac_status" >&5
4378 (exit $ac_status); } >/dev/null; then
4379 if test -s conftest.err; then
4380 ac_cpp_err=$ac_c_preproc_warn_flag
4387 if test -z "$ac_cpp_err"; then
4388 eval "$ac_ac_Header=yes"
4390 echo "$as_me: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 eval "$ac_ac_Header=no"
4394 rm -f conftest.err conftest.$ac_ext
4396 echo "$as_me:4396: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4397 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4398 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4399 cat >>confdefs.h <<EOF
4400 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4406 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4408 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4409 echo "$as_me:4409: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line 4415 "configure"
4416 #include "confdefs.h"
4417 #include <$ac_header>
4419 if { (eval echo "$as_me:4419: \"$ac_cpp conftest.$ac_ext\"") >&5
4420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4422 egrep -v '^ *\+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null; then
4427 if test -s conftest.err; then
4428 ac_cpp_err=$ac_c_preproc_warn_flag
4435 if test -z "$ac_cpp_err"; then
4436 eval "$ac_ac_Header=yes"
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 eval "$ac_ac_Header=no"
4442 rm -f conftest.err conftest.$ac_ext
4444 echo "$as_me:4444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4447 cat >>confdefs.h <<EOF
4448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4454 CFLAGS="${CFLAGS} -Wall -Werror"
4455 echo "$as_me:4455: checking for ntohl in sys/param.h" >&5
4456 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line 4458 "configure"
4459 #include "confdefs.h"
4460 #include <sys/param.h>
4461 void foo() { int meuh; ntohl(meuh); }
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:4471: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4474 echo "$as_me:4474: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:4477: \"$ac_try\"") >&5
4480 echo "$as_me:4480: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4483 cat >>confdefs.h <<\EOF
4484 #define NTOHL_IN_SYS_PARAM_H 1
4487 echo "$as_me:4487: result: yes" >&5
4488 echo "${ECHO_T}yes" >&6
4490 echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 echo "$as_me:4492: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4495 rm -f conftest.$ac_objext conftest.$ac_ext
4497 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
4498 echo "$as_me:4498: checking if \$CC miserably fails with the -rdynamic flag" >&5
4499 echo $ECHO_N "checking if \$CC miserably fails with the -rdynamic flag... $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4501 #line 4501 "configure"
4502 #include "confdefs.h"
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:4513: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4516 echo "$as_me:4516: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:4519: \"$ac_try\"") >&5
4522 echo "$as_me:4522: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 LCFLAGS="${LCFLAGS} -rdynamic"
4525 echo "$as_me:4525: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4528 echo "$as_me: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 echo "$as_me:4530: result: yes" >&5
4531 echo "${ECHO_T}yes" >&6
4533 rm -f conftest.$ac_objext conftest.$ac_ext
4535 CFLAGS="${save_CFLAGS}"
4537 echo "$as_me:4537: checking for boolean_t in sys/types.h" >&5
4538 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4542 #include <sys/types.h>
4543 void quux() { boolean_t foo; }
4552 rm -f conftest.$ac_objext
4553 if { (eval echo "$as_me:4553: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:4559: \"$ac_try\"") >&5
4562 echo "$as_me:4562: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4565 cat >>confdefs.h <<\EOF
4566 #define BOOLEAN_T_IN_SYS_TYPES_H 1
4569 echo "$as_me:4569: result: yes" >&5
4570 echo "${ECHO_T}yes" >&6
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 echo "$as_me:4574: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4577 rm -f conftest.$ac_objext conftest.$ac_ext
4578 echo "$as_me:4578: checking for boolean_t in pthread.h" >&5
4579 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4583 #include <pthread.h>
4584 void quux() { boolean_t foo; }
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:4594: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4597 echo "$as_me:4597: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:4600: \"$ac_try\"") >&5
4603 echo "$as_me:4603: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4606 cat >>confdefs.h <<\EOF
4607 #define BOOLEAN_T_IN_PTHREAD_H 1
4610 echo "$as_me:4610: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 echo "$as_me:4615: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me:4620: checking for an ANSI C-conforming const" >&5
4621 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4622 if test "${ac_cv_c_const+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4626 #line 4626 "configure"
4627 #include "confdefs.h"
4632 /* FIXME: Include the comments suggested by Paul. */
4634 /* Ultrix mips cc rejects this. */
4635 typedef int charset[2];
4637 /* SunOS 4.1.1 cc rejects this. */
4638 char const *const *ccp;
4640 /* NEC SVR4.0.2 mips cc rejects this. */
4641 struct point {int x, y;};
4642 static struct point const zero = {0,0};
4643 /* AIX XL C 1.02.0.0 rejects this.
4644 It does not let you subtract one const X* pointer from another in
4645 an arm of an if-expression whose if-part is not a constant
4647 const char *g = "string";
4648 ccp = &g + (g ? g-g : 0);
4649 /* HPUX 7.0 cc rejects these. */
4652 ccp = (char const *const *) p;
4653 { /* SCO 3.2v4 cc rejects this. */
4655 char const *s = 0 ? (char *) 0 : (char const *) 0;
4659 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4661 const int *foo = &x[0];
4664 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4665 typedef const int *iptr;
4669 { /* AIX XL C 1.02.0.0 rejects this saying
4670 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4671 struct s { int j; const int *ap[3]; };
4672 struct s *b; b->j = 5;
4674 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:4684: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:4690: \"$ac_try\"") >&5
4693 echo "$as_me:4693: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4701 rm -f conftest.$ac_objext conftest.$ac_ext
4703 echo "$as_me:4703: result: $ac_cv_c_const" >&5
4704 echo "${ECHO_T}$ac_cv_c_const" >&6
4705 if test $ac_cv_c_const = no; then
4707 cat >>confdefs.h <<\EOF
4713 echo "$as_me:4713: checking for ANSI C header files" >&5
4714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4715 if test "${ac_cv_header_stdc+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line 4719 "configure"
4720 #include "confdefs.h"
4727 if { (eval echo "$as_me:4727: \"$ac_cpp conftest.$ac_ext\"") >&5
4728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 egrep -v '^ *\+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 echo "$as_me:4733: \$? = $ac_status" >&5
4734 (exit $ac_status); } >/dev/null; then
4735 if test -s conftest.err; then
4736 ac_cpp_err=$ac_c_preproc_warn_flag
4743 if test -z "$ac_cpp_err"; then
4744 ac_cv_header_stdc=yes
4746 echo "$as_me: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 ac_cv_header_stdc=no
4750 rm -f conftest.err conftest.$ac_ext
4752 if test $ac_cv_header_stdc = yes; then
4753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 egrep "memchr" >/dev/null 2>&1; then
4764 ac_cv_header_stdc=no
4770 if test $ac_cv_header_stdc = yes; then
4771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line 4773 "configure"
4774 #include "confdefs.h"
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 egrep "free" >/dev/null 2>&1; then
4782 ac_cv_header_stdc=no
4788 if test $ac_cv_header_stdc = yes; then
4789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790 if test "$cross_compiling" = yes; then
4793 cat >conftest.$ac_ext <<_ACEOF
4794 #line 4794 "configure"
4795 #include "confdefs.h"
4797 #if ((' ' & 0x0FF) == 0x020)
4798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4802 || ('j' <= (c) && (c) <= 'r') \
4803 || ('s' <= (c) && (c) <= 'z'))
4804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4812 for (i = 0; i < 256; i++)
4813 if (XOR (islower (i), ISLOWER (i))
4814 || toupper (i) != TOUPPER (i))
4819 rm -f conftest$ac_exeext
4820 if { (eval echo "$as_me:4820: \"$ac_link\"") >&5
4821 (eval $ac_link) 2>&5
4823 echo "$as_me:4823: \$? = $ac_status" >&5
4824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4825 { (eval echo "$as_me:4825: \"$ac_try\"") >&5
4828 echo "$as_me:4828: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4832 echo "$as_me: program exited with status $ac_status" >&5
4833 echo "$as_me: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 ac_cv_header_stdc=no
4837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4841 echo "$as_me:4841: result: $ac_cv_header_stdc" >&5
4842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4843 if test $ac_cv_header_stdc = yes; then
4845 cat >>confdefs.h <<\EOF
4846 #define STDC_HEADERS 1
4851 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
4853 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4854 echo "$as_me:4854: checking for $ac_header" >&5
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line 4860 "configure"
4861 #include "confdefs.h"
4862 #include <$ac_header>
4864 if { (eval echo "$as_me:4864: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867 egrep -v '^ *\+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:4870: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_c_preproc_warn_flag
4880 if test -z "$ac_cpp_err"; then
4881 eval "$ac_ac_Header=yes"
4883 echo "$as_me: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 eval "$ac_ac_Header=no"
4887 rm -f conftest.err conftest.$ac_ext
4889 echo "$as_me:4889: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4890 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4891 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4892 cat >>confdefs.h <<EOF
4893 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4899 echo "$as_me:4899: checking for size_t" >&5
4900 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4901 if test "${ac_cv_type_size_t+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line 4905 "configure"
4906 #include "confdefs.h"
4907 $ac_includes_default
4913 if (sizeof (size_t))
4919 rm -f conftest.$ac_objext
4920 if { (eval echo "$as_me:4920: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>&5
4923 echo "$as_me:4923: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:4926: \"$ac_try\"") >&5
4929 echo "$as_me:4929: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_type_size_t=yes
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_type_size_t=no
4937 rm -f conftest.$ac_objext conftest.$ac_ext
4939 echo "$as_me:4939: result: $ac_cv_type_size_t" >&5
4940 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4941 if test $ac_cv_type_size_t = yes; then
4945 cat >>confdefs.h <<EOF
4946 #define size_t unsigned
4951 echo "$as_me:4951: checking whether time.h and sys/time.h may both be included" >&5
4952 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4953 if test "${ac_cv_header_time+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line 4957 "configure"
4958 #include "confdefs.h"
4959 #include <sys/types.h>
4960 #include <sys/time.h>
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:4972: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>&5
4975 echo "$as_me:4975: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:4978: \"$ac_try\"") >&5
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_header_time=yes
4985 echo "$as_me: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 ac_cv_header_time=no
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4991 echo "$as_me:4991: result: $ac_cv_header_time" >&5
4992 echo "${ECHO_T}$ac_cv_header_time" >&6
4993 if test $ac_cv_header_time = yes; then
4995 cat >>confdefs.h <<\EOF
4996 #define TIME_WITH_SYS_TIME 1
5003 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
5007 MMX_PLUGINS="idctmmx motionmmx"
5008 MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn"
5011 MMX_PLUGINS="yuvmmx idctmmx motionmmx"
5012 MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
5016 echo "$as_me:5016: checking if \$CC groks MMX inline assembly" >&5
5017 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line 5019 "configure"
5020 #include "confdefs.h"
5021 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:5031: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5034 echo "$as_me:5034: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:5037: \"$ac_try\"") >&5
5040 echo "$as_me:5040: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMX_PLUGINS}"
5043 echo "$as_me:5043: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 echo "$as_me:5048: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5051 rm -f conftest.$ac_objext conftest.$ac_ext
5053 echo "$as_me:5053: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
5054 echo $ECHO_N "checking if \$CC groks MMX EXT or SSE inline assembly... $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line 5056 "configure"
5057 #include "confdefs.h"
5058 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:5068: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>&5
5071 echo "$as_me:5071: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:5074: \"$ac_try\"") >&5
5077 echo "$as_me:5077: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMXEXT_PLUGINS}"
5080 echo "$as_me:5080: result: yes" >&5
5081 echo "${ECHO_T}yes" >&6
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 echo "$as_me:5085: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5088 rm -f conftest.$ac_objext conftest.$ac_ext
5090 for ac_header in sys/ioctl.h
5092 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5093 echo "$as_me:5093: checking for $ac_header" >&5
5094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5095 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line 5099 "configure"
5100 #include "confdefs.h"
5101 #include <$ac_header>
5103 if { (eval echo "$as_me:5103: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 egrep -v '^ *\+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:5109: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null; then
5111 if test -s conftest.err; then
5112 ac_cpp_err=$ac_c_preproc_warn_flag
5119 if test -z "$ac_cpp_err"; then
5120 eval "$ac_ac_Header=yes"
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 eval "$ac_ac_Header=no"
5126 rm -f conftest.err conftest.$ac_ext
5128 echo "$as_me:5128: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5130 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5131 cat >>confdefs.h <<EOF
5132 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5135 BUILTINS="${BUILTINS} dvd"
5137 for ac_header in sys/cdio.h sys/dvdio.h linux/cdrom.h
5139 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5140 echo "$as_me:5140: checking for $ac_header" >&5
5141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5142 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #line 5146 "configure"
5147 #include "confdefs.h"
5148 #include <$ac_header>
5150 if { (eval echo "$as_me:5150: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5153 egrep -v '^ *\+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:5156: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5166 if test -z "$ac_cpp_err"; then
5167 eval "$ac_ac_Header=yes"
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 eval "$ac_ac_Header=no"
5173 rm -f conftest.err conftest.$ac_ext
5175 echo "$as_me:5175: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5176 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5177 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5178 cat >>confdefs.h <<EOF
5179 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line 5187 "configure"
5188 #include "confdefs.h"
5189 #include <sys/dvdio.h>
5192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5193 egrep "dvd_struct" >/dev/null 2>&1; then
5195 cat >>confdefs.h <<\EOF
5196 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5204 cat >conftest.$ac_ext <<_ACEOF
5205 #line 5205 "configure"
5206 #include "confdefs.h"
5207 #include <sys/cdio.h>
5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211 egrep "dvd_struct" >/dev/null 2>&1; then
5213 cat >>confdefs.h <<\EOF
5214 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5222 if test x$BSD_DVD_STRUCT = x1; then
5224 cat >>confdefs.h <<\EOF
5225 #define HAVE_BSD_DVD_STRUCT 1
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line 5230 "configure"
5231 #include "confdefs.h"
5232 #include <linux/cdrom.h>
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 egrep "dvd_struct" >/dev/null 2>&1; then
5238 cat >>confdefs.h <<\EOF
5239 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5248 # Check whether --enable-dummy or --disable-dummy was given.
5249 if test "${enable_dummy+set}" = set; then
5250 enableval="$enable_dummy"
5253 if test x$enable_dummy != xno; then
5254 BUILTINS="${BUILTINS} dummy"; fi
5256 # Check whether --enable-null or --disable-null was given.
5257 if test "${enable_null+set}" = set; then
5258 enableval="$enable_null"
5261 if test x$enable_null != xno; then
5262 BUILTINS="${BUILTINS} null"; fi
5264 # Check whether --enable-rc or --disable-rc was given.
5265 if test "${enable_rc+set}" = set; then
5266 enableval="$enable_rc"
5269 if test x$enable_rc != xno; then
5270 BUILTINS="${BUILTINS} rc"; fi
5272 # Check whether --enable-ppro or --disable-ppro was given.
5273 if test "${enable_ppro+set}" = set; then
5274 enableval="$enable_ppro"
5275 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
5277 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
5280 # Check whether --enable-mmx or --disable-mmx was given.
5281 if test "${enable_mmx+set}" = set; then
5282 enableval="$enable_mmx"
5283 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
5284 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
5286 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";
5287 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
5290 # Check whether --enable-altivec or --disable-altivec was given.
5291 if test "${enable_altivec+set}" = set; then
5292 enableval="$enable_altivec"
5293 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5294 BUILTINS="${BUILTINS} idctaltivec"
5295 LIB_IDCTALTIVEC="-framework vecLib"
5298 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
5300 # Check whether --enable-css or --disable-css was given.
5301 if test "${enable_css+set}" = set; then
5302 enableval="$enable_css"
5303 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
5307 if test x${CSS} = x1; then
5308 cat >>confdefs.h <<\EOF
5313 # Check whether --enable-debug or --disable-debug was given.
5314 if test "${enable_debug+set}" = set; then
5315 enableval="$enable_debug"
5316 if test x$enableval = xyes; then DEBUG=1; fi
5319 # Check whether --enable-stats or --disable-stats was given.
5320 if test "${enable_stats+set}" = set; then
5321 enableval="$enable_stats"
5322 if test x$enableval = xyes; then STATS=1; fi
5325 # Check whether --enable-trace or --disable-trace was given.
5326 if test "${enable_trace+set}" = set; then
5327 enableval="$enable_trace"
5328 if test x$enableval = xyes; then TRACE=1; fi
5331 # Check whether --enable-optimizations or --disable-optimizations was given.
5332 if test "${enable_optimizations+set}" = set; then
5333 enableval="$enable_optimizations"
5334 if test x$enableval = xno; then OPTIMS=0; fi
5341 if test x$host_os = xbeos; then
5342 BUILTINS="${BUILTINS} beos"
5343 LIB_BEOS="-lbe -lgame -lroot -ltracker"
5347 # Check whether --enable-dsp or --disable-dsp was given.
5348 if test "${enable_dsp+set}" = set; then
5349 enableval="$enable_dsp"
5352 if test x$enable_dsp != xno; then
5353 if test -c /dev/dsp; then
5354 PLUGINS="${PLUGINS} dsp"
5358 # Check whether --enable-esd or --disable-esd was given.
5359 if test "${enable_esd+set}" = set; then
5360 enableval="$enable_esd"
5361 if test x$enable_esd = xyes; then
5362 # Extract the first word of "esd-config", so it can be a program name with args.
5363 set dummy esd-config; ac_word=$2
5364 echo "$as_me:5364: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
5374 ac_save_IFS=$IFS; IFS=$ac_path_separator
5376 for ac_dir in $ac_dummy; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if $as_executable_p "$ac_dir/$ac_word"; then
5380 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
5381 echo "$as_me:5381: found $ac_dir/$ac_word" >&5
5386 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
5390 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
5392 if test -n "$ESD_CONFIG"; then
5393 echo "$as_me:5393: result: $ESD_CONFIG" >&5
5394 echo "${ECHO_T}$ESD_CONFIG" >&6
5396 echo "$as_me:5396: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5400 if test x${ESD_CONFIG} != xno; then
5401 PLUGINS="${PLUGINS} esd"
5402 LIB_ESD="`${ESD_CONFIG} --libs`"
5407 # Check whether --enable-darwin or --disable-darwin was given.
5408 if test "${enable_darwin+set}" = set; then
5409 enableval="$enable_darwin"
5410 if test x$enable_darwin = xyes; then
5411 PLUGINS="${PLUGINS} darwin"
5412 LIB_DARWIN="-framework CoreAudio"
5416 # Check whether --enable-macosx or --disable-macosx was given.
5417 if test "${enable_macosx+set}" = set; then
5418 enableval="$enable_macosx"
5419 if test x$enable_macosx = xyes; then
5420 BUILTINS="${BUILTINS} macosx"
5421 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
5422 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
5423 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
5427 for ac_header in Carbon/Carbon.h
5429 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5430 echo "$as_me:5430: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line 5436 "configure"
5437 #include "confdefs.h"
5438 #include <$ac_header>
5440 if { (eval echo "$as_me:5440: \"$ac_cpp conftest.$ac_ext\"") >&5
5441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5443 egrep -v '^ *\+' conftest.er1 >conftest.err
5445 cat conftest.err >&5
5446 echo "$as_me:5446: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev/null; then
5448 if test -s conftest.err; then
5449 ac_cpp_err=$ac_c_preproc_warn_flag
5456 if test -z "$ac_cpp_err"; then
5457 eval "$ac_ac_Header=yes"
5459 echo "$as_me: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5461 eval "$ac_ac_Header=no"
5463 rm -f conftest.err conftest.$ac_ext
5465 echo "$as_me:5465: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5466 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5467 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5468 cat >>confdefs.h <<EOF
5469 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5471 BUILTINS="${BUILTINS} macosx"
5472 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
5473 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
5474 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
5481 # Check whether --enable-fb or --disable-fb was given.
5482 if test "${enable_fb+set}" = set; then
5483 enableval="$enable_fb"
5484 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
5487 # Check whether --with-ggi or --without-ggi was given.
5488 if test "${with_ggi+set}" = set; then
5490 if test "x$withval" != "xno";
5492 PLUGINS="${PLUGINS} ggi";
5493 if test "x$withval" != "xyes";
5495 LIB_GGI="-l"$withval
5502 # Check whether --with-sdl or --without-sdl was given.
5503 if test "${with_sdl+set}" = set; then
5505 if test "x$withval" != "xno";
5507 PLUGINS="${PLUGINS} sdl";
5508 if test "x$withval" != "xyes";
5510 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
5511 INCLUDE="${INCLUDE} -I"$withval"/include"
5514 for ac_header in SDL/SDL.h
5516 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5517 echo "$as_me:5517: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line 5523 "configure"
5524 #include "confdefs.h"
5525 #include <$ac_header>
5527 if { (eval echo "$as_me:5527: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530 egrep -v '^ *\+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:5533: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_c_preproc_warn_flag
5543 if test -z "$ac_cpp_err"; then
5544 eval "$ac_ac_Header=yes"
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 eval "$ac_ac_Header=no"
5550 rm -f conftest.err conftest.$ac_ext
5552 echo "$as_me:5552: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5554 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5555 cat >>confdefs.h <<EOF
5556 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5560 echo "Cannot find SDL headers !"; exit
5564 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
5568 if test "x$withval" = "x";
5571 for ac_header in SDL/SDL.h
5573 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5574 echo "$as_me:5574: checking for $ac_header" >&5
5575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5576 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 #include <$ac_header>
5584 if { (eval echo "$as_me:5584: \"$ac_cpp conftest.$ac_ext\"") >&5
5585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5587 egrep -v '^ *\+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5600 if test -z "$ac_cpp_err"; then
5601 eval "$ac_ac_Header=yes"
5603 echo "$as_me: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 eval "$ac_ac_Header=no"
5607 rm -f conftest.err conftest.$ac_ext
5609 echo "$as_me:5609: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5611 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5612 cat >>confdefs.h <<EOF
5613 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5615 PLUGINS="${PLUGINS} sdl"
5616 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
5622 # Check whether --with-glide or --without-glide was given.
5623 if test "${with_glide+set}" = set; then
5624 withval="$with_glide"
5625 if test "x$withval" != "xno";
5627 PLUGINS="${PLUGINS} glide";
5628 if test "x$withval" != "xyes";
5630 LIB_GLIDE="-l"$withval
5632 LIB_GLIDE="-lglide2x"
5637 # Check whether --enable-ncurses or --disable-ncurses was given.
5638 if test "${enable_ncurses+set}" = set; then
5639 enableval="$enable_ncurses"
5640 if test x$enable_ncurses = xyes; then
5641 PLUGINS="${PLUGINS} ncurses"
5642 LIB_NCURSES="-lncurses"
5646 # Check whether --enable-qt or --disable-qt was given.
5647 if test "${enable_qt+set}" = set; then
5648 enableval="$enable_qt"
5649 if test x$enable_qt = xyes; then
5650 PLUGINS="${PLUGINS} qt"
5651 ALIASES="${ALIASES} qvlc"
5652 LIB_QT="-lqt -L${QTDIR}/lib"
5653 if test -x ${QTDIR}/bin/moc ;
5655 MOC=${QTDIR}/bin/moc
5662 # Check whether --enable-kde or --disable-kde was given.
5663 if test "${enable_kde+set}" = set; then
5664 enableval="$enable_kde"
5665 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi
5668 # Check whether --enable-gnome or --disable-gnome was given.
5669 if test "${enable_gnome+set}" = set; then
5670 enableval="$enable_gnome"
5671 if test x$enable_gnome = xyes; then
5672 PLUGINS="${PLUGINS} gnome"
5673 ALIASES="${ALIASES} gnome-vlc"
5674 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
5678 # Check whether --enable-gtk or --disable-gtk was given.
5679 if test "${enable_gtk+set}" = set; then
5680 enableval="$enable_gtk"
5683 if test x$enable_gtk != xno; then
5684 # Extract the first word of "gtk-config", so it can be a program name with args.
5685 set dummy gtk-config; ac_word=$2
5686 echo "$as_me:5686: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5696 ac_save_IFS=$IFS; IFS=$ac_path_separator
5698 for ac_dir in $ac_dummy; do
5700 test -z "$ac_dir" && ac_dir=.
5701 if $as_executable_p "$ac_dir/$ac_word"; then
5702 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5703 echo "$as_me:5703: found $ac_dir/$ac_word" >&5
5708 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5712 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
5714 if test -n "$GTK_CONFIG"; then
5715 echo "$as_me:5715: result: $GTK_CONFIG" >&5
5716 echo "${ECHO_T}$GTK_CONFIG" >&6
5718 echo "$as_me:5718: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5722 if test x${GTK_CONFIG} != xno; then
5723 PLUGINS="${PLUGINS} gtk"
5724 ALIASES="${ALIASES} gvlc"
5725 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5726 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5730 # Check whether --enable-x11 or --disable-x11 was given.
5731 if test "${enable_x11+set}" = set; then
5732 enableval="$enable_x11"
5735 if test x$enable_x11 != xno; then
5736 if test x$x_includes = xNONE; then
5737 x_includes=/usr/X11R6/include
5739 if test x$x_libraries = xNONE; then
5740 x_libraries=/usr/X11R6/lib
5742 saved_CPPFLAGS=$CPPFLAGS
5743 CPPFLAGS="$CPPFLAGS -I$x_includes"
5745 for ac_header in X11/Xlib.h
5747 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5748 echo "$as_me:5748: checking for $ac_header" >&5
5749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5750 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5754 #line 5754 "configure"
5755 #include "confdefs.h"
5756 #include <$ac_header>
5758 if { (eval echo "$as_me:5758: \"$ac_cpp conftest.$ac_ext\"") >&5
5759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5761 egrep -v '^ *\+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:5764: \$? = $ac_status" >&5
5765 (exit $ac_status); } >/dev/null; then
5766 if test -s conftest.err; then
5767 ac_cpp_err=$ac_c_preproc_warn_flag
5774 if test -z "$ac_cpp_err"; then
5775 eval "$ac_ac_Header=yes"
5777 echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 eval "$ac_ac_Header=no"
5781 rm -f conftest.err conftest.$ac_ext
5783 echo "$as_me:5783: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5784 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5785 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5786 cat >>confdefs.h <<EOF
5787 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5790 PLUGINS="${PLUGINS} x11"
5791 LIB_X11="-L$x_libraries -lX11 -lXext"
5792 CFLAGS_X11="-I$x_includes"
5794 CPPFLAGS=$saved_CPPFLAGS
5800 # Check whether --enable-xvideo or --disable-xvideo was given.
5801 if test "${enable_xvideo+set}" = set; then
5802 enableval="$enable_xvideo"
5805 if test x$enable_xvideo != xno; then
5806 if test x$x_includes = xNONE; then
5807 x_includes=/usr/X11R6/include
5809 if test x$x_libraries = xNONE; then
5810 x_libraries=/usr/X11R6/lib
5812 saved_CPPFLAGS=$CPPFLAGS
5813 CPPFLAGS="$CPPFLAGS -I$x_includes"
5815 for ac_header in X11/extensions/Xv.h
5817 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5818 echo "$as_me:5818: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5820 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line 5824 "configure"
5825 #include "confdefs.h"
5826 #include <$ac_header>
5828 if { (eval echo "$as_me:5828: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5831 egrep -v '^ *\+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5844 if test -z "$ac_cpp_err"; then
5845 eval "$ac_ac_Header=yes"
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 eval "$ac_ac_Header=no"
5851 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:5853: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5854 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5855 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5856 cat >>confdefs.h <<EOF
5857 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5860 PLUGINS="${PLUGINS} xvideo"
5861 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5862 CFLAGS_X11="-I$x_includes"
5864 CPPFLAGS=$saved_CPPFLAGS
5870 # Check whether --enable-alsa or --disable-alsa was given.
5871 if test "${enable_alsa+set}" = set; then
5872 enableval="$enable_alsa"
5873 if test x$enable_alsa = xyes; then echo "$as_me:5873: checking for sys/asoundlib.h" >&5
5874 echo $ECHO_N "checking for sys/asoundlib.h... $ECHO_C" >&6
5875 if test "${ac_cv_header_sys_asoundlib_h+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5879 #line 5879 "configure"
5880 #include "confdefs.h"
5881 #include <sys/asoundlib.h>
5883 if { (eval echo "$as_me:5883: \"$ac_cpp conftest.$ac_ext\"") >&5
5884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5886 egrep -v '^ *\+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 (exit $ac_status); } >/dev/null; then
5891 if test -s conftest.err; then
5892 ac_cpp_err=$ac_c_preproc_warn_flag
5899 if test -z "$ac_cpp_err"; then
5900 ac_cv_header_sys_asoundlib_h=yes
5902 echo "$as_me: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 ac_cv_header_sys_asoundlib_h=no
5906 rm -f conftest.err conftest.$ac_ext
5908 echo "$as_me:5908: result: $ac_cv_header_sys_asoundlib_h" >&5
5909 echo "${ECHO_T}$ac_cv_header_sys_asoundlib_h" >&6
5910 if test $ac_cv_header_sys_asoundlib_h = yes; then
5911 echo "$as_me:5911: checking for main in -lasound" >&5
5912 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
5913 if test "${ac_cv_lib_asound_main+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_check_lib_save_LIBS=$LIBS
5917 LIBS="-lasound $LIBS"
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line 5919 "configure"
5920 #include "confdefs.h"
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:5937: \"$ac_try\"") >&5
5940 echo "$as_me:5940: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_asound_main=yes
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_asound_main=no
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5951 echo "$as_me:5951: result: $ac_cv_lib_asound_main" >&5
5952 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
5953 if test $ac_cv_lib_asound_main = yes; then
5962 if test x$have_alsa = xtrue; then
5963 PLUGINS="${PLUGINS} alsa"
5970 ac_config_files="$ac_config_files Makefile.opts include/config.h"
5971 cat >confcache <<\_ACEOF
5972 # This file is a shell script that caches the results of configure
5973 # tests run on this system so they can be shared between configure
5974 # scripts and configure runs, see configure's option --config-cache.
5975 # It is not useful on other systems. If it contains results you don't
5976 # want to keep, you may remove or edit it.
5978 # config.status only pays attention to the cache file if you give it
5979 # the --recheck option to rerun configure.
5981 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5987 # The following way of writing the cache mishandles newlines in values,
5988 # but we know of no workaround that is simple, portable, and efficient.
5989 # So, don't put newlines in cache variables' values.
5990 # Ultrix sh set writes to stderr and can't be redirected directly,
5991 # and sets the high bit in the cache file unless we assign to the vars.
5994 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5996 # `set' does not quote correctly, so add quotes (double-quote
5997 # substitution turns \\\\ into \\, and sed turns \\ into \).
6000 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6003 # `set' quotes correctly as required by POSIX, so do not add quotes.
6005 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6014 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6016 if cmp -s $cache_file confcache; then :; else
6017 if test -w $cache_file; then
6018 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6019 cat confcache >$cache_file
6021 echo "not updating unwritable cache $cache_file"
6026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6027 # Let make expand exec_prefix.
6028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6030 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6031 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6032 # trailing colons and then remove the whole line if VPATH becomes empty
6033 # (actually we leave an empty line to preserve line numbers).
6034 if test "x$srcdir" = x.; then
6035 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6036 s/:*\$(srcdir):*/:/;
6037 s/:*\${srcdir}:*/:/;
6039 s/^\([^=]*=[ ]*\):*/\1/;
6045 DEFS=-DHAVE_CONFIG_H
6047 : ${CONFIG_STATUS=./config.status}
6048 ac_clean_files_save=$ac_clean_files
6049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6050 { echo "$as_me:6050: creating $CONFIG_STATUS" >&5
6051 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6052 cat >$CONFIG_STATUS <<_ACEOF
6054 # Generated automatically by configure.
6055 # Run this file to recreate the current configuration.
6056 # Compiler output produced by configure, useful for debugging
6057 # configure, is in config.log if it exists.
6060 SHELL=\${CONFIG_SHELL-$SHELL}
6061 ac_cs_invocation="\$0 \$@"
6065 cat >>$CONFIG_STATUS <<\_ACEOF
6066 # Be Bourne compatible
6067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6070 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6074 # Name of the executable.
6075 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6077 if expr a : '\(a\)' >/dev/null 2>&1; then
6083 rm -f conf$$ conf$$.exe conf$$.file
6085 if ln -s conf$$.file conf$$ 2>/dev/null; then
6086 # We could just check for DJGPP; but this test a) works b) is more generic
6087 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6088 if test -f conf$$.exe; then
6089 # Don't use ln at all; we don't have any links
6094 elif ln conf$$.file conf$$ 2>/dev/null; then
6099 rm -f conf$$ conf$$.exe conf$$.file
6101 as_executable_p="test -f"
6103 # Support unset when possible.
6104 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6111 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6112 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6113 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6114 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6115 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6116 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6117 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6118 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6121 # We need space, tab and new line, in precisely that order.
6127 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6133 # Files that config.status was made for.
6134 if test -n "$ac_config_files"; then
6135 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6138 if test -n "$ac_config_headers"; then
6139 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6142 if test -n "$ac_config_links"; then
6143 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6146 if test -n "$ac_config_commands"; then
6147 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6150 cat >>$CONFIG_STATUS <<\EOF
6153 \`$as_me' instantiates files from templates according to the
6154 current configuration.
6156 Usage: $0 [OPTIONS] [FILE]...
6158 -h, --help print this help, then exit
6159 -V, --version print version number, then exit
6160 -d, --debug don't remove temporary files
6161 --recheck update $as_me by reconfiguring in the same conditions
6162 --file=FILE[:TEMPLATE]
6163 instantiate the configuration file FILE
6164 --header=FILE[:TEMPLATE]
6165 instantiate the configuration header FILE
6167 Configuration files:
6170 Configuration headers:
6173 Report bugs to <bug-autoconf@gnu.org>."
6176 cat >>$CONFIG_STATUS <<EOF
6179 configured by $0, generated by GNU Autoconf 2.50,
6180 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6182 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6183 Free Software Foundation, Inc.
6184 This config.status script is free software; the Free Software Foundation
6185 gives unlimited permission to copy, distribute and modify it."
6190 cat >>$CONFIG_STATUS <<\EOF
6191 # If no file are specified by the user, then we need to provide default
6192 # value. By we need to know if files were specified by the user.
6198 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6199 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6201 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6205 *) # This is not an option, so the user has probably given explicit
6207 ac_need_defaults=false;;
6211 # Handling of the options.
6213 cat >>$CONFIG_STATUS <<EOF
6214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6215 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6216 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6218 cat >>$CONFIG_STATUS <<\EOF
6219 --version | --vers* | -V )
6220 echo "$ac_cs_version"; exit 0 ;;
6222 # Conflict between --help and --header
6223 { { echo "$as_me:6223: error: ambiguous option: $1
6224 Try \`$0 --help' for more information." >&5
6225 echo "$as_me: error: ambiguous option: $1
6226 Try \`$0 --help' for more information." >&2;}
6227 { (exit 1); exit 1; }; };;
6228 --help | --hel | -h )
6229 echo "$ac_cs_usage"; exit 0 ;;
6230 --debug | --d* | -d )
6232 --file | --fil | --fi | --f )
6234 CONFIG_FILES="$CONFIG_FILES $1"
6235 ac_need_defaults=false;;
6236 --header | --heade | --head | --hea )
6238 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6239 ac_need_defaults=false;;
6241 # Handling of arguments.
6242 'Makefile.opts' ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
6243 'include/config.h' ) CONFIG_FILES="$CONFIG_FILES include/config.h" ;;
6244 'include/defs.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
6247 -*) { { echo "$as_me:6247: error: unrecognized option: $1
6248 Try \`$0 --help' for more information." >&5
6249 echo "$as_me: error: unrecognized option: $1
6250 Try \`$0 --help' for more information." >&2;}
6251 { (exit 1); exit 1; }; } ;;
6252 *) { { echo "$as_me:6252: error: invalid argument: $1" >&5
6253 echo "$as_me: error: invalid argument: $1" >&2;}
6254 { (exit 1); exit 1; }; };;
6262 ## ----------------------- ##
6263 ## Running config.status. ##
6264 ## ----------------------- ##
6266 This file was extended by $as_me 2.50, executed with
6268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6273 cat >>$CONFIG_STATUS <<\EOF
6274 # If the user did not use the arguments to specify the items to instantiate,
6275 # then the envvar interface is used. Set only those that are not.
6276 # We use the long form for the default assignment because of an extremely
6277 # bizarre bug on SunOS 4.1.3.
6278 if $ac_need_defaults; then
6279 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6280 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6283 # Create a temporary directory, and hook for its removal unless debugging.
6286 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6287 trap '{ (exit $?); exit $?; }' 1 2 13 15
6290 # Create a (secure) tmp directory for tmp files.
6293 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6294 test -n "$tmp" && test -d "$tmp"
6297 tmp=$TMPDIR/cs$$-$RANDOM
6298 (umask 077 && mkdir $tmp)
6301 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6302 { (exit 1); exit 1; }
6307 cat >>$CONFIG_STATUS <<EOF
6310 # CONFIG_FILES section.
6313 # No need to generate the scripts if there are no CONFIG_FILES.
6314 # This happens for instance when ./config.status config.h
6315 if test -n "\$CONFIG_FILES"; then
6316 # Protect against being on the right side of a sed subst in config.status.
6317 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6318 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6319 s,@SHELL@,$SHELL,;t t
6320 s,@exec_prefix@,$exec_prefix,;t t
6321 s,@prefix@,$prefix,;t t
6322 s,@program_transform_name@,$program_transform_name,;t t
6323 s,@bindir@,$bindir,;t t
6324 s,@sbindir@,$sbindir,;t t
6325 s,@libexecdir@,$libexecdir,;t t
6326 s,@datadir@,$datadir,;t t
6327 s,@sysconfdir@,$sysconfdir,;t t
6328 s,@sharedstatedir@,$sharedstatedir,;t t
6329 s,@localstatedir@,$localstatedir,;t t
6330 s,@libdir@,$libdir,;t t
6331 s,@includedir@,$includedir,;t t
6332 s,@oldincludedir@,$oldincludedir,;t t
6333 s,@infodir@,$infodir,;t t
6334 s,@mandir@,$mandir,;t t
6335 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6336 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6337 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6338 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6339 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6340 s,@ECHO_C@,$ECHO_C,;t t
6341 s,@ECHO_N@,$ECHO_N,;t t
6342 s,@ECHO_T@,$ECHO_T,;t t
6343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6346 s,@build@,$build,;t t
6347 s,@build_cpu@,$build_cpu,;t t
6348 s,@build_vendor@,$build_vendor,;t t
6349 s,@build_os@,$build_os,;t t
6351 s,@host_cpu@,$host_cpu,;t t
6352 s,@host_vendor@,$host_vendor,;t t
6353 s,@host_os@,$host_os,;t t
6354 s,@VLC_VERSION@,$VLC_VERSION,;t t
6355 s,@VLC_CODENAME@,$VLC_CODENAME,;t t
6356 s,@SET_MAKE@,$SET_MAKE,;t t
6358 s,@CFLAGS@,$CFLAGS,;t t
6359 s,@LDFLAGS@,$LDFLAGS,;t t
6360 s,@CPPFLAGS@,$CPPFLAGS,;t t
6361 s,@ac_ct_CC@,$ac_ct_CC,;t t
6362 s,@EXEEXT@,$EXEEXT,;t t
6363 s,@OBJEXT@,$OBJEXT,;t t
6365 s,@RANLIB@,$RANLIB,;t t
6366 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6367 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6368 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6369 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6370 s,@GETOPT@,$GETOPT,;t t
6371 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
6372 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
6375 s,@PLUGINS@,$PLUGINS,;t t
6376 s,@BUILTINS@,$BUILTINS,;t t
6377 s,@ALIASES@,$ALIASES,;t t
6378 s,@DEFINE@,$DEFINE,;t t
6379 s,@INCLUDE@,$INCLUDE,;t t
6380 s,@DEBUG@,$DEBUG,;t t
6381 s,@STATS@,$STATS,;t t
6382 s,@TRACE@,$TRACE,;t t
6383 s,@OPTIMS@,$OPTIMS,;t t
6386 s,@LCFLAGS@,$LCFLAGS,;t t
6388 s,@LIB_ALSA@,$LIB_ALSA,;t t
6389 s,@LIB_BEOS@,$LIB_BEOS,;t t
6390 s,@LIB_DARWIN@,$LIB_DARWIN,;t t
6391 s,@LIB_ESD@,$LIB_ESD,;t t
6392 s,@LIB_GGI@,$LIB_GGI,;t t
6393 s,@LIB_GLIDE@,$LIB_GLIDE,;t t
6394 s,@LIB_GNOME@,$LIB_GNOME,;t t
6395 s,@LIB_GTK@,$LIB_GTK,;t t
6396 s,@LIB_IDCTALTIVEC@,$LIB_IDCTALTIVEC,;t t
6397 s,@LIB_MACOSX@,$LIB_MACOSX,;t t
6398 s,@LIB_NCURSES@,$LIB_NCURSES,;t t
6399 s,@LIB_QT@,$LIB_QT,;t t
6400 s,@LIB_TS@,$LIB_TS,;t t
6401 s,@LIB_SDL@,$LIB_SDL,;t t
6402 s,@LIB_X11@,$LIB_X11,;t t
6403 s,@LIB_XVIDEO@,$LIB_XVIDEO,;t t
6404 s,@LIB_YUV@,$LIB_YUV,;t t
6405 s,@CFLAGS_VLC@,$CFLAGS_VLC,;t t
6406 s,@CFLAGS_GTK@,$CFLAGS_GTK,;t t
6407 s,@CFLAGS_X11@,$CFLAGS_X11,;t t
6412 cat >>$CONFIG_STATUS <<\EOF
6413 # Split the substitutions into bite-sized pieces for seds with
6414 # small command number limits, like on Digital OSF/1 and HP-UX.
6416 ac_sed_frag=1 # Number of current file.
6417 ac_beg=1 # First line for current file.
6418 ac_end=$ac_max_sed_lines # Line after last line for current file.
6421 while $ac_more_lines; do
6422 if test $ac_beg -gt 1; then
6423 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6425 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6427 if test ! -s $tmp/subs.frag; then
6430 # The purpose of the label and of the branching condition is to
6431 # speed up the sed processing (if there are no `@' at all, there
6432 # is no need to browse any of the substitutions).
6433 # These are the two extra sed commands mentioned above.
6435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6436 if test -z "$ac_sed_cmds"; then
6437 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6439 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6441 ac_sed_frag=`expr $ac_sed_frag + 1`
6443 ac_end=`expr $ac_end + $ac_max_sed_lines`
6446 if test -z "$ac_sed_cmds"; then
6449 fi # test -n "$CONFIG_FILES"
6452 cat >>$CONFIG_STATUS <<\EOF
6453 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6456 - | *:- | *:-:* ) # input from stdin
6458 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6459 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6460 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6462 * ) ac_file_in=$ac_file.in ;;
6465 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6466 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6467 X"$ac_file" : 'X\(//\)[^/]' \| \
6468 X"$ac_file" : 'X\(//\)$' \| \
6469 X"$ac_file" : 'X\(/\)' \| \
6470 . : '\(.\)' 2>/dev/null ||
6472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6474 /^X\(\/\/\)$/{ s//\1/; q; }
6475 /^X\(\/\).*/{ s//\1/; q; }
6477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6479 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6483 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6484 case $as_mkdir_dir in
6485 # Skip DOS drivespec
6486 ?:) as_incr_dir=$as_mkdir_dir ;;
6488 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6489 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6494 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6495 # A "../" for each directory in $ac_dir_suffix.
6496 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6498 ac_dir_suffix= ac_dots=
6503 if test -z "$ac_dots"; then
6506 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6509 ac_srcdir=$srcdir$ac_dir_suffix;
6510 ac_top_srcdir=$srcdir ;;
6512 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6513 ac_top_srcdir=$ac_dots$srcdir ;;
6517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6518 *) ac_INSTALL=$ac_dots$INSTALL ;;
6521 if test x"$ac_file" != x-; then
6522 { echo "$as_me:6522: creating $ac_file" >&5
6523 echo "$as_me: creating $ac_file" >&6;}
6526 # Let's still pretend it is `configure' which instantiates (i.e., don't
6527 # use $as_me), people would be surprised to read:
6528 # /* config.h. Generated automatically by config.status. */
6529 configure_input="Generated automatically from `echo $ac_file_in |
6530 sed 's,.*/,,'` by configure."
6532 # First look for the input files in the build tree, otherwise in the
6534 ac_file_inputs=`IFS=:
6535 for f in $ac_file_in; do
6537 -) echo $tmp/stdin ;;
6539 # Absolute (can't be DOS-style, as IFS=:)
6540 test -f "$f" || { { echo "$as_me:6540: error: cannot find input file: $f" >&5
6541 echo "$as_me: error: cannot find input file: $f" >&2;}
6542 { (exit 1); exit 1; }; }
6545 if test -f "$f"; then
6548 elif test -f "$srcdir/$f"; then
6553 { { echo "$as_me:6553: error: cannot find input file: $f" >&5
6554 echo "$as_me: error: cannot find input file: $f" >&2;}
6555 { (exit 1); exit 1; }; }
6558 done` || { (exit 1); exit 1; }
6560 cat >>$CONFIG_STATUS <<EOF
6564 cat >>$CONFIG_STATUS <<\EOF
6566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6567 s,@configure_input@,$configure_input,;t t
6568 s,@srcdir@,$ac_srcdir,;t t
6569 s,@top_srcdir@,$ac_top_srcdir,;t t
6570 s,@INSTALL@,$ac_INSTALL,;t t
6571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6573 if test x"$ac_file" != x-; then
6574 mv $tmp/out $ac_file
6582 cat >>$CONFIG_STATUS <<\EOF
6585 # CONFIG_HEADER section.
6588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6591 # ac_d sets the value in "#define NAME VALUE" lines.
6592 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6593 ac_dB='[ ].*$,\1#\2'
6596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6597 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6598 ac_uB='$,\1#\2define\3'
6602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6605 - | *:- | *:-:* ) # input from stdin
6607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6611 * ) ac_file_in=$ac_file.in ;;
6614 test x"$ac_file" != x- && { echo "$as_me:6614: creating $ac_file" >&5
6615 echo "$as_me: creating $ac_file" >&6;}
6617 # First look for the input files in the build tree, otherwise in the
6619 ac_file_inputs=`IFS=:
6620 for f in $ac_file_in; do
6622 -) echo $tmp/stdin ;;
6624 # Absolute (can't be DOS-style, as IFS=:)
6625 test -f "$f" || { { echo "$as_me:6625: error: cannot find input file: $f" >&5
6626 echo "$as_me: error: cannot find input file: $f" >&2;}
6627 { (exit 1); exit 1; }; }
6630 if test -f "$f"; then
6633 elif test -f "$srcdir/$f"; then
6638 { { echo "$as_me:6638: error: cannot find input file: $f" >&5
6639 echo "$as_me: error: cannot find input file: $f" >&2;}
6640 { (exit 1); exit 1; }; }
6643 done` || { (exit 1); exit 1; }
6644 # Remove the trailing spaces.
6645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6650 # `conftest.undefs', that substitutes the proper values into
6651 # config.h.in to produce config.h. The first handles `#define'
6652 # templates, and the second `#undef' templates.
6653 # And first: Protect against being on the right side of a sed subst in
6654 # config.status. Protect against being in an unquoted here document
6656 rm -f conftest.defines conftest.undefs
6657 # Using a here document instead of a string reduces the quoting nightmare.
6658 # Putting comments in sed scripts is not portable.
6660 # `end' is used to avoid that the second main sed command (meant for
6661 # 0-ary CPP macros) applies to n-ary macro definitions.
6662 # See the Autoconf documentation for `clear'.
6663 cat >confdef2sed.sed <<\EOF
6668 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6673 # If some macros were called several times there might be several times
6674 # the same #defines, which is useless. Nevertheless, we may not want to
6675 # sort them, since we want the *last* AC-DEFINE to be honored.
6676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6678 rm -f confdef2sed.sed
6680 # This sed command replaces #undef with comments. This is necessary, for
6681 # example, in the case of _POSIX_SOURCE, which is predefined and required
6682 # on some systems where configure will not decide to define it.
6683 cat >>conftest.undefs <<\EOF
6684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6687 # Break up conftest.defines because some shells have a limit on the size
6688 # of here documents, and old seds have small limits too (100 cmds).
6689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6690 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6692 echo ' :' >>$CONFIG_STATUS
6694 while grep . conftest.defines >/dev/null
6696 # Write a limited-size here document to $tmp/defines.sed.
6697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6698 # Speed up: don't consider the non `#define' lines.
6699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6700 # Work around the forget-to-reset-the-flag bug.
6701 echo 't clr' >>$CONFIG_STATUS
6702 echo ': clr' >>$CONFIG_STATUS
6703 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6709 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6710 rm -f conftest.defines
6711 mv conftest.tail conftest.defines
6713 rm -f conftest.defines
6714 echo ' fi # egrep' >>$CONFIG_STATUS
6715 echo >>$CONFIG_STATUS
6717 # Break up conftest.undefs because some shells have a limit on the size
6718 # of here documents, and old seds have small limits too (100 cmds).
6719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6721 while grep . conftest.undefs >/dev/null
6723 # Write a limited-size here document to $tmp/undefs.sed.
6724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6725 # Speed up: don't consider the non `#undef'
6726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6727 # Work around the forget-to-reset-the-flag bug.
6728 echo 't clr' >>$CONFIG_STATUS
6729 echo ': clr' >>$CONFIG_STATUS
6730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6737 rm -f conftest.undefs
6738 mv conftest.tail conftest.undefs
6740 rm -f conftest.undefs
6742 cat >>$CONFIG_STATUS <<\EOF
6743 # Let's still pretend it is `configure' which instantiates (i.e., don't
6744 # use $as_me), people would be surprised to read:
6745 # /* config.h. Generated automatically by config.status. */
6746 if test x"$ac_file" = x-; then
6747 echo "/* Generated automatically by configure. */" >$tmp/config.h
6749 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
6751 cat $tmp/in >>$tmp/config.h
6753 if test x"$ac_file" != x-; then
6754 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6755 { echo "$as_me:6755: $ac_file is unchanged" >&5
6756 echo "$as_me: $ac_file is unchanged" >&6;}
6758 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6759 X"$ac_file" : 'X\(//\)[^/]' \| \
6760 X"$ac_file" : 'X\(//\)$' \| \
6761 X"$ac_file" : 'X\(/\)' \| \
6762 . : '\(.\)' 2>/dev/null ||
6764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6766 /^X\(\/\/\)$/{ s//\1/; q; }
6767 /^X\(\/\).*/{ s//\1/; q; }
6769 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6771 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6776 case $as_mkdir_dir in
6777 # Skip DOS drivespec
6778 ?:) as_incr_dir=$as_mkdir_dir ;;
6780 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6781 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6788 mv $tmp/config.h $ac_file
6797 cat >>$CONFIG_STATUS <<\EOF
6799 { (exit 0); exit 0; }
6801 chmod +x $CONFIG_STATUS
6802 ac_clean_files=$ac_clean_files_save
6804 # configure is writing to config.log, and then calls config.status.
6805 # config.status does its own redirection, appending to config.log.
6806 # Unfortunately, on DOS this fails, as config.log is still kept open
6807 # by configure, so config.status won't be able to write to it; its
6808 # output is simply discarded. So we exec the FD to /dev/null,
6809 # effectively closing config.log, so it can be properly (re)opened and
6810 # appended to by config.status. When coming back to configure, we
6811 # need to make the FD available again.
6812 if test "$no_create" != yes; then
6815 $SHELL $CONFIG_STATUS || ac_cs_success=false
6817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6818 # would make configure fail if this is the last instruction.
6819 $ac_cs_success || { (exit 1); exit 1; }
6825 vlc version : ${VLC_VERSION}
6827 architecture : ${ARCH}
6828 debug mode : ${DEBUG}
6829 statistics : ${STATS}
6830 trace mode : ${TRACE}
6831 optimizations : ${OPTIMS}
6832 CSS decryption : ${CSS}
6833 need builtin getopt : ${GETOPT}
6834 built-in modules :${BUILTINS}
6835 plugin modules :${PLUGINS}
6836 vlc aliases :${ALIASES}
6838 You may now tune Makefile.opts at your convenience."