2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for RtAudio 4.0.
5 # Report bugs to <gary@music.mcgill.ca>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='RtAudio'
271 PACKAGE_TARNAME='rtaudio'
272 PACKAGE_VERSION='4.0'
273 PACKAGE_STRING='RtAudio 4.0'
274 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
276 ac_unique_file="RtAudio.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 RANLIB ac_ct_RANLIB AR 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'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
791 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 if test -n "$ac_init_help"; then
851 case $ac_init_help in
852 short | recursive ) echo "Configuration of RtAudio 4.0:";;
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-debug = enable various debug output
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-jack = choose JACK server support (mac and linux only)
865 --with-alsa = choose native ALSA API support (linux only)
866 --with-oss = choose OSS API support (linux only)
867 --with-jack = choose JACK server support (unix only)
868 --with-core = choose CoreAudio API support (mac only)
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
877 CXX C++ compiler command
878 CXXFLAGS C++ compiler flags
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
884 Report bugs to <gary@music.mcgill.ca>.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 ac_dir_suffix= ac_top_builddir=
904 .) # No --srcdir option. We are building in place.
906 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
922 .) ac_abs_builddir="$ac_dir";;
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
980 RtAudio configure 4.0
981 generated by GNU Autoconf 2.59
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by RtAudio $as_me 4.0, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1334 # Fill GXX with something before test.
1338 # Checks for programs.
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1347 echo "$as_me:$LINENO: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 test -z "$as_dir" && as_dir=.
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372 if test -n "$CC"; then
1373 echo "$as_me:$LINENO: result: $CC" >&5
1374 echo "${ECHO_T}$CC" >&6
1376 echo "$as_me:$LINENO: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1381 if test -z "$ac_cv_prog_CC"; then
1383 # Extract the first word of "gcc", so it can be a program name with args.
1384 set dummy gcc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$ac_ct_CC"; then
1391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_ac_ct_CC="gcc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1410 if test -n "$ac_ct_CC"; then
1411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1412 echo "${ECHO_T}$ac_ct_CC" >&6
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1423 if test -z "$CC"; then
1424 if test -n "$ac_tool_prefix"; then
1425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}cc; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_CC+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 if test -n "$CC"; then
1433 ac_cv_prog_CC="$CC" # Let the user override the test.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_prog_CC="${ac_tool_prefix}cc"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 if test -n "$CC"; then
1453 echo "$as_me:$LINENO: result: $CC" >&5
1454 echo "${ECHO_T}$CC" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1461 if test -z "$ac_cv_prog_CC"; then
1463 # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$ac_ct_CC"; then
1471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_ac_ct_CC="cc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1490 if test -n "$ac_ct_CC"; then
1491 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1492 echo "${ECHO_T}$ac_ct_CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1504 if test -z "$CC"; then
1505 # Extract the first word of "cc", so it can be a program name with args.
1506 set dummy cc; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test.
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1524 ac_prog_rejected=yes
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 if test $ac_prog_rejected = yes; then
1535 # We found a bogon in the path, so make sure we never use it.
1536 set dummy $ac_cv_prog_CC
1538 if test $# != 0; then
1539 # We chose a different compiler from the bogus one.
1540 # However, it has the same basename, so the bogon will be chosen
1541 # first if we set CC to just the basename; use the full file name.
1543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1558 if test -z "$CC"; then
1559 if test -n "$ac_tool_prefix"; then
1562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 if test -n "$CC"; then
1590 echo "$as_me:$LINENO: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1597 test -n "$CC" && break
1600 if test -z "$CC"; then
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$ac_ct_CC"; then
1612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_ac_ct_CC="$ac_prog"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1631 if test -n "$ac_ct_CC"; then
1632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1633 echo "${ECHO_T}$ac_ct_CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1639 test -n "$ac_ct_CC" && break
1648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1649 See \`config.log' for more details." >&5
1650 echo "$as_me: error: no acceptable C compiler found in \$PATH
1651 See \`config.log' for more details." >&2;}
1652 { (exit 1); exit 1; }; }
1654 # Provide some information about the compiler.
1655 echo "$as_me:$LINENO:" \
1656 "checking for C compiler version" >&5
1657 ac_compiler=`set X $ac_compile; echo $2`
1658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1659 (eval $ac_compiler --version </dev/null >&5) 2>&5
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }
1663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1664 (eval $ac_compiler -v </dev/null >&5) 2>&5
1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667 (exit $ac_status); }
1668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1669 (eval $ac_compiler -V </dev/null >&5) 2>&5
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }
1674 cat >conftest.$ac_ext <<_ACEOF
1677 cat confdefs.h >>conftest.$ac_ext
1678 cat >>conftest.$ac_ext <<_ACEOF
1679 /* end confdefs.h. */
1689 ac_clean_files_save=$ac_clean_files
1690 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1691 # Try to create an executable without -o first, disregard a.out.
1692 # It will help us diagnose broken compilers, and finding out an intuition
1694 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1695 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1696 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1697 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1698 (eval $ac_link_default) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }; then
1702 # Find the output, starting from the most likely. This scheme is
1703 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1706 # Be careful to initialize this variable, since it used to be cached.
1707 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1709 # b.out is created by i960 compilers.
1710 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1712 test -f "$ac_file" || continue
1714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1717 # This is the source file.
1720 # We found the default executable, but exeext='' is most
1724 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1725 # FIXME: I believe we export ac_cv_exeext for Libtool,
1726 # but it would be cool to find out if it's true. Does anybody
1727 # maintain Libtool? --akim.
1735 echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: C compiler cannot create executables
1741 See \`config.log' for more details." >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:$LINENO: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'.
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: cannot run C compiled programs.
1771 If you meant to cross compile, use \`--host'.
1772 See \`config.log' for more details." >&2;}
1773 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1780 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1781 ac_clean_files=$ac_clean_files_save
1782 # Check the compiler produces executables we can run. If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1785 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1786 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1787 echo "${ECHO_T}$cross_compiling" >&6
1789 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1790 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1792 (eval $ac_link) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1798 # work properly (i.e., refer to `conftest.exe'), while it won't with
1800 for ac_file in conftest.exe conftest conftest.*; do
1801 test -f "$ac_file" || continue
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1825 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1826 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 cat >conftest.$ac_ext <<_ACEOF
1833 cat confdefs.h >>conftest.$ac_ext
1834 cat >>conftest.$ac_ext <<_ACEOF
1835 /* end confdefs.h. */
1845 rm -f conftest.o conftest.obj
1846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; then
1851 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1859 echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1871 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1872 echo "${ECHO_T}$ac_cv_objext" >&6
1873 OBJEXT=$ac_cv_objext
1875 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 cat >conftest.$ac_ext <<_ACEOF
1883 cat confdefs.h >>conftest.$ac_ext
1884 cat >>conftest.$ac_ext <<_ACEOF
1885 /* end confdefs.h. */
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>conftest.er1
1902 grep -v '^ *+' conftest.er1 >conftest.err
1904 cat conftest.err >&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); } &&
1907 { ac_try='test -z "$ac_c_werror_flag"
1908 || test ! -s conftest.err'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; } &&
1914 { ac_try='test -s conftest.$ac_objext'
1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1937 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1945 cat confdefs.h >>conftest.$ac_ext
1946 cat >>conftest.$ac_ext <<_ACEOF
1947 /* end confdefs.h. */
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>conftest.er1
1961 grep -v '^ *+' conftest.er1 >conftest.err
1963 cat conftest.err >&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -z "$ac_c_werror_flag"
1967 || test ! -s conftest.err'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; } &&
1973 { ac_try='test -s conftest.$ac_objext'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; }; then
1981 echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1990 if test "$ac_test_CFLAGS" = set; then
1991 CFLAGS=$ac_save_CFLAGS
1992 elif test $ac_cv_prog_cc_g = yes; then
1993 if test "$GCC" = yes; then
1999 if test "$GCC" = yes; then
2005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 ac_cv_prog_cc_stdc=no
2012 cat >conftest.$ac_ext <<_ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2020 #include <sys/types.h>
2021 #include <sys/stat.h>
2022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2023 struct buf { int x; };
2024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2025 static char *e (p, i)
2031 static char *f (char * (*g) (char **, int), char **p, ...)
2036 s = g (p, va_arg (v,int));
2041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2042 function prototypes and stuff, but not '\xHH' hex character constants.
2043 These don't provoke an error unfortunately, instead are silently treated
2044 as 'x'. The following induces an error, until -std1 is added to get
2045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2046 array size at least. It's necessary to write '\x00'==0 to get something
2047 that's true only with -std1. */
2048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2050 int test (int i, double x);
2051 struct s1 {int (*f) (int a);};
2052 struct s2 {int (*f) (double a);};
2053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2064 # Don't try gcc -ansi; that turns off useful extensions and
2065 # breaks some systems' header files.
2066 # AIX -qlanglvl=ansi
2067 # Ultrix and OSF/1 -std1
2068 # HP-UX 10.20 and later -Ae
2069 # HP-UX older versions -Aa -D_HPUX_SOURCE
2070 # SVR4 -Xc -D__EXTENSIONS__
2071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2073 CC="$ac_save_CC $ac_arg"
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
2078 grep -v '^ *+' conftest.er1 >conftest.err
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 ac_cv_prog_cc_stdc=$ac_arg
2099 echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.err conftest.$ac_objext
2105 rm -f conftest.$ac_ext conftest.$ac_objext
2110 case "x$ac_cv_prog_cc_stdc" in
2112 echo "$as_me:$LINENO: result: none needed" >&5
2113 echo "${ECHO_T}none needed" >&6 ;;
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2117 CC="$CC $ac_cv_prog_cc_stdc" ;;
2120 # Some people use a C++ compiler to compile C. Since we use `exit',
2121 # in C++ we need to declare it. In case someone uses the same compiler
2122 # for both compiling C and C++ we need to have the C++ compiler decide
2123 # the declaration of exit, since it's the most demanding environment.
2124 cat >conftest.$ac_ext <<_ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>conftest.er1
2133 grep -v '^ *+' conftest.er1 >conftest.err
2135 cat conftest.err >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -z "$ac_c_werror_flag"
2139 || test ! -s conftest.err'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; } &&
2145 { ac_try='test -s conftest.$ac_objext'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2151 for ac_declaration in \
2153 'extern "C" void std::exit (int) throw (); using std::exit;' \
2154 'extern "C" void std::exit (int); using std::exit;' \
2155 'extern "C" void exit (int) throw ();' \
2156 'extern "C" void exit (int);' \
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>conftest.er1
2179 grep -v '^ *+' conftest.er1 >conftest.err
2181 cat conftest.err >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -z "$ac_c_werror_flag"
2185 || test ! -s conftest.err'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251 if test -n "$ac_declaration"; then
2252 echo '#ifdef __cplusplus' >>confdefs.h
2253 echo $ac_declaration >>confdefs.h
2254 echo '#endif' >>confdefs.h
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270 ac_cpp='$CXXCPP $CPPFLAGS'
2271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2274 if test -n "$ac_tool_prefix"; then
2275 for ac_prog in $CCC g++ CC c++ cxx
2277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CXX+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$CXX"; then
2285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$CXX"; then
2305 echo "$as_me:$LINENO: result: $CXX" >&5
2306 echo "${ECHO_T}$CXX" >&6
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2312 test -n "$CXX" && break
2315 if test -z "$CXX"; then
2317 for ac_prog in $CCC g++ CC c++ cxx
2319 # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$ac_ct_CXX"; then
2327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CXX="$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2346 if test -n "$ac_ct_CXX"; then
2347 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2348 echo "${ECHO_T}$ac_ct_CXX" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2354 test -n "$ac_ct_CXX" && break
2356 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2362 # Provide some information about the compiler.
2363 echo "$as_me:$LINENO:" \
2364 "checking for C++ compiler version" >&5
2365 ac_compiler=`set X $ac_compile; echo $2`
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2367 (eval $ac_compiler --version </dev/null >&5) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2372 (eval $ac_compiler -v </dev/null >&5) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2377 (eval $ac_compiler -V </dev/null >&5) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2382 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2384 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>conftest.er1
2409 grep -v '^ *+' conftest.er1 >conftest.err
2411 cat conftest.err >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try='test -z "$ac_cxx_werror_flag"
2415 || test ! -s conftest.err'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; } &&
2421 { ac_try='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2438 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2439 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2440 GXX=`test $ac_compiler_gnu = yes && echo yes`
2441 ac_test_CXXFLAGS=${CXXFLAGS+set}
2442 ac_save_CXXFLAGS=$CXXFLAGS
2444 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2445 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2446 if test "${ac_cv_prog_cxx_g+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2468 grep -v '^ *+' conftest.er1 >conftest.err
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -z "$ac_cxx_werror_flag"
2474 || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cxx_g=yes
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2496 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2497 if test "$ac_test_CXXFLAGS" = set; then
2498 CXXFLAGS=$ac_save_CXXFLAGS
2499 elif test $ac_cv_prog_cxx_g = yes; then
2500 if test "$GXX" = yes; then
2506 if test "$GXX" = yes; then
2512 for ac_declaration in \
2514 'extern "C" void std::exit (int) throw (); using std::exit;' \
2515 'extern "C" void std::exit (int); using std::exit;' \
2516 'extern "C" void exit (int) throw ();' \
2517 'extern "C" void exit (int);' \
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_cxx_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_cxx_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 if test -n "$ac_declaration"; then
2613 echo '#ifdef __cplusplus' >>confdefs.h
2614 echo $ac_declaration >>confdefs.h
2615 echo '#endif' >>confdefs.h
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_RANLIB+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$RANLIB"; then
2633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 RANLIB=$ac_cv_prog_RANLIB
2652 if test -n "$RANLIB"; then
2653 echo "$as_me:$LINENO: result: $RANLIB" >&5
2654 echo "${ECHO_T}$RANLIB" >&6
2656 echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2661 if test -z "$ac_cv_prog_RANLIB"; then
2662 ac_ct_RANLIB=$RANLIB
2663 # Extract the first word of "ranlib", so it can be a program name with args.
2664 set dummy ranlib; ac_word=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$ac_ct_RANLIB"; then
2671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_ac_ct_RANLIB="ranlib"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2691 if test -n "$ac_ct_RANLIB"; then
2692 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2693 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2695 echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2699 RANLIB=$ac_ct_RANLIB
2701 RANLIB="$ac_cv_prog_RANLIB"
2704 # Extract the first word of "ar", so it can be a program name with args.
2705 set dummy ar; ac_word=$2
2706 echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708 if test "${ac_cv_path_AR+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2736 if test -n "$AR"; then
2737 echo "$as_me:$LINENO: result: $AR" >&5
2738 echo "${ECHO_T}$AR" >&6
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2744 if [ $AR = "no" ] ; then
2745 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2746 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2747 { (exit 1); exit 1; }; };
2750 # Checks for libraries.
2753 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2754 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2755 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-lpthread $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2767 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2773 char pthread_create ();
2782 rm -f conftest.$ac_objext conftest$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784 (eval $ac_link) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest$ac_exeext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_cv_lib_pthread_pthread_create=yes
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 ac_cv_lib_pthread_pthread_create=no
2811 rm -f conftest.err conftest.$ac_objext \
2812 conftest$ac_exeext conftest.$ac_ext
2813 LIBS=$ac_check_lib_save_LIBS
2815 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2816 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2817 if test $ac_cv_lib_pthread_pthread_create = yes; then
2818 cat >>confdefs.h <<_ACEOF
2819 #define HAVE_LIBPTHREAD 1
2822 LIBS="-lpthread $LIBS"
2825 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
2826 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
2827 { (exit 1); exit 1; }; }
2833 # Checks for header files.
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2845 if test -z "$CPP"; then
2846 if test "${ac_cv_prog_CPP+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 # Double quotes because CPP needs to be expanded
2850 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2853 for ac_c_preproc_warn_flag in '' yes
2855 # Use a header file that comes with gcc, so configuring glibc
2856 # with a fresh cross-compiler works.
2857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858 # <limits.h> exists even on freestanding compilers.
2859 # On the NeXT, cc -E runs the code through the compiler's parser,
2860 # not just through cpp. "Syntax error" is here to catch this case.
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2868 # include <limits.h>
2870 # include <assert.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2891 if test -z "$ac_cpp_err"; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Broken: fails on valid input.
2900 rm -f conftest.err conftest.$ac_ext
2902 # OK, works on sane cases. Now check whether non-existent headers
2903 # can be detected and how.
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1 >conftest.err
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2929 if test -z "$ac_cpp_err"; then
2930 # Broken: success on invalid input.
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Passes both tests.
2940 rm -f conftest.err conftest.$ac_ext
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.$ac_ext
2945 if $ac_preproc_ok; then
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2960 for ac_c_preproc_warn_flag in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2975 # include <limits.h>
2977 # include <assert.h>
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 if test -z "$ac_cpp_err"; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Broken: fails on valid input.
3007 rm -f conftest.err conftest.$ac_ext
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
3029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3036 if test -z "$ac_cpp_err"; then
3037 # Broken: success on invalid input.
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Passes both tests.
3047 rm -f conftest.err conftest.$ac_ext
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3055 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 echo "$as_me:$LINENO: checking for egrep" >&5
3070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3071 if test "${ac_cv_prog_egrep+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3075 then ac_cv_prog_egrep='grep -E'
3076 else ac_cv_prog_egrep='egrep'
3079 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3080 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3081 EGREP=$ac_cv_prog_egrep
3084 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3086 if test "${ac_cv_header_stdc+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag"
3118 || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 ac_cv_header_stdc=yes
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 ac_cv_header_stdc=no
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3139 if test $ac_cv_header_stdc = yes; then
3140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151 $EGREP "memchr" >/dev/null 2>&1; then
3154 ac_cv_header_stdc=no
3160 if test $ac_cv_header_stdc = yes; then
3161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "free" >/dev/null 2>&1; then
3175 ac_cv_header_stdc=no
3181 if test $ac_cv_header_stdc = yes; then
3182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3183 if test "$cross_compiling" = yes; then
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 #if ((' ' & 0x0FF) == 0x020)
3194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3197 # define ISLOWER(c) \
3198 (('a' <= (c) && (c) <= 'i') \
3199 || ('j' <= (c) && (c) <= 'r') \
3200 || ('s' <= (c) && (c) <= 'z'))
3201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3209 for (i = 0; i < 256; i++)
3210 if (XOR (islower (i), ISLOWER (i))
3211 || toupper (i) != TOUPPER (i))
3216 rm -f conftest$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218 (eval $ac_link) 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3229 echo "$as_me: program exited with status $ac_status" >&5
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_cv_header_stdc=no
3236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3242 if test $ac_cv_header_stdc = yes; then
3244 cat >>confdefs.h <<\_ACEOF
3245 #define STDC_HEADERS 1
3250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3261 inttypes.h stdint.h unistd.h
3263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3264 echo "$as_me:$LINENO: checking for $ac_header" >&5
3265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 $ac_includes_default
3277 #include <$ac_header>
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -z "$ac_c_werror_flag"
3289 || test ! -s conftest.err'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 eval "$as_ac_Header=yes"
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 eval "$as_ac_Header=no"
3308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313 cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3324 for ac_header in sys/ioctl.h unistd.h
3326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3328 echo "$as_me:$LINENO: checking for $ac_header" >&5
3329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336 # Is the header compilable?
3337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 $ac_includes_default
3346 #include <$ac_header>
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_header_compiler=yes
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ac_header_compiler=no
3377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3379 echo "${ECHO_T}$ac_header_compiler" >&6
3381 # Is the header present?
3382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <$ac_header>
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 if test -z "$ac_cpp_err"; then
3410 ac_header_preproc=yes
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 ac_header_preproc=no
3417 rm -f conftest.err conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3419 echo "${ECHO_T}$ac_header_preproc" >&6
3421 # So? What about this header?
3422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3428 ac_header_preproc=yes
3431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3445 ## ----------------------------------- ##
3446 ## Report this to gary@music.mcgill.ca ##
3447 ## ----------------------------------- ##
3450 sed "s/^/$as_me: WARNING: /" >&2
3453 echo "$as_me:$LINENO: checking for $ac_header" >&5
3454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 eval "$as_ac_Header=\$ac_header_preproc"
3460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3465 cat >>confdefs.h <<_ACEOF
3466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3474 # Checks for typedefs, structures, and compiler characteristics.
3475 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3476 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3477 if test "${ac_cv_c_const+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3490 /* FIXME: Include the comments suggested by Paul. */
3492 /* Ultrix mips cc rejects this. */
3493 typedef int charset[2];
3495 /* SunOS 4.1.1 cc rejects this. */
3496 char const *const *ccp;
3498 /* NEC SVR4.0.2 mips cc rejects this. */
3499 struct point {int x, y;};
3500 static struct point const zero = {0,0};
3501 /* AIX XL C 1.02.0.0 rejects this.
3502 It does not let you subtract one const X* pointer from another in
3503 an arm of an if-expression whose if-part is not a constant
3505 const char *g = "string";
3506 ccp = &g + (g ? g-g : 0);
3507 /* HPUX 7.0 cc rejects these. */
3510 ccp = (char const *const *) p;
3511 { /* SCO 3.2v4 cc rejects this. */
3513 char const *s = 0 ? (char *) 0 : (char const *) 0;
3517 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3519 const int *foo = &x[0];
3522 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3523 typedef const int *iptr;
3527 { /* AIX XL C 1.02.0.0 rejects this saying
3528 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3529 struct s { int j; const int *ap[3]; };
3530 struct s *b; b->j = 5;
3532 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3573 echo "${ECHO_T}$ac_cv_c_const" >&6
3574 if test $ac_cv_c_const = no; then
3576 cat >>confdefs.h <<\_ACEOF
3584 echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3585 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
3586 # Check whether --enable-debug or --disable-debug was given.
3587 if test "${enable_debug+set}" = set; then
3588 enableval="$enable_debug"
3589 debug=-D__RTAUDIO_DEBUG__
3592 echo "$as_me:$LINENO: result: yes" >&5
3593 echo "${ECHO_T}yes" >&6
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3602 # Checks for functions
3603 echo "$as_me:$LINENO: checking for gettimeofday" >&5
3604 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
3605 if test "${ac_cv_func_gettimeofday+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
3615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3616 #define gettimeofday innocuous_gettimeofday
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char gettimeofday (); below.
3620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621 <limits.h> exists even on freestanding compilers. */
3624 # include <limits.h>
3626 # include <assert.h>
3631 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char gettimeofday ();
3639 /* The GNU C library defines this for functions which it implements
3640 to always fail with ENOSYS. Some functions are actually named
3641 something starting with __ and the normal name is an alias. */
3642 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3645 char (*f) () = gettimeofday;
3654 return f != gettimeofday;
3659 rm -f conftest.$ac_objext conftest$ac_exeext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661 (eval $ac_link) 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_func_gettimeofday=yes
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_cv_func_gettimeofday=no
3688 rm -f conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
3691 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
3692 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
3693 if test $ac_cv_func_gettimeofday = yes; then
3694 cflags=$cflags" -DHAVE_GETTIMEOFDAY"
3698 # Check compiler and use -Wall if gnu.
3699 if test $GXX = "yes" ; then
3704 # Checks for package options and external software
3706 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3707 if test -f $ac_dir/install-sh; then
3709 ac_install_sh="$ac_aux_dir/install-sh -c"
3711 elif test -f $ac_dir/install.sh; then
3713 ac_install_sh="$ac_aux_dir/install.sh -c"
3715 elif test -f $ac_dir/shtool; then
3717 ac_install_sh="$ac_aux_dir/shtool install -c"
3721 if test -z "$ac_aux_dir"; then
3722 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3723 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3724 { (exit 1); exit 1; }; }
3726 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3727 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3728 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3730 # Make sure we can run config.sub.
3731 $ac_config_sub sun4 >/dev/null 2>&1 ||
3732 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3734 { (exit 1); exit 1; }; }
3736 echo "$as_me:$LINENO: checking build system type" >&5
3737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3738 if test "${ac_cv_build+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 ac_cv_build_alias=$build_alias
3742 test -z "$ac_cv_build_alias" &&
3743 ac_cv_build_alias=`$ac_config_guess`
3744 test -z "$ac_cv_build_alias" &&
3745 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3747 { (exit 1); exit 1; }; }
3748 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3749 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3751 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3755 echo "${ECHO_T}$ac_cv_build" >&6
3757 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3758 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3759 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3762 echo "$as_me:$LINENO: checking host system type" >&5
3763 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3764 if test "${ac_cv_host+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 ac_cv_host_alias=$host_alias
3768 test -z "$ac_cv_host_alias" &&
3769 ac_cv_host_alias=$ac_cv_build_alias
3770 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3771 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3772 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3773 { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3777 echo "${ECHO_T}$ac_cv_host" >&6
3779 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3780 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3781 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3784 echo "$as_me:$LINENO: checking for audio API" >&5
3785 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
3788 sound_api=-D__LINUX_OSS__
3790 echo "$as_me:$LINENO: result: using OSS" >&5
3791 echo "${ECHO_T}using OSS" >&6
3792 audio_apis=-D__LINUX_OSS__
3794 cflags=$cflags" -lossaudio"
3801 # Check whether --with-jack or --without-jack was given.
3802 if test "${with_jack+set}" = set; then
3803 withval="$with_jack"
3804 sound_api=-D__UNIX_JACK__
3805 echo "$as_me:$LINENO: result: using JACK" >&5
3806 echo "${ECHO_T}using JACK" >&6
3808 if test $sound_api = -D__UNIX_JACK__; then
3811 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
3812 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
3813 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 ac_check_lib_save_LIBS=$LIBS
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3825 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3831 char jack_client_new ();
3840 rm -f conftest.$ac_objext conftest$ac_exeext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842 (eval $ac_link) 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_lib_jack_jack_client_new=yes
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ac_cv_lib_jack_jack_client_new=no
3869 rm -f conftest.err conftest.$ac_objext \
3870 conftest$ac_exeext conftest.$ac_ext
3871 LIBS=$ac_check_lib_save_LIBS
3873 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
3874 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
3875 if test $ac_cv_lib_jack_jack_client_new = yes; then
3876 cat >>confdefs.h <<_ACEOF
3877 #define HAVE_LIBJACK 1
3883 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
3884 echo "$as_me: error: JACK support requires the jack library!" >&2;}
3885 { (exit 1); exit 1; }; }
3889 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3890 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3891 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_check_lib_save_LIBS=$LIBS
3895 LIBS="-lasound $LIBS"
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3903 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909 char snd_pcm_open ();
3918 rm -f conftest.$ac_objext conftest$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_lib_asound_snd_pcm_open=yes
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 ac_cv_lib_asound_snd_pcm_open=no
3947 rm -f conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
3949 LIBS=$ac_check_lib_save_LIBS
3951 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3952 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3953 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955 #define HAVE_LIBASOUND 1
3958 LIBS="-lasound $LIBS"
3961 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
3962 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
3963 { (exit 1); exit 1; }; }
3966 LIBS="`pkg-config --cflags --libs jack` $TEMP_LIBS -lasound"
3967 audio_apis="-D__UNIX_JACK__"
3970 # Look for Alsa flag
3972 # Check whether --with-alsa or --without-alsa was given.
3973 if test "${with_alsa+set}" = set; then
3974 withval="$with_alsa"
3975 sound_api=-D__LINUX_ALSA__
3976 echo "$as_me:$LINENO: result: using ALSA" >&5
3977 echo "${ECHO_T}using ALSA" >&6
3979 if test $sound_api = -D__LINUX_ALSA__; then
3981 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3982 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3983 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 ac_check_lib_save_LIBS=$LIBS
3987 LIBS="-lasound $LIBS"
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3995 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char snd_pcm_open ();
4010 rm -f conftest.$ac_objext conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_c_werror_flag"
4020 || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest$ac_exeext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_lib_asound_snd_pcm_open=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_cv_lib_asound_snd_pcm_open=no
4039 rm -f conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4043 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4044 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4045 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define HAVE_LIBASOUND 1
4050 LIBS="-lasound $LIBS"
4053 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4054 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4055 { (exit 1); exit 1; }; }
4058 audio_apis="-D__LINUX_ALSA__ $audio_apis"
4063 # Check whether --with-oss or --without-oss was given.
4064 if test "${with_oss+set}" = set; then
4066 sound_api=-D__LINUX_OSS__
4067 echo "$as_me:$LINENO: result: using OSS" >&5
4068 echo "${ECHO_T}using OSS" >&6
4070 if test $sound_api = -D__LINUX_OSS__; then
4071 audio_apis="-D__LINUX_OSS__ $audio_apis"
4074 # If no audio api flags specified, use OSS
4075 if test $sound_api = _NO_API_; then
4076 sound_api=-D__LINUX_OSS__
4078 echo "$as_me:$LINENO: result: using OSS" >&5
4079 echo "${ECHO_T}using OSS" >&6
4080 audio_apis=-D__LINUX_OSS__
4086 audio_apis="-D__IRIX_AL__ -LANG:std -w"
4088 echo "$as_me:$LINENO: result: using IRIX AL" >&5
4089 echo "${ECHO_T}using IRIX AL" >&6
4091 echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
4092 echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
4093 if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 ac_check_lib_save_LIBS=$LIBS
4097 LIBS="-laudio $LIBS"
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4105 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4120 rm -f conftest.$ac_objext conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest$ac_exeext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_cv_lib_audio_alOpenPort=yes
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_cv_lib_audio_alOpenPort=no
4149 rm -f conftest.err conftest.$ac_objext \
4150 conftest$ac_exeext conftest.$ac_ext
4151 LIBS=$ac_check_lib_save_LIBS
4153 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
4154 echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
4155 if test $ac_cv_lib_audio_alOpenPort = yes; then
4156 cat >>confdefs.h <<_ACEOF
4157 #define HAVE_LIBAUDIO 1
4160 LIBS="-laudio $LIBS"
4163 { { echo "$as_me:$LINENO: error: IRIX audio support requires the audio library!" >&5
4164 echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
4165 { (exit 1); exit 1; }; }
4174 # Check whether --with-jack or --without-jack was given.
4175 if test "${with_jack+set}" = set; then
4176 withval="$with_jack"
4177 sound_api=-D__UNIX_JACK__
4178 echo "$as_me:$LINENO: result: using JACK" >&5
4179 echo "${ECHO_T}using JACK" >&6
4181 if test $sound_api = -D__UNIX_JACK__; then
4183 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
4184 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
4185 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 ac_check_lib_save_LIBS=$LIBS
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4203 char jack_client_new ();
4212 rm -f conftest.$ac_objext conftest$ac_exeext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214 (eval $ac_link) 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_lib_jack_jack_client_new=yes
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cv_lib_jack_jack_client_new=no
4241 rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243 LIBS=$ac_check_lib_save_LIBS
4245 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
4246 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
4247 if test $ac_cv_lib_jack_jack_client_new = yes; then
4248 cat >>confdefs.h <<_ACEOF
4249 #define HAVE_LIBJACK 1
4255 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4256 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4257 { (exit 1); exit 1; }; }
4260 audio_apis="-D__UNIX_JACK__"
4263 # Look for Core flag
4265 # Check whether --with-core or --without-core was given.
4266 if test "${with_core+set}" = set; then
4267 withval="$with_core"
4268 sound_api=-D__MACOSX_CORE__
4269 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4270 echo "${ECHO_T}using CoreAudio" >&6
4272 if test $sound_api = -D__MACOSX_CORE__; then
4273 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4274 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4275 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4276 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4280 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4282 # Is the header compilable?
4283 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4284 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 $ac_includes_default
4292 #include <CoreAudio/CoreAudio.h>
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296 (eval $ac_compile) 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag"
4304 || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_header_compiler=yes
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 ac_header_compiler=no
4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4325 echo "${ECHO_T}$ac_header_compiler" >&6
4327 # Is the header present?
4328 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4329 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <CoreAudio/CoreAudio.h>
4338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null; then
4346 if test -s conftest.err; then
4347 ac_cpp_err=$ac_c_preproc_warn_flag
4348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4355 if test -z "$ac_cpp_err"; then
4356 ac_header_preproc=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_header_preproc=no
4363 rm -f conftest.err conftest.$ac_ext
4364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4365 echo "${ECHO_T}$ac_header_preproc" >&6
4367 # So? What about this header?
4368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4370 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4371 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4372 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4373 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4374 ac_header_preproc=yes
4377 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4378 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4379 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4380 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4381 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4382 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4383 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4384 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4385 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4386 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4388 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4391 ## ----------------------------------- ##
4392 ## Report this to gary@music.mcgill.ca ##
4393 ## ----------------------------------- ##
4396 sed "s/^/$as_me: WARNING: /" >&2
4399 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4400 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4401 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4406 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4407 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4410 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4413 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4414 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4415 { (exit 1); exit 1; }; }
4419 frameworks="-framework CoreAudio -framework CoreFoundation"
4421 audio_apis="-D__MACOSX_CORE__ $audio_apis"
4424 # If no audio api flags specified, use CoreAudio
4425 if test $sound_api = _NO_API_; then
4426 sound_api=-D__MACOSX_CORE__
4428 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4429 echo "${ECHO_T}using CoreAudio" >&6
4430 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4431 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4432 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4433 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4437 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4439 # Is the header compilable?
4440 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4441 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 $ac_includes_default
4449 #include <CoreAudio/CoreAudio.h>
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_header_compiler=yes
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ac_header_compiler=no
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6
4484 # Is the header present?
4485 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4486 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <CoreAudio/CoreAudio.h>
4495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 grep -v '^ *+' conftest.er1 >conftest.err
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } >/dev/null; then
4503 if test -s conftest.err; then
4504 ac_cpp_err=$ac_c_preproc_warn_flag
4505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4512 if test -z "$ac_cpp_err"; then
4513 ac_header_preproc=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_header_preproc=no
4520 rm -f conftest.err conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522 echo "${ECHO_T}$ac_header_preproc" >&6
4524 # So? What about this header?
4525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4527 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4528 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4530 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4531 ac_header_preproc=yes
4534 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4535 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4537 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4539 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4541 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4545 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4548 ## ----------------------------------- ##
4549 ## Report this to gary@music.mcgill.ca ##
4550 ## ----------------------------------- ##
4553 sed "s/^/$as_me: WARNING: /" >&2
4556 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4557 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4558 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4563 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4564 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4567 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4568 audio_apis=-D__MACOSX_CORE__
4571 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4572 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4573 { (exit 1); exit 1; }; }
4577 frameworks="-framework CoreAudio -framework CoreFoundation"
4583 # Default case for unknown realtime systems.
4584 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
4585 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
4586 { (exit 1); exit 1; }; }
4590 # Checks for library functions.
4591 if test $ac_cv_c_compiler_gnu = yes; then
4592 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4593 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4594 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_pattern="Autoconf.*'x'"
4598 cat >conftest.$ac_ext <<_ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4609 ac_cv_prog_gcc_traditional=yes
4611 ac_cv_prog_gcc_traditional=no
4616 if test $ac_cv_prog_gcc_traditional = no; then
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4628 ac_cv_prog_gcc_traditional=yes
4634 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4635 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4636 if test $ac_cv_prog_gcc_traditional = yes; then
4637 CC="$CC -traditional"
4642 cat >confcache <<\_ACEOF
4643 # This file is a shell script that caches the results of configure
4644 # tests run on this system so they can be shared between configure
4645 # scripts and configure runs, see configure's option --config-cache.
4646 # It is not useful on other systems. If it contains results you don't
4647 # want to keep, you may remove or edit it.
4649 # config.status only pays attention to the cache file if you give it
4650 # the --recheck option to rerun configure.
4652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4658 # The following way of writing the cache mishandles newlines in values,
4659 # but we know of no workaround that is simple, portable, and efficient.
4660 # So, don't put newlines in cache variables' values.
4661 # Ultrix sh set writes to stderr and can't be redirected directly,
4662 # and sets the high bit in the cache file unless we assign to the vars.
4665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4667 # `set' does not quote correctly, so add quotes (double-quote
4668 # substitution turns \\\\ into \\, and sed turns \\ into \).
4671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4674 # `set' quotes correctly as required by POSIX, so do not add quotes.
4676 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4685 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4687 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4688 if test -w $cache_file; then
4689 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4690 cat confcache >$cache_file
4692 echo "not updating unwritable cache $cache_file"
4697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4698 # Let make expand exec_prefix.
4699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4703 # trailing colons and then remove the whole line if VPATH becomes empty
4704 # (actually we leave an empty line to preserve line numbers).
4705 if test "x$srcdir" = x.; then
4706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4707 s/:*\$(srcdir):*/:/;
4708 s/:*\${srcdir}:*/:/;
4710 s/^\([^=]*=[ ]*\):*/\1/;
4716 # Transform confdefs.h into DEFS.
4717 # Protect against shell expansion while executing Makefile rules.
4718 # Protect against Makefile macro expansion.
4720 # If the first sed substitution is executed (which looks for macros that
4721 # take arguments), then we branch to the quote section. Otherwise,
4722 # look for a macro that doesn't take arguments.
4723 cat >confdef2opt.sed <<\_ACEOF
4726 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4728 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4732 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4738 # We use echo to avoid assuming a particular line-breaking character.
4739 # The extra dot is to prevent the shell from consuming trailing
4740 # line-breaks from the sub-command output. A line-break within
4741 # single-quotes doesn't work because, if this script is created in a
4742 # platform that uses two characters for line-breaks (e.g., DOS), tr
4744 ac_LF_and_DOT=`echo; echo .`
4745 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4746 rm -f confdef2opt.sed
4751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4752 # 1. Remove the extension, and $U if already installed.
4753 ac_i=`echo "$ac_i" |
4754 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4756 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4757 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4761 LTLIBOBJS=$ac_ltlibobjs
4765 : ${CONFIG_STATUS=./config.status}
4766 ac_clean_files_save=$ac_clean_files
4767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4768 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4769 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4770 cat >$CONFIG_STATUS <<_ACEOF
4772 # Generated by $as_me.
4773 # Run this file to recreate the current configuration.
4774 # Compiler output produced by configure, useful for debugging
4775 # configure, is in config.log if it exists.
4780 SHELL=\${CONFIG_SHELL-$SHELL}
4783 cat >>$CONFIG_STATUS <<\_ACEOF
4784 ## --------------------- ##
4785 ## M4sh Initialization. ##
4786 ## --------------------- ##
4788 # Be Bourne compatible
4789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4792 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4793 # is contrary to our usage. Disable this feature.
4794 alias -g '${1+"$@"}'='"$@"'
4795 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4798 DUALCASE=1; export DUALCASE # for MKS sh
4800 # Support unset when possible.
4801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4808 # Work around bugs in pre-3.0 UWIN ksh.
4809 $as_unset ENV MAIL MAILPATH
4816 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4817 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4818 LC_TELEPHONE LC_TIME
4820 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4821 eval $as_var=C; export $as_var
4827 # Required to use basename.
4828 if expr a : '\(a\)' >/dev/null 2>&1; then
4834 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4835 as_basename=basename
4841 # Name of the executable.
4842 as_me=`$as_basename "$0" ||
4843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4844 X"$0" : 'X\(//\)$' \| \
4845 X"$0" : 'X\(/\)$' \| \
4846 . : '\(.\)' 2>/dev/null ||
4848 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4849 /^X\/\(\/\/\)$/{ s//\1/; q; }
4850 /^X\/\(\/\).*/{ s//\1/; q; }
4854 # PATH needs CR, and LINENO needs CR and PATH.
4855 # Avoid depending upon Character Ranges.
4856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4859 as_cr_digits='0123456789'
4860 as_cr_alnum=$as_cr_Letters$as_cr_digits
4862 # The user is always right.
4863 if test "${PATH_SEPARATOR+set}" != set; then
4864 echo "#! /bin/sh" >conf$$.sh
4865 echo "exit 0" >>conf$$.sh
4867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4878 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4879 test "x$as_lineno_1" != "x$as_lineno_2" &&
4880 test "x$as_lineno_3" = "x$as_lineno_2" || {
4881 # Find who we are. Look in the path if we contain no path at all
4884 *[\\/]* ) as_myself=$0 ;;
4885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4895 # We did not find ourselves, most probably we were run as `sh COMMAND'
4896 # in which case we are not to be found in the path.
4897 if test "x$as_myself" = x; then
4900 if test ! -f "$as_myself"; then
4901 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4902 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4903 { (exit 1); exit 1; }; }
4905 case $CONFIG_SHELL in
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4911 test -z "$as_dir" && as_dir=.
4912 for as_base in sh bash ksh sh5; do
4915 if ("$as_dir/$as_base" -c '
4918 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4919 test "x$as_lineno_1" != "x$as_lineno_2" &&
4920 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4921 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4922 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4923 CONFIG_SHELL=$as_dir/$as_base
4925 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4933 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4934 # uniformly replaced by the line number. The first 'sed' inserts a
4935 # line-number line before each line; the second 'sed' does the real
4936 # work. The second script uses 'N' to pair each line-number line
4937 # with the numbered line, and appends trailing '-' during
4938 # substitution so that $LINENO is not a special case at line end.
4939 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4940 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4941 sed '=' <$as_myself |
4946 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4949 s,^['$as_cr_digits']*\n,,
4951 chmod +x $as_me.lineno ||
4952 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4953 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4954 { (exit 1); exit 1; }; }
4956 # Don't try to exec as it changes $[0], causing all sort of problems
4957 # (the dirname of $[0] is not the place where we might find the
4958 # original and so on. Autoconf is especially sensible to this).
4960 # Exit status is that of the last command.
4965 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4966 *c*,-n*) ECHO_N= ECHO_C='
4968 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4969 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4972 if expr a : '\(a\)' >/dev/null 2>&1; then
4978 rm -f conf$$ conf$$.exe conf$$.file
4980 if ln -s conf$$.file conf$$ 2>/dev/null; then
4981 # We could just check for DJGPP; but this test a) works b) is more generic
4982 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4983 if test -f conf$$.exe; then
4984 # Don't use ln at all; we don't have any links
4989 elif ln conf$$.file conf$$ 2>/dev/null; then
4994 rm -f conf$$ conf$$.exe conf$$.file
4996 if mkdir -p . 2>/dev/null; then
4999 test -d ./-p && rmdir ./-p
5003 as_executable_p="test -f"
5005 # Sed expression to map a string onto a valid CPP name.
5006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5008 # Sed expression to map a string onto a valid variable name.
5009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5013 # We need space, tab and new line, in precisely that order.
5023 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5024 # report actual input values of CONFIG_FILES etc. instead of their
5025 # values after options handling. Logging --version etc. is OK.
5029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5030 ## Running $as_me. ##
5035 This file was extended by RtAudio $as_me 4.0, which was
5036 generated by GNU Autoconf 2.59. Invocation command line was
5038 CONFIG_FILES = $CONFIG_FILES
5039 CONFIG_HEADERS = $CONFIG_HEADERS
5040 CONFIG_LINKS = $CONFIG_LINKS
5041 CONFIG_COMMANDS = $CONFIG_COMMANDS
5045 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5049 # Files that config.status was made for.
5050 if test -n "$ac_config_files"; then
5051 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5054 if test -n "$ac_config_headers"; then
5055 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5058 if test -n "$ac_config_links"; then
5059 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5062 if test -n "$ac_config_commands"; then
5063 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5066 cat >>$CONFIG_STATUS <<\_ACEOF
5069 \`$as_me' instantiates files from templates according to the
5070 current configuration.
5072 Usage: $0 [OPTIONS] [FILE]...
5074 -h, --help print this help, then exit
5075 -V, --version print version number, then exit
5076 -q, --quiet do not print progress messages
5077 -d, --debug don't remove temporary files
5078 --recheck update $as_me by reconfiguring in the same conditions
5079 --file=FILE[:TEMPLATE]
5080 instantiate the configuration file FILE
5082 Configuration files:
5085 Report bugs to <bug-autoconf@gnu.org>."
5088 cat >>$CONFIG_STATUS <<_ACEOF
5090 RtAudio config.status 4.0
5091 configured by $0, generated by GNU Autoconf 2.59,
5092 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5094 Copyright (C) 2003 Free Software Foundation, Inc.
5095 This config.status script is free software; the Free Software Foundation
5096 gives unlimited permission to copy, distribute and modify it."
5100 cat >>$CONFIG_STATUS <<\_ACEOF
5101 # If no file are specified by the user, then we need to provide default
5102 # value. By we need to know if files were specified by the user.
5108 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5109 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5117 *) # This is not an option, so the user has probably given explicit
5120 ac_need_defaults=false;;
5124 # Handling of the options.
5126 cat >>$CONFIG_STATUS <<\_ACEOF
5127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5129 --version | --vers* | -V )
5130 echo "$ac_cs_version"; exit 0 ;;
5132 # Conflict between --help and --header
5133 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5134 Try \`$0 --help' for more information." >&5
5135 echo "$as_me: error: ambiguous option: $1
5136 Try \`$0 --help' for more information." >&2;}
5137 { (exit 1); exit 1; }; };;
5138 --help | --hel | -h )
5139 echo "$ac_cs_usage"; exit 0 ;;
5140 --debug | --d* | -d )
5142 --file | --fil | --fi | --f )
5144 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5145 ac_need_defaults=false;;
5146 --header | --heade | --head | --hea )
5148 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5149 ac_need_defaults=false;;
5150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5155 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5156 Try \`$0 --help' for more information." >&5
5157 echo "$as_me: error: unrecognized option: $1
5158 Try \`$0 --help' for more information." >&2;}
5159 { (exit 1); exit 1; }; } ;;
5161 *) ac_config_targets="$ac_config_targets $1" ;;
5167 ac_configure_extra_args=
5169 if $ac_cs_silent; then
5171 ac_configure_extra_args="$ac_configure_extra_args --silent"
5175 cat >>$CONFIG_STATUS <<_ACEOF
5176 if \$ac_cs_recheck; then
5177 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5178 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5187 cat >>$CONFIG_STATUS <<\_ACEOF
5188 for ac_config_target in $ac_config_targets
5190 case "$ac_config_target" in
5191 # Handling of arguments.
5192 "rtaudio-config" ) CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5193 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5194 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5195 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5196 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5197 { (exit 1); exit 1; }; };;
5201 # If the user did not use the arguments to specify the items to instantiate,
5202 # then the envvar interface is used. Set only those that are not.
5203 # We use the long form for the default assignment because of an extremely
5204 # bizarre bug on SunOS 4.1.3.
5205 if $ac_need_defaults; then
5206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5209 # Have a temporary directory for convenience. Make it in the build tree
5210 # simply because there is no reason to put it here, and in addition,
5211 # creating and moving files from /tmp can sometimes cause problems.
5212 # Create a temporary directory, and hook for its removal unless debugging.
5215 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5216 trap '{ (exit 1); exit 1; }' 1 2 13 15
5219 # Create a (secure) tmp directory for tmp files.
5222 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5223 test -n "$tmp" && test -d "$tmp"
5226 tmp=./confstat$$-$RANDOM
5227 (umask 077 && mkdir $tmp)
5230 echo "$me: cannot create a temporary directory in ." >&2
5231 { (exit 1); exit 1; }
5236 cat >>$CONFIG_STATUS <<_ACEOF
5239 # CONFIG_FILES section.
5242 # No need to generate the scripts if there are no CONFIG_FILES.
5243 # This happens for instance when ./config.status config.h
5244 if test -n "\$CONFIG_FILES"; then
5245 # Protect against being on the right side of a sed subst in config.status.
5246 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5247 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5248 s,@SHELL@,$SHELL,;t t
5249 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5250 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5251 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5252 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5253 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5254 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5255 s,@exec_prefix@,$exec_prefix,;t t
5256 s,@prefix@,$prefix,;t t
5257 s,@program_transform_name@,$program_transform_name,;t t
5258 s,@bindir@,$bindir,;t t
5259 s,@sbindir@,$sbindir,;t t
5260 s,@libexecdir@,$libexecdir,;t t
5261 s,@datadir@,$datadir,;t t
5262 s,@sysconfdir@,$sysconfdir,;t t
5263 s,@sharedstatedir@,$sharedstatedir,;t t
5264 s,@localstatedir@,$localstatedir,;t t
5265 s,@libdir@,$libdir,;t t
5266 s,@includedir@,$includedir,;t t
5267 s,@oldincludedir@,$oldincludedir,;t t
5268 s,@infodir@,$infodir,;t t
5269 s,@mandir@,$mandir,;t t
5270 s,@build_alias@,$build_alias,;t t
5271 s,@host_alias@,$host_alias,;t t
5272 s,@target_alias@,$target_alias,;t t
5274 s,@ECHO_C@,$ECHO_C,;t t
5275 s,@ECHO_N@,$ECHO_N,;t t
5276 s,@ECHO_T@,$ECHO_T,;t t
5280 s,@CFLAGS@,$CFLAGS,;t t
5281 s,@LDFLAGS@,$LDFLAGS,;t t
5282 s,@CPPFLAGS@,$CPPFLAGS,;t t
5283 s,@ac_ct_CC@,$ac_ct_CC,;t t
5284 s,@EXEEXT@,$EXEEXT,;t t
5285 s,@OBJEXT@,$OBJEXT,;t t
5287 s,@CXXFLAGS@,$CXXFLAGS,;t t
5288 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5289 s,@RANLIB@,$RANLIB,;t t
5290 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5293 s,@EGREP@,$EGREP,;t t
5294 s,@debug@,$debug,;t t
5295 s,@cflags@,$cflags,;t t
5296 s,@object_path@,$object_path,;t t
5298 s,@build@,$build,;t t
5299 s,@build_cpu@,$build_cpu,;t t
5300 s,@build_vendor@,$build_vendor,;t t
5301 s,@build_os@,$build_os,;t t
5303 s,@host_cpu@,$host_cpu,;t t
5304 s,@host_vendor@,$host_vendor,;t t
5305 s,@host_os@,$host_os,;t t
5306 s,@sound_api@,$sound_api,;t t
5307 s,@audio_apis@,$audio_apis,;t t
5308 s,@frameworks@,$frameworks,;t t
5309 s,@LIBOBJS@,$LIBOBJS,;t t
5310 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5315 cat >>$CONFIG_STATUS <<\_ACEOF
5316 # Split the substitutions into bite-sized pieces for seds with
5317 # small command number limits, like on Digital OSF/1 and HP-UX.
5319 ac_sed_frag=1 # Number of current file.
5320 ac_beg=1 # First line for current file.
5321 ac_end=$ac_max_sed_lines # Line after last line for current file.
5324 while $ac_more_lines; do
5325 if test $ac_beg -gt 1; then
5326 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5328 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5330 if test ! -s $tmp/subs.frag; then
5333 # The purpose of the label and of the branching condition is to
5334 # speed up the sed processing (if there are no `@' at all, there
5335 # is no need to browse any of the substitutions).
5336 # These are the two extra sed commands mentioned above.
5338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5339 if test -z "$ac_sed_cmds"; then
5340 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5342 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5344 ac_sed_frag=`expr $ac_sed_frag + 1`
5346 ac_end=`expr $ac_end + $ac_max_sed_lines`
5349 if test -z "$ac_sed_cmds"; then
5352 fi # test -n "$CONFIG_FILES"
5355 cat >>$CONFIG_STATUS <<\_ACEOF
5356 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5357 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5359 - | *:- | *:-:* ) # input from stdin
5361 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5363 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5365 * ) ac_file_in=$ac_file.in ;;
5368 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5369 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5371 X"$ac_file" : 'X\(//\)[^/]' \| \
5372 X"$ac_file" : 'X\(//\)$' \| \
5373 X"$ac_file" : 'X\(/\)' \| \
5374 . : '\(.\)' 2>/dev/null ||
5376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5378 /^X\(\/\/\)$/{ s//\1/; q; }
5379 /^X\(\/\).*/{ s//\1/; q; }
5381 { if $as_mkdir_p; then
5386 while test ! -d "$as_dir"; do
5387 as_dirs="$as_dir $as_dirs"
5388 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5390 X"$as_dir" : 'X\(//\)[^/]' \| \
5391 X"$as_dir" : 'X\(//\)$' \| \
5392 X"$as_dir" : 'X\(/\)' \| \
5393 . : '\(.\)' 2>/dev/null ||
5395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5397 /^X\(\/\/\)$/{ s//\1/; q; }
5398 /^X\(\/\).*/{ s//\1/; q; }
5401 test ! -n "$as_dirs" || mkdir $as_dirs
5402 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5403 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5404 { (exit 1); exit 1; }; }; }
5408 if test "$ac_dir" != .; then
5409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5410 # A "../" for each directory in $ac_dir_suffix.
5411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5413 ac_dir_suffix= ac_top_builddir=
5417 .) # No --srcdir option. We are building in place.
5419 if test -z "$ac_top_builddir"; then
5422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5424 [\\/]* | ?:[\\/]* ) # Absolute path.
5425 ac_srcdir=$srcdir$ac_dir_suffix;
5426 ac_top_srcdir=$srcdir ;;
5428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5432 # Do not use `cd foo && pwd` to compute absolute paths, because
5433 # the directories may not exist.
5435 .) ac_abs_builddir="$ac_dir";;
5438 .) ac_abs_builddir=`pwd`;;
5439 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5440 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5443 case $ac_abs_builddir in
5444 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5446 case ${ac_top_builddir}. in
5447 .) ac_abs_top_builddir=$ac_abs_builddir;;
5448 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5449 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5452 case $ac_abs_builddir in
5453 .) ac_abs_srcdir=$ac_srcdir;;
5456 .) ac_abs_srcdir=$ac_abs_builddir;;
5457 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5458 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5461 case $ac_abs_builddir in
5462 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5464 case $ac_top_srcdir in
5465 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5466 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5467 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5473 if test x"$ac_file" != x-; then
5474 { echo "$as_me:$LINENO: creating $ac_file" >&5
5475 echo "$as_me: creating $ac_file" >&6;}
5478 # Let's still pretend it is `configure' which instantiates (i.e., don't
5479 # use $as_me), people would be surprised to read:
5480 # /* config.h. Generated by config.status. */
5481 if test x"$ac_file" = x-; then
5484 configure_input="$ac_file. "
5486 configure_input=$configure_input"Generated from `echo $ac_file_in |
5487 sed 's,.*/,,'` by configure."
5489 # First look for the input files in the build tree, otherwise in the
5491 ac_file_inputs=`IFS=:
5492 for f in $ac_file_in; do
5494 -) echo $tmp/stdin ;;
5496 # Absolute (can't be DOS-style, as IFS=:)
5497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5498 echo "$as_me: error: cannot find input file: $f" >&2;}
5499 { (exit 1); exit 1; }; }
5502 if test -f "$f"; then
5505 elif test -f "$srcdir/$f"; then
5510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5511 echo "$as_me: error: cannot find input file: $f" >&2;}
5512 { (exit 1); exit 1; }; }
5515 done` || { (exit 1); exit 1; }
5517 cat >>$CONFIG_STATUS <<_ACEOF
5521 cat >>$CONFIG_STATUS <<\_ACEOF
5523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5524 s,@configure_input@,$configure_input,;t t
5525 s,@srcdir@,$ac_srcdir,;t t
5526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5527 s,@top_srcdir@,$ac_top_srcdir,;t t
5528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5529 s,@builddir@,$ac_builddir,;t t
5530 s,@abs_builddir@,$ac_abs_builddir,;t t
5531 s,@top_builddir@,$ac_top_builddir,;t t
5532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5535 if test x"$ac_file" != x-; then
5536 mv $tmp/out $ac_file
5545 cat >>$CONFIG_STATUS <<\_ACEOF
5547 { (exit 0); exit 0; }
5549 chmod +x $CONFIG_STATUS
5550 ac_clean_files=$ac_clean_files_save
5553 # configure is writing to config.log, and then calls config.status.
5554 # config.status does its own redirection, appending to config.log.
5555 # Unfortunately, on DOS this fails, as config.log is still kept open
5556 # by configure, so config.status won't be able to write to it; its
5557 # output is simply discarded. So we exec the FD to /dev/null,
5558 # effectively closing config.log, so it can be properly (re)opened and
5559 # appended to by config.status. When coming back to configure, we
5560 # need to make the FD available again.
5561 if test "$no_create" != yes; then
5563 ac_config_status_args=
5564 test "$silent" = yes &&
5565 ac_config_status_args="$ac_config_status_args --quiet"
5567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5570 # would make configure fail if this is the last instruction.
5571 $ac_cs_success || { (exit 1); exit 1; }
5575 chmod oug+x rtaudio-config