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 CFLAGS="$CFLAGS $cflags"
3626 # Checks for package options and external software
3628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3629 if test -f $ac_dir/install-sh; then
3631 ac_install_sh="$ac_aux_dir/install-sh -c"
3633 elif test -f $ac_dir/install.sh; then
3635 ac_install_sh="$ac_aux_dir/install.sh -c"
3637 elif test -f $ac_dir/shtool; then
3639 ac_install_sh="$ac_aux_dir/shtool install -c"
3643 if test -z "$ac_aux_dir"; then
3644 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3645 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3646 { (exit 1); exit 1; }; }
3648 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3649 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3650 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3652 # Make sure we can run config.sub.
3653 $ac_config_sub sun4 >/dev/null 2>&1 ||
3654 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3655 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3656 { (exit 1); exit 1; }; }
3658 echo "$as_me:$LINENO: checking build system type" >&5
3659 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3660 if test "${ac_cv_build+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_build_alias=$build_alias
3664 test -z "$ac_cv_build_alias" &&
3665 ac_cv_build_alias=`$ac_config_guess`
3666 test -z "$ac_cv_build_alias" &&
3667 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3668 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3669 { (exit 1); exit 1; }; }
3670 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3672 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3673 { (exit 1); exit 1; }; }
3676 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3677 echo "${ECHO_T}$ac_cv_build" >&6
3679 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3680 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3681 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3684 echo "$as_me:$LINENO: checking host system type" >&5
3685 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3686 if test "${ac_cv_host+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 ac_cv_host_alias=$host_alias
3690 test -z "$ac_cv_host_alias" &&
3691 ac_cv_host_alias=$ac_cv_build_alias
3692 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3694 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3695 { (exit 1); exit 1; }; }
3698 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3699 echo "${ECHO_T}$ac_cv_host" >&6
3701 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3702 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3703 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3706 echo "$as_me:$LINENO: checking for audio API" >&5
3707 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
3710 sound_api=-D__LINUX_OSS__
3712 echo "$as_me:$LINENO: result: using OSS" >&5
3713 echo "${ECHO_T}using OSS" >&6
3714 audio_apis=-D__LINUX_OSS__
3716 CFLAGS=$CFLAGS" -lossaudio"
3718 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3719 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3720 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_check_lib_save_LIBS=$LIBS
3724 LIBS="-lpthread $LIBS"
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738 char pthread_create ();
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest$ac_exeext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_lib_pthread_pthread_create=yes
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_cv_lib_pthread_pthread_create=no
3776 rm -f conftest.err conftest.$ac_objext \
3777 conftest$ac_exeext conftest.$ac_ext
3778 LIBS=$ac_check_lib_save_LIBS
3780 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3781 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3782 if test $ac_cv_lib_pthread_pthread_create = yes; then
3783 cat >>confdefs.h <<_ACEOF
3784 #define HAVE_LIBPTHREAD 1
3787 LIBS="-lpthread $LIBS"
3790 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
3791 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
3792 { (exit 1); exit 1; }; }
3801 # Check whether --with-jack or --without-jack was given.
3802 if test "${with_jack+set}" = set; then
3803 withval="$with_jack"
3804 sound_api=-D__UNIX_JACK__
3805 echo "$as_me:$LINENO: result: using JACK" >&5
3806 echo "${ECHO_T}using JACK" >&6
3808 if test $sound_api = -D__UNIX_JACK__; then
3811 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
3812 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
3813 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 ac_check_lib_save_LIBS=$LIBS
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3825 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3831 char jack_client_new ();
3840 rm -f conftest.$ac_objext conftest$ac_exeext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842 (eval $ac_link) 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_lib_jack_jack_client_new=yes
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ac_cv_lib_jack_jack_client_new=no
3869 rm -f conftest.err conftest.$ac_objext \
3870 conftest$ac_exeext conftest.$ac_ext
3871 LIBS=$ac_check_lib_save_LIBS
3873 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
3874 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
3875 if test $ac_cv_lib_jack_jack_client_new = yes; then
3876 cat >>confdefs.h <<_ACEOF
3877 #define HAVE_LIBJACK 1
3883 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
3884 echo "$as_me: error: JACK support requires the jack library!" >&2;}
3885 { (exit 1); exit 1; }; }
3889 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3890 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3891 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_check_lib_save_LIBS=$LIBS
3895 LIBS="-lasound $LIBS"
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3903 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909 char snd_pcm_open ();
3918 rm -f conftest.$ac_objext conftest$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_lib_asound_snd_pcm_open=yes
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 ac_cv_lib_asound_snd_pcm_open=no
3947 rm -f conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
3949 LIBS=$ac_check_lib_save_LIBS
3951 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3952 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3953 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955 #define HAVE_LIBASOUND 1
3958 LIBS="-lasound $LIBS"
3961 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
3962 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
3963 { (exit 1); exit 1; }; }
3966 LIBS="`pkg-config --CFLAGS --libs jack` $TEMP_LIBS -lasound"
3967 audio_apis="-D__UNIX_JACK__"
3970 # Look for ALSA flag
3972 # Check whether --with-alsa or --without-alsa was given.
3973 if test "${with_alsa+set}" = set; then
3974 withval="$with_alsa"
3975 sound_api=-D__LINUX_ALSA__
3976 echo "$as_me:$LINENO: result: using ALSA" >&5
3977 echo "${ECHO_T}using ALSA" >&6
3979 if test $sound_api = -D__LINUX_ALSA__; then
3981 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3982 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3983 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 ac_check_lib_save_LIBS=$LIBS
3987 LIBS="-lasound $LIBS"
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3995 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char snd_pcm_open ();
4010 rm -f conftest.$ac_objext conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_c_werror_flag"
4020 || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest$ac_exeext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_lib_asound_snd_pcm_open=yes
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 ac_cv_lib_asound_snd_pcm_open=no
4039 rm -f conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4043 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4044 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4045 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define HAVE_LIBASOUND 1
4050 LIBS="-lasound $LIBS"
4053 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4054 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4055 { (exit 1); exit 1; }; }
4058 audio_apis="-D__LINUX_ALSA__ $audio_apis"
4063 # Check whether --with-oss or --without-oss was given.
4064 if test "${with_oss+set}" = set; then
4066 sound_api=-D__LINUX_OSS__
4067 echo "$as_me:$LINENO: result: using OSS" >&5
4068 echo "${ECHO_T}using OSS" >&6
4070 if test $sound_api = -D__LINUX_OSS__; then
4071 audio_apis="-D__LINUX_OSS__ $audio_apis"
4074 # If no audio api flags specified, use ALSA
4075 if test $sound_api = _NO_API_; then
4076 echo "$as_me:$LINENO: result: using ALSA" >&5
4077 echo "${ECHO_T}using ALSA" >&6
4078 audio_apis=-D__LINUX_ALSA__
4081 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4082 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
4083 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_check_lib_save_LIBS=$LIBS
4087 LIBS="-lasound $LIBS"
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4095 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4101 char snd_pcm_open ();
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112 (eval $ac_link) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest$ac_exeext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_lib_asound_snd_pcm_open=yes
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ac_cv_lib_asound_snd_pcm_open=no
4139 rm -f conftest.err conftest.$ac_objext \
4140 conftest$ac_exeext conftest.$ac_ext
4141 LIBS=$ac_check_lib_save_LIBS
4143 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4144 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4145 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4146 cat >>confdefs.h <<_ACEOF
4147 #define HAVE_LIBASOUND 1
4150 LIBS="-lasound $LIBS"
4153 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4154 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4155 { (exit 1); exit 1; }; }
4161 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4162 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4163 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 ac_check_lib_save_LIBS=$LIBS
4167 LIBS="-lpthread $LIBS"
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4175 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4181 char pthread_create ();
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192 (eval $ac_link) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest$ac_exeext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_cv_lib_pthread_pthread_create=yes
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_cv_lib_pthread_pthread_create=no
4219 rm -f conftest.err conftest.$ac_objext \
4220 conftest$ac_exeext conftest.$ac_ext
4221 LIBS=$ac_check_lib_save_LIBS
4223 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4224 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4225 if test $ac_cv_lib_pthread_pthread_create = yes; then
4226 cat >>confdefs.h <<_ACEOF
4227 #define HAVE_LIBPTHREAD 1
4230 LIBS="-lpthread $LIBS"
4233 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4234 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4235 { (exit 1); exit 1; }; }
4244 # Check whether --with-jack or --without-jack was given.
4245 if test "${with_jack+set}" = set; then
4246 withval="$with_jack"
4247 sound_api=-D__UNIX_JACK__
4248 echo "$as_me:$LINENO: result: using JACK" >&5
4249 echo "${ECHO_T}using JACK" >&6
4251 if test $sound_api = -D__UNIX_JACK__; then
4253 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
4254 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
4255 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_check_lib_save_LIBS=$LIBS
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273 char jack_client_new ();
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_lib_jack_jack_client_new=yes
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_lib_jack_jack_client_new=no
4311 rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313 LIBS=$ac_check_lib_save_LIBS
4315 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
4316 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
4317 if test $ac_cv_lib_jack_jack_client_new = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define HAVE_LIBJACK 1
4325 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4326 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4327 { (exit 1); exit 1; }; }
4330 audio_apis="-D__UNIX_JACK__"
4333 # Look for Core flag
4335 # Check whether --with-core or --without-core was given.
4336 if test "${with_core+set}" = set; then
4337 withval="$with_core"
4338 sound_api=-D__MACOSX_CORE__
4339 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4340 echo "${ECHO_T}using CoreAudio" >&6
4342 if test $sound_api = -D__MACOSX_CORE__; then
4343 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4344 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4345 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4346 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4350 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4352 # Is the header compilable?
4353 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4354 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4362 #include <CoreAudio/CoreAudio.h>
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_header_compiler=yes
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 ac_header_compiler=no
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4395 echo "${ECHO_T}$ac_header_compiler" >&6
4397 # Is the header present?
4398 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4399 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <CoreAudio/CoreAudio.h>
4408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4425 if test -z "$ac_cpp_err"; then
4426 ac_header_preproc=yes
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_header_preproc=no
4433 rm -f conftest.err conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4435 echo "${ECHO_T}$ac_header_preproc" >&6
4437 # So? What about this header?
4438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4440 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4441 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4443 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4444 ac_header_preproc=yes
4447 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4448 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4450 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4452 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4454 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4456 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4458 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4461 ## ----------------------------------- ##
4462 ## Report this to gary@music.mcgill.ca ##
4463 ## ----------------------------------- ##
4466 sed "s/^/$as_me: WARNING: /" >&2
4469 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4470 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4471 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4476 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4477 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4480 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4483 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4484 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4485 { (exit 1); exit 1; }; }
4489 frameworks="-framework CoreAudio -framework CoreFoundation"
4491 audio_apis="-D__MACOSX_CORE__ $audio_apis"
4494 # If no audio api flags specified, use CoreAudio
4495 if test $sound_api = _NO_API_; then
4496 sound_api=-D__MACOSX_CORE__
4498 echo "$as_me:$LINENO: result: using CoreAudio" >&5
4499 echo "${ECHO_T}using CoreAudio" >&6
4500 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4501 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4502 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4503 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4507 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4509 # Is the header compilable?
4510 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4511 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4519 #include <CoreAudio/CoreAudio.h>
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag"
4531 || test ! -s conftest.err'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 ac_header_compiler=yes
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 ac_header_compiler=no
4550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4552 echo "${ECHO_T}$ac_header_compiler" >&6
4554 # Is the header present?
4555 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4556 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <CoreAudio/CoreAudio.h>
4565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } >/dev/null; then
4573 if test -s conftest.err; then
4574 ac_cpp_err=$ac_c_preproc_warn_flag
4575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4582 if test -z "$ac_cpp_err"; then
4583 ac_header_preproc=yes
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_header_preproc=no
4590 rm -f conftest.err conftest.$ac_ext
4591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4592 echo "${ECHO_T}$ac_header_preproc" >&6
4594 # So? What about this header?
4595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4597 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4598 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4600 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4601 ac_header_preproc=yes
4604 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4605 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4607 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4609 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4611 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4613 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4614 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4615 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4618 ## ----------------------------------- ##
4619 ## Report this to gary@music.mcgill.ca ##
4620 ## ----------------------------------- ##
4623 sed "s/^/$as_me: WARNING: /" >&2
4626 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4627 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4628 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4633 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4634 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4637 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4638 audio_apis=-D__MACOSX_CORE__
4641 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4642 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4643 { (exit 1); exit 1; }; }
4647 frameworks="-framework CoreAudio -framework CoreFoundation"
4652 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4653 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4654 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_check_lib_save_LIBS=$LIBS
4658 LIBS="-lpthread $LIBS"
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4666 /* Override any gcc2 internal prototype to avoid an error. */
4670 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */
4672 char pthread_create ();
4681 rm -f conftest.$ac_objext conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag"
4691 || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_lib_pthread_pthread_create=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_pthread_pthread_create=no
4710 rm -f conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 LIBS=$ac_check_lib_save_LIBS
4714 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4715 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4716 if test $ac_cv_lib_pthread_pthread_create = yes; then
4717 cat >>confdefs.h <<_ACEOF
4718 #define HAVE_LIBPTHREAD 1
4721 LIBS="-lpthread $LIBS"
4724 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4725 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4726 { (exit 1); exit 1; }; }
4735 # Check whether --with-asio or --without-asio was given.
4736 if test "${with_asio+set}" = set; then
4737 withval="$with_asio"
4738 sound_api=-D__WINDOWS_ASIO__
4739 echo "$as_me:$LINENO: result: using ASIO" >&5
4740 echo "${ECHO_T}using ASIO" >&6
4742 if test $sound_api = -D__WINDOWS_ASIO__; then
4743 audio_apis="-D__WINDOWS_ASIO__"
4744 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
4748 # Look for DirectSound flag
4750 # Check whether --with-ds or --without-ds was given.
4751 if test "${with_ds+set}" = set; then
4753 sound_api=-D__WINDOWS_DS__
4754 echo "$as_me:$LINENO: result: using DirectSound" >&5
4755 echo "${ECHO_T}using DirectSound" >&6
4757 if test $sound_api = -D__WINDOWS_DS__; then
4758 audio_apis="-D__WINDOWS_DS__ $audio_apis"
4759 LIBS="-ldsound -lwinmm $LIBS"
4762 # If no audio api flags specified, use DirectSound
4763 if test $sound_api = _NO_API_; then
4764 sound_api=-D__WINDOWS_DS__
4766 echo "$as_me:$LINENO: result: using DirectSound" >&5
4767 echo "${ECHO_T}using DirectSound" >&6
4768 audio_apis="-D__WINDOWS_DS__"
4769 LIBS="-ldsound -lwinmm $LIBS"
4772 LIBS="-lole32 $LIBS"
4776 # Default case for unknown realtime systems.
4777 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
4778 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
4779 { (exit 1); exit 1; }; }
4783 # Checks for library functions.
4784 if test $ac_cv_c_compiler_gnu = yes; then
4785 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4786 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4787 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_pattern="Autoconf.*'x'"
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4802 ac_cv_prog_gcc_traditional=yes
4804 ac_cv_prog_gcc_traditional=no
4809 if test $ac_cv_prog_gcc_traditional = no; then
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4821 ac_cv_prog_gcc_traditional=yes
4827 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4828 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4829 if test $ac_cv_prog_gcc_traditional = yes; then
4830 CC="$CC -traditional"
4835 cat >confcache <<\_ACEOF
4836 # This file is a shell script that caches the results of configure
4837 # tests run on this system so they can be shared between configure
4838 # scripts and configure runs, see configure's option --config-cache.
4839 # It is not useful on other systems. If it contains results you don't
4840 # want to keep, you may remove or edit it.
4842 # config.status only pays attention to the cache file if you give it
4843 # the --recheck option to rerun configure.
4845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4851 # The following way of writing the cache mishandles newlines in values,
4852 # but we know of no workaround that is simple, portable, and efficient.
4853 # So, don't put newlines in cache variables' values.
4854 # Ultrix sh set writes to stderr and can't be redirected directly,
4855 # and sets the high bit in the cache file unless we assign to the vars.
4858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4860 # `set' does not quote correctly, so add quotes (double-quote
4861 # substitution turns \\\\ into \\, and sed turns \\ into \).
4864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4867 # `set' quotes correctly as required by POSIX, so do not add quotes.
4869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4878 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4880 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4881 if test -w $cache_file; then
4882 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4883 cat confcache >$cache_file
4885 echo "not updating unwritable cache $cache_file"
4890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4891 # Let make expand exec_prefix.
4892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4896 # trailing colons and then remove the whole line if VPATH becomes empty
4897 # (actually we leave an empty line to preserve line numbers).
4898 if test "x$srcdir" = x.; then
4899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4900 s/:*\$(srcdir):*/:/;
4901 s/:*\${srcdir}:*/:/;
4903 s/^\([^=]*=[ ]*\):*/\1/;
4909 # Transform confdefs.h into DEFS.
4910 # Protect against shell expansion while executing Makefile rules.
4911 # Protect against Makefile macro expansion.
4913 # If the first sed substitution is executed (which looks for macros that
4914 # take arguments), then we branch to the quote section. Otherwise,
4915 # look for a macro that doesn't take arguments.
4916 cat >confdef2opt.sed <<\_ACEOF
4919 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4921 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4925 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4931 # We use echo to avoid assuming a particular line-breaking character.
4932 # The extra dot is to prevent the shell from consuming trailing
4933 # line-breaks from the sub-command output. A line-break within
4934 # single-quotes doesn't work because, if this script is created in a
4935 # platform that uses two characters for line-breaks (e.g., DOS), tr
4937 ac_LF_and_DOT=`echo; echo .`
4938 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4939 rm -f confdef2opt.sed
4944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4945 # 1. Remove the extension, and $U if already installed.
4946 ac_i=`echo "$ac_i" |
4947 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4949 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4950 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4954 LTLIBOBJS=$ac_ltlibobjs
4958 : ${CONFIG_STATUS=./config.status}
4959 ac_clean_files_save=$ac_clean_files
4960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4961 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4962 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4963 cat >$CONFIG_STATUS <<_ACEOF
4965 # Generated by $as_me.
4966 # Run this file to recreate the current configuration.
4967 # Compiler output produced by configure, useful for debugging
4968 # configure, is in config.log if it exists.
4973 SHELL=\${CONFIG_SHELL-$SHELL}
4976 cat >>$CONFIG_STATUS <<\_ACEOF
4977 ## --------------------- ##
4978 ## M4sh Initialization. ##
4979 ## --------------------- ##
4981 # Be Bourne compatible
4982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4985 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4986 # is contrary to our usage. Disable this feature.
4987 alias -g '${1+"$@"}'='"$@"'
4988 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4991 DUALCASE=1; export DUALCASE # for MKS sh
4993 # Support unset when possible.
4994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5001 # Work around bugs in pre-3.0 UWIN ksh.
5002 $as_unset ENV MAIL MAILPATH
5009 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5010 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5011 LC_TELEPHONE LC_TIME
5013 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5014 eval $as_var=C; export $as_var
5020 # Required to use basename.
5021 if expr a : '\(a\)' >/dev/null 2>&1; then
5027 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5028 as_basename=basename
5034 # Name of the executable.
5035 as_me=`$as_basename "$0" ||
5036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5037 X"$0" : 'X\(//\)$' \| \
5038 X"$0" : 'X\(/\)$' \| \
5039 . : '\(.\)' 2>/dev/null ||
5041 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5042 /^X\/\(\/\/\)$/{ s//\1/; q; }
5043 /^X\/\(\/\).*/{ s//\1/; q; }
5047 # PATH needs CR, and LINENO needs CR and PATH.
5048 # Avoid depending upon Character Ranges.
5049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5052 as_cr_digits='0123456789'
5053 as_cr_alnum=$as_cr_Letters$as_cr_digits
5055 # The user is always right.
5056 if test "${PATH_SEPARATOR+set}" != set; then
5057 echo "#! /bin/sh" >conf$$.sh
5058 echo "exit 0" >>conf$$.sh
5060 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5071 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5072 test "x$as_lineno_1" != "x$as_lineno_2" &&
5073 test "x$as_lineno_3" = "x$as_lineno_2" || {
5074 # Find who we are. Look in the path if we contain no path at all
5077 *[\\/]* ) as_myself=$0 ;;
5078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5088 # We did not find ourselves, most probably we were run as `sh COMMAND'
5089 # in which case we are not to be found in the path.
5090 if test "x$as_myself" = x; then
5093 if test ! -f "$as_myself"; then
5094 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5095 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5096 { (exit 1); exit 1; }; }
5098 case $CONFIG_SHELL in
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5104 test -z "$as_dir" && as_dir=.
5105 for as_base in sh bash ksh sh5; do
5108 if ("$as_dir/$as_base" -c '
5111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5112 test "x$as_lineno_1" != "x$as_lineno_2" &&
5113 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5114 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5115 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5116 CONFIG_SHELL=$as_dir/$as_base
5118 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5126 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5127 # uniformly replaced by the line number. The first 'sed' inserts a
5128 # line-number line before each line; the second 'sed' does the real
5129 # work. The second script uses 'N' to pair each line-number line
5130 # with the numbered line, and appends trailing '-' during
5131 # substitution so that $LINENO is not a special case at line end.
5132 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5133 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5134 sed '=' <$as_myself |
5139 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5142 s,^['$as_cr_digits']*\n,,
5144 chmod +x $as_me.lineno ||
5145 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5146 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5147 { (exit 1); exit 1; }; }
5149 # Don't try to exec as it changes $[0], causing all sort of problems
5150 # (the dirname of $[0] is not the place where we might find the
5151 # original and so on. Autoconf is especially sensible to this).
5153 # Exit status is that of the last command.
5158 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5159 *c*,-n*) ECHO_N= ECHO_C='
5161 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5162 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5165 if expr a : '\(a\)' >/dev/null 2>&1; then
5171 rm -f conf$$ conf$$.exe conf$$.file
5173 if ln -s conf$$.file conf$$ 2>/dev/null; then
5174 # We could just check for DJGPP; but this test a) works b) is more generic
5175 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5176 if test -f conf$$.exe; then
5177 # Don't use ln at all; we don't have any links
5182 elif ln conf$$.file conf$$ 2>/dev/null; then
5187 rm -f conf$$ conf$$.exe conf$$.file
5189 if mkdir -p . 2>/dev/null; then
5192 test -d ./-p && rmdir ./-p
5196 as_executable_p="test -f"
5198 # Sed expression to map a string onto a valid CPP name.
5199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5201 # Sed expression to map a string onto a valid variable name.
5202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5206 # We need space, tab and new line, in precisely that order.
5216 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5217 # report actual input values of CONFIG_FILES etc. instead of their
5218 # values after options handling. Logging --version etc. is OK.
5222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5223 ## Running $as_me. ##
5228 This file was extended by RtAudio $as_me 4.0, which was
5229 generated by GNU Autoconf 2.59. Invocation command line was
5231 CONFIG_FILES = $CONFIG_FILES
5232 CONFIG_HEADERS = $CONFIG_HEADERS
5233 CONFIG_LINKS = $CONFIG_LINKS
5234 CONFIG_COMMANDS = $CONFIG_COMMANDS
5238 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5242 # Files that config.status was made for.
5243 if test -n "$ac_config_files"; then
5244 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5247 if test -n "$ac_config_headers"; then
5248 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5251 if test -n "$ac_config_links"; then
5252 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5255 if test -n "$ac_config_commands"; then
5256 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5259 cat >>$CONFIG_STATUS <<\_ACEOF
5262 \`$as_me' instantiates files from templates according to the
5263 current configuration.
5265 Usage: $0 [OPTIONS] [FILE]...
5267 -h, --help print this help, then exit
5268 -V, --version print version number, then exit
5269 -q, --quiet do not print progress messages
5270 -d, --debug don't remove temporary files
5271 --recheck update $as_me by reconfiguring in the same conditions
5272 --file=FILE[:TEMPLATE]
5273 instantiate the configuration file FILE
5275 Configuration files:
5278 Report bugs to <bug-autoconf@gnu.org>."
5281 cat >>$CONFIG_STATUS <<_ACEOF
5283 RtAudio config.status 4.0
5284 configured by $0, generated by GNU Autoconf 2.59,
5285 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5287 Copyright (C) 2003 Free Software Foundation, Inc.
5288 This config.status script is free software; the Free Software Foundation
5289 gives unlimited permission to copy, distribute and modify it."
5293 cat >>$CONFIG_STATUS <<\_ACEOF
5294 # If no file are specified by the user, then we need to provide default
5295 # value. By we need to know if files were specified by the user.
5301 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5302 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5310 *) # This is not an option, so the user has probably given explicit
5313 ac_need_defaults=false;;
5317 # Handling of the options.
5319 cat >>$CONFIG_STATUS <<\_ACEOF
5320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5322 --version | --vers* | -V )
5323 echo "$ac_cs_version"; exit 0 ;;
5325 # Conflict between --help and --header
5326 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5327 Try \`$0 --help' for more information." >&5
5328 echo "$as_me: error: ambiguous option: $1
5329 Try \`$0 --help' for more information." >&2;}
5330 { (exit 1); exit 1; }; };;
5331 --help | --hel | -h )
5332 echo "$ac_cs_usage"; exit 0 ;;
5333 --debug | --d* | -d )
5335 --file | --fil | --fi | --f )
5337 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5338 ac_need_defaults=false;;
5339 --header | --heade | --head | --hea )
5341 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5342 ac_need_defaults=false;;
5343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5348 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5349 Try \`$0 --help' for more information." >&5
5350 echo "$as_me: error: unrecognized option: $1
5351 Try \`$0 --help' for more information." >&2;}
5352 { (exit 1); exit 1; }; } ;;
5354 *) ac_config_targets="$ac_config_targets $1" ;;
5360 ac_configure_extra_args=
5362 if $ac_cs_silent; then
5364 ac_configure_extra_args="$ac_configure_extra_args --silent"
5368 cat >>$CONFIG_STATUS <<_ACEOF
5369 if \$ac_cs_recheck; then
5370 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5371 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5380 cat >>$CONFIG_STATUS <<\_ACEOF
5381 for ac_config_target in $ac_config_targets
5383 case "$ac_config_target" in
5384 # Handling of arguments.
5385 "rtaudio-config" ) CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5387 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5388 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5389 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5390 { (exit 1); exit 1; }; };;
5394 # If the user did not use the arguments to specify the items to instantiate,
5395 # then the envvar interface is used. Set only those that are not.
5396 # We use the long form for the default assignment because of an extremely
5397 # bizarre bug on SunOS 4.1.3.
5398 if $ac_need_defaults; then
5399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5402 # Have a temporary directory for convenience. Make it in the build tree
5403 # simply because there is no reason to put it here, and in addition,
5404 # creating and moving files from /tmp can sometimes cause problems.
5405 # Create a temporary directory, and hook for its removal unless debugging.
5408 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5409 trap '{ (exit 1); exit 1; }' 1 2 13 15
5412 # Create a (secure) tmp directory for tmp files.
5415 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5416 test -n "$tmp" && test -d "$tmp"
5419 tmp=./confstat$$-$RANDOM
5420 (umask 077 && mkdir $tmp)
5423 echo "$me: cannot create a temporary directory in ." >&2
5424 { (exit 1); exit 1; }
5429 cat >>$CONFIG_STATUS <<_ACEOF
5432 # CONFIG_FILES section.
5435 # No need to generate the scripts if there are no CONFIG_FILES.
5436 # This happens for instance when ./config.status config.h
5437 if test -n "\$CONFIG_FILES"; then
5438 # Protect against being on the right side of a sed subst in config.status.
5439 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5440 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5441 s,@SHELL@,$SHELL,;t t
5442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5448 s,@exec_prefix@,$exec_prefix,;t t
5449 s,@prefix@,$prefix,;t t
5450 s,@program_transform_name@,$program_transform_name,;t t
5451 s,@bindir@,$bindir,;t t
5452 s,@sbindir@,$sbindir,;t t
5453 s,@libexecdir@,$libexecdir,;t t
5454 s,@datadir@,$datadir,;t t
5455 s,@sysconfdir@,$sysconfdir,;t t
5456 s,@sharedstatedir@,$sharedstatedir,;t t
5457 s,@localstatedir@,$localstatedir,;t t
5458 s,@libdir@,$libdir,;t t
5459 s,@includedir@,$includedir,;t t
5460 s,@oldincludedir@,$oldincludedir,;t t
5461 s,@infodir@,$infodir,;t t
5462 s,@mandir@,$mandir,;t t
5463 s,@build_alias@,$build_alias,;t t
5464 s,@host_alias@,$host_alias,;t t
5465 s,@target_alias@,$target_alias,;t t
5467 s,@ECHO_C@,$ECHO_C,;t t
5468 s,@ECHO_N@,$ECHO_N,;t t
5469 s,@ECHO_T@,$ECHO_T,;t t
5473 s,@CFLAGS@,$CFLAGS,;t t
5474 s,@LDFLAGS@,$LDFLAGS,;t t
5475 s,@CPPFLAGS@,$CPPFLAGS,;t t
5476 s,@ac_ct_CC@,$ac_ct_CC,;t t
5477 s,@EXEEXT@,$EXEEXT,;t t
5478 s,@OBJEXT@,$OBJEXT,;t t
5480 s,@CXXFLAGS@,$CXXFLAGS,;t t
5481 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5482 s,@RANLIB@,$RANLIB,;t t
5483 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5486 s,@EGREP@,$EGREP,;t t
5487 s,@debug@,$debug,;t t
5488 s,@cflags@,$cflags,;t t
5489 s,@object_path@,$object_path,;t t
5491 s,@build@,$build,;t t
5492 s,@build_cpu@,$build_cpu,;t t
5493 s,@build_vendor@,$build_vendor,;t t
5494 s,@build_os@,$build_os,;t t
5496 s,@host_cpu@,$host_cpu,;t t
5497 s,@host_vendor@,$host_vendor,;t t
5498 s,@host_os@,$host_os,;t t
5499 s,@sound_api@,$sound_api,;t t
5500 s,@audio_apis@,$audio_apis,;t t
5501 s,@frameworks@,$frameworks,;t t
5502 s,@objects@,$objects,;t t
5503 s,@LIBOBJS@,$LIBOBJS,;t t
5504 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5509 cat >>$CONFIG_STATUS <<\_ACEOF
5510 # Split the substitutions into bite-sized pieces for seds with
5511 # small command number limits, like on Digital OSF/1 and HP-UX.
5513 ac_sed_frag=1 # Number of current file.
5514 ac_beg=1 # First line for current file.
5515 ac_end=$ac_max_sed_lines # Line after last line for current file.
5518 while $ac_more_lines; do
5519 if test $ac_beg -gt 1; then
5520 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5522 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5524 if test ! -s $tmp/subs.frag; then
5527 # The purpose of the label and of the branching condition is to
5528 # speed up the sed processing (if there are no `@' at all, there
5529 # is no need to browse any of the substitutions).
5530 # These are the two extra sed commands mentioned above.
5532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5533 if test -z "$ac_sed_cmds"; then
5534 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5536 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5538 ac_sed_frag=`expr $ac_sed_frag + 1`
5540 ac_end=`expr $ac_end + $ac_max_sed_lines`
5543 if test -z "$ac_sed_cmds"; then
5546 fi # test -n "$CONFIG_FILES"
5549 cat >>$CONFIG_STATUS <<\_ACEOF
5550 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5553 - | *:- | *:-:* ) # input from stdin
5555 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5557 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5559 * ) ac_file_in=$ac_file.in ;;
5562 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5563 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5565 X"$ac_file" : 'X\(//\)[^/]' \| \
5566 X"$ac_file" : 'X\(//\)$' \| \
5567 X"$ac_file" : 'X\(/\)' \| \
5568 . : '\(.\)' 2>/dev/null ||
5570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5572 /^X\(\/\/\)$/{ s//\1/; q; }
5573 /^X\(\/\).*/{ s//\1/; q; }
5575 { if $as_mkdir_p; then
5580 while test ! -d "$as_dir"; do
5581 as_dirs="$as_dir $as_dirs"
5582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5584 X"$as_dir" : 'X\(//\)[^/]' \| \
5585 X"$as_dir" : 'X\(//\)$' \| \
5586 X"$as_dir" : 'X\(/\)' \| \
5587 . : '\(.\)' 2>/dev/null ||
5589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5591 /^X\(\/\/\)$/{ s//\1/; q; }
5592 /^X\(\/\).*/{ s//\1/; q; }
5595 test ! -n "$as_dirs" || mkdir $as_dirs
5596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5598 { (exit 1); exit 1; }; }; }
5602 if test "$ac_dir" != .; then
5603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5604 # A "../" for each directory in $ac_dir_suffix.
5605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5607 ac_dir_suffix= ac_top_builddir=
5611 .) # No --srcdir option. We are building in place.
5613 if test -z "$ac_top_builddir"; then
5616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5618 [\\/]* | ?:[\\/]* ) # Absolute path.
5619 ac_srcdir=$srcdir$ac_dir_suffix;
5620 ac_top_srcdir=$srcdir ;;
5622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5626 # Do not use `cd foo && pwd` to compute absolute paths, because
5627 # the directories may not exist.
5629 .) ac_abs_builddir="$ac_dir";;
5632 .) ac_abs_builddir=`pwd`;;
5633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5637 case $ac_abs_builddir in
5638 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5640 case ${ac_top_builddir}. in
5641 .) ac_abs_top_builddir=$ac_abs_builddir;;
5642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5646 case $ac_abs_builddir in
5647 .) ac_abs_srcdir=$ac_srcdir;;
5650 .) ac_abs_srcdir=$ac_abs_builddir;;
5651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5655 case $ac_abs_builddir in
5656 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5658 case $ac_top_srcdir in
5659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5667 if test x"$ac_file" != x-; then
5668 { echo "$as_me:$LINENO: creating $ac_file" >&5
5669 echo "$as_me: creating $ac_file" >&6;}
5672 # Let's still pretend it is `configure' which instantiates (i.e., don't
5673 # use $as_me), people would be surprised to read:
5674 # /* config.h. Generated by config.status. */
5675 if test x"$ac_file" = x-; then
5678 configure_input="$ac_file. "
5680 configure_input=$configure_input"Generated from `echo $ac_file_in |
5681 sed 's,.*/,,'` by configure."
5683 # First look for the input files in the build tree, otherwise in the
5685 ac_file_inputs=`IFS=:
5686 for f in $ac_file_in; do
5688 -) echo $tmp/stdin ;;
5690 # Absolute (can't be DOS-style, as IFS=:)
5691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5692 echo "$as_me: error: cannot find input file: $f" >&2;}
5693 { (exit 1); exit 1; }; }
5696 if test -f "$f"; then
5699 elif test -f "$srcdir/$f"; then
5704 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5705 echo "$as_me: error: cannot find input file: $f" >&2;}
5706 { (exit 1); exit 1; }; }
5709 done` || { (exit 1); exit 1; }
5711 cat >>$CONFIG_STATUS <<_ACEOF
5715 cat >>$CONFIG_STATUS <<\_ACEOF
5717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5718 s,@configure_input@,$configure_input,;t t
5719 s,@srcdir@,$ac_srcdir,;t t
5720 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5721 s,@top_srcdir@,$ac_top_srcdir,;t t
5722 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5723 s,@builddir@,$ac_builddir,;t t
5724 s,@abs_builddir@,$ac_abs_builddir,;t t
5725 s,@top_builddir@,$ac_top_builddir,;t t
5726 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5727 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5729 if test x"$ac_file" != x-; then
5730 mv $tmp/out $ac_file
5739 cat >>$CONFIG_STATUS <<\_ACEOF
5741 { (exit 0); exit 0; }
5743 chmod +x $CONFIG_STATUS
5744 ac_clean_files=$ac_clean_files_save
5747 # configure is writing to config.log, and then calls config.status.
5748 # config.status does its own redirection, appending to config.log.
5749 # Unfortunately, on DOS this fails, as config.log is still kept open
5750 # by configure, so config.status won't be able to write to it; its
5751 # output is simply discarded. So we exec the FD to /dev/null,
5752 # effectively closing config.log, so it can be properly (re)opened and
5753 # appended to by config.status. When coming back to configure, we
5754 # need to make the FD available again.
5755 if test "$no_create" != yes; then
5757 ac_config_status_args=
5758 test "$silent" = yes &&
5759 ac_config_status_args="$ac_config_status_args --quiet"
5761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5764 # would make configure fail if this is the last instruction.
5765 $ac_cs_success || { (exit 1); exit 1; }
5769 chmod oug+x rtaudio-config