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 objects 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)
869 --with-asio = choose ASIO API support (windoze only)
870 --with-ds = choose DirectSound API support (windoze only)
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CXX C++ compiler command
880 CXXFLAGS C++ compiler flags
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <gary@music.mcgill.ca>.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
982 RtAudio configure 4.0
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by RtAudio $as_me 4.0, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1336 # Fill GXX with something before test.
1340 # Checks for programs.
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1346 if test -n "$ac_tool_prefix"; then
1347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1348 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1349 echo "$as_me:$LINENO: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 if test -n "$CC"; then
1355 ac_cv_prog_CC="$CC" # Let the user override the test.
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 test -z "$as_dir" && as_dir=.
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1374 if test -n "$CC"; then
1375 echo "$as_me:$LINENO: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1383 if test -z "$ac_cv_prog_CC"; then
1385 # Extract the first word of "gcc", so it can be a program name with args.
1386 set dummy gcc; ac_word=$2
1387 echo "$as_me:$LINENO: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399 test -z "$as_dir" && as_dir=.
1400 for ac_exec_ext in '' $ac_executable_extensions; do
1401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1402 ac_cv_prog_ac_ct_CC="gcc"
1403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1412 if test -n "$ac_ct_CC"; then
1413 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1414 echo "${ECHO_T}$ac_ct_CC" >&6
1416 echo "$as_me:$LINENO: result: no" >&5
1417 echo "${ECHO_T}no" >&6
1425 if test -z "$CC"; then
1426 if test -n "$ac_tool_prefix"; then
1427 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1428 set dummy ${ac_tool_prefix}cc; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 if test -n "$CC"; then
1435 ac_cv_prog_CC="$CC" # Let the user override the test.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_CC="${ac_tool_prefix}cc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 if test -n "$CC"; then
1455 echo "$as_me:$LINENO: result: $CC" >&5
1456 echo "${ECHO_T}$CC" >&6
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1463 if test -z "$ac_cv_prog_CC"; then
1465 # Extract the first word of "cc", so it can be a program name with args.
1466 set dummy cc; ac_word=$2
1467 echo "$as_me:$LINENO: checking for $ac_word" >&5
1468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 if test -n "$ac_ct_CC"; then
1473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
1481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482 ac_cv_prog_ac_ct_CC="cc"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1492 if test -n "$ac_ct_CC"; then
1493 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1494 echo "${ECHO_T}$ac_ct_CC" >&6
1496 echo "$as_me:$LINENO: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1506 if test -z "$CC"; then
1507 # Extract the first word of "cc", so it can be a program name with args.
1508 set dummy cc; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$CC"; then
1515 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1526 ac_prog_rejected=yes
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 if test $ac_prog_rejected = yes; then
1537 # We found a bogon in the path, so make sure we never use it.
1538 set dummy $ac_cv_prog_CC
1540 if test $# != 0; then
1541 # We chose a different compiler from the bogus one.
1542 # However, it has the same basename, so the bogon will be chosen
1543 # first if we set CC to just the basename; use the full file name.
1545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$CC"; then
1561 if test -n "$ac_tool_prefix"; then
1564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 if test -n "$CC"; then
1592 echo "$as_me:$LINENO: result: $CC" >&5
1593 echo "${ECHO_T}$CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1599 test -n "$CC" && break
1602 if test -z "$CC"; then
1606 # Extract the first word of "$ac_prog", so it can be a program name with args.
1607 set dummy $ac_prog; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$ac_ct_CC"; then
1614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_ac_ct_CC="$ac_prog"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1641 test -n "$ac_ct_CC" && break
1650 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1651 See \`config.log' for more details." >&5
1652 echo "$as_me: error: no acceptable C compiler found in \$PATH
1653 See \`config.log' for more details." >&2;}
1654 { (exit 1); exit 1; }; }
1656 # Provide some information about the compiler.
1657 echo "$as_me:$LINENO:" \
1658 "checking for C compiler version" >&5
1659 ac_compiler=`set X $ac_compile; echo $2`
1660 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1661 (eval $ac_compiler --version </dev/null >&5) 2>&5
1663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1664 (exit $ac_status); }
1665 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1666 (eval $ac_compiler -v </dev/null >&5) 2>&5
1668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669 (exit $ac_status); }
1670 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1671 (eval $ac_compiler -V </dev/null >&5) 2>&5
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }
1676 cat >conftest.$ac_ext <<_ACEOF
1679 cat confdefs.h >>conftest.$ac_ext
1680 cat >>conftest.$ac_ext <<_ACEOF
1681 /* end confdefs.h. */
1691 ac_clean_files_save=$ac_clean_files
1692 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1693 # Try to create an executable without -o first, disregard a.out.
1694 # It will help us diagnose broken compilers, and finding out an intuition
1696 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1697 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1698 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1699 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1700 (eval $ac_link_default) 2>&5
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }; then
1704 # Find the output, starting from the most likely. This scheme is
1705 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1708 # Be careful to initialize this variable, since it used to be cached.
1709 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1711 # b.out is created by i960 compilers.
1712 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1714 test -f "$ac_file" || continue
1716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1719 # This is the source file.
1722 # We found the default executable, but exeext='' is most
1726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1727 # FIXME: I believe we export ac_cv_exeext for Libtool,
1728 # but it would be cool to find out if it's true. Does anybody
1729 # maintain Libtool? --akim.
1737 echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: C compiler cannot create executables
1743 See \`config.log' for more details." >&2;}
1744 { (exit 77); exit 77; }; }
1747 ac_exeext=$ac_cv_exeext
1748 echo "$as_me:$LINENO: result: $ac_file" >&5
1749 echo "${ECHO_T}$ac_file" >&6
1751 # Check the compiler produces executables we can run. If not, either
1752 # the compiler is broken, or we cross compile.
1753 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1754 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1755 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1756 # If not cross compiling, check that we can run a simple program.
1757 if test "$cross_compiling" != yes; then
1758 if { ac_try='./$ac_file'
1759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; }; then
1766 if test "$cross_compiling" = maybe; then
1769 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'.
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'.
1774 See \`config.log' for more details." >&2;}
1775 { (exit 1); exit 1; }; }
1779 echo "$as_me:$LINENO: result: yes" >&5
1780 echo "${ECHO_T}yes" >&6
1782 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1783 ac_clean_files=$ac_clean_files_save
1784 # Check the compiler produces executables we can run. If not, either
1785 # the compiler is broken, or we cross compile.
1786 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1787 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1788 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1789 echo "${ECHO_T}$cross_compiling" >&6
1791 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1792 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1794 (eval $ac_link) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1799 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1800 # work properly (i.e., refer to `conftest.exe'), while it won't with
1802 for ac_file in conftest.exe conftest conftest.*; do
1803 test -f "$ac_file" || continue
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1814 See \`config.log' for more details." >&5
1815 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1816 See \`config.log' for more details." >&2;}
1817 { (exit 1); exit 1; }; }
1820 rm -f conftest$ac_cv_exeext
1821 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1822 echo "${ECHO_T}$ac_cv_exeext" >&6
1824 rm -f conftest.$ac_ext
1825 EXEEXT=$ac_cv_exeext
1827 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1828 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1829 if test "${ac_cv_objext+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 cat >conftest.$ac_ext <<_ACEOF
1835 cat confdefs.h >>conftest.$ac_ext
1836 cat >>conftest.$ac_ext <<_ACEOF
1837 /* end confdefs.h. */
1847 rm -f conftest.o conftest.obj
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; then
1853 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1873 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1874 echo "${ECHO_T}$ac_cv_objext" >&6
1875 OBJEXT=$ac_cv_objext
1877 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1878 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1879 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 cat >conftest.$ac_ext <<_ACEOF
1885 cat confdefs.h >>conftest.$ac_ext
1886 cat >>conftest.$ac_ext <<_ACEOF
1887 /* end confdefs.h. */
1900 rm -f conftest.$ac_objext
1901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>conftest.er1
1904 grep -v '^ *+' conftest.er1 >conftest.err
1906 cat conftest.err >&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -z "$ac_c_werror_flag"
1910 || test ! -s conftest.err'
1911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }; } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1934 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935 GCC=`test $ac_compiler_gnu = yes && echo yes`
1936 ac_test_CFLAGS=${CFLAGS+set}
1937 ac_save_CFLAGS=$CFLAGS
1939 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941 if test "${ac_cv_prog_cc_g+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h. */
1959 rm -f conftest.$ac_objext
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>conftest.er1
1963 grep -v '^ *+' conftest.er1 >conftest.err
1965 cat conftest.err >&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -z "$ac_c_werror_flag"
1969 || test ! -s conftest.err'
1970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; } &&
1975 { ac_try='test -s conftest.$ac_objext'
1976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; }; then
1983 echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1991 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1992 if test "$ac_test_CFLAGS" = set; then
1993 CFLAGS=$ac_save_CFLAGS
1994 elif test $ac_cv_prog_cc_g = yes; then
1995 if test "$GCC" = yes; then
2001 if test "$GCC" = yes; then
2007 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2008 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2009 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 ac_cv_prog_cc_stdc=no
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 #include <sys/types.h>
2023 #include <sys/stat.h>
2024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2025 struct buf { int x; };
2026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2027 static char *e (p, i)
2033 static char *f (char * (*g) (char **, int), char **p, ...)
2038 s = g (p, va_arg (v,int));
2043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2044 function prototypes and stuff, but not '\xHH' hex character constants.
2045 These don't provoke an error unfortunately, instead are silently treated
2046 as 'x'. The following induces an error, until -std1 is added to get
2047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2048 array size at least. It's necessary to write '\x00'==0 to get something
2049 that's true only with -std1. */
2050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2052 int test (int i, double x);
2053 struct s1 {int (*f) (int a);};
2054 struct s2 {int (*f) (double a);};
2055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2066 # Don't try gcc -ansi; that turns off useful extensions and
2067 # breaks some systems' header files.
2068 # AIX -qlanglvl=ansi
2069 # Ultrix and OSF/1 -std1
2070 # HP-UX 10.20 and later -Ae
2071 # HP-UX older versions -Aa -D_HPUX_SOURCE
2072 # SVR4 -Xc -D__EXTENSIONS__
2073 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2075 CC="$ac_save_CC $ac_arg"
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_prog_cc_stdc=$ac_arg
2101 echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext
2107 rm -f conftest.$ac_ext conftest.$ac_objext
2112 case "x$ac_cv_prog_cc_stdc" in
2114 echo "$as_me:$LINENO: result: none needed" >&5
2115 echo "${ECHO_T}none needed" >&6 ;;
2117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2118 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2119 CC="$CC $ac_cv_prog_cc_stdc" ;;
2122 # Some people use a C++ compiler to compile C. Since we use `exit',
2123 # in C++ we need to declare it. In case someone uses the same compiler
2124 # for both compiling C and C++ we need to have the C++ compiler decide
2125 # the declaration of exit, since it's the most demanding environment.
2126 cat >conftest.$ac_ext <<_ACEOF
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>conftest.er1
2135 grep -v '^ *+' conftest.er1 >conftest.err
2137 cat conftest.err >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -z "$ac_c_werror_flag"
2141 || test ! -s conftest.err'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 for ac_declaration in \
2155 'extern "C" void std::exit (int) throw (); using std::exit;' \
2156 'extern "C" void std::exit (int); using std::exit;' \
2157 'extern "C" void exit (int) throw ();' \
2158 'extern "C" void exit (int);' \
2161 cat >conftest.$ac_ext <<_ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2181 grep -v '^ *+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2226 grep -v '^ *+' conftest.er1 >conftest.err
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 if test -n "$ac_declaration"; then
2254 echo '#ifdef __cplusplus' >>confdefs.h
2255 echo $ac_declaration >>confdefs.h
2256 echo '#endif' >>confdefs.h
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272 ac_cpp='$CXXCPP $CPPFLAGS'
2273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2276 if test -n "$ac_tool_prefix"; then
2277 for ac_prog in $CCC g++ CC c++ cxx
2279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_CXX+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 if test -n "$CXX"; then
2287 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 if test -n "$CXX"; then
2307 echo "$as_me:$LINENO: result: $CXX" >&5
2308 echo "${ECHO_T}$CXX" >&6
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 test -n "$CXX" && break
2317 if test -z "$CXX"; then
2319 for ac_prog in $CCC g++ CC c++ cxx
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$ac_ct_CXX"; then
2329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_ac_ct_CXX="$ac_prog"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2348 if test -n "$ac_ct_CXX"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2350 echo "${ECHO_T}$ac_ct_CXX" >&6
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2356 test -n "$ac_ct_CXX" && break
2358 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2364 # Provide some information about the compiler.
2365 echo "$as_me:$LINENO:" \
2366 "checking for C++ compiler version" >&5
2367 ac_compiler=`set X $ac_compile; echo $2`
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2369 (eval $ac_compiler --version </dev/null >&5) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2374 (eval $ac_compiler -v </dev/null >&5) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2379 (eval $ac_compiler -V </dev/null >&5) 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2384 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2386 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2411 grep -v '^ *+' conftest.er1 >conftest.err
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_cxx_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2440 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2441 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2442 GXX=`test $ac_compiler_gnu = yes && echo yes`
2443 ac_test_CXXFLAGS=${CXXFLAGS+set}
2444 ac_save_CXXFLAGS=$CXXFLAGS
2446 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2447 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2448 if test "${ac_cv_prog_cxx_g+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_cxx_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cxx_g=yes
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2499 if test "$ac_test_CXXFLAGS" = set; then
2500 CXXFLAGS=$ac_save_CXXFLAGS
2501 elif test $ac_cv_prog_cxx_g = yes; then
2502 if test "$GXX" = yes; then
2508 if test "$GXX" = yes; then
2514 for ac_declaration in \
2516 'extern "C" void std::exit (int) throw (); using std::exit;' \
2517 'extern "C" void std::exit (int); using std::exit;' \
2518 'extern "C" void exit (int) throw ();' \
2519 'extern "C" void exit (int);' \
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2538 rm -f conftest.$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_cxx_werror_flag"
2548 || test ! -s conftest.err'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag"
2593 || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 if test -n "$ac_declaration"; then
2615 echo '#ifdef __cplusplus' >>confdefs.h
2616 echo $ac_declaration >>confdefs.h
2617 echo '#endif' >>confdefs.h
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_RANLIB+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$RANLIB"; then
2635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 RANLIB=$ac_cv_prog_RANLIB
2654 if test -n "$RANLIB"; then
2655 echo "$as_me:$LINENO: result: $RANLIB" >&5
2656 echo "${ECHO_T}$RANLIB" >&6
2658 echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2663 if test -z "$ac_cv_prog_RANLIB"; then
2664 ac_ct_RANLIB=$RANLIB
2665 # Extract the first word of "ranlib", so it can be a program name with args.
2666 set dummy ranlib; ac_word=$2
2667 echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 if test -n "$ac_ct_RANLIB"; then
2673 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_ac_ct_RANLIB="ranlib"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2693 if test -n "$ac_ct_RANLIB"; then
2694 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2695 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 RANLIB=$ac_ct_RANLIB
2703 RANLIB="$ac_cv_prog_RANLIB"
2706 # Extract the first word of "ar", so it can be a program name with args.
2707 set dummy ar; ac_word=$2
2708 echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2710 if test "${ac_cv_path_AR+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2738 if test -n "$AR"; then
2739 echo "$as_me:$LINENO: result: $AR" >&5
2740 echo "${ECHO_T}$AR" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2746 if [ $AR = "no" ] ; then
2747 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2748 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2749 { (exit 1); exit 1; }; };
2752 # Checks for header files.
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2760 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2761 # On Suns, sometimes $CPP names a directory.
2762 if test -n "$CPP" && test -d "$CPP"; then
2765 if test -z "$CPP"; then
2766 if test "${ac_cv_prog_CPP+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 # Double quotes because CPP needs to be expanded
2770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2773 for ac_c_preproc_warn_flag in '' yes
2775 # Use a header file that comes with gcc, so configuring glibc
2776 # with a fresh cross-compiler works.
2777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2778 # <limits.h> exists even on freestanding compilers.
2779 # On the NeXT, cc -E runs the code through the compiler's parser,
2780 # not just through cpp. "Syntax error" is here to catch this case.
2781 cat >conftest.$ac_ext <<_ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2788 # include <limits.h>
2790 # include <assert.h>
2794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } >/dev/null; then
2802 if test -s conftest.err; then
2803 ac_cpp_err=$ac_c_preproc_warn_flag
2804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2811 if test -z "$ac_cpp_err"; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 # Broken: fails on valid input.
2820 rm -f conftest.err conftest.$ac_ext
2822 # OK, works on sane cases. Now check whether non-existent headers
2823 # can be detected and how.
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830 #include <ac_nonexistent.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2849 if test -z "$ac_cpp_err"; then
2850 # Broken: success on invalid input.
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2856 # Passes both tests.
2860 rm -f conftest.err conftest.$ac_ext
2863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2864 rm -f conftest.err conftest.$ac_ext
2865 if $ac_preproc_ok; then
2877 echo "$as_me:$LINENO: result: $CPP" >&5
2878 echo "${ECHO_T}$CPP" >&6
2880 for ac_c_preproc_warn_flag in '' yes
2882 # Use a header file that comes with gcc, so configuring glibc
2883 # with a fresh cross-compiler works.
2884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2885 # <limits.h> exists even on freestanding compilers.
2886 # On the NeXT, cc -E runs the code through the compiler's parser,
2887 # not just through cpp. "Syntax error" is here to catch this case.
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2895 # include <limits.h>
2897 # include <assert.h>
2901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2904 grep -v '^ *+' conftest.er1 >conftest.err
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } >/dev/null; then
2909 if test -s conftest.err; then
2910 ac_cpp_err=$ac_c_preproc_warn_flag
2911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2918 if test -z "$ac_cpp_err"; then
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 # Broken: fails on valid input.
2927 rm -f conftest.err conftest.$ac_ext
2929 # OK, works on sane cases. Now check whether non-existent headers
2930 # can be detected and how.
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937 #include <ac_nonexistent.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2956 if test -z "$ac_cpp_err"; then
2957 # Broken: success on invalid input.
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 # Passes both tests.
2967 rm -f conftest.err conftest.$ac_ext
2970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2971 rm -f conftest.err conftest.$ac_ext
2972 if $ac_preproc_ok; then
2975 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 echo "$as_me:$LINENO: checking for egrep" >&5
2990 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2991 if test "${ac_cv_prog_egrep+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2995 then ac_cv_prog_egrep='grep -E'
2996 else ac_cv_prog_egrep='egrep'
2999 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3000 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3001 EGREP=$ac_cv_prog_egrep
3004 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3005 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3006 if test "${ac_cv_header_stdc+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_header_stdc=yes
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 ac_cv_header_stdc=no
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059 if test $ac_cv_header_stdc = yes; then
3060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3071 $EGREP "memchr" >/dev/null 2>&1; then
3074 ac_cv_header_stdc=no
3080 if test $ac_cv_header_stdc = yes; then
3081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 $EGREP "free" >/dev/null 2>&1; then
3095 ac_cv_header_stdc=no
3101 if test $ac_cv_header_stdc = yes; then
3102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3103 if test "$cross_compiling" = yes; then
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3113 #if ((' ' & 0x0FF) == 0x020)
3114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3117 # define ISLOWER(c) \
3118 (('a' <= (c) && (c) <= 'i') \
3119 || ('j' <= (c) && (c) <= 'r') \
3120 || ('s' <= (c) && (c) <= 'z'))
3121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3129 for (i = 0; i < 256; i++)
3130 if (XOR (islower (i), ISLOWER (i))
3131 || toupper (i) != TOUPPER (i))
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_cv_header_stdc=no
3156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3160 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3161 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3162 if test $ac_cv_header_stdc = yes; then
3164 cat >>confdefs.h <<\_ACEOF
3165 #define STDC_HEADERS 1
3170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3181 inttypes.h stdint.h unistd.h
3183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3184 echo "$as_me:$LINENO: checking for $ac_header" >&5
3185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 $ac_includes_default
3197 #include <$ac_header>
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag"
3209 || test ! -s conftest.err'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 eval "$as_ac_Header=yes"
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 eval "$as_ac_Header=no"
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3233 cat >>confdefs.h <<_ACEOF
3234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3244 for ac_header in sys/ioctl.h unistd.h
3246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3256 # Is the header compilable?
3257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 $ac_includes_default
3266 #include <$ac_header>
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -z "$ac_c_werror_flag"
3278 || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 ac_header_compiler=yes
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 ac_header_compiler=no
3297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3299 echo "${ECHO_T}$ac_header_compiler" >&6
3301 # Is the header present?
3302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 #include <$ac_header>
3312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329 if test -z "$ac_cpp_err"; then
3330 ac_header_preproc=yes
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 ac_header_preproc=no
3337 rm -f conftest.err conftest.$ac_ext
3338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3339 echo "${ECHO_T}$ac_header_preproc" >&6
3341 # So? What about this header?
3342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3348 ac_header_preproc=yes
3351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3365 ## ----------------------------------- ##
3366 ## Report this to gary@music.mcgill.ca ##
3367 ## ----------------------------------- ##
3370 sed "s/^/$as_me: WARNING: /" >&2
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 eval "$as_ac_Header=\$ac_header_preproc"
3380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3385 cat >>confdefs.h <<_ACEOF
3386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3394 # Checks for typedefs, structures, and compiler characteristics.
3395 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3396 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3397 if test "${ac_cv_c_const+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3410 /* FIXME: Include the comments suggested by Paul. */
3412 /* Ultrix mips cc rejects this. */
3413 typedef int charset[2];
3415 /* SunOS 4.1.1 cc rejects this. */
3416 char const *const *ccp;
3418 /* NEC SVR4.0.2 mips cc rejects this. */
3419 struct point {int x, y;};
3420 static struct point const zero = {0,0};
3421 /* AIX XL C 1.02.0.0 rejects this.
3422 It does not let you subtract one const X* pointer from another in
3423 an arm of an if-expression whose if-part is not a constant
3425 const char *g = "string";
3426 ccp = &g + (g ? g-g : 0);
3427 /* HPUX 7.0 cc rejects these. */
3430 ccp = (char const *const *) p;
3431 { /* SCO 3.2v4 cc rejects this. */
3433 char const *s = 0 ? (char *) 0 : (char const *) 0;
3437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3439 const int *foo = &x[0];
3442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3443 typedef const int *iptr;
3447 { /* AIX XL C 1.02.0.0 rejects this saying
3448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3449 struct s { int j; const int *ap[3]; };
3450 struct s *b; b->j = 5;
3452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3493 echo "${ECHO_T}$ac_cv_c_const" >&6
3494 if test $ac_cv_c_const = no; then
3496 cat >>confdefs.h <<\_ACEOF
3504 echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3505 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
3506 # Check whether --enable-debug or --disable-debug was given.
3507 if test "${enable_debug+set}" = set; then
3508 enableval="$enable_debug"
3509 debug=-D__RTAUDIO_DEBUG__
3512 echo "$as_me:$LINENO: result: yes" >&5
3513 echo "${ECHO_T}yes" >&6
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3522 # Checks for functions
3523 echo "$as_me:$LINENO: checking for gettimeofday" >&5
3524 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
3525 if test "${ac_cv_func_gettimeofday+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
3535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3536 #define gettimeofday innocuous_gettimeofday
3538 /* System header to define __stub macros and hopefully few prototypes,
3539 which can conflict with char gettimeofday (); below.
3540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 <limits.h> exists even on freestanding compilers. */
3544 # include <limits.h>
3546 # include <assert.h>
3551 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3558 char gettimeofday ();
3559 /* The GNU C library defines this for functions which it implements
3560 to always fail with ENOSYS. Some functions are actually named
3561 something starting with __ and the normal name is an alias. */
3562 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3565 char (*f) () = gettimeofday;
3574 return f != gettimeofday;
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag"
3589 || test ! -s conftest.err'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest$ac_exeext'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
3601 ac_cv_func_gettimeofday=yes
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_cv_func_gettimeofday=no
3608 rm -f conftest.err conftest.$ac_objext \
3609 conftest$ac_exeext conftest.$ac_ext
3611 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
3612 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
3613 if test $ac_cv_func_gettimeofday = yes; then
3614 cflags=$cflags" -DHAVE_GETTIMEOFDAY"
3618 # Check compiler and use -Wall if gnu.
3619 if test $GXX = "yes" ; then
3624 # Checks for package options and external software
3626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3627 if test -f $ac_dir/install-sh; then
3629 ac_install_sh="$ac_aux_dir/install-sh -c"
3631 elif test -f $ac_dir/install.sh; then
3633 ac_install_sh="$ac_aux_dir/install.sh -c"
3635 elif test -f $ac_dir/shtool; then
3637 ac_install_sh="$ac_aux_dir/shtool install -c"
3641 if test -z "$ac_aux_dir"; then
3642 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3643 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3644 { (exit 1); exit 1; }; }
3646 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3647 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3648 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3650 # Make sure we can run config.sub.
3651 $ac_config_sub sun4 >/dev/null 2>&1 ||
3652 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3653 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3654 { (exit 1); exit 1; }; }
3656 echo "$as_me:$LINENO: checking build system type" >&5
3657 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3658 if test "${ac_cv_build+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_cv_build_alias=$build_alias
3662 test -z "$ac_cv_build_alias" &&
3663 ac_cv_build_alias=`$ac_config_guess`
3664 test -z "$ac_cv_build_alias" &&
3665 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3667 { (exit 1); exit 1; }; }
3668 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3669 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3670 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3671 { (exit 1); exit 1; }; }
3674 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3675 echo "${ECHO_T}$ac_cv_build" >&6
3677 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3678 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3679 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3682 echo "$as_me:$LINENO: checking host system type" >&5
3683 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3684 if test "${ac_cv_host+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 ac_cv_host_alias=$host_alias
3688 test -z "$ac_cv_host_alias" &&
3689 ac_cv_host_alias=$ac_cv_build_alias
3690 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3691 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3692 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3693 { (exit 1); exit 1; }; }
3696 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3697 echo "${ECHO_T}$ac_cv_host" >&6
3699 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3700 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3701 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3704 echo "$as_me:$LINENO: checking for audio API" >&5
3705 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
3708 sound_api=-D__LINUX_OSS__
3710 echo "$as_me:$LINENO: result: using OSS" >&5
3711 echo "${ECHO_T}using OSS" >&6
3712 audio_apis=-D__LINUX_OSS__
3714 cflags=$cflags" -lossaudio"
3716 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3717 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3718 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_check_lib_save_LIBS=$LIBS
3722 LIBS="-lpthread $LIBS"
3723 cat >conftest.$ac_ext <<_ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3730 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736 char pthread_create ();
3745 rm -f conftest.$ac_objext conftest$ac_exeext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747 (eval $ac_link) 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -z "$ac_c_werror_flag"
3755 || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 ac_cv_lib_pthread_pthread_create=yes
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 ac_cv_lib_pthread_pthread_create=no
3774 rm -f conftest.err conftest.$ac_objext \
3775 conftest$ac_exeext conftest.$ac_ext
3776 LIBS=$ac_check_lib_save_LIBS
3778 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3779 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3780 if test $ac_cv_lib_pthread_pthread_create = yes; then
3781 cat >>confdefs.h <<_ACEOF
3782 #define HAVE_LIBPTHREAD 1
3785 LIBS="-lpthread $LIBS"
3788 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
3789 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
3790 { (exit 1); exit 1; }; }
3799 # Check whether --with-jack or --without-jack was given.
3800 if test "${with_jack+set}" = set; then
3801 withval="$with_jack"
3802 sound_api=-D__UNIX_JACK__
3803 echo "$as_me:$LINENO: result: using JACK" >&5
3804 echo "${ECHO_T}using JACK" >&6
3806 if test $sound_api = -D__UNIX_JACK__; then
3809 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
3810 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
3811 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 ac_check_lib_save_LIBS=$LIBS
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829 char jack_client_new ();
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840 (eval $ac_link) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest$ac_exeext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_lib_jack_jack_client_new=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_cv_lib_jack_jack_client_new=no
3867 rm -f conftest.err conftest.$ac_objext \
3868 conftest$ac_exeext conftest.$ac_ext
3869 LIBS=$ac_check_lib_save_LIBS
3871 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
3872 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
3873 if test $ac_cv_lib_jack_jack_client_new = yes; then
3874 cat >>confdefs.h <<_ACEOF
3875 #define HAVE_LIBJACK 1
3881 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
3882 echo "$as_me: error: JACK support requires the jack library!" >&2;}
3883 { (exit 1); exit 1; }; }
3887 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3888 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3889 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 ac_check_lib_save_LIBS=$LIBS
3893 LIBS="-lasound $LIBS"
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3901 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char snd_pcm_open ();
3916 rm -f conftest.$ac_objext conftest$ac_exeext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918 (eval $ac_link) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_lib_asound_snd_pcm_open=yes
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_cv_lib_asound_snd_pcm_open=no
3945 rm -f conftest.err conftest.$ac_objext \
3946 conftest$ac_exeext conftest.$ac_ext
3947 LIBS=$ac_check_lib_save_LIBS
3949 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3950 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3951 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3952 cat >>confdefs.h <<_ACEOF
3953 #define HAVE_LIBASOUND 1
3956 LIBS="-lasound $LIBS"
3959 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
3960 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
3961 { (exit 1); exit 1; }; }
3964 LIBS="`pkg-config --cflags --libs jack` $TEMP_LIBS -lasound"
3965 audio_apis="-D__UNIX_JACK__"
3968 # Look for ALSA flag
3970 # Check whether --with-alsa or --without-alsa was given.
3971 if test "${with_alsa+set}" = set; then
3972 withval="$with_alsa"
3973 sound_api=-D__LINUX_ALSA__
3974 echo "$as_me:$LINENO: result: using ALSA" >&5
3975 echo "${ECHO_T}using ALSA" >&6
3977 if test $sound_api = -D__LINUX_ALSA__; then
3979 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3980 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3981 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 ac_check_lib_save_LIBS=$LIBS
3985 LIBS="-lasound $LIBS"
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3993 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
3999 char snd_pcm_open ();
4008 rm -f conftest.$ac_objext conftest$ac_exeext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010 (eval $ac_link) 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -z "$ac_c_werror_flag"
4018 || test ! -s conftest.err'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; } &&
4024 { ac_try='test -s conftest$ac_exeext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 ac_cv_lib_asound_snd_pcm_open=yes
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 ac_cv_lib_asound_snd_pcm_open=no
4037 rm -f conftest.err conftest.$ac_objext \
4038 conftest$ac_exeext conftest.$ac_ext
4039 LIBS=$ac_check_lib_save_LIBS
4041 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4042 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4043 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define HAVE_LIBASOUND 1
4048 LIBS="-lasound $LIBS"
4051 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4052 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4053 { (exit 1); exit 1; }; }
4056 audio_apis="-D__LINUX_ALSA__ $audio_apis"
4061 # Check whether --with-oss or --without-oss was given.
4062 if test "${with_oss+set}" = set; then
4064 sound_api=-D__LINUX_OSS__
4065 echo "$as_me:$LINENO: result: using OSS" >&5
4066 echo "${ECHO_T}using OSS" >&6
4068 if test $sound_api = -D__LINUX_OSS__; then
4069 audio_apis="-D__LINUX_OSS__ $audio_apis"
4072 # If no audio api flags specified, use ALSA
4073 if test $sound_api = _NO_API_; then
4074 echo "$as_me:$LINENO: result: using ALSA" >&5
4075 echo "${ECHO_T}using ALSA" >&6
4076 audio_apis=-D__LINUX_ALSA__
4079 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4080 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
4081 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 ac_check_lib_save_LIBS=$LIBS
4085 LIBS="-lasound $LIBS"
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4093 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char snd_pcm_open ();
4108 rm -f conftest.$ac_objext conftest$ac_exeext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest$ac_exeext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_cv_lib_asound_snd_pcm_open=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_lib_asound_snd_pcm_open=no
4137 rm -f conftest.err conftest.$ac_objext \
4138 conftest$ac_exeext conftest.$ac_ext
4139 LIBS=$ac_check_lib_save_LIBS
4141 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4142 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4143 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define HAVE_LIBASOUND 1
4148 LIBS="-lasound $LIBS"
4151 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4152 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4153 { (exit 1); exit 1; }; }
4159 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4160 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4161 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_check_lib_save_LIBS=$LIBS
4165 LIBS="-lpthread $LIBS"
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char pthread_create ();
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_lib_pthread_pthread_create=yes
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ac_cv_lib_pthread_pthread_create=no
4217 rm -f conftest.err conftest.$ac_objext \
4218 conftest$ac_exeext conftest.$ac_ext
4219 LIBS=$ac_check_lib_save_LIBS
4221 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4222 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4223 if test $ac_cv_lib_pthread_pthread_create = yes; then
4224 cat >>confdefs.h <<_ACEOF
4225 #define HAVE_LIBPTHREAD 1
4228 LIBS="-lpthread $LIBS"
4231 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4232 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4233 { (exit 1); exit 1; }; }
4242 # Check whether --with-jack or --without-jack was given.
4243 if test "${with_jack+set}" = set; then
4244 withval="$with_jack"
4245 sound_api=-D__UNIX_JACK__
4246 echo "$as_me:$LINENO: result: using JACK" >&5
4247 echo "${ECHO_T}using JACK" >&6
4249 if test $sound_api = -D__UNIX_JACK__; then
4251 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
4252 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
4253 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_check_lib_save_LIBS=$LIBS
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4265 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char jack_client_new ();
4280 rm -f conftest.$ac_objext conftest$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_lib_jack_jack_client_new=yes
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_cv_lib_jack_jack_client_new=no
4309 rm -f conftest.err conftest.$ac_objext \
4310 conftest$ac_exeext conftest.$ac_ext
4311 LIBS=$ac_check_lib_save_LIBS
4313 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
4314 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
4315 if test $ac_cv_lib_jack_jack_client_new = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define HAVE_LIBJACK 1
4323 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4324 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4325 { (exit 1); exit 1; }; }
4328 audio_apis="-D__UNIX_JACK__"
4331 # Look for Core flag
4333 # Check whether --with-core or --without-core was given.
4334 if test "${with_core+set}" = set; then
4335 withval="$with_core"
4336 sound_api=-D__MACOSX_CORE__
4337 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4338 echo "${ECHO_T}using CoreAudio" >&6
4340 if test $sound_api = -D__MACOSX_CORE__; then
4341 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4342 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4343 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4344 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4348 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4350 # Is the header compilable?
4351 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4352 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4360 #include <CoreAudio/CoreAudio.h>
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_header_compiler=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_header_compiler=no
4391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4393 echo "${ECHO_T}$ac_header_compiler" >&6
4395 # Is the header present?
4396 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4397 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 #include <CoreAudio/CoreAudio.h>
4406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } >/dev/null; then
4414 if test -s conftest.err; then
4415 ac_cpp_err=$ac_c_preproc_warn_flag
4416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4423 if test -z "$ac_cpp_err"; then
4424 ac_header_preproc=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_header_preproc=no
4431 rm -f conftest.err conftest.$ac_ext
4432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4433 echo "${ECHO_T}$ac_header_preproc" >&6
4435 # So? What about this header?
4436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4439 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4441 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4442 ac_header_preproc=yes
4445 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4446 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4448 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4450 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4452 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4454 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4456 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4459 ## ----------------------------------- ##
4460 ## Report this to gary@music.mcgill.ca ##
4461 ## ----------------------------------- ##
4464 sed "s/^/$as_me: WARNING: /" >&2
4467 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4468 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4469 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4474 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4475 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4478 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4481 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4482 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4483 { (exit 1); exit 1; }; }
4487 frameworks="-framework CoreAudio -framework CoreFoundation"
4489 audio_apis="-D__MACOSX_CORE__ $audio_apis"
4492 # If no audio api flags specified, use CoreAudio
4493 if test $sound_api = _NO_API_; then
4494 sound_api=-D__MACOSX_CORE__
4496 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4497 echo "${ECHO_T}using CoreAudio" >&6
4498 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4500 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4507 # Is the header compilable?
4508 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4509 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 #include <CoreAudio/CoreAudio.h>
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_header_compiler=no
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4554 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <CoreAudio/CoreAudio.h>
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4580 if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_header_preproc=no
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4592 # So? What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4595 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4602 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4616 ## ----------------------------------- ##
4617 ## Report this to gary@music.mcgill.ca ##
4618 ## ----------------------------------- ##
4621 sed "s/^/$as_me: WARNING: /" >&2
4624 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4625 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4631 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4635 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4636 audio_apis=-D__MACOSX_CORE__
4639 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4640 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4641 { (exit 1); exit 1; }; }
4645 frameworks="-framework CoreAudio -framework CoreFoundation"
4650 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4651 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4652 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_check_lib_save_LIBS=$LIBS
4656 LIBS="-lpthread $LIBS"
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4664 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4670 char pthread_create ();
4679 rm -f conftest.$ac_objext conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest$ac_exeext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_cv_lib_pthread_pthread_create=yes
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_cv_lib_pthread_pthread_create=no
4708 rm -f conftest.err conftest.$ac_objext \
4709 conftest$ac_exeext conftest.$ac_ext
4710 LIBS=$ac_check_lib_save_LIBS
4712 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4713 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4714 if test $ac_cv_lib_pthread_pthread_create = yes; then
4715 cat >>confdefs.h <<_ACEOF
4716 #define HAVE_LIBPTHREAD 1
4719 LIBS="-lpthread $LIBS"
4722 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4723 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4724 { (exit 1); exit 1; }; }
4733 # Check whether --with-asio or --without-asio was given.
4734 if test "${with_asio+set}" = set; then
4735 withval="$with_asio"
4736 sound_api=-D__WINDOWS_ASIO__
4737 echo "$as_me:$LINENO: result: using ASIO" >&5
4738 echo "${ECHO_T}using ASIO" >&6
4740 if test $sound_api = -D__WINDOWS_ASIO__; then
4741 audio_apis="-D__WINDOWS_ASIO__"
4742 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
4746 # Look for DirectSound flag
4748 # Check whether --with-ds or --without-ds was given.
4749 if test "${with_ds+set}" = set; then
4751 sound_api=-D__WINDOWS_DS__
4752 echo "$as_me:$LINENO: result: using DirectSound" >&5
4753 echo "${ECHO_T}using DirectSound" >&6
4755 if test $sound_api = -D__WINDOWS_DS__; then
4756 audio_apis="-D__WINDOWS_DS__ $audio_apis"
4757 LIBS="-ldsound -lwinmm $LIBS"
4760 # If no audio api flags specified, use DirectSound
4761 if test $sound_api = _NO_API_; then
4762 sound_api=-D__WINDOWS_DS__
4764 echo "$as_me:$LINENO: result: using DirectSound" >&5
4765 echo "${ECHO_T}using DirectSound" >&6
4766 audio_apis="-D__WINDOWS_DS__"
4767 LIBS="-ldsound -lwinmm $LIBS"
4770 LIBS="-lole32 $LIBS"
4774 # Default case for unknown realtime systems.
4775 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
4776 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
4777 { (exit 1); exit 1; }; }
4781 # Checks for library functions.
4782 if test $ac_cv_c_compiler_gnu = yes; then
4783 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4784 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4785 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_pattern="Autoconf.*'x'"
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4800 ac_cv_prog_gcc_traditional=yes
4802 ac_cv_prog_gcc_traditional=no
4807 if test $ac_cv_prog_gcc_traditional = no; then
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4818 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4819 ac_cv_prog_gcc_traditional=yes
4825 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4826 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4827 if test $ac_cv_prog_gcc_traditional = yes; then
4828 CC="$CC -traditional"
4833 cat >confcache <<\_ACEOF
4834 # This file is a shell script that caches the results of configure
4835 # tests run on this system so they can be shared between configure
4836 # scripts and configure runs, see configure's option --config-cache.
4837 # It is not useful on other systems. If it contains results you don't
4838 # want to keep, you may remove or edit it.
4840 # config.status only pays attention to the cache file if you give it
4841 # the --recheck option to rerun configure.
4843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4849 # The following way of writing the cache mishandles newlines in values,
4850 # but we know of no workaround that is simple, portable, and efficient.
4851 # So, don't put newlines in cache variables' values.
4852 # Ultrix sh set writes to stderr and can't be redirected directly,
4853 # and sets the high bit in the cache file unless we assign to the vars.
4856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4858 # `set' does not quote correctly, so add quotes (double-quote
4859 # substitution turns \\\\ into \\, and sed turns \\ into \).
4862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4865 # `set' quotes correctly as required by POSIX, so do not add quotes.
4867 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4876 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4878 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4879 if test -w $cache_file; then
4880 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4881 cat confcache >$cache_file
4883 echo "not updating unwritable cache $cache_file"
4888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4889 # Let make expand exec_prefix.
4890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4894 # trailing colons and then remove the whole line if VPATH becomes empty
4895 # (actually we leave an empty line to preserve line numbers).
4896 if test "x$srcdir" = x.; then
4897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4898 s/:*\$(srcdir):*/:/;
4899 s/:*\${srcdir}:*/:/;
4901 s/^\([^=]*=[ ]*\):*/\1/;
4907 # Transform confdefs.h into DEFS.
4908 # Protect against shell expansion while executing Makefile rules.
4909 # Protect against Makefile macro expansion.
4911 # If the first sed substitution is executed (which looks for macros that
4912 # take arguments), then we branch to the quote section. Otherwise,
4913 # look for a macro that doesn't take arguments.
4914 cat >confdef2opt.sed <<\_ACEOF
4917 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4919 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4923 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4929 # We use echo to avoid assuming a particular line-breaking character.
4930 # The extra dot is to prevent the shell from consuming trailing
4931 # line-breaks from the sub-command output. A line-break within
4932 # single-quotes doesn't work because, if this script is created in a
4933 # platform that uses two characters for line-breaks (e.g., DOS), tr
4935 ac_LF_and_DOT=`echo; echo .`
4936 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4937 rm -f confdef2opt.sed
4942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4943 # 1. Remove the extension, and $U if already installed.
4944 ac_i=`echo "$ac_i" |
4945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4952 LTLIBOBJS=$ac_ltlibobjs
4956 : ${CONFIG_STATUS=./config.status}
4957 ac_clean_files_save=$ac_clean_files
4958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4961 cat >$CONFIG_STATUS <<_ACEOF
4963 # Generated by $as_me.
4964 # Run this file to recreate the current configuration.
4965 # Compiler output produced by configure, useful for debugging
4966 # configure, is in config.log if it exists.
4971 SHELL=\${CONFIG_SHELL-$SHELL}
4974 cat >>$CONFIG_STATUS <<\_ACEOF
4975 ## --------------------- ##
4976 ## M4sh Initialization. ##
4977 ## --------------------- ##
4979 # Be Bourne compatible
4980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4984 # is contrary to our usage. Disable this feature.
4985 alias -g '${1+"$@"}'='"$@"'
4986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4989 DUALCASE=1; export DUALCASE # for MKS sh
4991 # Support unset when possible.
4992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4999 # Work around bugs in pre-3.0 UWIN ksh.
5000 $as_unset ENV MAIL MAILPATH
5007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5009 LC_TELEPHONE LC_TIME
5011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5012 eval $as_var=C; export $as_var
5018 # Required to use basename.
5019 if expr a : '\(a\)' >/dev/null 2>&1; then
5025 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5026 as_basename=basename
5032 # Name of the executable.
5033 as_me=`$as_basename "$0" ||
5034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5035 X"$0" : 'X\(//\)$' \| \
5036 X"$0" : 'X\(/\)$' \| \
5037 . : '\(.\)' 2>/dev/null ||
5039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5040 /^X\/\(\/\/\)$/{ s//\1/; q; }
5041 /^X\/\(\/\).*/{ s//\1/; q; }
5045 # PATH needs CR, and LINENO needs CR and PATH.
5046 # Avoid depending upon Character Ranges.
5047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5050 as_cr_digits='0123456789'
5051 as_cr_alnum=$as_cr_Letters$as_cr_digits
5053 # The user is always right.
5054 if test "${PATH_SEPARATOR+set}" != set; then
5055 echo "#! /bin/sh" >conf$$.sh
5056 echo "exit 0" >>conf$$.sh
5058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5069 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5070 test "x$as_lineno_1" != "x$as_lineno_2" &&
5071 test "x$as_lineno_3" = "x$as_lineno_2" || {
5072 # Find who we are. Look in the path if we contain no path at all
5075 *[\\/]* ) as_myself=$0 ;;
5076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5086 # We did not find ourselves, most probably we were run as `sh COMMAND'
5087 # in which case we are not to be found in the path.
5088 if test "x$as_myself" = x; then
5091 if test ! -f "$as_myself"; then
5092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5094 { (exit 1); exit 1; }; }
5096 case $CONFIG_SHELL in
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5102 test -z "$as_dir" && as_dir=.
5103 for as_base in sh bash ksh sh5; do
5106 if ("$as_dir/$as_base" -c '
5109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5110 test "x$as_lineno_1" != "x$as_lineno_2" &&
5111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5112 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5113 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5114 CONFIG_SHELL=$as_dir/$as_base
5116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5125 # uniformly replaced by the line number. The first 'sed' inserts a
5126 # line-number line before each line; the second 'sed' does the real
5127 # work. The second script uses 'N' to pair each line-number line
5128 # with the numbered line, and appends trailing '-' during
5129 # substitution so that $LINENO is not a special case at line end.
5130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5132 sed '=' <$as_myself |
5137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5140 s,^['$as_cr_digits']*\n,,
5142 chmod +x $as_me.lineno ||
5143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5145 { (exit 1); exit 1; }; }
5147 # Don't try to exec as it changes $[0], causing all sort of problems
5148 # (the dirname of $[0] is not the place where we might find the
5149 # original and so on. Autoconf is especially sensible to this).
5151 # Exit status is that of the last command.
5156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5157 *c*,-n*) ECHO_N= ECHO_C='
5159 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5160 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5163 if expr a : '\(a\)' >/dev/null 2>&1; then
5169 rm -f conf$$ conf$$.exe conf$$.file
5171 if ln -s conf$$.file conf$$ 2>/dev/null; then
5172 # We could just check for DJGPP; but this test a) works b) is more generic
5173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5174 if test -f conf$$.exe; then
5175 # Don't use ln at all; we don't have any links
5180 elif ln conf$$.file conf$$ 2>/dev/null; then
5185 rm -f conf$$ conf$$.exe conf$$.file
5187 if mkdir -p . 2>/dev/null; then
5190 test -d ./-p && rmdir ./-p
5194 as_executable_p="test -f"
5196 # Sed expression to map a string onto a valid CPP name.
5197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5199 # Sed expression to map a string onto a valid variable name.
5200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5204 # We need space, tab and new line, in precisely that order.
5214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5215 # report actual input values of CONFIG_FILES etc. instead of their
5216 # values after options handling. Logging --version etc. is OK.
5220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5221 ## Running $as_me. ##
5226 This file was extended by RtAudio $as_me 4.0, which was
5227 generated by GNU Autoconf 2.59. Invocation command line was
5229 CONFIG_FILES = $CONFIG_FILES
5230 CONFIG_HEADERS = $CONFIG_HEADERS
5231 CONFIG_LINKS = $CONFIG_LINKS
5232 CONFIG_COMMANDS = $CONFIG_COMMANDS
5236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5240 # Files that config.status was made for.
5241 if test -n "$ac_config_files"; then
5242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5245 if test -n "$ac_config_headers"; then
5246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5249 if test -n "$ac_config_links"; then
5250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5253 if test -n "$ac_config_commands"; then
5254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5257 cat >>$CONFIG_STATUS <<\_ACEOF
5260 \`$as_me' instantiates files from templates according to the
5261 current configuration.
5263 Usage: $0 [OPTIONS] [FILE]...
5265 -h, --help print this help, then exit
5266 -V, --version print version number, then exit
5267 -q, --quiet do not print progress messages
5268 -d, --debug don't remove temporary files
5269 --recheck update $as_me by reconfiguring in the same conditions
5270 --file=FILE[:TEMPLATE]
5271 instantiate the configuration file FILE
5273 Configuration files:
5276 Report bugs to <bug-autoconf@gnu.org>."
5279 cat >>$CONFIG_STATUS <<_ACEOF
5281 RtAudio config.status 4.0
5282 configured by $0, generated by GNU Autoconf 2.59,
5283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5285 Copyright (C) 2003 Free Software Foundation, Inc.
5286 This config.status script is free software; the Free Software Foundation
5287 gives unlimited permission to copy, distribute and modify it."
5291 cat >>$CONFIG_STATUS <<\_ACEOF
5292 # If no file are specified by the user, then we need to provide default
5293 # value. By we need to know if files were specified by the user.
5299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5308 *) # This is not an option, so the user has probably given explicit
5311 ac_need_defaults=false;;
5315 # Handling of the options.
5317 cat >>$CONFIG_STATUS <<\_ACEOF
5318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5320 --version | --vers* | -V )
5321 echo "$ac_cs_version"; exit 0 ;;
5323 # Conflict between --help and --header
5324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5325 Try \`$0 --help' for more information." >&5
5326 echo "$as_me: error: ambiguous option: $1
5327 Try \`$0 --help' for more information." >&2;}
5328 { (exit 1); exit 1; }; };;
5329 --help | --hel | -h )
5330 echo "$ac_cs_usage"; exit 0 ;;
5331 --debug | --d* | -d )
5333 --file | --fil | --fi | --f )
5335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5336 ac_need_defaults=false;;
5337 --header | --heade | --head | --hea )
5339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5340 ac_need_defaults=false;;
5341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5347 Try \`$0 --help' for more information." >&5
5348 echo "$as_me: error: unrecognized option: $1
5349 Try \`$0 --help' for more information." >&2;}
5350 { (exit 1); exit 1; }; } ;;
5352 *) ac_config_targets="$ac_config_targets $1" ;;
5358 ac_configure_extra_args=
5360 if $ac_cs_silent; then
5362 ac_configure_extra_args="$ac_configure_extra_args --silent"
5366 cat >>$CONFIG_STATUS <<_ACEOF
5367 if \$ac_cs_recheck; then
5368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5378 cat >>$CONFIG_STATUS <<\_ACEOF
5379 for ac_config_target in $ac_config_targets
5381 case "$ac_config_target" in
5382 # Handling of arguments.
5383 "rtaudio-config" ) CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5384 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5385 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5388 { (exit 1); exit 1; }; };;
5392 # If the user did not use the arguments to specify the items to instantiate,
5393 # then the envvar interface is used. Set only those that are not.
5394 # We use the long form for the default assignment because of an extremely
5395 # bizarre bug on SunOS 4.1.3.
5396 if $ac_need_defaults; then
5397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5400 # Have a temporary directory for convenience. Make it in the build tree
5401 # simply because there is no reason to put it here, and in addition,
5402 # creating and moving files from /tmp can sometimes cause problems.
5403 # Create a temporary directory, and hook for its removal unless debugging.
5406 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5407 trap '{ (exit 1); exit 1; }' 1 2 13 15
5410 # Create a (secure) tmp directory for tmp files.
5413 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5414 test -n "$tmp" && test -d "$tmp"
5417 tmp=./confstat$$-$RANDOM
5418 (umask 077 && mkdir $tmp)
5421 echo "$me: cannot create a temporary directory in ." >&2
5422 { (exit 1); exit 1; }
5427 cat >>$CONFIG_STATUS <<_ACEOF
5430 # CONFIG_FILES section.
5433 # No need to generate the scripts if there are no CONFIG_FILES.
5434 # This happens for instance when ./config.status config.h
5435 if test -n "\$CONFIG_FILES"; then
5436 # Protect against being on the right side of a sed subst in config.status.
5437 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5438 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5439 s,@SHELL@,$SHELL,;t t
5440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5441 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5442 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5443 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5444 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5445 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5446 s,@exec_prefix@,$exec_prefix,;t t
5447 s,@prefix@,$prefix,;t t
5448 s,@program_transform_name@,$program_transform_name,;t t
5449 s,@bindir@,$bindir,;t t
5450 s,@sbindir@,$sbindir,;t t
5451 s,@libexecdir@,$libexecdir,;t t
5452 s,@datadir@,$datadir,;t t
5453 s,@sysconfdir@,$sysconfdir,;t t
5454 s,@sharedstatedir@,$sharedstatedir,;t t
5455 s,@localstatedir@,$localstatedir,;t t
5456 s,@libdir@,$libdir,;t t
5457 s,@includedir@,$includedir,;t t
5458 s,@oldincludedir@,$oldincludedir,;t t
5459 s,@infodir@,$infodir,;t t
5460 s,@mandir@,$mandir,;t t
5461 s,@build_alias@,$build_alias,;t t
5462 s,@host_alias@,$host_alias,;t t
5463 s,@target_alias@,$target_alias,;t t
5465 s,@ECHO_C@,$ECHO_C,;t t
5466 s,@ECHO_N@,$ECHO_N,;t t
5467 s,@ECHO_T@,$ECHO_T,;t t
5471 s,@CFLAGS@,$CFLAGS,;t t
5472 s,@LDFLAGS@,$LDFLAGS,;t t
5473 s,@CPPFLAGS@,$CPPFLAGS,;t t
5474 s,@ac_ct_CC@,$ac_ct_CC,;t t
5475 s,@EXEEXT@,$EXEEXT,;t t
5476 s,@OBJEXT@,$OBJEXT,;t t
5478 s,@CXXFLAGS@,$CXXFLAGS,;t t
5479 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5480 s,@RANLIB@,$RANLIB,;t t
5481 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5484 s,@EGREP@,$EGREP,;t t
5485 s,@debug@,$debug,;t t
5486 s,@cflags@,$cflags,;t t
5487 s,@object_path@,$object_path,;t t
5489 s,@build@,$build,;t t
5490 s,@build_cpu@,$build_cpu,;t t
5491 s,@build_vendor@,$build_vendor,;t t
5492 s,@build_os@,$build_os,;t t
5494 s,@host_cpu@,$host_cpu,;t t
5495 s,@host_vendor@,$host_vendor,;t t
5496 s,@host_os@,$host_os,;t t
5497 s,@sound_api@,$sound_api,;t t
5498 s,@audio_apis@,$audio_apis,;t t
5499 s,@frameworks@,$frameworks,;t t
5500 s,@objects@,$objects,;t t
5501 s,@LIBOBJS@,$LIBOBJS,;t t
5502 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5507 cat >>$CONFIG_STATUS <<\_ACEOF
5508 # Split the substitutions into bite-sized pieces for seds with
5509 # small command number limits, like on Digital OSF/1 and HP-UX.
5511 ac_sed_frag=1 # Number of current file.
5512 ac_beg=1 # First line for current file.
5513 ac_end=$ac_max_sed_lines # Line after last line for current file.
5516 while $ac_more_lines; do
5517 if test $ac_beg -gt 1; then
5518 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5520 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5522 if test ! -s $tmp/subs.frag; then
5525 # The purpose of the label and of the branching condition is to
5526 # speed up the sed processing (if there are no `@' at all, there
5527 # is no need to browse any of the substitutions).
5528 # These are the two extra sed commands mentioned above.
5530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5531 if test -z "$ac_sed_cmds"; then
5532 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5534 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5536 ac_sed_frag=`expr $ac_sed_frag + 1`
5538 ac_end=`expr $ac_end + $ac_max_sed_lines`
5541 if test -z "$ac_sed_cmds"; then
5544 fi # test -n "$CONFIG_FILES"
5547 cat >>$CONFIG_STATUS <<\_ACEOF
5548 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5551 - | *:- | *:-:* ) # input from stdin
5553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5557 * ) ac_file_in=$ac_file.in ;;
5560 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5561 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5563 X"$ac_file" : 'X\(//\)[^/]' \| \
5564 X"$ac_file" : 'X\(//\)$' \| \
5565 X"$ac_file" : 'X\(/\)' \| \
5566 . : '\(.\)' 2>/dev/null ||
5568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5570 /^X\(\/\/\)$/{ s//\1/; q; }
5571 /^X\(\/\).*/{ s//\1/; q; }
5573 { if $as_mkdir_p; then
5578 while test ! -d "$as_dir"; do
5579 as_dirs="$as_dir $as_dirs"
5580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5582 X"$as_dir" : 'X\(//\)[^/]' \| \
5583 X"$as_dir" : 'X\(//\)$' \| \
5584 X"$as_dir" : 'X\(/\)' \| \
5585 . : '\(.\)' 2>/dev/null ||
5587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5589 /^X\(\/\/\)$/{ s//\1/; q; }
5590 /^X\(\/\).*/{ s//\1/; q; }
5593 test ! -n "$as_dirs" || mkdir $as_dirs
5594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5596 { (exit 1); exit 1; }; }; }
5600 if test "$ac_dir" != .; then
5601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5602 # A "../" for each directory in $ac_dir_suffix.
5603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5605 ac_dir_suffix= ac_top_builddir=
5609 .) # No --srcdir option. We are building in place.
5611 if test -z "$ac_top_builddir"; then
5614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5616 [\\/]* | ?:[\\/]* ) # Absolute path.
5617 ac_srcdir=$srcdir$ac_dir_suffix;
5618 ac_top_srcdir=$srcdir ;;
5620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5624 # Do not use `cd foo && pwd` to compute absolute paths, because
5625 # the directories may not exist.
5627 .) ac_abs_builddir="$ac_dir";;
5630 .) ac_abs_builddir=`pwd`;;
5631 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5632 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5635 case $ac_abs_builddir in
5636 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5638 case ${ac_top_builddir}. in
5639 .) ac_abs_top_builddir=$ac_abs_builddir;;
5640 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5641 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5644 case $ac_abs_builddir in
5645 .) ac_abs_srcdir=$ac_srcdir;;
5648 .) ac_abs_srcdir=$ac_abs_builddir;;
5649 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5650 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5653 case $ac_abs_builddir in
5654 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5656 case $ac_top_srcdir in
5657 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5658 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5659 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5665 if test x"$ac_file" != x-; then
5666 { echo "$as_me:$LINENO: creating $ac_file" >&5
5667 echo "$as_me: creating $ac_file" >&6;}
5670 # Let's still pretend it is `configure' which instantiates (i.e., don't
5671 # use $as_me), people would be surprised to read:
5672 # /* config.h. Generated by config.status. */
5673 if test x"$ac_file" = x-; then
5676 configure_input="$ac_file. "
5678 configure_input=$configure_input"Generated from `echo $ac_file_in |
5679 sed 's,.*/,,'` by configure."
5681 # First look for the input files in the build tree, otherwise in the
5683 ac_file_inputs=`IFS=:
5684 for f in $ac_file_in; do
5686 -) echo $tmp/stdin ;;
5688 # Absolute (can't be DOS-style, as IFS=:)
5689 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5690 echo "$as_me: error: cannot find input file: $f" >&2;}
5691 { (exit 1); exit 1; }; }
5694 if test -f "$f"; then
5697 elif test -f "$srcdir/$f"; then
5702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5703 echo "$as_me: error: cannot find input file: $f" >&2;}
5704 { (exit 1); exit 1; }; }
5707 done` || { (exit 1); exit 1; }
5709 cat >>$CONFIG_STATUS <<_ACEOF
5713 cat >>$CONFIG_STATUS <<\_ACEOF
5715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5716 s,@configure_input@,$configure_input,;t t
5717 s,@srcdir@,$ac_srcdir,;t t
5718 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5719 s,@top_srcdir@,$ac_top_srcdir,;t t
5720 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5721 s,@builddir@,$ac_builddir,;t t
5722 s,@abs_builddir@,$ac_abs_builddir,;t t
5723 s,@top_builddir@,$ac_top_builddir,;t t
5724 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5727 if test x"$ac_file" != x-; then
5728 mv $tmp/out $ac_file
5737 cat >>$CONFIG_STATUS <<\_ACEOF
5739 { (exit 0); exit 0; }
5741 chmod +x $CONFIG_STATUS
5742 ac_clean_files=$ac_clean_files_save
5745 # configure is writing to config.log, and then calls config.status.
5746 # config.status does its own redirection, appending to config.log.
5747 # Unfortunately, on DOS this fails, as config.log is still kept open
5748 # by configure, so config.status won't be able to write to it; its
5749 # output is simply discarded. So we exec the FD to /dev/null,
5750 # effectively closing config.log, so it can be properly (re)opened and
5751 # appended to by config.status. When coming back to configure, we
5752 # need to make the FD available again.
5753 if test "$no_create" != yes; then
5755 ac_config_status_args=
5756 test "$silent" = yes &&
5757 ac_config_status_args="$ac_config_status_args --quiet"
5759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5762 # would make configure fail if this is the last instruction.
5763 $ac_cs_success || { (exit 1); exit 1; }
5767 chmod oug+x rtaudio-config