2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for RtAudio 3.0.
5 # Report bugs to <gary@ccrma.stanford.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='RtAudio'
270 PACKAGE_TARNAME='rtaudio'
271 PACKAGE_VERSION='3.0'
272 PACKAGE_STRING='RtAudio 3.0'
273 PACKAGE_BUGREPORT='gary@ccrma.stanford.edu'
275 ac_unique_file="RtAudio.cpp"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GXX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP debug cflags object_path warn build build_cpu build_vendor build_os host host_cpu host_vendor host_os sound_api audio_apis frameworks LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
784 # Report the --help message.
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
790 \`configure' configures RtAudio 3.0 to adapt to many kinds of systems.
792 Usage: $0 [OPTION]... [VAR=VALUE]...
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
797 Defaults for the options are specified in brackets.
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
824 For better control, use the options below.
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
849 if test -n "$ac_init_help"; then
850 case $ac_init_help in
851 short | recursive ) echo "Configuration of RtAudio 3.0:";;
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-debug = enable various debug output
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-jack = choose JACK server support (linux only)
864 --with-alsa = choose native ALSA API support (linux only)
865 --with-oss = choose OSS API support (linux only)
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
881 Report bugs to <gary@ccrma.stanford.edu>.
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 ac_dir_suffix= ac_top_builddir=
901 .) # No --srcdir option. We are building in place.
903 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
918 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
923 # Check for guested configure; otherwise get Cygnus style configure.
924 if test -f $ac_srcdir/configure.gnu; then
926 $SHELL $ac_srcdir/configure.gnu --help=recursive
927 elif test -f $ac_srcdir/configure; then
929 $SHELL $ac_srcdir/configure --help=recursive
930 elif test -f $ac_srcdir/configure.ac ||
931 test -f $ac_srcdir/configure.in; then
935 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941 test -n "$ac_init_help" && exit 0
942 if $ac_init_version; then
944 RtAudio configure 3.0
945 generated by GNU Autoconf 2.57
947 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
948 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
959 It was created by RtAudio $as_me 3.0, which was
960 generated by GNU Autoconf 2.57. Invocation command line was
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 test -z "$as_dir" && as_dir=.
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_must_keep_next=false
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048 -* ) ac_must_keep_next=true ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1077 # The following way of writing the cache mishandles newlines in values,
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1100 for ac_var in $ac_subst_vars
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -n "$ac_subst_files"; then
1114 for ac_var in $ac_subst_files
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1122 if test -s confdefs.h; then
1129 sed "/^$/d" confdefs.h | sort
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1136 rm -f core core.* *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150 # Predefined preprocessor variables.
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1212 # Check that the precious variables saved in the cache have kept the same
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296 ac_config_files="$ac_config_files tests/Makefile"
1299 # Fill GXX with something before test.
1303 # Checks for programs.
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 if test -n "$ac_tool_prefix"; then
1310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 if test -n "$CC"; then
1318 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 test -z "$as_dir" && as_dir=.
1325 for ac_exec_ext in '' $ac_executable_extensions; do
1326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1337 if test -n "$CC"; then
1338 echo "$as_me:$LINENO: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1341 echo "$as_me:$LINENO: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1346 if test -z "$ac_cv_prog_CC"; then
1348 # Extract the first word of "gcc", so it can be a program name with args.
1349 set dummy gcc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 if test -n "$ac_ct_CC"; then
1356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_ac_ct_CC="gcc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1388 if test -z "$CC"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}cc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1469 if test -z "$CC"; then
1470 # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489 ac_prog_rejected=yes
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 if test $ac_prog_rejected = yes; then
1500 # We found a bogon in the path, so make sure we never use it.
1501 set dummy $ac_cv_prog_CC
1503 if test $# != 0; then
1504 # We chose a different compiler from the bogus one.
1505 # However, it has the same basename, so the bogon will be chosen
1506 # first if we set CC to just the basename; use the full file name.
1508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1523 if test -z "$CC"; then
1524 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1562 test -n "$CC" && break
1565 if test -z "$CC"; then
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_ac_ct_CC="$ac_prog"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1604 test -n "$ac_ct_CC" && break
1613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1614 See \`config.log' for more details." >&5
1615 echo "$as_me: error: no acceptable C compiler found in \$PATH
1616 See \`config.log' for more details." >&2;}
1617 { (exit 1); exit 1; }; }
1619 # Provide some information about the compiler.
1620 echo "$as_me:$LINENO:" \
1621 "checking for C compiler version" >&5
1622 ac_compiler=`set X $ac_compile; echo $2`
1623 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1624 (eval $ac_compiler --version </dev/null >&5) 2>&5
1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627 (exit $ac_status); }
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1629 (eval $ac_compiler -v </dev/null >&5) 2>&5
1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1634 (eval $ac_compiler -V </dev/null >&5) 2>&5
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1639 cat >conftest.$ac_ext <<_ACEOF
1640 #line $LINENO "configure"
1643 cat confdefs.h >>conftest.$ac_ext
1644 cat >>conftest.$ac_ext <<_ACEOF
1645 /* end confdefs.h. */
1655 ac_clean_files_save=$ac_clean_files
1656 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1657 # Try to create an executable without -o first, disregard a.out.
1658 # It will help us diagnose broken compilers, and finding out an intuition
1660 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1661 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1662 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1663 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1664 (eval $ac_link_default) 2>&5
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); }; then
1668 # Find the output, starting from the most likely. This scheme is
1669 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1672 # Be careful to initialize this variable, since it used to be cached.
1673 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1675 # b.out is created by i960 compilers.
1676 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1678 test -f "$ac_file" || continue
1680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1683 # This is the source file.
1686 # We found the default executable, but exeext='' is most
1690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691 # FIXME: I believe we export ac_cv_exeext for Libtool,
1692 # but it would be cool to find out if it's true. Does anybody
1693 # maintain Libtool? --akim.
1701 echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&2;}
1708 { (exit 77); exit 77; }; }
1711 ac_exeext=$ac_cv_exeext
1712 echo "$as_me:$LINENO: result: $ac_file" >&5
1713 echo "${ECHO_T}$ac_file" >&6
1715 # Check the compiler produces executables we can run. If not, either
1716 # the compiler is broken, or we cross compile.
1717 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1718 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1719 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1720 # If not cross compiling, check that we can run a simple program.
1721 if test "$cross_compiling" != yes; then
1722 if { ac_try='./$ac_file'
1723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }; }; then
1730 if test "$cross_compiling" = maybe; then
1733 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1734 If you meant to cross compile, use \`--host'.
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: cannot run C compiled programs.
1737 If you meant to cross compile, use \`--host'.
1738 See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1746 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1747 ac_clean_files=$ac_clean_files_save
1748 # Check the compiler produces executables we can run. If not, either
1749 # the compiler is broken, or we cross compile.
1750 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1751 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1752 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1753 echo "${ECHO_T}$cross_compiling" >&6
1755 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1756 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1758 (eval $ac_link) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1763 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1764 # work properly (i.e., refer to `conftest.exe'), while it won't with
1766 for ac_file in conftest.exe conftest conftest.*; do
1767 test -f "$ac_file" || continue
1769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1770 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1777 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1784 rm -f conftest$ac_cv_exeext
1785 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1786 echo "${ECHO_T}$ac_cv_exeext" >&6
1788 rm -f conftest.$ac_ext
1789 EXEEXT=$ac_cv_exeext
1791 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1792 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1793 if test "${ac_cv_objext+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 cat >conftest.$ac_ext <<_ACEOF
1797 #line $LINENO "configure"
1800 cat confdefs.h >>conftest.$ac_ext
1801 cat >>conftest.$ac_ext <<_ACEOF
1802 /* end confdefs.h. */
1812 rm -f conftest.o conftest.obj
1813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1821 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1838 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1839 echo "${ECHO_T}$ac_cv_objext" >&6
1840 OBJEXT=$ac_cv_objext
1842 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1843 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1844 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -s conftest.$ac_objext'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1885 rm -f conftest.$ac_objext conftest.$ac_ext
1886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1889 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1890 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1891 GCC=`test $ac_compiler_gnu = yes && echo yes`
1892 ac_test_CFLAGS=${CFLAGS+set}
1893 ac_save_CFLAGS=$CFLAGS
1895 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1896 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1897 if test "${ac_cv_prog_cc_g+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.$ac_ext <<_ACEOF
1901 #line $LINENO "configure"
1904 cat confdefs.h >>conftest.$ac_ext
1905 cat >>conftest.$ac_ext <<_ACEOF
1906 /* end confdefs.h. */
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 rm -f conftest.$ac_objext conftest.$ac_ext
1937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS=$ac_save_CFLAGS
1941 elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1948 if test "$GCC" = yes; then
1954 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1955 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1956 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 ac_cv_prog_cc_stdc=no
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1970 #include <sys/types.h>
1971 #include <sys/stat.h>
1972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1973 struct buf { int x; };
1974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1975 static char *e (p, i)
1981 static char *f (char * (*g) (char **, int), char **p, ...)
1986 s = g (p, va_arg (v,int));
1990 int test (int i, double x);
1991 struct s1 {int (*f) (int a);};
1992 struct s2 {int (*f) (double a);};
1993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2004 # Don't try gcc -ansi; that turns off useful extensions and
2005 # breaks some systems' header files.
2006 # AIX -qlanglvl=ansi
2007 # Ultrix and OSF/1 -std1
2008 # HP-UX 10.20 and later -Ae
2009 # HP-UX older versions -Aa -D_HPUX_SOURCE
2010 # SVR4 -Xc -D__EXTENSIONS__
2011 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2013 CC="$ac_save_CC $ac_arg"
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 ac_cv_prog_cc_stdc=$ac_arg
2029 echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2033 rm -f conftest.$ac_objext
2035 rm -f conftest.$ac_ext conftest.$ac_objext
2040 case "x$ac_cv_prog_cc_stdc" in
2042 echo "$as_me:$LINENO: result: none needed" >&5
2043 echo "${ECHO_T}none needed" >&6 ;;
2045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2047 CC="$CC $ac_cv_prog_cc_stdc" ;;
2050 # Some people use a C++ compiler to compile C. Since we use `exit',
2051 # in C++ we need to declare it. In case someone uses the same compiler
2052 # for both compiling C and C++ we need to have the C++ compiler decide
2053 # the declaration of exit, since it's the most demanding environment.
2054 cat >conftest.$ac_ext <<_ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 for ac_declaration in \
2073 '#include <stdlib.h>' \
2074 'extern "C" void std::exit (int) throw (); using std::exit;' \
2075 'extern "C" void std::exit (int); using std::exit;' \
2076 'extern "C" void exit (int) throw ();' \
2077 'extern "C" void exit (int);' \
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2116 rm -f conftest.$ac_objext conftest.$ac_ext
2117 cat >conftest.$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2147 echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2154 if test -n "$ac_declaration"; then
2155 echo '#ifdef __cplusplus' >>confdefs.h
2156 echo $ac_declaration >>confdefs.h
2157 echo '#endif' >>confdefs.h
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 ac_cpp='$CXXCPP $CPPFLAGS'
2174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2177 if test -n "$ac_tool_prefix"; then
2178 for ac_prog in $CCC g++ CC c++ cxx
2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CXX+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$CXX"; then
2188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CXX"; then
2208 echo "$as_me:$LINENO: result: $CXX" >&5
2209 echo "${ECHO_T}$CXX" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$CXX" && break
2218 if test -z "$CXX"; then
2220 for ac_prog in $CCC g++ CC c++ cxx
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$ac_ct_CXX"; then
2230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_ac_ct_CXX="$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2249 if test -n "$ac_ct_CXX"; then
2250 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2251 echo "${ECHO_T}$ac_ct_CXX" >&6
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257 test -n "$ac_ct_CXX" && break
2259 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2265 # Provide some information about the compiler.
2266 echo "$as_me:$LINENO:" \
2267 "checking for C++ compiler version" >&5
2268 ac_compiler=`set X $ac_compile; echo $2`
2269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2270 (eval $ac_compiler --version </dev/null >&5) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2275 (eval $ac_compiler -v </dev/null >&5) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2280 (eval $ac_compiler -V </dev/null >&5) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2285 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2286 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2287 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f conftest.$ac_objext conftest.$ac_ext
2329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2332 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2333 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2334 GXX=`test $ac_compiler_gnu = yes && echo yes`
2335 ac_test_CXXFLAGS=${CXXFLAGS+set}
2336 ac_save_CXXFLAGS=$CXXFLAGS
2338 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2339 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2340 if test "${ac_cv_prog_cxx_g+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line $LINENO "configure"
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_cv_prog_cxx_g=yes
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2380 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2381 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2382 if test "$ac_test_CXXFLAGS" = set; then
2383 CXXFLAGS=$ac_save_CXXFLAGS
2384 elif test $ac_cv_prog_cxx_g = yes; then
2385 if test "$GXX" = yes; then
2391 if test "$GXX" = yes; then
2397 for ac_declaration in \
2399 '#include <stdlib.h>' \
2400 'extern "C" void std::exit (int) throw (); using std::exit;' \
2401 'extern "C" void std::exit (int); using std::exit;' \
2402 'extern "C" void exit (int) throw ();' \
2403 'extern "C" void exit (int);' \
2406 cat >conftest.$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.$ac_objext conftest.$ac_ext
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.$ac_objext conftest.$ac_ext
2480 if test -n "$ac_declaration"; then
2481 echo '#ifdef __cplusplus' >>confdefs.h
2482 echo $ac_declaration >>confdefs.h
2483 echo '#endif' >>confdefs.h
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 # Checks for libraries.
2496 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2497 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2498 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 ac_check_lib_save_LIBS=$LIBS
2502 LIBS="-lpthread $LIBS"
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2511 /* Override any gcc2 internal prototype to avoid an error. */
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2517 char pthread_create ();
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest$ac_exeext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_lib_pthread_pthread_create=yes
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_cv_lib_pthread_pthread_create=no
2545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2546 LIBS=$ac_check_lib_save_LIBS
2548 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2549 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2550 if test $ac_cv_lib_pthread_pthread_create = yes; then
2551 cat >>confdefs.h <<_ACEOF
2552 #define HAVE_LIBPTHREAD 1
2555 LIBS="-lpthread $LIBS"
2558 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
2559 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
2560 { (exit 1); exit 1; }; }
2564 # Checks for header files.
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2572 # On Suns, sometimes $CPP names a directory.
2573 if test -n "$CPP" && test -d "$CPP"; then
2576 if test -z "$CPP"; then
2577 if test "${ac_cv_prog_CPP+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 # Double quotes because CPP needs to be expanded
2581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2584 for ac_c_preproc_warn_flag in '' yes
2586 # Use a header file that comes with gcc, so configuring glibc
2587 # with a fresh cross-compiler works.
2588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 # <limits.h> exists even on freestanding compilers.
2590 # On the NeXT, cc -E runs the code through the compiler's parser,
2591 # not just through cpp. "Syntax error" is here to catch this case.
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2600 # include <limits.h>
2602 # include <assert.h>
2606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } >/dev/null; then
2614 if test -s conftest.err; then
2615 ac_cpp_err=$ac_c_preproc_warn_flag
2622 if test -z "$ac_cpp_err"; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2628 # Broken: fails on valid input.
2631 rm -f conftest.err conftest.$ac_ext
2633 # OK, works on sane cases. Now check whether non-existent headers
2634 # can be detected and how.
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line $LINENO "configure"
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 #include <ac_nonexistent.h>
2644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } >/dev/null; then
2652 if test -s conftest.err; then
2653 ac_cpp_err=$ac_c_preproc_warn_flag
2660 if test -z "$ac_cpp_err"; then
2661 # Broken: success on invalid input.
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 # Passes both tests.
2671 rm -f conftest.err conftest.$ac_ext
2674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2675 rm -f conftest.err conftest.$ac_ext
2676 if $ac_preproc_ok; then
2688 echo "$as_me:$LINENO: result: $CPP" >&5
2689 echo "${ECHO_T}$CPP" >&6
2691 for ac_c_preproc_warn_flag in '' yes
2693 # Use a header file that comes with gcc, so configuring glibc
2694 # with a fresh cross-compiler works.
2695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2696 # <limits.h> exists even on freestanding compilers.
2697 # On the NeXT, cc -E runs the code through the compiler's parser,
2698 # not just through cpp. "Syntax error" is here to catch this case.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 #line $LINENO "configure"
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2707 # include <limits.h>
2709 # include <assert.h>
2713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } >/dev/null; then
2721 if test -s conftest.err; then
2722 ac_cpp_err=$ac_c_preproc_warn_flag
2729 if test -z "$ac_cpp_err"; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2735 # Broken: fails on valid input.
2738 rm -f conftest.err conftest.$ac_ext
2740 # OK, works on sane cases. Now check whether non-existent headers
2741 # can be detected and how.
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <ac_nonexistent.h>
2751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } >/dev/null; then
2759 if test -s conftest.err; then
2760 ac_cpp_err=$ac_c_preproc_warn_flag
2767 if test -z "$ac_cpp_err"; then
2768 # Broken: success on invalid input.
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 # Passes both tests.
2778 rm -f conftest.err conftest.$ac_ext
2781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2782 rm -f conftest.err conftest.$ac_ext
2783 if $ac_preproc_ok; then
2786 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2789 See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 echo "$as_me:$LINENO: checking for egrep" >&5
2801 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2802 if test "${ac_cv_prog_egrep+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2806 then ac_cv_prog_egrep='grep -E'
2807 else ac_cv_prog_egrep='egrep'
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2811 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2812 EGREP=$ac_cv_prog_egrep
2815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2817 if test "${ac_cv_header_stdc+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_header_stdc=yes
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 ac_cv_header_stdc=no
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2861 if test $ac_cv_header_stdc = yes; then
2862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 $EGREP "memchr" >/dev/null 2>&1; then
2877 ac_cv_header_stdc=no
2883 if test $ac_cv_header_stdc = yes; then
2884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 $EGREP "free" >/dev/null 2>&1; then
2899 ac_cv_header_stdc=no
2905 if test $ac_cv_header_stdc = yes; then
2906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2907 if test "$cross_compiling" = yes; then
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2918 #if ((' ' & 0x0FF) == 0x020)
2919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2922 # define ISLOWER(c) \
2923 (('a' <= (c) && (c) <= 'i') \
2924 || ('j' <= (c) && (c) <= 'r') \
2925 || ('s' <= (c) && (c) <= 'z'))
2926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2934 for (i = 0; i < 256; i++)
2935 if (XOR (islower (i), ISLOWER (i))
2936 || toupper (i) != TOUPPER (i))
2941 rm -f conftest$ac_exeext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2954 echo "$as_me: program exited with status $ac_status" >&5
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_cv_header_stdc=no
2961 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2967 if test $ac_cv_header_stdc = yes; then
2969 cat >>confdefs.h <<\_ACEOF
2970 #define STDC_HEADERS 1
2975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2986 inttypes.h stdint.h unistd.h
2988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2989 echo "$as_me:$LINENO: checking for $ac_header" >&5
2990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 $ac_includes_default
3003 #include <$ac_header>
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 eval "$as_ac_Header=yes"
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 eval "$as_ac_Header=no"
3024 rm -f conftest.$ac_objext conftest.$ac_ext
3026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3029 cat >>confdefs.h <<_ACEOF
3030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3040 for ac_header in sys/ioctl.h unistd.h
3042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3044 echo "$as_me:$LINENO: checking for $ac_header" >&5
3045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3052 # Is the header compilable?
3053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 $ac_includes_default
3063 #include <$ac_header>
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_header_compiler=yes
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 ac_header_compiler=no
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3086 echo "${ECHO_T}$ac_header_compiler" >&6
3088 # Is the header present?
3089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <$ac_header>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3116 if test -z "$ac_cpp_err"; then
3117 ac_header_preproc=yes
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 ac_header_preproc=no
3124 rm -f conftest.err conftest.$ac_ext
3125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3126 echo "${ECHO_T}$ac_header_preproc" >&6
3128 # So? What about this header?
3129 case $ac_header_compiler:$ac_header_preproc in
3131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3137 ## ------------------------------------ ##
3138 ## Report this to bug-autoconf@gnu.org. ##
3139 ## ------------------------------------ ##
3142 sed "s/^/$as_me: WARNING: /" >&2
3145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3153 ## ------------------------------------ ##
3154 ## Report this to bug-autoconf@gnu.org. ##
3155 ## ------------------------------------ ##
3158 sed "s/^/$as_me: WARNING: /" >&2
3161 echo "$as_me:$LINENO: checking for $ac_header" >&5
3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 eval "$as_ac_Header=$ac_header_preproc"
3168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3173 cat >>confdefs.h <<_ACEOF
3174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3182 # Checks for typedefs, structures, and compiler characteristics.
3183 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3185 if test "${ac_cv_c_const+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3199 /* FIXME: Include the comments suggested by Paul. */
3201 /* Ultrix mips cc rejects this. */
3202 typedef int charset[2];
3204 /* SunOS 4.1.1 cc rejects this. */
3205 char const *const *ccp;
3207 /* NEC SVR4.0.2 mips cc rejects this. */
3208 struct point {int x, y;};
3209 static struct point const zero = {0,0};
3210 /* AIX XL C 1.02.0.0 rejects this.
3211 It does not let you subtract one const X* pointer from another in
3212 an arm of an if-expression whose if-part is not a constant
3214 const char *g = "string";
3215 ccp = &g + (g ? g-g : 0);
3216 /* HPUX 7.0 cc rejects these. */
3219 ccp = (char const *const *) p;
3220 { /* SCO 3.2v4 cc rejects this. */
3222 char const *s = 0 ? (char *) 0 : (char const *) 0;
3226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3228 const int *foo = &x[0];
3231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3232 typedef const int *iptr;
3236 { /* AIX XL C 1.02.0.0 rejects this saying
3237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3238 struct s { int j; const int *ap[3]; };
3239 struct s *b; b->j = 5;
3241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3269 rm -f conftest.$ac_objext conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3272 echo "${ECHO_T}$ac_cv_c_const" >&6
3273 if test $ac_cv_c_const = no; then
3275 cat >>confdefs.h <<\_ACEOF
3283 echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3284 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
3285 # Check whether --enable-debug or --disable-debug was given.
3286 if test "${enable_debug+set}" = set; then
3287 enableval="$enable_debug"
3288 debug=-D__RTAUDIO_DEBUG__
3291 echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3301 # Check compiler and use -Wall if gnu.
3302 if test $GXX = "yes" ; then
3307 # Checks for package options and external software
3309 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3310 if test -f $ac_dir/install-sh; then
3312 ac_install_sh="$ac_aux_dir/install-sh -c"
3314 elif test -f $ac_dir/install.sh; then
3316 ac_install_sh="$ac_aux_dir/install.sh -c"
3318 elif test -f $ac_dir/shtool; then
3320 ac_install_sh="$ac_aux_dir/shtool install -c"
3324 if test -z "$ac_aux_dir"; then
3325 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3326 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3327 { (exit 1); exit 1; }; }
3329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3331 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3333 # Make sure we can run config.sub.
3334 $ac_config_sub sun4 >/dev/null 2>&1 ||
3335 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3336 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3337 { (exit 1); exit 1; }; }
3339 echo "$as_me:$LINENO: checking build system type" >&5
3340 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3341 if test "${ac_cv_build+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 ac_cv_build_alias=$build_alias
3345 test -z "$ac_cv_build_alias" &&
3346 ac_cv_build_alias=`$ac_config_guess`
3347 test -z "$ac_cv_build_alias" &&
3348 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3350 { (exit 1); exit 1; }; }
3351 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3352 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3353 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3354 { (exit 1); exit 1; }; }
3357 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3358 echo "${ECHO_T}$ac_cv_build" >&6
3360 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3361 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3362 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3365 echo "$as_me:$LINENO: checking host system type" >&5
3366 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3367 if test "${ac_cv_host+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_host_alias=$host_alias
3371 test -z "$ac_cv_host_alias" &&
3372 ac_cv_host_alias=$ac_cv_build_alias
3373 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3374 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3375 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3376 { (exit 1); exit 1; }; }
3379 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3380 echo "${ECHO_T}$ac_cv_host" >&6
3382 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3383 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3384 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3387 echo "$as_me:$LINENO: checking for audio API" >&5
3388 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
3394 # Check whether --with-jack or --without-jack was given.
3395 if test "${with_jack+set}" = set; then
3396 withval="$with_jack"
3397 sound_api=-D__LINUX_JACK__
3398 echo "$as_me:$LINENO: result: using JACK" >&5
3399 echo "${ECHO_T}using JACK" >&6
3401 if test $sound_api = -D__LINUX_JACK__; then
3404 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
3405 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
3406 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_check_lib_save_LIBS=$LIBS
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3419 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3425 char jack_client_new ();
3434 rm -f conftest.$ac_objext conftest$ac_exeext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3436 (eval $ac_link) 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -s conftest$ac_exeext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_lib_jack_jack_client_new=yes
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 ac_cv_lib_jack_jack_client_new=no
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
3457 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
3458 if test $ac_cv_lib_jack_jack_client_new = yes; then
3459 cat >>confdefs.h <<_ACEOF
3460 #define HAVE_LIBJACK 1
3466 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
3467 echo "$as_me: error: JACK support requires the jack library!" >&2;}
3468 { (exit 1); exit 1; }; }
3472 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3473 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3474 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-lasound $LIBS"
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3493 char snd_pcm_open ();
3502 rm -f conftest.$ac_objext conftest$ac_exeext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3504 (eval $ac_link) 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -s conftest$ac_exeext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_lib_asound_snd_pcm_open=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_cv_lib_asound_snd_pcm_open=no
3521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3522 LIBS=$ac_check_lib_save_LIBS
3524 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3525 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3526 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define HAVE_LIBASOUND 1
3531 LIBS="-lasound $LIBS"
3534 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
3535 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
3536 { (exit 1); exit 1; }; }
3539 LIBS="`pkg-config --cflags --libs jack` $TEMP_LIBS -lasound"
3540 audio_apis="-D__LINUX_JACK__"
3543 # Look for Alsa flag
3545 # Check whether --with-alsa or --without-alsa was given.
3546 if test "${with_alsa+set}" = set; then
3547 withval="$with_alsa"
3548 sound_api=-D__LINUX_ALSA__
3549 echo "$as_me:$LINENO: result: using ALSA" >&5
3550 echo "${ECHO_T}using ALSA" >&6
3552 if test $sound_api = -D__LINUX_ALSA__; then
3554 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3555 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3556 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_check_lib_save_LIBS=$LIBS
3560 LIBS="-lasound $LIBS"
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char snd_pcm_open ();
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_lib_asound_snd_pcm_open=yes
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 ac_cv_lib_asound_snd_pcm_open=no
3603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3604 LIBS=$ac_check_lib_save_LIBS
3606 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3607 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3608 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define HAVE_LIBASOUND 1
3613 LIBS="-lasound $LIBS"
3616 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
3617 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
3618 { (exit 1); exit 1; }; }
3621 audio_apis="-D__LINUX_ALSA__ $audio_apis"
3626 # Check whether --with-oss or --without-oss was given.
3627 if test "${with_oss+set}" = set; then
3629 sound_api=-D__LINUX_OSS__
3630 echo "$as_me:$LINENO: result: using OSS" >&5
3631 echo "${ECHO_T}using OSS" >&6
3633 if test $sound_api = -D__LINUX_OSS__; then
3634 audio_apis="-D__LINUX_OSS__ $audio_apis"
3637 # If no audio api flags specified, use OSS
3638 if test $sound_api = _NO_API_; then
3639 sound_api=-D__LINUX_OSS__
3641 echo "$as_me:$LINENO: result: using OSS" >&5
3642 echo "${ECHO_T}using OSS" >&6
3643 audio_apis=-D__LINUX_OSS__
3649 audio_apis="-D__IRIX_AL__ -LANG:std -w"
3651 echo "$as_me:$LINENO: result: using IRIX AL" >&5
3652 echo "${ECHO_T}using IRIX AL" >&6
3654 echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
3655 echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
3656 if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 ac_check_lib_save_LIBS=$LIBS
3660 LIBS="-laudio $LIBS"
3661 cat >conftest.$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3669 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -s conftest$ac_exeext'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 ac_cv_lib_audio_alOpenPort=yes
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 ac_cv_lib_audio_alOpenPort=no
3703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3704 LIBS=$ac_check_lib_save_LIBS
3706 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
3707 echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
3708 if test $ac_cv_lib_audio_alOpenPort = yes; then
3709 cat >>confdefs.h <<_ACEOF
3710 #define HAVE_LIBAUDIO 1
3713 LIBS="-laudio $LIBS"
3716 { { echo "$as_me:$LINENO: error: IRIX audio support requires the audio library!" >&5
3717 echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
3718 { (exit 1); exit 1; }; }
3724 # Check for CoreAudio framework
3725 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
3726 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
3727 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
3728 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
3734 # Is the header compilable?
3735 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
3736 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3738 #line $LINENO "configure"
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3744 $ac_includes_default
3745 #include <CoreAudio/CoreAudio.h>
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_header_compiler=yes
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_header_compiler=no
3766 rm -f conftest.$ac_objext conftest.$ac_ext
3767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6
3770 # Is the header present?
3771 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
3772 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 #line $LINENO "configure"
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 #include <CoreAudio/CoreAudio.h>
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3798 if test -z "$ac_cpp_err"; then
3799 ac_header_preproc=yes
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 ac_header_preproc=no
3806 rm -f conftest.err conftest.$ac_ext
3807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3808 echo "${ECHO_T}$ac_header_preproc" >&6
3810 # So? What about this header?
3811 case $ac_header_compiler:$ac_header_preproc in
3813 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
3814 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3815 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
3816 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
3819 ## ------------------------------------ ##
3820 ## Report this to bug-autoconf@gnu.org. ##
3821 ## ------------------------------------ ##
3824 sed "s/^/$as_me: WARNING: /" >&2
3827 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
3828 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
3830 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
3831 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
3832 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
3835 ## ------------------------------------ ##
3836 ## Report this to bug-autoconf@gnu.org. ##
3837 ## ------------------------------------ ##
3840 sed "s/^/$as_me: WARNING: /" >&2
3843 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
3844 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
3845 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
3850 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
3851 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
3854 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
3855 audio_apis=-D__MACOSX_CORE__
3858 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
3859 echo "$as_me: error: CoreAudio header files not found!" >&2;}
3860 { (exit 1); exit 1; }; }
3864 frameworks="-framework CoreAudio"
3869 # Default case for unknown realtime systems.
3870 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
3871 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
3872 { (exit 1); exit 1; }; }
3876 # Checks for library functions.
3877 if test $ac_cv_c_compiler_gnu = yes; then
3878 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3879 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3880 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_pattern="Autoconf.*'x'"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3896 ac_cv_prog_gcc_traditional=yes
3898 ac_cv_prog_gcc_traditional=no
3903 if test $ac_cv_prog_gcc_traditional = no; then
3904 cat >conftest.$ac_ext <<_ACEOF
3905 #line $LINENO "configure"
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3916 ac_cv_prog_gcc_traditional=yes
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3923 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3924 if test $ac_cv_prog_gcc_traditional = yes; then
3925 CC="$CC -traditional"
3930 cat >confcache <<\_ACEOF
3931 # This file is a shell script that caches the results of configure
3932 # tests run on this system so they can be shared between configure
3933 # scripts and configure runs, see configure's option --config-cache.
3934 # It is not useful on other systems. If it contains results you don't
3935 # want to keep, you may remove or edit it.
3937 # config.status only pays attention to the cache file if you give it
3938 # the --recheck option to rerun configure.
3940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3946 # The following way of writing the cache mishandles newlines in values,
3947 # but we know of no workaround that is simple, portable, and efficient.
3948 # So, don't put newlines in cache variables' values.
3949 # Ultrix sh set writes to stderr and can't be redirected directly,
3950 # and sets the high bit in the cache file unless we assign to the vars.
3953 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3955 # `set' does not quote correctly, so add quotes (double-quote
3956 # substitution turns \\\\ into \\, and sed turns \\ into \).
3959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3962 # `set' quotes correctly as required by POSIX, so do not add quotes.
3964 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3973 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3975 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3976 if test -w $cache_file; then
3977 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3978 cat confcache >$cache_file
3980 echo "not updating unwritable cache $cache_file"
3985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3986 # Let make expand exec_prefix.
3987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3989 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3990 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3991 # trailing colons and then remove the whole line if VPATH becomes empty
3992 # (actually we leave an empty line to preserve line numbers).
3993 if test "x$srcdir" = x.; then
3994 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3995 s/:*\$(srcdir):*/:/;
3996 s/:*\${srcdir}:*/:/;
3998 s/^\([^=]*=[ ]*\):*/\1/;
4004 # Transform confdefs.h into DEFS.
4005 # Protect against shell expansion while executing Makefile rules.
4006 # Protect against Makefile macro expansion.
4008 # If the first sed substitution is executed (which looks for macros that
4009 # take arguments), then we branch to the quote section. Otherwise,
4010 # look for a macro that doesn't take arguments.
4011 cat >confdef2opt.sed <<\_ACEOF
4014 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4016 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4020 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4026 # We use echo to avoid assuming a particular line-breaking character.
4027 # The extra dot is to prevent the shell from consuming trailing
4028 # line-breaks from the sub-command output. A line-break within
4029 # single-quotes doesn't work because, if this script is created in a
4030 # platform that uses two characters for line-breaks (e.g., DOS), tr
4032 ac_LF_and_DOT=`echo; echo .`
4033 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4034 rm -f confdef2opt.sed
4039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4040 # 1. Remove the extension, and $U if already installed.
4041 ac_i=`echo "$ac_i" |
4042 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4044 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4045 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4049 LTLIBOBJS=$ac_ltlibobjs
4053 : ${CONFIG_STATUS=./config.status}
4054 ac_clean_files_save=$ac_clean_files
4055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4056 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4057 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4058 cat >$CONFIG_STATUS <<_ACEOF
4060 # Generated by $as_me.
4061 # Run this file to recreate the current configuration.
4062 # Compiler output produced by configure, useful for debugging
4063 # configure, is in config.log if it exists.
4068 SHELL=\${CONFIG_SHELL-$SHELL}
4071 cat >>$CONFIG_STATUS <<\_ACEOF
4072 ## --------------------- ##
4073 ## M4sh Initialization. ##
4074 ## --------------------- ##
4076 # Be Bourne compatible
4077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4080 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4081 # is contrary to our usage. Disable this feature.
4082 alias -g '${1+"$@"}'='"$@"'
4083 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4087 # Support unset when possible.
4088 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4095 # Work around bugs in pre-3.0 UWIN ksh.
4096 $as_unset ENV MAIL MAILPATH
4103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4105 LC_TELEPHONE LC_TIME
4107 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4108 eval $as_var=C; export $as_var
4114 # Required to use basename.
4115 if expr a : '\(a\)' >/dev/null 2>&1; then
4121 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4122 as_basename=basename
4128 # Name of the executable.
4129 as_me=`$as_basename "$0" ||
4130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4131 X"$0" : 'X\(//\)$' \| \
4132 X"$0" : 'X\(/\)$' \| \
4133 . : '\(.\)' 2>/dev/null ||
4135 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4136 /^X\/\(\/\/\)$/{ s//\1/; q; }
4137 /^X\/\(\/\).*/{ s//\1/; q; }
4141 # PATH needs CR, and LINENO needs CR and PATH.
4142 # Avoid depending upon Character Ranges.
4143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4146 as_cr_digits='0123456789'
4147 as_cr_alnum=$as_cr_Letters$as_cr_digits
4149 # The user is always right.
4150 if test "${PATH_SEPARATOR+set}" != set; then
4151 echo "#! /bin/sh" >conf$$.sh
4152 echo "exit 0" >>conf$$.sh
4154 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4166 test "x$as_lineno_1" != "x$as_lineno_2" &&
4167 test "x$as_lineno_3" = "x$as_lineno_2" || {
4168 # Find who we are. Look in the path if we contain no path at all
4171 *[\\/]* ) as_myself=$0 ;;
4172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4182 # We did not find ourselves, most probably we were run as `sh COMMAND'
4183 # in which case we are not to be found in the path.
4184 if test "x$as_myself" = x; then
4187 if test ! -f "$as_myself"; then
4188 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4189 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4190 { (exit 1); exit 1; }; }
4192 case $CONFIG_SHELL in
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4198 test -z "$as_dir" && as_dir=.
4199 for as_base in sh bash ksh sh5; do
4202 if ("$as_dir/$as_base" -c '
4205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4206 test "x$as_lineno_1" != "x$as_lineno_2" &&
4207 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4208 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4209 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4210 CONFIG_SHELL=$as_dir/$as_base
4212 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4221 # uniformly replaced by the line number. The first 'sed' inserts a
4222 # line-number line before each line; the second 'sed' does the real
4223 # work. The second script uses 'N' to pair each line-number line
4224 # with the numbered line, and appends trailing '-' during
4225 # substitution so that $LINENO is not a special case at line end.
4226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4227 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4228 sed '=' <$as_myself |
4233 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4236 s,^['$as_cr_digits']*\n,,
4238 chmod +x $as_me.lineno ||
4239 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4240 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4241 { (exit 1); exit 1; }; }
4243 # Don't try to exec as it changes $[0], causing all sort of problems
4244 # (the dirname of $[0] is not the place where we might find the
4245 # original and so on. Autoconf is especially sensible to this).
4247 # Exit status is that of the last command.
4252 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4253 *c*,-n*) ECHO_N= ECHO_C='
4255 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4256 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4259 if expr a : '\(a\)' >/dev/null 2>&1; then
4265 rm -f conf$$ conf$$.exe conf$$.file
4267 if ln -s conf$$.file conf$$ 2>/dev/null; then
4268 # We could just check for DJGPP; but this test a) works b) is more generic
4269 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4270 if test -f conf$$.exe; then
4271 # Don't use ln at all; we don't have any links
4276 elif ln conf$$.file conf$$ 2>/dev/null; then
4281 rm -f conf$$ conf$$.exe conf$$.file
4283 if mkdir -p . 2>/dev/null; then
4289 as_executable_p="test -f"
4291 # Sed expression to map a string onto a valid CPP name.
4292 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4294 # Sed expression to map a string onto a valid variable name.
4295 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4299 # We need space, tab and new line, in precisely that order.
4309 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4310 # report actual input values of CONFIG_FILES etc. instead of their
4311 # values after options handling. Logging --version etc. is OK.
4315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4316 ## Running $as_me. ##
4321 This file was extended by RtAudio $as_me 3.0, which was
4322 generated by GNU Autoconf 2.57. Invocation command line was
4324 CONFIG_FILES = $CONFIG_FILES
4325 CONFIG_HEADERS = $CONFIG_HEADERS
4326 CONFIG_LINKS = $CONFIG_LINKS
4327 CONFIG_COMMANDS = $CONFIG_COMMANDS
4331 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4335 # Files that config.status was made for.
4336 if test -n "$ac_config_files"; then
4337 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4340 if test -n "$ac_config_headers"; then
4341 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4344 if test -n "$ac_config_links"; then
4345 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4348 if test -n "$ac_config_commands"; then
4349 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4352 cat >>$CONFIG_STATUS <<\_ACEOF
4355 \`$as_me' instantiates files from templates according to the
4356 current configuration.
4358 Usage: $0 [OPTIONS] [FILE]...
4360 -h, --help print this help, then exit
4361 -V, --version print version number, then exit
4362 -q, --quiet do not print progress messages
4363 -d, --debug don't remove temporary files
4364 --recheck update $as_me by reconfiguring in the same conditions
4365 --file=FILE[:TEMPLATE]
4366 instantiate the configuration file FILE
4368 Configuration files:
4371 Report bugs to <bug-autoconf@gnu.org>."
4374 cat >>$CONFIG_STATUS <<_ACEOF
4376 RtAudio config.status 3.0
4377 configured by $0, generated by GNU Autoconf 2.57,
4378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4380 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4381 Free Software Foundation, Inc.
4382 This config.status script is free software; the Free Software Foundation
4383 gives unlimited permission to copy, distribute and modify it."
4387 cat >>$CONFIG_STATUS <<\_ACEOF
4388 # If no file are specified by the user, then we need to provide default
4389 # value. By we need to know if files were specified by the user.
4395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4404 *) # This is not an option, so the user has probably given explicit
4407 ac_need_defaults=false;;
4411 # Handling of the options.
4413 cat >>$CONFIG_STATUS <<\_ACEOF
4414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4416 --version | --vers* | -V )
4417 echo "$ac_cs_version"; exit 0 ;;
4419 # Conflict between --help and --header
4420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4421 Try \`$0 --help' for more information." >&5
4422 echo "$as_me: error: ambiguous option: $1
4423 Try \`$0 --help' for more information." >&2;}
4424 { (exit 1); exit 1; }; };;
4425 --help | --hel | -h )
4426 echo "$ac_cs_usage"; exit 0 ;;
4427 --debug | --d* | -d )
4429 --file | --fil | --fi | --f )
4431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4432 ac_need_defaults=false;;
4433 --header | --heade | --head | --hea )
4435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4436 ac_need_defaults=false;;
4437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4443 Try \`$0 --help' for more information." >&5
4444 echo "$as_me: error: unrecognized option: $1
4445 Try \`$0 --help' for more information." >&2;}
4446 { (exit 1); exit 1; }; } ;;
4448 *) ac_config_targets="$ac_config_targets $1" ;;
4454 ac_configure_extra_args=
4456 if $ac_cs_silent; then
4458 ac_configure_extra_args="$ac_configure_extra_args --silent"
4462 cat >>$CONFIG_STATUS <<_ACEOF
4463 if \$ac_cs_recheck; then
4464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4474 cat >>$CONFIG_STATUS <<\_ACEOF
4475 for ac_config_target in $ac_config_targets
4477 case "$ac_config_target" in
4478 # Handling of arguments.
4479 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
4480 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4481 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4482 { (exit 1); exit 1; }; };;
4486 # If the user did not use the arguments to specify the items to instantiate,
4487 # then the envvar interface is used. Set only those that are not.
4488 # We use the long form for the default assignment because of an extremely
4489 # bizarre bug on SunOS 4.1.3.
4490 if $ac_need_defaults; then
4491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4494 # Have a temporary directory for convenience. Make it in the build tree
4495 # simply because there is no reason to put it here, and in addition,
4496 # creating and moving files from /tmp can sometimes cause problems.
4497 # Create a temporary directory, and hook for its removal unless debugging.
4500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4501 trap '{ (exit 1); exit 1; }' 1 2 13 15
4504 # Create a (secure) tmp directory for tmp files.
4507 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4508 test -n "$tmp" && test -d "$tmp"
4511 tmp=./confstat$$-$RANDOM
4512 (umask 077 && mkdir $tmp)
4515 echo "$me: cannot create a temporary directory in ." >&2
4516 { (exit 1); exit 1; }
4521 cat >>$CONFIG_STATUS <<_ACEOF
4524 # CONFIG_FILES section.
4527 # No need to generate the scripts if there are no CONFIG_FILES.
4528 # This happens for instance when ./config.status config.h
4529 if test -n "\$CONFIG_FILES"; then
4530 # Protect against being on the right side of a sed subst in config.status.
4531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4533 s,@SHELL@,$SHELL,;t t
4534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4540 s,@exec_prefix@,$exec_prefix,;t t
4541 s,@prefix@,$prefix,;t t
4542 s,@program_transform_name@,$program_transform_name,;t t
4543 s,@bindir@,$bindir,;t t
4544 s,@sbindir@,$sbindir,;t t
4545 s,@libexecdir@,$libexecdir,;t t
4546 s,@datadir@,$datadir,;t t
4547 s,@sysconfdir@,$sysconfdir,;t t
4548 s,@sharedstatedir@,$sharedstatedir,;t t
4549 s,@localstatedir@,$localstatedir,;t t
4550 s,@libdir@,$libdir,;t t
4551 s,@includedir@,$includedir,;t t
4552 s,@oldincludedir@,$oldincludedir,;t t
4553 s,@infodir@,$infodir,;t t
4554 s,@mandir@,$mandir,;t t
4555 s,@build_alias@,$build_alias,;t t
4556 s,@host_alias@,$host_alias,;t t
4557 s,@target_alias@,$target_alias,;t t
4559 s,@ECHO_C@,$ECHO_C,;t t
4560 s,@ECHO_N@,$ECHO_N,;t t
4561 s,@ECHO_T@,$ECHO_T,;t t
4565 s,@CFLAGS@,$CFLAGS,;t t
4566 s,@LDFLAGS@,$LDFLAGS,;t t
4567 s,@CPPFLAGS@,$CPPFLAGS,;t t
4568 s,@ac_ct_CC@,$ac_ct_CC,;t t
4569 s,@EXEEXT@,$EXEEXT,;t t
4570 s,@OBJEXT@,$OBJEXT,;t t
4572 s,@CXXFLAGS@,$CXXFLAGS,;t t
4573 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4575 s,@EGREP@,$EGREP,;t t
4576 s,@debug@,$debug,;t t
4577 s,@cflags@,$cflags,;t t
4578 s,@object_path@,$object_path,;t t
4580 s,@build@,$build,;t t
4581 s,@build_cpu@,$build_cpu,;t t
4582 s,@build_vendor@,$build_vendor,;t t
4583 s,@build_os@,$build_os,;t t
4585 s,@host_cpu@,$host_cpu,;t t
4586 s,@host_vendor@,$host_vendor,;t t
4587 s,@host_os@,$host_os,;t t
4588 s,@sound_api@,$sound_api,;t t
4589 s,@audio_apis@,$audio_apis,;t t
4590 s,@frameworks@,$frameworks,;t t
4591 s,@LIBOBJS@,$LIBOBJS,;t t
4592 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4597 cat >>$CONFIG_STATUS <<\_ACEOF
4598 # Split the substitutions into bite-sized pieces for seds with
4599 # small command number limits, like on Digital OSF/1 and HP-UX.
4601 ac_sed_frag=1 # Number of current file.
4602 ac_beg=1 # First line for current file.
4603 ac_end=$ac_max_sed_lines # Line after last line for current file.
4606 while $ac_more_lines; do
4607 if test $ac_beg -gt 1; then
4608 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4610 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4612 if test ! -s $tmp/subs.frag; then
4615 # The purpose of the label and of the branching condition is to
4616 # speed up the sed processing (if there are no `@' at all, there
4617 # is no need to browse any of the substitutions).
4618 # These are the two extra sed commands mentioned above.
4620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4621 if test -z "$ac_sed_cmds"; then
4622 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4624 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4626 ac_sed_frag=`expr $ac_sed_frag + 1`
4628 ac_end=`expr $ac_end + $ac_max_sed_lines`
4631 if test -z "$ac_sed_cmds"; then
4634 fi # test -n "$CONFIG_FILES"
4637 cat >>$CONFIG_STATUS <<\_ACEOF
4638 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4641 - | *:- | *:-:* ) # input from stdin
4643 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4645 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4647 * ) ac_file_in=$ac_file.in ;;
4650 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4651 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4653 X"$ac_file" : 'X\(//\)[^/]' \| \
4654 X"$ac_file" : 'X\(//\)$' \| \
4655 X"$ac_file" : 'X\(/\)' \| \
4656 . : '\(.\)' 2>/dev/null ||
4658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4660 /^X\(\/\/\)$/{ s//\1/; q; }
4661 /^X\(\/\).*/{ s//\1/; q; }
4663 { if $as_mkdir_p; then
4668 while test ! -d "$as_dir"; do
4669 as_dirs="$as_dir $as_dirs"
4670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4672 X"$as_dir" : 'X\(//\)[^/]' \| \
4673 X"$as_dir" : 'X\(//\)$' \| \
4674 X"$as_dir" : 'X\(/\)' \| \
4675 . : '\(.\)' 2>/dev/null ||
4677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4679 /^X\(\/\/\)$/{ s//\1/; q; }
4680 /^X\(\/\).*/{ s//\1/; q; }
4683 test ! -n "$as_dirs" || mkdir $as_dirs
4684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4685 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4686 { (exit 1); exit 1; }; }; }
4690 if test "$ac_dir" != .; then
4691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4692 # A "../" for each directory in $ac_dir_suffix.
4693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4695 ac_dir_suffix= ac_top_builddir=
4699 .) # No --srcdir option. We are building in place.
4701 if test -z "$ac_top_builddir"; then
4704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4706 [\\/]* | ?:[\\/]* ) # Absolute path.
4707 ac_srcdir=$srcdir$ac_dir_suffix;
4708 ac_top_srcdir=$srcdir ;;
4710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4713 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4715 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4716 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4717 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4718 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4722 if test x"$ac_file" != x-; then
4723 { echo "$as_me:$LINENO: creating $ac_file" >&5
4724 echo "$as_me: creating $ac_file" >&6;}
4727 # Let's still pretend it is `configure' which instantiates (i.e., don't
4728 # use $as_me), people would be surprised to read:
4729 # /* config.h. Generated by config.status. */
4730 if test x"$ac_file" = x-; then
4733 configure_input="$ac_file. "
4735 configure_input=$configure_input"Generated from `echo $ac_file_in |
4736 sed 's,.*/,,'` by configure."
4738 # First look for the input files in the build tree, otherwise in the
4740 ac_file_inputs=`IFS=:
4741 for f in $ac_file_in; do
4743 -) echo $tmp/stdin ;;
4745 # Absolute (can't be DOS-style, as IFS=:)
4746 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4747 echo "$as_me: error: cannot find input file: $f" >&2;}
4748 { (exit 1); exit 1; }; }
4751 if test -f "$f"; then
4754 elif test -f "$srcdir/$f"; then
4759 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4760 echo "$as_me: error: cannot find input file: $f" >&2;}
4761 { (exit 1); exit 1; }; }
4764 done` || { (exit 1); exit 1; }
4766 cat >>$CONFIG_STATUS <<_ACEOF
4770 cat >>$CONFIG_STATUS <<\_ACEOF
4772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4773 s,@configure_input@,$configure_input,;t t
4774 s,@srcdir@,$ac_srcdir,;t t
4775 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4776 s,@top_srcdir@,$ac_top_srcdir,;t t
4777 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4778 s,@builddir@,$ac_builddir,;t t
4779 s,@abs_builddir@,$ac_abs_builddir,;t t
4780 s,@top_builddir@,$ac_top_builddir,;t t
4781 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4782 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4784 if test x"$ac_file" != x-; then
4785 mv $tmp/out $ac_file
4794 cat >>$CONFIG_STATUS <<\_ACEOF
4796 { (exit 0); exit 0; }
4798 chmod +x $CONFIG_STATUS
4799 ac_clean_files=$ac_clean_files_save
4802 # configure is writing to config.log, and then calls config.status.
4803 # config.status does its own redirection, appending to config.log.
4804 # Unfortunately, on DOS this fails, as config.log is still kept open
4805 # by configure, so config.status won't be able to write to it; its
4806 # output is simply discarded. So we exec the FD to /dev/null,
4807 # effectively closing config.log, so it can be properly (re)opened and
4808 # appended to by config.status. When coming back to configure, we
4809 # need to make the FD available again.
4810 if test "$no_create" != yes; then
4812 ac_config_status_args=
4813 test "$silent" = yes &&
4814 ac_config_status_args="$ac_config_status_args --quiet"
4816 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4818 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4819 # would make configure fail if this is the last instruction.
4820 $ac_cs_success || { (exit 1); exit 1; }