You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3633 lines
105KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52 for RtAudio 2.1.
  4. #
  5. # Report bugs to <gary@ccrma.stanford.edu>.
  6. #
  7. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8. # Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. # Avoid depending upon Character Ranges.
  12. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15. as_cr_digits='0123456789'
  16. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17. # Sed expression to map a string onto a valid variable name.
  18. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  19. # Sed expression to map a string onto a valid CPP name.
  20. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  21. # Be Bourne compatible
  22. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  23. emulate sh
  24. NULLCMD=:
  25. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  26. set -o posix
  27. fi
  28. # Name of the executable.
  29. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  30. if expr a : '\(a\)' >/dev/null 2>&1; then
  31. as_expr=expr
  32. else
  33. as_expr=false
  34. fi
  35. rm -f conf$$ conf$$.exe conf$$.file
  36. echo >conf$$.file
  37. if ln -s conf$$.file conf$$ 2>/dev/null; then
  38. # We could just check for DJGPP; but this test a) works b) is more generic
  39. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  40. if test -f conf$$.exe; then
  41. # Don't use ln at all; we don't have any links
  42. as_ln_s='cp -p'
  43. else
  44. as_ln_s='ln -s'
  45. fi
  46. elif ln conf$$.file conf$$ 2>/dev/null; then
  47. as_ln_s=ln
  48. else
  49. as_ln_s='cp -p'
  50. fi
  51. rm -f conf$$ conf$$.exe conf$$.file
  52. as_executable_p="test -f"
  53. # Support unset when possible.
  54. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  55. as_unset=unset
  56. else
  57. as_unset=false
  58. fi
  59. # NLS nuisances.
  60. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  61. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  62. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  63. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  64. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  65. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  66. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  67. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  68. # IFS
  69. # We need space, tab and new line, in precisely that order.
  70. as_nl='
  71. '
  72. IFS=" $as_nl"
  73. # CDPATH.
  74. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  75. # Name of the host.
  76. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  77. # so uname gets run too.
  78. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  79. exec 6>&1
  80. #
  81. # Initializations.
  82. #
  83. ac_default_prefix=/usr/local
  84. cross_compiling=no
  85. subdirs=
  86. MFLAGS= MAKEFLAGS=
  87. SHELL=${CONFIG_SHELL-/bin/sh}
  88. # Maximum number of lines to put in a shell here document.
  89. # This variable seems obsolete. It should probably be removed, and
  90. # only ac_max_sed_lines should be used.
  91. : ${ac_max_here_lines=38}
  92. ac_unique_file="RtAudio.cpp"
  93. # Initialize some variables set by options.
  94. ac_init_help=
  95. ac_init_version=false
  96. # The variables have the same names as the options, with
  97. # dashes changed to underlines.
  98. cache_file=/dev/null
  99. exec_prefix=NONE
  100. no_create=
  101. no_recursion=
  102. prefix=NONE
  103. program_prefix=NONE
  104. program_suffix=NONE
  105. program_transform_name=s,x,x,
  106. silent=
  107. site=
  108. srcdir=
  109. verbose=
  110. x_includes=NONE
  111. x_libraries=NONE
  112. # Installation directory options.
  113. # These are left unexpanded so users can "make install exec_prefix=/foo"
  114. # and all the variables that are supposed to be based on exec_prefix
  115. # by default will actually change.
  116. # Use braces instead of parens because sh, perl, etc. also accept them.
  117. bindir='${exec_prefix}/bin'
  118. sbindir='${exec_prefix}/sbin'
  119. libexecdir='${exec_prefix}/libexec'
  120. datadir='${prefix}/share'
  121. sysconfdir='${prefix}/etc'
  122. sharedstatedir='${prefix}/com'
  123. localstatedir='${prefix}/var'
  124. libdir='${exec_prefix}/lib'
  125. includedir='${prefix}/include'
  126. oldincludedir='/usr/include'
  127. infodir='${prefix}/info'
  128. mandir='${prefix}/man'
  129. # Identity of this package.
  130. PACKAGE_NAME='RtAudio'
  131. PACKAGE_TARNAME='rtaudio'
  132. PACKAGE_VERSION='2.1'
  133. PACKAGE_STRING='RtAudio 2.1'
  134. PACKAGE_BUGREPORT='gary@ccrma.stanford.edu'
  135. ac_prev=
  136. for ac_option
  137. do
  138. # If the previous option needs an argument, assign it.
  139. if test -n "$ac_prev"; then
  140. eval "$ac_prev=\$ac_option"
  141. ac_prev=
  142. continue
  143. fi
  144. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  145. # Accept the important Cygnus configure options, so we can diagnose typos.
  146. case $ac_option in
  147. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  148. ac_prev=bindir ;;
  149. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  150. bindir=$ac_optarg ;;
  151. -build | --build | --buil | --bui | --bu)
  152. ac_prev=build_alias ;;
  153. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  154. build_alias=$ac_optarg ;;
  155. -cache-file | --cache-file | --cache-fil | --cache-fi \
  156. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  157. ac_prev=cache_file ;;
  158. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  159. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  160. cache_file=$ac_optarg ;;
  161. --config-cache | -C)
  162. cache_file=config.cache ;;
  163. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  164. ac_prev=datadir ;;
  165. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  166. | --da=*)
  167. datadir=$ac_optarg ;;
  168. -disable-* | --disable-*)
  169. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  170. # Reject names that are not valid shell variable names.
  171. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  172. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  173. { (exit 1); exit 1; }; }
  174. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  175. eval "enable_$ac_feature=no" ;;
  176. -enable-* | --enable-*)
  177. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  178. # Reject names that are not valid shell variable names.
  179. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  180. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  181. { (exit 1); exit 1; }; }
  182. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  183. case $ac_option in
  184. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  185. *) ac_optarg=yes ;;
  186. esac
  187. eval "enable_$ac_feature='$ac_optarg'" ;;
  188. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  189. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  190. | --exec | --exe | --ex)
  191. ac_prev=exec_prefix ;;
  192. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  193. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  194. | --exec=* | --exe=* | --ex=*)
  195. exec_prefix=$ac_optarg ;;
  196. -gas | --gas | --ga | --g)
  197. # Obsolete; use --with-gas.
  198. with_gas=yes ;;
  199. -help | --help | --hel | --he | -h)
  200. ac_init_help=long ;;
  201. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  202. ac_init_help=recursive ;;
  203. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  204. ac_init_help=short ;;
  205. -host | --host | --hos | --ho)
  206. ac_prev=host_alias ;;
  207. -host=* | --host=* | --hos=* | --ho=*)
  208. host_alias=$ac_optarg ;;
  209. -includedir | --includedir | --includedi | --included | --include \
  210. | --includ | --inclu | --incl | --inc)
  211. ac_prev=includedir ;;
  212. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  213. | --includ=* | --inclu=* | --incl=* | --inc=*)
  214. includedir=$ac_optarg ;;
  215. -infodir | --infodir | --infodi | --infod | --info | --inf)
  216. ac_prev=infodir ;;
  217. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  218. infodir=$ac_optarg ;;
  219. -libdir | --libdir | --libdi | --libd)
  220. ac_prev=libdir ;;
  221. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  222. libdir=$ac_optarg ;;
  223. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  224. | --libexe | --libex | --libe)
  225. ac_prev=libexecdir ;;
  226. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  227. | --libexe=* | --libex=* | --libe=*)
  228. libexecdir=$ac_optarg ;;
  229. -localstatedir | --localstatedir | --localstatedi | --localstated \
  230. | --localstate | --localstat | --localsta | --localst \
  231. | --locals | --local | --loca | --loc | --lo)
  232. ac_prev=localstatedir ;;
  233. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  234. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  235. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  236. localstatedir=$ac_optarg ;;
  237. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  238. ac_prev=mandir ;;
  239. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  240. mandir=$ac_optarg ;;
  241. -nfp | --nfp | --nf)
  242. # Obsolete; use --without-fp.
  243. with_fp=no ;;
  244. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  245. | --no-cr | --no-c)
  246. no_create=yes ;;
  247. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  248. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  249. no_recursion=yes ;;
  250. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  251. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  252. | --oldin | --oldi | --old | --ol | --o)
  253. ac_prev=oldincludedir ;;
  254. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  255. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  256. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  257. oldincludedir=$ac_optarg ;;
  258. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  259. ac_prev=prefix ;;
  260. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  261. prefix=$ac_optarg ;;
  262. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  263. | --program-pre | --program-pr | --program-p)
  264. ac_prev=program_prefix ;;
  265. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  266. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  267. program_prefix=$ac_optarg ;;
  268. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  269. | --program-suf | --program-su | --program-s)
  270. ac_prev=program_suffix ;;
  271. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  272. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  273. program_suffix=$ac_optarg ;;
  274. -program-transform-name | --program-transform-name \
  275. | --program-transform-nam | --program-transform-na \
  276. | --program-transform-n | --program-transform- \
  277. | --program-transform | --program-transfor \
  278. | --program-transfo | --program-transf \
  279. | --program-trans | --program-tran \
  280. | --progr-tra | --program-tr | --program-t)
  281. ac_prev=program_transform_name ;;
  282. -program-transform-name=* | --program-transform-name=* \
  283. | --program-transform-nam=* | --program-transform-na=* \
  284. | --program-transform-n=* | --program-transform-=* \
  285. | --program-transform=* | --program-transfor=* \
  286. | --program-transfo=* | --program-transf=* \
  287. | --program-trans=* | --program-tran=* \
  288. | --progr-tra=* | --program-tr=* | --program-t=*)
  289. program_transform_name=$ac_optarg ;;
  290. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  291. | -silent | --silent | --silen | --sile | --sil)
  292. silent=yes ;;
  293. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  294. ac_prev=sbindir ;;
  295. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  296. | --sbi=* | --sb=*)
  297. sbindir=$ac_optarg ;;
  298. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  299. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  300. | --sharedst | --shareds | --shared | --share | --shar \
  301. | --sha | --sh)
  302. ac_prev=sharedstatedir ;;
  303. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  304. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  305. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  306. | --sha=* | --sh=*)
  307. sharedstatedir=$ac_optarg ;;
  308. -site | --site | --sit)
  309. ac_prev=site ;;
  310. -site=* | --site=* | --sit=*)
  311. site=$ac_optarg ;;
  312. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313. ac_prev=srcdir ;;
  314. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315. srcdir=$ac_optarg ;;
  316. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  317. | --syscon | --sysco | --sysc | --sys | --sy)
  318. ac_prev=sysconfdir ;;
  319. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  320. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  321. sysconfdir=$ac_optarg ;;
  322. -target | --target | --targe | --targ | --tar | --ta | --t)
  323. ac_prev=target_alias ;;
  324. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  325. target_alias=$ac_optarg ;;
  326. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  327. verbose=yes ;;
  328. -version | --version | --versio | --versi | --vers | -V)
  329. ac_init_version=: ;;
  330. -with-* | --with-*)
  331. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  332. # Reject names that are not valid shell variable names.
  333. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  334. { echo "$as_me: error: invalid package name: $ac_package" >&2
  335. { (exit 1); exit 1; }; }
  336. ac_package=`echo $ac_package| sed 's/-/_/g'`
  337. case $ac_option in
  338. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  339. *) ac_optarg=yes ;;
  340. esac
  341. eval "with_$ac_package='$ac_optarg'" ;;
  342. -without-* | --without-*)
  343. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  344. # Reject names that are not valid shell variable names.
  345. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  346. { echo "$as_me: error: invalid package name: $ac_package" >&2
  347. { (exit 1); exit 1; }; }
  348. ac_package=`echo $ac_package | sed 's/-/_/g'`
  349. eval "with_$ac_package=no" ;;
  350. --x)
  351. # Obsolete; use --with-x.
  352. with_x=yes ;;
  353. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  354. | --x-incl | --x-inc | --x-in | --x-i)
  355. ac_prev=x_includes ;;
  356. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  357. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  358. x_includes=$ac_optarg ;;
  359. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  360. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  361. ac_prev=x_libraries ;;
  362. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  363. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  364. x_libraries=$ac_optarg ;;
  365. -*) { echo "$as_me: error: unrecognized option: $ac_option
  366. Try \`$0 --help' for more information." >&2
  367. { (exit 1); exit 1; }; }
  368. ;;
  369. *=*)
  370. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  371. # Reject names that are not valid shell variable names.
  372. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  373. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  374. { (exit 1); exit 1; }; }
  375. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  376. eval "$ac_envvar='$ac_optarg'"
  377. export $ac_envvar ;;
  378. *)
  379. # FIXME: should be removed in autoconf 3.0.
  380. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  381. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  382. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  383. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  384. ;;
  385. esac
  386. done
  387. if test -n "$ac_prev"; then
  388. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  389. { echo "$as_me: error: missing argument to $ac_option" >&2
  390. { (exit 1); exit 1; }; }
  391. fi
  392. # Be sure to have absolute paths.
  393. for ac_var in exec_prefix prefix
  394. do
  395. eval ac_val=$`echo $ac_var`
  396. case $ac_val in
  397. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  398. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  399. { (exit 1); exit 1; }; };;
  400. esac
  401. done
  402. # Be sure to have absolute paths.
  403. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  404. localstatedir libdir includedir oldincludedir infodir mandir
  405. do
  406. eval ac_val=$`echo $ac_var`
  407. case $ac_val in
  408. [\\/$]* | ?:[\\/]* ) ;;
  409. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  410. { (exit 1); exit 1; }; };;
  411. esac
  412. done
  413. # There might be people who depend on the old broken behavior: `$host'
  414. # used to hold the argument of --host etc.
  415. build=$build_alias
  416. host=$host_alias
  417. target=$target_alias
  418. # FIXME: should be removed in autoconf 3.0.
  419. if test "x$host_alias" != x; then
  420. if test "x$build_alias" = x; then
  421. cross_compiling=maybe
  422. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  423. If a cross compiler is detected then cross compile mode will be used." >&2
  424. elif test "x$build_alias" != "x$host_alias"; then
  425. cross_compiling=yes
  426. fi
  427. fi
  428. ac_tool_prefix=
  429. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  430. test "$silent" = yes && exec 6>/dev/null
  431. # Find the source files, if location was not specified.
  432. if test -z "$srcdir"; then
  433. ac_srcdir_defaulted=yes
  434. # Try the directory containing this script, then its parent.
  435. ac_prog=$0
  436. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  437. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  438. srcdir=$ac_confdir
  439. if test ! -r $srcdir/$ac_unique_file; then
  440. srcdir=..
  441. fi
  442. else
  443. ac_srcdir_defaulted=no
  444. fi
  445. if test ! -r $srcdir/$ac_unique_file; then
  446. if test "$ac_srcdir_defaulted" = yes; then
  447. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  448. { (exit 1); exit 1; }; }
  449. else
  450. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  451. { (exit 1); exit 1; }; }
  452. fi
  453. fi
  454. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  455. ac_env_build_alias_set=${build_alias+set}
  456. ac_env_build_alias_value=$build_alias
  457. ac_cv_env_build_alias_set=${build_alias+set}
  458. ac_cv_env_build_alias_value=$build_alias
  459. ac_env_host_alias_set=${host_alias+set}
  460. ac_env_host_alias_value=$host_alias
  461. ac_cv_env_host_alias_set=${host_alias+set}
  462. ac_cv_env_host_alias_value=$host_alias
  463. ac_env_target_alias_set=${target_alias+set}
  464. ac_env_target_alias_value=$target_alias
  465. ac_cv_env_target_alias_set=${target_alias+set}
  466. ac_cv_env_target_alias_value=$target_alias
  467. ac_env_CC_set=${CC+set}
  468. ac_env_CC_value=$CC
  469. ac_cv_env_CC_set=${CC+set}
  470. ac_cv_env_CC_value=$CC
  471. ac_env_CFLAGS_set=${CFLAGS+set}
  472. ac_env_CFLAGS_value=$CFLAGS
  473. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  474. ac_cv_env_CFLAGS_value=$CFLAGS
  475. ac_env_LDFLAGS_set=${LDFLAGS+set}
  476. ac_env_LDFLAGS_value=$LDFLAGS
  477. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  478. ac_cv_env_LDFLAGS_value=$LDFLAGS
  479. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  480. ac_env_CPPFLAGS_value=$CPPFLAGS
  481. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  482. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  483. ac_env_CXX_set=${CXX+set}
  484. ac_env_CXX_value=$CXX
  485. ac_cv_env_CXX_set=${CXX+set}
  486. ac_cv_env_CXX_value=$CXX
  487. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  488. ac_env_CXXFLAGS_value=$CXXFLAGS
  489. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  490. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  491. ac_env_CPP_set=${CPP+set}
  492. ac_env_CPP_value=$CPP
  493. ac_cv_env_CPP_set=${CPP+set}
  494. ac_cv_env_CPP_value=$CPP
  495. #
  496. # Report the --help message.
  497. #
  498. if test "$ac_init_help" = "long"; then
  499. # Omit some internal or obsolete options to make the list less imposing.
  500. # This message is too long to be a string in the A/UX 3.1 sh.
  501. cat <<EOF
  502. \`configure' configures RtAudio 2.1 to adapt to many kinds of systems.
  503. Usage: $0 [OPTION]... [VAR=VALUE]...
  504. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  505. VAR=VALUE. See below for descriptions of some of the useful variables.
  506. Defaults for the options are specified in brackets.
  507. Configuration:
  508. -h, --help display this help and exit
  509. --help=short display options specific to this package
  510. --help=recursive display the short help of all the included packages
  511. -V, --version display version information and exit
  512. -q, --quiet, --silent do not print \`checking...' messages
  513. --cache-file=FILE cache test results in FILE [disabled]
  514. -C, --config-cache alias for \`--cache-file=config.cache'
  515. -n, --no-create do not create output files
  516. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  517. EOF
  518. cat <<EOF
  519. Installation directories:
  520. --prefix=PREFIX install architecture-independent files in PREFIX
  521. [$ac_default_prefix]
  522. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  523. [PREFIX]
  524. By default, \`make install' will install all the files in
  525. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  526. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  527. for instance \`--prefix=\$HOME'.
  528. For better control, use the options below.
  529. Fine tuning of the installation directories:
  530. --bindir=DIR user executables [EPREFIX/bin]
  531. --sbindir=DIR system admin executables [EPREFIX/sbin]
  532. --libexecdir=DIR program executables [EPREFIX/libexec]
  533. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  534. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  535. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  536. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  537. --libdir=DIR object code libraries [EPREFIX/lib]
  538. --includedir=DIR C header files [PREFIX/include]
  539. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  540. --infodir=DIR info documentation [PREFIX/info]
  541. --mandir=DIR man documentation [PREFIX/man]
  542. EOF
  543. cat <<\EOF
  544. System types:
  545. --build=BUILD configure for building on BUILD [guessed]
  546. --host=HOST build programs to run on HOST [BUILD]
  547. EOF
  548. fi
  549. if test -n "$ac_init_help"; then
  550. case $ac_init_help in
  551. short | recursive ) echo "Configuration of RtAudio 2.1:";;
  552. esac
  553. cat <<\EOF
  554. Optional Features:
  555. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  556. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  557. --enable-debug = enable various debug output
  558. Optional Packages:
  559. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  560. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  561. --with-alsa = choose native ALSA API support (linux only)
  562. Some influential environment variables:
  563. CC C compiler command
  564. CFLAGS C compiler flags
  565. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  566. nonstandard directory <lib dir>
  567. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  568. headers in a nonstandard directory <include dir>
  569. CXX C++ compiler command
  570. CXXFLAGS C++ compiler flags
  571. CPP C preprocessor
  572. Use these variables to override the choices made by `configure' or to help
  573. it to find libraries and programs with nonstandard names/locations.
  574. Report bugs to <gary@ccrma.stanford.edu>.
  575. EOF
  576. fi
  577. if test "$ac_init_help" = "recursive"; then
  578. # If there are subdirs, report their specific --help.
  579. ac_popdir=`pwd`
  580. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  581. cd $ac_subdir
  582. # A "../" for each directory in /$ac_subdir.
  583. ac_dots=`echo $ac_subdir |
  584. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  585. case $srcdir in
  586. .) # No --srcdir option. We are building in place.
  587. ac_sub_srcdir=$srcdir ;;
  588. [\\/]* | ?:[\\/]* ) # Absolute path.
  589. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  590. *) # Relative path.
  591. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  592. esac
  593. # Check for guested configure; otherwise get Cygnus style configure.
  594. if test -f $ac_sub_srcdir/configure.gnu; then
  595. echo
  596. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  597. elif test -f $ac_sub_srcdir/configure; then
  598. echo
  599. $SHELL $ac_sub_srcdir/configure --help=recursive
  600. elif test -f $ac_sub_srcdir/configure.ac ||
  601. test -f $ac_sub_srcdir/configure.in; then
  602. echo
  603. $ac_configure --help
  604. else
  605. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  606. fi
  607. cd $ac_popdir
  608. done
  609. fi
  610. test -n "$ac_init_help" && exit 0
  611. if $ac_init_version; then
  612. cat <<\EOF
  613. RtAudio configure 2.1
  614. generated by GNU Autoconf 2.52
  615. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  616. Free Software Foundation, Inc.
  617. This configure script is free software; the Free Software Foundation
  618. gives unlimited permission to copy, distribute and modify it.
  619. EOF
  620. exit 0
  621. fi
  622. exec 5>config.log
  623. cat >&5 <<EOF
  624. This file contains any messages produced by compilers while
  625. running configure, to aid debugging if configure makes a mistake.
  626. It was created by RtAudio $as_me 2.1, which was
  627. generated by GNU Autoconf 2.52. Invocation command line was
  628. $ $0 $@
  629. EOF
  630. {
  631. cat <<_ASUNAME
  632. ## ---------- ##
  633. ## Platform. ##
  634. ## ---------- ##
  635. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  636. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  637. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  638. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  639. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  640. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  641. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  642. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  643. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  644. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  645. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  646. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  647. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  648. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  649. PATH = $PATH
  650. _ASUNAME
  651. } >&5
  652. cat >&5 <<EOF
  653. ## ------------ ##
  654. ## Core tests. ##
  655. ## ------------ ##
  656. EOF
  657. # Keep a trace of the command line.
  658. # Strip out --no-create and --no-recursion so they do not pile up.
  659. # Also quote any args containing shell meta-characters.
  660. ac_configure_args=
  661. ac_sep=
  662. for ac_arg
  663. do
  664. case $ac_arg in
  665. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  666. | --no-cr | --no-c) ;;
  667. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  668. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  669. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  670. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  671. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  672. ac_sep=" " ;;
  673. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  674. ac_sep=" " ;;
  675. esac
  676. # Get rid of the leading space.
  677. done
  678. # When interrupted or exit'd, cleanup temporary files, and complete
  679. # config.log. We remove comments because anyway the quotes in there
  680. # would cause problems or look ugly.
  681. trap 'exit_status=$?
  682. # Save into config.log some information that might help in debugging.
  683. echo >&5
  684. echo "## ----------------- ##" >&5
  685. echo "## Cache variables. ##" >&5
  686. echo "## ----------------- ##" >&5
  687. echo >&5
  688. # The following way of writing the cache mishandles newlines in values,
  689. {
  690. (set) 2>&1 |
  691. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  692. *ac_space=\ *)
  693. sed -n \
  694. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  695. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  696. ;;
  697. *)
  698. sed -n \
  699. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  700. ;;
  701. esac;
  702. } >&5
  703. sed "/^$/d" confdefs.h >conftest.log
  704. if test -s conftest.log; then
  705. echo >&5
  706. echo "## ------------ ##" >&5
  707. echo "## confdefs.h. ##" >&5
  708. echo "## ------------ ##" >&5
  709. echo >&5
  710. cat conftest.log >&5
  711. fi
  712. (echo; echo) >&5
  713. test "$ac_signal" != 0 &&
  714. echo "$as_me: caught signal $ac_signal" >&5
  715. echo "$as_me: exit $exit_status" >&5
  716. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  717. exit $exit_status
  718. ' 0
  719. for ac_signal in 1 2 13 15; do
  720. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  721. done
  722. ac_signal=0
  723. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  724. rm -rf conftest* confdefs.h
  725. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  726. echo >confdefs.h
  727. # Let the site file select an alternate cache file if it wants to.
  728. # Prefer explicitly selected file to automatically selected ones.
  729. if test -z "$CONFIG_SITE"; then
  730. if test "x$prefix" != xNONE; then
  731. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  732. else
  733. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  734. fi
  735. fi
  736. for ac_site_file in $CONFIG_SITE; do
  737. if test -r "$ac_site_file"; then
  738. { echo "$as_me:850: loading site script $ac_site_file" >&5
  739. echo "$as_me: loading site script $ac_site_file" >&6;}
  740. cat "$ac_site_file" >&5
  741. . "$ac_site_file"
  742. fi
  743. done
  744. if test -r "$cache_file"; then
  745. # Some versions of bash will fail to source /dev/null (special
  746. # files actually), so we avoid doing that.
  747. if test -f "$cache_file"; then
  748. { echo "$as_me:861: loading cache $cache_file" >&5
  749. echo "$as_me: loading cache $cache_file" >&6;}
  750. case $cache_file in
  751. [\\/]* | ?:[\\/]* ) . $cache_file;;
  752. *) . ./$cache_file;;
  753. esac
  754. fi
  755. else
  756. { echo "$as_me:869: creating cache $cache_file" >&5
  757. echo "$as_me: creating cache $cache_file" >&6;}
  758. >$cache_file
  759. fi
  760. # Check that the precious variables saved in the cache have kept the same
  761. # value.
  762. ac_cache_corrupted=false
  763. for ac_var in `(set) 2>&1 |
  764. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  765. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  766. eval ac_new_set=\$ac_env_${ac_var}_set
  767. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  768. eval ac_new_val="\$ac_env_${ac_var}_value"
  769. case $ac_old_set,$ac_new_set in
  770. set,)
  771. { echo "$as_me:885: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  772. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  773. ac_cache_corrupted=: ;;
  774. ,set)
  775. { echo "$as_me:889: error: \`$ac_var' was not set in the previous run" >&5
  776. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  777. ac_cache_corrupted=: ;;
  778. ,);;
  779. *)
  780. if test "x$ac_old_val" != "x$ac_new_val"; then
  781. { echo "$as_me:895: error: \`$ac_var' has changed since the previous run:" >&5
  782. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  783. { echo "$as_me:897: former value: $ac_old_val" >&5
  784. echo "$as_me: former value: $ac_old_val" >&2;}
  785. { echo "$as_me:899: current value: $ac_new_val" >&5
  786. echo "$as_me: current value: $ac_new_val" >&2;}
  787. ac_cache_corrupted=:
  788. fi;;
  789. esac
  790. # Pass precious variables to config.status. It doesn't matter if
  791. # we pass some twice (in addition to the command line arguments).
  792. if test "$ac_new_set" = set; then
  793. case $ac_new_val in
  794. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  795. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  796. ac_configure_args="$ac_configure_args '$ac_arg'"
  797. ;;
  798. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  799. ;;
  800. esac
  801. fi
  802. done
  803. if $ac_cache_corrupted; then
  804. { echo "$as_me:918: error: changes in the environment can compromise the build" >&5
  805. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  806. { { echo "$as_me:920: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  807. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  808. { (exit 1); exit 1; }; }
  809. fi
  810. ac_ext=c
  811. ac_cpp='$CPP $CPPFLAGS'
  812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  815. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  816. *c*,-n*) ECHO_N= ECHO_C='
  817. ' ECHO_T=' ' ;;
  818. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  819. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  820. esac
  821. echo "#! $SHELL" >conftest.sh
  822. echo "exit 0" >>conftest.sh
  823. chmod +x conftest.sh
  824. if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
  825. (PATH=".;."; conftest.sh) 2>&5
  826. ac_status=$?
  827. echo "$as_me:943: \$? = $ac_status" >&5
  828. (exit $ac_status); }; then
  829. ac_path_separator=';'
  830. else
  831. ac_path_separator=:
  832. fi
  833. PATH_SEPARATOR="$ac_path_separator"
  834. rm -f conftest.sh
  835. ac_config_files="$ac_config_files tests/Makefile"
  836. # Checks for programs.
  837. ac_ext=c
  838. ac_cpp='$CPP $CPPFLAGS'
  839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  842. if test -n "$ac_tool_prefix"; then
  843. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  844. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  845. echo "$as_me:963: checking for $ac_word" >&5
  846. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  847. if test "${ac_cv_prog_CC+set}" = set; then
  848. echo $ECHO_N "(cached) $ECHO_C" >&6
  849. else
  850. if test -n "$CC"; then
  851. ac_cv_prog_CC="$CC" # Let the user override the test.
  852. else
  853. ac_save_IFS=$IFS; IFS=$ac_path_separator
  854. ac_dummy="$PATH"
  855. for ac_dir in $ac_dummy; do
  856. IFS=$ac_save_IFS
  857. test -z "$ac_dir" && ac_dir=.
  858. $as_executable_p "$ac_dir/$ac_word" || continue
  859. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  860. echo "$as_me:978: found $ac_dir/$ac_word" >&5
  861. break
  862. done
  863. fi
  864. fi
  865. CC=$ac_cv_prog_CC
  866. if test -n "$CC"; then
  867. echo "$as_me:986: result: $CC" >&5
  868. echo "${ECHO_T}$CC" >&6
  869. else
  870. echo "$as_me:989: result: no" >&5
  871. echo "${ECHO_T}no" >&6
  872. fi
  873. fi
  874. if test -z "$ac_cv_prog_CC"; then
  875. ac_ct_CC=$CC
  876. # Extract the first word of "gcc", so it can be a program name with args.
  877. set dummy gcc; ac_word=$2
  878. echo "$as_me:998: checking for $ac_word" >&5
  879. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  880. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  881. echo $ECHO_N "(cached) $ECHO_C" >&6
  882. else
  883. if test -n "$ac_ct_CC"; then
  884. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  885. else
  886. ac_save_IFS=$IFS; IFS=$ac_path_separator
  887. ac_dummy="$PATH"
  888. for ac_dir in $ac_dummy; do
  889. IFS=$ac_save_IFS
  890. test -z "$ac_dir" && ac_dir=.
  891. $as_executable_p "$ac_dir/$ac_word" || continue
  892. ac_cv_prog_ac_ct_CC="gcc"
  893. echo "$as_me:1013: found $ac_dir/$ac_word" >&5
  894. break
  895. done
  896. fi
  897. fi
  898. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  899. if test -n "$ac_ct_CC"; then
  900. echo "$as_me:1021: result: $ac_ct_CC" >&5
  901. echo "${ECHO_T}$ac_ct_CC" >&6
  902. else
  903. echo "$as_me:1024: result: no" >&5
  904. echo "${ECHO_T}no" >&6
  905. fi
  906. CC=$ac_ct_CC
  907. else
  908. CC="$ac_cv_prog_CC"
  909. fi
  910. if test -z "$CC"; then
  911. if test -n "$ac_tool_prefix"; then
  912. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  913. set dummy ${ac_tool_prefix}cc; ac_word=$2
  914. echo "$as_me:1037: checking for $ac_word" >&5
  915. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  916. if test "${ac_cv_prog_CC+set}" = set; then
  917. echo $ECHO_N "(cached) $ECHO_C" >&6
  918. else
  919. if test -n "$CC"; then
  920. ac_cv_prog_CC="$CC" # Let the user override the test.
  921. else
  922. ac_save_IFS=$IFS; IFS=$ac_path_separator
  923. ac_dummy="$PATH"
  924. for ac_dir in $ac_dummy; do
  925. IFS=$ac_save_IFS
  926. test -z "$ac_dir" && ac_dir=.
  927. $as_executable_p "$ac_dir/$ac_word" || continue
  928. ac_cv_prog_CC="${ac_tool_prefix}cc"
  929. echo "$as_me:1052: found $ac_dir/$ac_word" >&5
  930. break
  931. done
  932. fi
  933. fi
  934. CC=$ac_cv_prog_CC
  935. if test -n "$CC"; then
  936. echo "$as_me:1060: result: $CC" >&5
  937. echo "${ECHO_T}$CC" >&6
  938. else
  939. echo "$as_me:1063: result: no" >&5
  940. echo "${ECHO_T}no" >&6
  941. fi
  942. fi
  943. if test -z "$ac_cv_prog_CC"; then
  944. ac_ct_CC=$CC
  945. # Extract the first word of "cc", so it can be a program name with args.
  946. set dummy cc; ac_word=$2
  947. echo "$as_me:1072: checking for $ac_word" >&5
  948. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  949. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  950. echo $ECHO_N "(cached) $ECHO_C" >&6
  951. else
  952. if test -n "$ac_ct_CC"; then
  953. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  954. else
  955. ac_save_IFS=$IFS; IFS=$ac_path_separator
  956. ac_dummy="$PATH"
  957. for ac_dir in $ac_dummy; do
  958. IFS=$ac_save_IFS
  959. test -z "$ac_dir" && ac_dir=.
  960. $as_executable_p "$ac_dir/$ac_word" || continue
  961. ac_cv_prog_ac_ct_CC="cc"
  962. echo "$as_me:1087: found $ac_dir/$ac_word" >&5
  963. break
  964. done
  965. fi
  966. fi
  967. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  968. if test -n "$ac_ct_CC"; then
  969. echo "$as_me:1095: result: $ac_ct_CC" >&5
  970. echo "${ECHO_T}$ac_ct_CC" >&6
  971. else
  972. echo "$as_me:1098: result: no" >&5
  973. echo "${ECHO_T}no" >&6
  974. fi
  975. CC=$ac_ct_CC
  976. else
  977. CC="$ac_cv_prog_CC"
  978. fi
  979. fi
  980. if test -z "$CC"; then
  981. # Extract the first word of "cc", so it can be a program name with args.
  982. set dummy cc; ac_word=$2
  983. echo "$as_me:1111: checking for $ac_word" >&5
  984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  985. if test "${ac_cv_prog_CC+set}" = set; then
  986. echo $ECHO_N "(cached) $ECHO_C" >&6
  987. else
  988. if test -n "$CC"; then
  989. ac_cv_prog_CC="$CC" # Let the user override the test.
  990. else
  991. ac_prog_rejected=no
  992. ac_save_IFS=$IFS; IFS=$ac_path_separator
  993. ac_dummy="$PATH"
  994. for ac_dir in $ac_dummy; do
  995. IFS=$ac_save_IFS
  996. test -z "$ac_dir" && ac_dir=.
  997. $as_executable_p "$ac_dir/$ac_word" || continue
  998. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  999. ac_prog_rejected=yes
  1000. continue
  1001. fi
  1002. ac_cv_prog_CC="cc"
  1003. echo "$as_me:1131: found $ac_dir/$ac_word" >&5
  1004. break
  1005. done
  1006. if test $ac_prog_rejected = yes; then
  1007. # We found a bogon in the path, so make sure we never use it.
  1008. set dummy $ac_cv_prog_CC
  1009. shift
  1010. if test $# != 0; then
  1011. # We chose a different compiler from the bogus one.
  1012. # However, it has the same basename, so the bogon will be chosen
  1013. # first if we set CC to just the basename; use the full file name.
  1014. shift
  1015. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  1016. shift
  1017. ac_cv_prog_CC="$@"
  1018. fi
  1019. fi
  1020. fi
  1021. fi
  1022. CC=$ac_cv_prog_CC
  1023. if test -n "$CC"; then
  1024. echo "$as_me:1153: result: $CC" >&5
  1025. echo "${ECHO_T}$CC" >&6
  1026. else
  1027. echo "$as_me:1156: result: no" >&5
  1028. echo "${ECHO_T}no" >&6
  1029. fi
  1030. fi
  1031. if test -z "$CC"; then
  1032. if test -n "$ac_tool_prefix"; then
  1033. for ac_prog in cl
  1034. do
  1035. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1036. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1037. echo "$as_me:1167: checking for $ac_word" >&5
  1038. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1039. if test "${ac_cv_prog_CC+set}" = set; then
  1040. echo $ECHO_N "(cached) $ECHO_C" >&6
  1041. else
  1042. if test -n "$CC"; then
  1043. ac_cv_prog_CC="$CC" # Let the user override the test.
  1044. else
  1045. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1046. ac_dummy="$PATH"
  1047. for ac_dir in $ac_dummy; do
  1048. IFS=$ac_save_IFS
  1049. test -z "$ac_dir" && ac_dir=.
  1050. $as_executable_p "$ac_dir/$ac_word" || continue
  1051. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1052. echo "$as_me:1182: found $ac_dir/$ac_word" >&5
  1053. break
  1054. done
  1055. fi
  1056. fi
  1057. CC=$ac_cv_prog_CC
  1058. if test -n "$CC"; then
  1059. echo "$as_me:1190: result: $CC" >&5
  1060. echo "${ECHO_T}$CC" >&6
  1061. else
  1062. echo "$as_me:1193: result: no" >&5
  1063. echo "${ECHO_T}no" >&6
  1064. fi
  1065. test -n "$CC" && break
  1066. done
  1067. fi
  1068. if test -z "$CC"; then
  1069. ac_ct_CC=$CC
  1070. for ac_prog in cl
  1071. do
  1072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1073. set dummy $ac_prog; ac_word=$2
  1074. echo "$as_me:1206: checking for $ac_word" >&5
  1075. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1076. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1077. echo $ECHO_N "(cached) $ECHO_C" >&6
  1078. else
  1079. if test -n "$ac_ct_CC"; then
  1080. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1081. else
  1082. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1083. ac_dummy="$PATH"
  1084. for ac_dir in $ac_dummy; do
  1085. IFS=$ac_save_IFS
  1086. test -z "$ac_dir" && ac_dir=.
  1087. $as_executable_p "$ac_dir/$ac_word" || continue
  1088. ac_cv_prog_ac_ct_CC="$ac_prog"
  1089. echo "$as_me:1221: found $ac_dir/$ac_word" >&5
  1090. break
  1091. done
  1092. fi
  1093. fi
  1094. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1095. if test -n "$ac_ct_CC"; then
  1096. echo "$as_me:1229: result: $ac_ct_CC" >&5
  1097. echo "${ECHO_T}$ac_ct_CC" >&6
  1098. else
  1099. echo "$as_me:1232: result: no" >&5
  1100. echo "${ECHO_T}no" >&6
  1101. fi
  1102. test -n "$ac_ct_CC" && break
  1103. done
  1104. CC=$ac_ct_CC
  1105. fi
  1106. fi
  1107. test -z "$CC" && { { echo "$as_me:1244: error: no acceptable cc found in \$PATH" >&5
  1108. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1109. { (exit 1); exit 1; }; }
  1110. # Provide some information about the compiler.
  1111. echo "$as_me:1249:" \
  1112. "checking for C compiler version" >&5
  1113. ac_compiler=`set X $ac_compile; echo $2`
  1114. { (eval echo "$as_me:1252: \"$ac_compiler --version </dev/null >&5\"") >&5
  1115. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1116. ac_status=$?
  1117. echo "$as_me:1255: \$? = $ac_status" >&5
  1118. (exit $ac_status); }
  1119. { (eval echo "$as_me:1257: \"$ac_compiler -v </dev/null >&5\"") >&5
  1120. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1121. ac_status=$?
  1122. echo "$as_me:1260: \$? = $ac_status" >&5
  1123. (exit $ac_status); }
  1124. { (eval echo "$as_me:1262: \"$ac_compiler -V </dev/null >&5\"") >&5
  1125. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1126. ac_status=$?
  1127. echo "$as_me:1265: \$? = $ac_status" >&5
  1128. (exit $ac_status); }
  1129. cat >conftest.$ac_ext <<_ACEOF
  1130. #line 1269 "configure"
  1131. #include "confdefs.h"
  1132. int
  1133. main ()
  1134. {
  1135. ;
  1136. return 0;
  1137. }
  1138. _ACEOF
  1139. ac_clean_files_save=$ac_clean_files
  1140. ac_clean_files="$ac_clean_files a.out a.exe"
  1141. # Try to create an executable without -o first, disregard a.out.
  1142. # It will help us diagnose broken compilers, and finding out an intuition
  1143. # of exeext.
  1144. echo "$as_me:1285: checking for C compiler default output" >&5
  1145. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1146. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1147. if { (eval echo "$as_me:1288: \"$ac_link_default\"") >&5
  1148. (eval $ac_link_default) 2>&5
  1149. ac_status=$?
  1150. echo "$as_me:1291: \$? = $ac_status" >&5
  1151. (exit $ac_status); }; then
  1152. # Find the output, starting from the most likely. This scheme is
  1153. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1154. # resort.
  1155. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1156. ls a.out conftest 2>/dev/null;
  1157. ls a.* conftest.* 2>/dev/null`; do
  1158. case $ac_file in
  1159. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1160. a.out ) # We found the default executable, but exeext='' is most
  1161. # certainly right.
  1162. break;;
  1163. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1164. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1165. export ac_cv_exeext
  1166. break;;
  1167. * ) break;;
  1168. esac
  1169. done
  1170. else
  1171. echo "$as_me: failed program was:" >&5
  1172. cat conftest.$ac_ext >&5
  1173. { { echo "$as_me:1314: error: C compiler cannot create executables" >&5
  1174. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1175. { (exit 77); exit 77; }; }
  1176. fi
  1177. ac_exeext=$ac_cv_exeext
  1178. echo "$as_me:1320: result: $ac_file" >&5
  1179. echo "${ECHO_T}$ac_file" >&6
  1180. # Check the compiler produces executables we can run. If not, either
  1181. # the compiler is broken, or we cross compile.
  1182. echo "$as_me:1325: checking whether the C compiler works" >&5
  1183. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1184. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1185. # If not cross compiling, check that we can run a simple program.
  1186. if test "$cross_compiling" != yes; then
  1187. if { ac_try='./$ac_file'
  1188. { (eval echo "$as_me:1331: \"$ac_try\"") >&5
  1189. (eval $ac_try) 2>&5
  1190. ac_status=$?
  1191. echo "$as_me:1334: \$? = $ac_status" >&5
  1192. (exit $ac_status); }; }; then
  1193. cross_compiling=no
  1194. else
  1195. if test "$cross_compiling" = maybe; then
  1196. cross_compiling=yes
  1197. else
  1198. { { echo "$as_me:1341: error: cannot run C compiled programs.
  1199. If you meant to cross compile, use \`--host'." >&5
  1200. echo "$as_me: error: cannot run C compiled programs.
  1201. If you meant to cross compile, use \`--host'." >&2;}
  1202. { (exit 1); exit 1; }; }
  1203. fi
  1204. fi
  1205. fi
  1206. echo "$as_me:1349: result: yes" >&5
  1207. echo "${ECHO_T}yes" >&6
  1208. rm -f a.out a.exe conftest$ac_cv_exeext
  1209. ac_clean_files=$ac_clean_files_save
  1210. # Check the compiler produces executables we can run. If not, either
  1211. # the compiler is broken, or we cross compile.
  1212. echo "$as_me:1356: checking whether we are cross compiling" >&5
  1213. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1214. echo "$as_me:1358: result: $cross_compiling" >&5
  1215. echo "${ECHO_T}$cross_compiling" >&6
  1216. echo "$as_me:1361: checking for executable suffix" >&5
  1217. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1218. if { (eval echo "$as_me:1363: \"$ac_link\"") >&5
  1219. (eval $ac_link) 2>&5
  1220. ac_status=$?
  1221. echo "$as_me:1366: \$? = $ac_status" >&5
  1222. (exit $ac_status); }; then
  1223. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1224. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1225. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1226. # `rm'.
  1227. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1228. case $ac_file in
  1229. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1230. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1231. export ac_cv_exeext
  1232. break;;
  1233. * ) break;;
  1234. esac
  1235. done
  1236. else
  1237. { { echo "$as_me:1382: error: cannot compute EXEEXT: cannot compile and link" >&5
  1238. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1239. { (exit 1); exit 1; }; }
  1240. fi
  1241. rm -f conftest$ac_cv_exeext
  1242. echo "$as_me:1388: result: $ac_cv_exeext" >&5
  1243. echo "${ECHO_T}$ac_cv_exeext" >&6
  1244. rm -f conftest.$ac_ext
  1245. EXEEXT=$ac_cv_exeext
  1246. ac_exeext=$EXEEXT
  1247. echo "$as_me:1394: checking for object suffix" >&5
  1248. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1249. if test "${ac_cv_objext+set}" = set; then
  1250. echo $ECHO_N "(cached) $ECHO_C" >&6
  1251. else
  1252. cat >conftest.$ac_ext <<_ACEOF
  1253. #line 1400 "configure"
  1254. #include "confdefs.h"
  1255. int
  1256. main ()
  1257. {
  1258. ;
  1259. return 0;
  1260. }
  1261. _ACEOF
  1262. rm -f conftest.o conftest.obj
  1263. if { (eval echo "$as_me:1412: \"$ac_compile\"") >&5
  1264. (eval $ac_compile) 2>&5
  1265. ac_status=$?
  1266. echo "$as_me:1415: \$? = $ac_status" >&5
  1267. (exit $ac_status); }; then
  1268. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1269. case $ac_file in
  1270. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1271. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1272. break;;
  1273. esac
  1274. done
  1275. else
  1276. echo "$as_me: failed program was:" >&5
  1277. cat conftest.$ac_ext >&5
  1278. { { echo "$as_me:1427: error: cannot compute OBJEXT: cannot compile" >&5
  1279. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1280. { (exit 1); exit 1; }; }
  1281. fi
  1282. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1283. fi
  1284. echo "$as_me:1434: result: $ac_cv_objext" >&5
  1285. echo "${ECHO_T}$ac_cv_objext" >&6
  1286. OBJEXT=$ac_cv_objext
  1287. ac_objext=$OBJEXT
  1288. echo "$as_me:1438: checking whether we are using the GNU C compiler" >&5
  1289. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1290. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1291. echo $ECHO_N "(cached) $ECHO_C" >&6
  1292. else
  1293. cat >conftest.$ac_ext <<_ACEOF
  1294. #line 1444 "configure"
  1295. #include "confdefs.h"
  1296. int
  1297. main ()
  1298. {
  1299. #ifndef __GNUC__
  1300. choke me
  1301. #endif
  1302. ;
  1303. return 0;
  1304. }
  1305. _ACEOF
  1306. rm -f conftest.$ac_objext
  1307. if { (eval echo "$as_me:1459: \"$ac_compile\"") >&5
  1308. (eval $ac_compile) 2>&5
  1309. ac_status=$?
  1310. echo "$as_me:1462: \$? = $ac_status" >&5
  1311. (exit $ac_status); } &&
  1312. { ac_try='test -s conftest.$ac_objext'
  1313. { (eval echo "$as_me:1465: \"$ac_try\"") >&5
  1314. (eval $ac_try) 2>&5
  1315. ac_status=$?
  1316. echo "$as_me:1468: \$? = $ac_status" >&5
  1317. (exit $ac_status); }; }; then
  1318. ac_compiler_gnu=yes
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. cat conftest.$ac_ext >&5
  1322. ac_compiler_gnu=no
  1323. fi
  1324. rm -f conftest.$ac_objext conftest.$ac_ext
  1325. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1326. fi
  1327. echo "$as_me:1480: result: $ac_cv_c_compiler_gnu" >&5
  1328. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1329. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1330. ac_test_CFLAGS=${CFLAGS+set}
  1331. ac_save_CFLAGS=$CFLAGS
  1332. CFLAGS="-g"
  1333. echo "$as_me:1486: checking whether $CC accepts -g" >&5
  1334. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1335. if test "${ac_cv_prog_cc_g+set}" = set; then
  1336. echo $ECHO_N "(cached) $ECHO_C" >&6
  1337. else
  1338. cat >conftest.$ac_ext <<_ACEOF
  1339. #line 1492 "configure"
  1340. #include "confdefs.h"
  1341. int
  1342. main ()
  1343. {
  1344. ;
  1345. return 0;
  1346. }
  1347. _ACEOF
  1348. rm -f conftest.$ac_objext
  1349. if { (eval echo "$as_me:1504: \"$ac_compile\"") >&5
  1350. (eval $ac_compile) 2>&5
  1351. ac_status=$?
  1352. echo "$as_me:1507: \$? = $ac_status" >&5
  1353. (exit $ac_status); } &&
  1354. { ac_try='test -s conftest.$ac_objext'
  1355. { (eval echo "$as_me:1510: \"$ac_try\"") >&5
  1356. (eval $ac_try) 2>&5
  1357. ac_status=$?
  1358. echo "$as_me:1513: \$? = $ac_status" >&5
  1359. (exit $ac_status); }; }; then
  1360. ac_cv_prog_cc_g=yes
  1361. else
  1362. echo "$as_me: failed program was:" >&5
  1363. cat conftest.$ac_ext >&5
  1364. ac_cv_prog_cc_g=no
  1365. fi
  1366. rm -f conftest.$ac_objext conftest.$ac_ext
  1367. fi
  1368. echo "$as_me:1523: result: $ac_cv_prog_cc_g" >&5
  1369. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1370. if test "$ac_test_CFLAGS" = set; then
  1371. CFLAGS=$ac_save_CFLAGS
  1372. elif test $ac_cv_prog_cc_g = yes; then
  1373. if test "$GCC" = yes; then
  1374. CFLAGS="-g -O2"
  1375. else
  1376. CFLAGS="-g"
  1377. fi
  1378. else
  1379. if test "$GCC" = yes; then
  1380. CFLAGS="-O2"
  1381. else
  1382. CFLAGS=
  1383. fi
  1384. fi
  1385. # Some people use a C++ compiler to compile C. Since we use `exit',
  1386. # in C++ we need to declare it. In case someone uses the same compiler
  1387. # for both compiling C and C++ we need to have the C++ compiler decide
  1388. # the declaration of exit, since it's the most demanding environment.
  1389. cat >conftest.$ac_ext <<_ACEOF
  1390. #ifndef __cplusplus
  1391. choke me
  1392. #endif
  1393. _ACEOF
  1394. rm -f conftest.$ac_objext
  1395. if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
  1396. (eval $ac_compile) 2>&5
  1397. ac_status=$?
  1398. echo "$as_me:1553: \$? = $ac_status" >&5
  1399. (exit $ac_status); } &&
  1400. { ac_try='test -s conftest.$ac_objext'
  1401. { (eval echo "$as_me:1556: \"$ac_try\"") >&5
  1402. (eval $ac_try) 2>&5
  1403. ac_status=$?
  1404. echo "$as_me:1559: \$? = $ac_status" >&5
  1405. (exit $ac_status); }; }; then
  1406. for ac_declaration in \
  1407. ''\
  1408. '#include <stdlib.h>' \
  1409. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1410. 'extern "C" void std::exit (int); using std::exit;' \
  1411. 'extern "C" void exit (int) throw ();' \
  1412. 'extern "C" void exit (int);' \
  1413. 'void exit (int);'
  1414. do
  1415. cat >conftest.$ac_ext <<_ACEOF
  1416. #line 1571 "configure"
  1417. #include "confdefs.h"
  1418. #include <stdlib.h>
  1419. $ac_declaration
  1420. int
  1421. main ()
  1422. {
  1423. exit (42);
  1424. ;
  1425. return 0;
  1426. }
  1427. _ACEOF
  1428. rm -f conftest.$ac_objext
  1429. if { (eval echo "$as_me:1584: \"$ac_compile\"") >&5
  1430. (eval $ac_compile) 2>&5
  1431. ac_status=$?
  1432. echo "$as_me:1587: \$? = $ac_status" >&5
  1433. (exit $ac_status); } &&
  1434. { ac_try='test -s conftest.$ac_objext'
  1435. { (eval echo "$as_me:1590: \"$ac_try\"") >&5
  1436. (eval $ac_try) 2>&5
  1437. ac_status=$?
  1438. echo "$as_me:1593: \$? = $ac_status" >&5
  1439. (exit $ac_status); }; }; then
  1440. :
  1441. else
  1442. echo "$as_me: failed program was:" >&5
  1443. cat conftest.$ac_ext >&5
  1444. continue
  1445. fi
  1446. rm -f conftest.$ac_objext conftest.$ac_ext
  1447. cat >conftest.$ac_ext <<_ACEOF
  1448. #line 1603 "configure"
  1449. #include "confdefs.h"
  1450. $ac_declaration
  1451. int
  1452. main ()
  1453. {
  1454. exit (42);
  1455. ;
  1456. return 0;
  1457. }
  1458. _ACEOF
  1459. rm -f conftest.$ac_objext
  1460. if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
  1461. (eval $ac_compile) 2>&5
  1462. ac_status=$?
  1463. echo "$as_me:1618: \$? = $ac_status" >&5
  1464. (exit $ac_status); } &&
  1465. { ac_try='test -s conftest.$ac_objext'
  1466. { (eval echo "$as_me:1621: \"$ac_try\"") >&5
  1467. (eval $ac_try) 2>&5
  1468. ac_status=$?
  1469. echo "$as_me:1624: \$? = $ac_status" >&5
  1470. (exit $ac_status); }; }; then
  1471. break
  1472. else
  1473. echo "$as_me: failed program was:" >&5
  1474. cat conftest.$ac_ext >&5
  1475. fi
  1476. rm -f conftest.$ac_objext conftest.$ac_ext
  1477. done
  1478. rm -f conftest*
  1479. if test -n "$ac_declaration"; then
  1480. echo '#ifdef __cplusplus' >>confdefs.h
  1481. echo $ac_declaration >>confdefs.h
  1482. echo '#endif' >>confdefs.h
  1483. fi
  1484. else
  1485. echo "$as_me: failed program was:" >&5
  1486. cat conftest.$ac_ext >&5
  1487. fi
  1488. rm -f conftest.$ac_objext conftest.$ac_ext
  1489. ac_ext=c
  1490. ac_cpp='$CPP $CPPFLAGS'
  1491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1494. ac_ext=cc
  1495. ac_cpp='$CXXCPP $CPPFLAGS'
  1496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1499. if test -n "$ac_tool_prefix"; then
  1500. for ac_prog in $CCC CC g++ c++ cxx
  1501. do
  1502. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1503. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1504. echo "$as_me:1661: checking for $ac_word" >&5
  1505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1506. if test "${ac_cv_prog_CXX+set}" = set; then
  1507. echo $ECHO_N "(cached) $ECHO_C" >&6
  1508. else
  1509. if test -n "$CXX"; then
  1510. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1511. else
  1512. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1513. ac_dummy="$PATH"
  1514. for ac_dir in $ac_dummy; do
  1515. IFS=$ac_save_IFS
  1516. test -z "$ac_dir" && ac_dir=.
  1517. $as_executable_p "$ac_dir/$ac_word" || continue
  1518. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1519. echo "$as_me:1676: found $ac_dir/$ac_word" >&5
  1520. break
  1521. done
  1522. fi
  1523. fi
  1524. CXX=$ac_cv_prog_CXX
  1525. if test -n "$CXX"; then
  1526. echo "$as_me:1684: result: $CXX" >&5
  1527. echo "${ECHO_T}$CXX" >&6
  1528. else
  1529. echo "$as_me:1687: result: no" >&5
  1530. echo "${ECHO_T}no" >&6
  1531. fi
  1532. test -n "$CXX" && break
  1533. done
  1534. fi
  1535. if test -z "$CXX"; then
  1536. ac_ct_CXX=$CXX
  1537. for ac_prog in $CCC CC g++ c++ cxx
  1538. do
  1539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1540. set dummy $ac_prog; ac_word=$2
  1541. echo "$as_me:1700: checking for $ac_word" >&5
  1542. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1543. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1544. echo $ECHO_N "(cached) $ECHO_C" >&6
  1545. else
  1546. if test -n "$ac_ct_CXX"; then
  1547. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1548. else
  1549. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1550. ac_dummy="$PATH"
  1551. for ac_dir in $ac_dummy; do
  1552. IFS=$ac_save_IFS
  1553. test -z "$ac_dir" && ac_dir=.
  1554. $as_executable_p "$ac_dir/$ac_word" || continue
  1555. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1556. echo "$as_me:1715: found $ac_dir/$ac_word" >&5
  1557. break
  1558. done
  1559. fi
  1560. fi
  1561. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1562. if test -n "$ac_ct_CXX"; then
  1563. echo "$as_me:1723: result: $ac_ct_CXX" >&5
  1564. echo "${ECHO_T}$ac_ct_CXX" >&6
  1565. else
  1566. echo "$as_me:1726: result: no" >&5
  1567. echo "${ECHO_T}no" >&6
  1568. fi
  1569. test -n "$ac_ct_CXX" && break
  1570. done
  1571. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1572. CXX=$ac_ct_CXX
  1573. fi
  1574. # Provide some information about the compiler.
  1575. echo "$as_me:1738:" \
  1576. "checking for C++ compiler version" >&5
  1577. ac_compiler=`set X $ac_compile; echo $2`
  1578. { (eval echo "$as_me:1741: \"$ac_compiler --version </dev/null >&5\"") >&5
  1579. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:1744: \$? = $ac_status" >&5
  1582. (exit $ac_status); }
  1583. { (eval echo "$as_me:1746: \"$ac_compiler -v </dev/null >&5\"") >&5
  1584. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:1749: \$? = $ac_status" >&5
  1587. (exit $ac_status); }
  1588. { (eval echo "$as_me:1751: \"$ac_compiler -V </dev/null >&5\"") >&5
  1589. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1590. ac_status=$?
  1591. echo "$as_me:1754: \$? = $ac_status" >&5
  1592. (exit $ac_status); }
  1593. echo "$as_me:1757: checking whether we are using the GNU C++ compiler" >&5
  1594. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1595. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1596. echo $ECHO_N "(cached) $ECHO_C" >&6
  1597. else
  1598. cat >conftest.$ac_ext <<_ACEOF
  1599. #line 1763 "configure"
  1600. #include "confdefs.h"
  1601. int
  1602. main ()
  1603. {
  1604. #ifndef __GNUC__
  1605. choke me
  1606. #endif
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. rm -f conftest.$ac_objext
  1612. if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
  1613. (eval $ac_compile) 2>&5
  1614. ac_status=$?
  1615. echo "$as_me:1781: \$? = $ac_status" >&5
  1616. (exit $ac_status); } &&
  1617. { ac_try='test -s conftest.$ac_objext'
  1618. { (eval echo "$as_me:1784: \"$ac_try\"") >&5
  1619. (eval $ac_try) 2>&5
  1620. ac_status=$?
  1621. echo "$as_me:1787: \$? = $ac_status" >&5
  1622. (exit $ac_status); }; }; then
  1623. ac_compiler_gnu=yes
  1624. else
  1625. echo "$as_me: failed program was:" >&5
  1626. cat conftest.$ac_ext >&5
  1627. ac_compiler_gnu=no
  1628. fi
  1629. rm -f conftest.$ac_objext conftest.$ac_ext
  1630. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1631. fi
  1632. echo "$as_me:1799: result: $ac_cv_cxx_compiler_gnu" >&5
  1633. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1634. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1635. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1636. ac_save_CXXFLAGS=$CXXFLAGS
  1637. CXXFLAGS="-g"
  1638. echo "$as_me:1805: checking whether $CXX accepts -g" >&5
  1639. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1640. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1641. echo $ECHO_N "(cached) $ECHO_C" >&6
  1642. else
  1643. cat >conftest.$ac_ext <<_ACEOF
  1644. #line 1811 "configure"
  1645. #include "confdefs.h"
  1646. int
  1647. main ()
  1648. {
  1649. ;
  1650. return 0;
  1651. }
  1652. _ACEOF
  1653. rm -f conftest.$ac_objext
  1654. if { (eval echo "$as_me:1823: \"$ac_compile\"") >&5
  1655. (eval $ac_compile) 2>&5
  1656. ac_status=$?
  1657. echo "$as_me:1826: \$? = $ac_status" >&5
  1658. (exit $ac_status); } &&
  1659. { ac_try='test -s conftest.$ac_objext'
  1660. { (eval echo "$as_me:1829: \"$ac_try\"") >&5
  1661. (eval $ac_try) 2>&5
  1662. ac_status=$?
  1663. echo "$as_me:1832: \$? = $ac_status" >&5
  1664. (exit $ac_status); }; }; then
  1665. ac_cv_prog_cxx_g=yes
  1666. else
  1667. echo "$as_me: failed program was:" >&5
  1668. cat conftest.$ac_ext >&5
  1669. ac_cv_prog_cxx_g=no
  1670. fi
  1671. rm -f conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. echo "$as_me:1842: result: $ac_cv_prog_cxx_g" >&5
  1674. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1675. if test "$ac_test_CXXFLAGS" = set; then
  1676. CXXFLAGS=$ac_save_CXXFLAGS
  1677. elif test $ac_cv_prog_cxx_g = yes; then
  1678. if test "$GXX" = yes; then
  1679. CXXFLAGS="-g -O2"
  1680. else
  1681. CXXFLAGS="-g"
  1682. fi
  1683. else
  1684. if test "$GXX" = yes; then
  1685. CXXFLAGS="-O2"
  1686. else
  1687. CXXFLAGS=
  1688. fi
  1689. fi
  1690. for ac_declaration in \
  1691. ''\
  1692. '#include <stdlib.h>' \
  1693. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1694. 'extern "C" void std::exit (int); using std::exit;' \
  1695. 'extern "C" void exit (int) throw ();' \
  1696. 'extern "C" void exit (int);' \
  1697. 'void exit (int);'
  1698. do
  1699. cat >conftest.$ac_ext <<_ACEOF
  1700. #line 1869 "configure"
  1701. #include "confdefs.h"
  1702. #include <stdlib.h>
  1703. $ac_declaration
  1704. int
  1705. main ()
  1706. {
  1707. exit (42);
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. rm -f conftest.$ac_objext
  1713. if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
  1714. (eval $ac_compile) 2>&5
  1715. ac_status=$?
  1716. echo "$as_me:1885: \$? = $ac_status" >&5
  1717. (exit $ac_status); } &&
  1718. { ac_try='test -s conftest.$ac_objext'
  1719. { (eval echo "$as_me:1888: \"$ac_try\"") >&5
  1720. (eval $ac_try) 2>&5
  1721. ac_status=$?
  1722. echo "$as_me:1891: \$? = $ac_status" >&5
  1723. (exit $ac_status); }; }; then
  1724. :
  1725. else
  1726. echo "$as_me: failed program was:" >&5
  1727. cat conftest.$ac_ext >&5
  1728. continue
  1729. fi
  1730. rm -f conftest.$ac_objext conftest.$ac_ext
  1731. cat >conftest.$ac_ext <<_ACEOF
  1732. #line 1901 "configure"
  1733. #include "confdefs.h"
  1734. $ac_declaration
  1735. int
  1736. main ()
  1737. {
  1738. exit (42);
  1739. ;
  1740. return 0;
  1741. }
  1742. _ACEOF
  1743. rm -f conftest.$ac_objext
  1744. if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
  1745. (eval $ac_compile) 2>&5
  1746. ac_status=$?
  1747. echo "$as_me:1916: \$? = $ac_status" >&5
  1748. (exit $ac_status); } &&
  1749. { ac_try='test -s conftest.$ac_objext'
  1750. { (eval echo "$as_me:1919: \"$ac_try\"") >&5
  1751. (eval $ac_try) 2>&5
  1752. ac_status=$?
  1753. echo "$as_me:1922: \$? = $ac_status" >&5
  1754. (exit $ac_status); }; }; then
  1755. break
  1756. else
  1757. echo "$as_me: failed program was:" >&5
  1758. cat conftest.$ac_ext >&5
  1759. fi
  1760. rm -f conftest.$ac_objext conftest.$ac_ext
  1761. done
  1762. rm -f conftest*
  1763. if test -n "$ac_declaration"; then
  1764. echo '#ifdef __cplusplus' >>confdefs.h
  1765. echo $ac_declaration >>confdefs.h
  1766. echo '#endif' >>confdefs.h
  1767. fi
  1768. ac_ext=c
  1769. ac_cpp='$CPP $CPPFLAGS'
  1770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1773. # Checks for libraries.
  1774. echo "$as_me:1946: checking for pthread_create in -lpthread" >&5
  1775. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  1776. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  1777. echo $ECHO_N "(cached) $ECHO_C" >&6
  1778. else
  1779. ac_check_lib_save_LIBS=$LIBS
  1780. LIBS="-lpthread $LIBS"
  1781. cat >conftest.$ac_ext <<_ACEOF
  1782. #line 1954 "configure"
  1783. #include "confdefs.h"
  1784. /* Override any gcc2 internal prototype to avoid an error. */
  1785. #ifdef __cplusplus
  1786. extern "C"
  1787. #endif
  1788. /* We use char because int might match the return type of a gcc2
  1789. builtin and then its argument prototype would still apply. */
  1790. char pthread_create ();
  1791. int
  1792. main ()
  1793. {
  1794. pthread_create ();
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. rm -f conftest.$ac_objext conftest$ac_exeext
  1800. if { (eval echo "$as_me:1973: \"$ac_link\"") >&5
  1801. (eval $ac_link) 2>&5
  1802. ac_status=$?
  1803. echo "$as_me:1976: \$? = $ac_status" >&5
  1804. (exit $ac_status); } &&
  1805. { ac_try='test -s conftest$ac_exeext'
  1806. { (eval echo "$as_me:1979: \"$ac_try\"") >&5
  1807. (eval $ac_try) 2>&5
  1808. ac_status=$?
  1809. echo "$as_me:1982: \$? = $ac_status" >&5
  1810. (exit $ac_status); }; }; then
  1811. ac_cv_lib_pthread_pthread_create=yes
  1812. else
  1813. echo "$as_me: failed program was:" >&5
  1814. cat conftest.$ac_ext >&5
  1815. ac_cv_lib_pthread_pthread_create=no
  1816. fi
  1817. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  1818. LIBS=$ac_check_lib_save_LIBS
  1819. fi
  1820. echo "$as_me:1993: result: $ac_cv_lib_pthread_pthread_create" >&5
  1821. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  1822. if test $ac_cv_lib_pthread_pthread_create = yes; then
  1823. cat >>confdefs.h <<EOF
  1824. #define HAVE_LIBPTHREAD 1
  1825. EOF
  1826. LIBS="-lpthread $LIBS"
  1827. else
  1828. { { echo "$as_me:2003: error: RtAudio requires the pthread library!" >&5
  1829. echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
  1830. { (exit 1); exit 1; }; }
  1831. fi
  1832. # Checks for header files.
  1833. ac_ext=c
  1834. ac_cpp='$CPP $CPPFLAGS'
  1835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1838. echo "$as_me:2014: checking how to run the C preprocessor" >&5
  1839. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1840. # On Suns, sometimes $CPP names a directory.
  1841. if test -n "$CPP" && test -d "$CPP"; then
  1842. CPP=
  1843. fi
  1844. if test -z "$CPP"; then
  1845. if test "${ac_cv_prog_CPP+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. # Double quotes because CPP needs to be expanded
  1849. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1850. do
  1851. ac_preproc_ok=false
  1852. for ac_c_preproc_warn_flag in '' yes
  1853. do
  1854. # Use a header file that comes with gcc, so configuring glibc
  1855. # with a fresh cross-compiler works.
  1856. # On the NeXT, cc -E runs the code through the compiler's parser,
  1857. # not just through cpp. "Syntax error" is here to catch this case.
  1858. cat >conftest.$ac_ext <<_ACEOF
  1859. #line 2035 "configure"
  1860. #include "confdefs.h"
  1861. #include <assert.h>
  1862. Syntax error
  1863. _ACEOF
  1864. if { (eval echo "$as_me:2040: \"$ac_cpp conftest.$ac_ext\"") >&5
  1865. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1866. ac_status=$?
  1867. egrep -v '^ *\+' conftest.er1 >conftest.err
  1868. rm -f conftest.er1
  1869. cat conftest.err >&5
  1870. echo "$as_me:2046: \$? = $ac_status" >&5
  1871. (exit $ac_status); } >/dev/null; then
  1872. if test -s conftest.err; then
  1873. ac_cpp_err=$ac_c_preproc_warn_flag
  1874. else
  1875. ac_cpp_err=
  1876. fi
  1877. else
  1878. ac_cpp_err=yes
  1879. fi
  1880. if test -z "$ac_cpp_err"; then
  1881. :
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. cat conftest.$ac_ext >&5
  1885. # Broken: fails on valid input.
  1886. continue
  1887. fi
  1888. rm -f conftest.err conftest.$ac_ext
  1889. # OK, works on sane cases. Now check whether non-existent headers
  1890. # can be detected and how.
  1891. cat >conftest.$ac_ext <<_ACEOF
  1892. #line 2069 "configure"
  1893. #include "confdefs.h"
  1894. #include <ac_nonexistent.h>
  1895. _ACEOF
  1896. if { (eval echo "$as_me:2073: \"$ac_cpp conftest.$ac_ext\"") >&5
  1897. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1898. ac_status=$?
  1899. egrep -v '^ *\+' conftest.er1 >conftest.err
  1900. rm -f conftest.er1
  1901. cat conftest.err >&5
  1902. echo "$as_me:2079: \$? = $ac_status" >&5
  1903. (exit $ac_status); } >/dev/null; then
  1904. if test -s conftest.err; then
  1905. ac_cpp_err=$ac_c_preproc_warn_flag
  1906. else
  1907. ac_cpp_err=
  1908. fi
  1909. else
  1910. ac_cpp_err=yes
  1911. fi
  1912. if test -z "$ac_cpp_err"; then
  1913. # Broken: success on invalid input.
  1914. continue
  1915. else
  1916. echo "$as_me: failed program was:" >&5
  1917. cat conftest.$ac_ext >&5
  1918. # Passes both tests.
  1919. ac_preproc_ok=:
  1920. break
  1921. fi
  1922. rm -f conftest.err conftest.$ac_ext
  1923. done
  1924. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1925. rm -f conftest.err conftest.$ac_ext
  1926. if $ac_preproc_ok; then
  1927. break
  1928. fi
  1929. done
  1930. ac_cv_prog_CPP=$CPP
  1931. fi
  1932. CPP=$ac_cv_prog_CPP
  1933. else
  1934. ac_cv_prog_CPP=$CPP
  1935. fi
  1936. echo "$as_me:2116: result: $CPP" >&5
  1937. echo "${ECHO_T}$CPP" >&6
  1938. ac_preproc_ok=false
  1939. for ac_c_preproc_warn_flag in '' yes
  1940. do
  1941. # Use a header file that comes with gcc, so configuring glibc
  1942. # with a fresh cross-compiler works.
  1943. # On the NeXT, cc -E runs the code through the compiler's parser,
  1944. # not just through cpp. "Syntax error" is here to catch this case.
  1945. cat >conftest.$ac_ext <<_ACEOF
  1946. #line 2126 "configure"
  1947. #include "confdefs.h"
  1948. #include <assert.h>
  1949. Syntax error
  1950. _ACEOF
  1951. if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
  1952. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1953. ac_status=$?
  1954. egrep -v '^ *\+' conftest.er1 >conftest.err
  1955. rm -f conftest.er1
  1956. cat conftest.err >&5
  1957. echo "$as_me:2137: \$? = $ac_status" >&5
  1958. (exit $ac_status); } >/dev/null; then
  1959. if test -s conftest.err; then
  1960. ac_cpp_err=$ac_c_preproc_warn_flag
  1961. else
  1962. ac_cpp_err=
  1963. fi
  1964. else
  1965. ac_cpp_err=yes
  1966. fi
  1967. if test -z "$ac_cpp_err"; then
  1968. :
  1969. else
  1970. echo "$as_me: failed program was:" >&5
  1971. cat conftest.$ac_ext >&5
  1972. # Broken: fails on valid input.
  1973. continue
  1974. fi
  1975. rm -f conftest.err conftest.$ac_ext
  1976. # OK, works on sane cases. Now check whether non-existent headers
  1977. # can be detected and how.
  1978. cat >conftest.$ac_ext <<_ACEOF
  1979. #line 2160 "configure"
  1980. #include "confdefs.h"
  1981. #include <ac_nonexistent.h>
  1982. _ACEOF
  1983. if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
  1984. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1985. ac_status=$?
  1986. egrep -v '^ *\+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:2170: \$? = $ac_status" >&5
  1990. (exit $ac_status); } >/dev/null; then
  1991. if test -s conftest.err; then
  1992. ac_cpp_err=$ac_c_preproc_warn_flag
  1993. else
  1994. ac_cpp_err=
  1995. fi
  1996. else
  1997. ac_cpp_err=yes
  1998. fi
  1999. if test -z "$ac_cpp_err"; then
  2000. # Broken: success on invalid input.
  2001. continue
  2002. else
  2003. echo "$as_me: failed program was:" >&5
  2004. cat conftest.$ac_ext >&5
  2005. # Passes both tests.
  2006. ac_preproc_ok=:
  2007. break
  2008. fi
  2009. rm -f conftest.err conftest.$ac_ext
  2010. done
  2011. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2012. rm -f conftest.err conftest.$ac_ext
  2013. if $ac_preproc_ok; then
  2014. :
  2015. else
  2016. { { echo "$as_me:2198: error: C preprocessor \"$CPP\" fails sanity check" >&5
  2017. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  2018. { (exit 1); exit 1; }; }
  2019. fi
  2020. ac_ext=c
  2021. ac_cpp='$CPP $CPPFLAGS'
  2022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2025. echo "$as_me:2209: checking for ANSI C header files" >&5
  2026. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2027. if test "${ac_cv_header_stdc+set}" = set; then
  2028. echo $ECHO_N "(cached) $ECHO_C" >&6
  2029. else
  2030. cat >conftest.$ac_ext <<_ACEOF
  2031. #line 2215 "configure"
  2032. #include "confdefs.h"
  2033. #include <stdlib.h>
  2034. #include <stdarg.h>
  2035. #include <string.h>
  2036. #include <float.h>
  2037. _ACEOF
  2038. if { (eval echo "$as_me:2223: \"$ac_cpp conftest.$ac_ext\"") >&5
  2039. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2040. ac_status=$?
  2041. egrep -v '^ *\+' conftest.er1 >conftest.err
  2042. rm -f conftest.er1
  2043. cat conftest.err >&5
  2044. echo "$as_me:2229: \$? = $ac_status" >&5
  2045. (exit $ac_status); } >/dev/null; then
  2046. if test -s conftest.err; then
  2047. ac_cpp_err=$ac_c_preproc_warn_flag
  2048. else
  2049. ac_cpp_err=
  2050. fi
  2051. else
  2052. ac_cpp_err=yes
  2053. fi
  2054. if test -z "$ac_cpp_err"; then
  2055. ac_cv_header_stdc=yes
  2056. else
  2057. echo "$as_me: failed program was:" >&5
  2058. cat conftest.$ac_ext >&5
  2059. ac_cv_header_stdc=no
  2060. fi
  2061. rm -f conftest.err conftest.$ac_ext
  2062. if test $ac_cv_header_stdc = yes; then
  2063. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2064. cat >conftest.$ac_ext <<_ACEOF
  2065. #line 2251 "configure"
  2066. #include "confdefs.h"
  2067. #include <string.h>
  2068. _ACEOF
  2069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2070. egrep "memchr" >/dev/null 2>&1; then
  2071. :
  2072. else
  2073. ac_cv_header_stdc=no
  2074. fi
  2075. rm -f conftest*
  2076. fi
  2077. if test $ac_cv_header_stdc = yes; then
  2078. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2079. cat >conftest.$ac_ext <<_ACEOF
  2080. #line 2269 "configure"
  2081. #include "confdefs.h"
  2082. #include <stdlib.h>
  2083. _ACEOF
  2084. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2085. egrep "free" >/dev/null 2>&1; then
  2086. :
  2087. else
  2088. ac_cv_header_stdc=no
  2089. fi
  2090. rm -f conftest*
  2091. fi
  2092. if test $ac_cv_header_stdc = yes; then
  2093. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2094. if test "$cross_compiling" = yes; then
  2095. :
  2096. else
  2097. cat >conftest.$ac_ext <<_ACEOF
  2098. #line 2290 "configure"
  2099. #include "confdefs.h"
  2100. #include <ctype.h>
  2101. #if ((' ' & 0x0FF) == 0x020)
  2102. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2103. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2104. #else
  2105. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  2106. || ('j' <= (c) && (c) <= 'r') \
  2107. || ('s' <= (c) && (c) <= 'z'))
  2108. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2109. #endif
  2110. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2111. int
  2112. main ()
  2113. {
  2114. int i;
  2115. for (i = 0; i < 256; i++)
  2116. if (XOR (islower (i), ISLOWER (i))
  2117. || toupper (i) != TOUPPER (i))
  2118. exit(2);
  2119. exit (0);
  2120. }
  2121. _ACEOF
  2122. rm -f conftest$ac_exeext
  2123. if { (eval echo "$as_me:2316: \"$ac_link\"") >&5
  2124. (eval $ac_link) 2>&5
  2125. ac_status=$?
  2126. echo "$as_me:2319: \$? = $ac_status" >&5
  2127. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2128. { (eval echo "$as_me:2321: \"$ac_try\"") >&5
  2129. (eval $ac_try) 2>&5
  2130. ac_status=$?
  2131. echo "$as_me:2324: \$? = $ac_status" >&5
  2132. (exit $ac_status); }; }; then
  2133. :
  2134. else
  2135. echo "$as_me: program exited with status $ac_status" >&5
  2136. echo "$as_me: failed program was:" >&5
  2137. cat conftest.$ac_ext >&5
  2138. ac_cv_header_stdc=no
  2139. fi
  2140. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2141. fi
  2142. fi
  2143. fi
  2144. echo "$as_me:2337: result: $ac_cv_header_stdc" >&5
  2145. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2146. if test $ac_cv_header_stdc = yes; then
  2147. cat >>confdefs.h <<\EOF
  2148. #define STDC_HEADERS 1
  2149. EOF
  2150. fi
  2151. for ac_header in sys/ioctl.h unistd.h
  2152. do
  2153. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2154. echo "$as_me:2350: checking for $ac_header" >&5
  2155. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2156. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2157. echo $ECHO_N "(cached) $ECHO_C" >&6
  2158. else
  2159. cat >conftest.$ac_ext <<_ACEOF
  2160. #line 2356 "configure"
  2161. #include "confdefs.h"
  2162. #include <$ac_header>
  2163. _ACEOF
  2164. if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
  2165. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2166. ac_status=$?
  2167. egrep -v '^ *\+' conftest.er1 >conftest.err
  2168. rm -f conftest.er1
  2169. cat conftest.err >&5
  2170. echo "$as_me:2366: \$? = $ac_status" >&5
  2171. (exit $ac_status); } >/dev/null; then
  2172. if test -s conftest.err; then
  2173. ac_cpp_err=$ac_c_preproc_warn_flag
  2174. else
  2175. ac_cpp_err=
  2176. fi
  2177. else
  2178. ac_cpp_err=yes
  2179. fi
  2180. if test -z "$ac_cpp_err"; then
  2181. eval "$as_ac_Header=yes"
  2182. else
  2183. echo "$as_me: failed program was:" >&5
  2184. cat conftest.$ac_ext >&5
  2185. eval "$as_ac_Header=no"
  2186. fi
  2187. rm -f conftest.err conftest.$ac_ext
  2188. fi
  2189. echo "$as_me:2385: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2190. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2191. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2192. cat >>confdefs.h <<EOF
  2193. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2194. EOF
  2195. fi
  2196. done
  2197. # Checks for typedefs, structures, and compiler characteristics.
  2198. echo "$as_me:2396: checking for $CC option to accept ANSI C" >&5
  2199. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2200. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2201. echo $ECHO_N "(cached) $ECHO_C" >&6
  2202. else
  2203. ac_cv_prog_cc_stdc=no
  2204. ac_save_CC=$CC
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. #line 2404 "configure"
  2207. #include "confdefs.h"
  2208. #include <stdarg.h>
  2209. #include <stdio.h>
  2210. #include <sys/types.h>
  2211. #include <sys/stat.h>
  2212. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2213. struct buf { int x; };
  2214. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2215. static char *e (p, i)
  2216. char **p;
  2217. int i;
  2218. {
  2219. return p[i];
  2220. }
  2221. static char *f (char * (*g) (char **, int), char **p, ...)
  2222. {
  2223. char *s;
  2224. va_list v;
  2225. va_start (v,p);
  2226. s = g (p, va_arg (v,int));
  2227. va_end (v);
  2228. return s;
  2229. }
  2230. int test (int i, double x);
  2231. struct s1 {int (*f) (int a);};
  2232. struct s2 {int (*f) (double a);};
  2233. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2234. int argc;
  2235. char **argv;
  2236. int
  2237. main ()
  2238. {
  2239. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. # Don't try gcc -ansi; that turns off useful extensions and
  2245. # breaks some systems' header files.
  2246. # AIX -qlanglvl=ansi
  2247. # Ultrix and OSF/1 -std1
  2248. # HP-UX 10.20 and later -Ae
  2249. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2250. # SVR4 -Xc -D__EXTENSIONS__
  2251. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2252. do
  2253. CC="$ac_save_CC $ac_arg"
  2254. rm -f conftest.$ac_objext
  2255. if { (eval echo "$as_me:2453: \"$ac_compile\"") >&5
  2256. (eval $ac_compile) 2>&5
  2257. ac_status=$?
  2258. echo "$as_me:2456: \$? = $ac_status" >&5
  2259. (exit $ac_status); } &&
  2260. { ac_try='test -s conftest.$ac_objext'
  2261. { (eval echo "$as_me:2459: \"$ac_try\"") >&5
  2262. (eval $ac_try) 2>&5
  2263. ac_status=$?
  2264. echo "$as_me:2462: \$? = $ac_status" >&5
  2265. (exit $ac_status); }; }; then
  2266. ac_cv_prog_cc_stdc=$ac_arg
  2267. break
  2268. else
  2269. echo "$as_me: failed program was:" >&5
  2270. cat conftest.$ac_ext >&5
  2271. fi
  2272. rm -f conftest.$ac_objext
  2273. done
  2274. rm -f conftest.$ac_ext conftest.$ac_objext
  2275. CC=$ac_save_CC
  2276. fi
  2277. case "x$ac_cv_prog_cc_stdc" in
  2278. x|xno)
  2279. echo "$as_me:2479: result: none needed" >&5
  2280. echo "${ECHO_T}none needed" >&6 ;;
  2281. *)
  2282. echo "$as_me:2482: result: $ac_cv_prog_cc_stdc" >&5
  2283. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2284. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2285. esac
  2286. echo "$as_me:2487: checking for an ANSI C-conforming const" >&5
  2287. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2288. if test "${ac_cv_c_const+set}" = set; then
  2289. echo $ECHO_N "(cached) $ECHO_C" >&6
  2290. else
  2291. cat >conftest.$ac_ext <<_ACEOF
  2292. #line 2493 "configure"
  2293. #include "confdefs.h"
  2294. int
  2295. main ()
  2296. {
  2297. /* FIXME: Include the comments suggested by Paul. */
  2298. #ifndef __cplusplus
  2299. /* Ultrix mips cc rejects this. */
  2300. typedef int charset[2];
  2301. const charset x;
  2302. /* SunOS 4.1.1 cc rejects this. */
  2303. char const *const *ccp;
  2304. char **p;
  2305. /* NEC SVR4.0.2 mips cc rejects this. */
  2306. struct point {int x, y;};
  2307. static struct point const zero = {0,0};
  2308. /* AIX XL C 1.02.0.0 rejects this.
  2309. It does not let you subtract one const X* pointer from another in
  2310. an arm of an if-expression whose if-part is not a constant
  2311. expression */
  2312. const char *g = "string";
  2313. ccp = &g + (g ? g-g : 0);
  2314. /* HPUX 7.0 cc rejects these. */
  2315. ++ccp;
  2316. p = (char**) ccp;
  2317. ccp = (char const *const *) p;
  2318. { /* SCO 3.2v4 cc rejects this. */
  2319. char *t;
  2320. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2321. *t++ = 0;
  2322. }
  2323. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2324. int x[] = {25, 17};
  2325. const int *foo = &x[0];
  2326. ++foo;
  2327. }
  2328. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2329. typedef const int *iptr;
  2330. iptr p = 0;
  2331. ++p;
  2332. }
  2333. { /* AIX XL C 1.02.0.0 rejects this saying
  2334. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2335. struct s { int j; const int *ap[3]; };
  2336. struct s *b; b->j = 5;
  2337. }
  2338. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2339. const int foo = 10;
  2340. }
  2341. #endif
  2342. ;
  2343. return 0;
  2344. }
  2345. _ACEOF
  2346. rm -f conftest.$ac_objext
  2347. if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
  2348. (eval $ac_compile) 2>&5
  2349. ac_status=$?
  2350. echo "$as_me:2554: \$? = $ac_status" >&5
  2351. (exit $ac_status); } &&
  2352. { ac_try='test -s conftest.$ac_objext'
  2353. { (eval echo "$as_me:2557: \"$ac_try\"") >&5
  2354. (eval $ac_try) 2>&5
  2355. ac_status=$?
  2356. echo "$as_me:2560: \$? = $ac_status" >&5
  2357. (exit $ac_status); }; }; then
  2358. ac_cv_c_const=yes
  2359. else
  2360. echo "$as_me: failed program was:" >&5
  2361. cat conftest.$ac_ext >&5
  2362. ac_cv_c_const=no
  2363. fi
  2364. rm -f conftest.$ac_objext conftest.$ac_ext
  2365. fi
  2366. echo "$as_me:2570: result: $ac_cv_c_const" >&5
  2367. echo "${ECHO_T}$ac_cv_c_const" >&6
  2368. if test $ac_cv_c_const = no; then
  2369. cat >>confdefs.h <<\EOF
  2370. #define const
  2371. EOF
  2372. fi
  2373. # Check for debug
  2374. echo "$as_me:2581: checking whether to compile debug version" >&5
  2375. echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
  2376. # Check whether --enable-debug or --disable-debug was given.
  2377. if test "${enable_debug+set}" = set; then
  2378. enableval="$enable_debug"
  2379. debug=-D__RTAUDIO_DEBUG__
  2380. cflags=-g
  2381. object_path=Debug
  2382. echo "$as_me:2589: result: yes" >&5
  2383. echo "${ECHO_T}yes" >&6
  2384. else
  2385. debug=
  2386. cflags=-O2
  2387. object_path=Release
  2388. echo "$as_me:2595: result: no" >&5
  2389. echo "${ECHO_T}no" >&6
  2390. fi;
  2391. # Check compiler and use -Wall if gnu.
  2392. if test $GXX = "yes" ; then
  2393. warn=-Wall
  2394. fi
  2395. # Checks for package options and external software
  2396. ac_aux_dir=
  2397. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2398. if test -f $ac_dir/install-sh; then
  2399. ac_aux_dir=$ac_dir
  2400. ac_install_sh="$ac_aux_dir/install-sh -c"
  2401. break
  2402. elif test -f $ac_dir/install.sh; then
  2403. ac_aux_dir=$ac_dir
  2404. ac_install_sh="$ac_aux_dir/install.sh -c"
  2405. break
  2406. elif test -f $ac_dir/shtool; then
  2407. ac_aux_dir=$ac_dir
  2408. ac_install_sh="$ac_aux_dir/shtool install -c"
  2409. break
  2410. fi
  2411. done
  2412. if test -z "$ac_aux_dir"; then
  2413. { { echo "$as_me:2623: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  2414. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  2415. { (exit 1); exit 1; }; }
  2416. fi
  2417. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2418. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2419. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2420. # Make sure we can run config.sub.
  2421. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2422. { { echo "$as_me:2633: error: cannot run $ac_config_sub" >&5
  2423. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2424. { (exit 1); exit 1; }; }
  2425. echo "$as_me:2637: checking build system type" >&5
  2426. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2427. if test "${ac_cv_build+set}" = set; then
  2428. echo $ECHO_N "(cached) $ECHO_C" >&6
  2429. else
  2430. ac_cv_build_alias=$build_alias
  2431. test -z "$ac_cv_build_alias" &&
  2432. ac_cv_build_alias=`$ac_config_guess`
  2433. test -z "$ac_cv_build_alias" &&
  2434. { { echo "$as_me:2646: error: cannot guess build type; you must specify one" >&5
  2435. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2436. { (exit 1); exit 1; }; }
  2437. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2438. { { echo "$as_me:2650: error: $ac_config_sub $ac_cv_build_alias failed." >&5
  2439. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
  2440. { (exit 1); exit 1; }; }
  2441. fi
  2442. echo "$as_me:2655: result: $ac_cv_build" >&5
  2443. echo "${ECHO_T}$ac_cv_build" >&6
  2444. build=$ac_cv_build
  2445. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2446. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2447. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2448. echo "$as_me:2662: checking host system type" >&5
  2449. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2450. if test "${ac_cv_host+set}" = set; then
  2451. echo $ECHO_N "(cached) $ECHO_C" >&6
  2452. else
  2453. ac_cv_host_alias=$host_alias
  2454. test -z "$ac_cv_host_alias" &&
  2455. ac_cv_host_alias=$ac_cv_build_alias
  2456. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2457. { { echo "$as_me:2671: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2458. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2459. { (exit 1); exit 1; }; }
  2460. fi
  2461. echo "$as_me:2676: result: $ac_cv_host" >&5
  2462. echo "${ECHO_T}$ac_cv_host" >&6
  2463. host=$ac_cv_host
  2464. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2465. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2466. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2467. echo "$as_me:2683: checking for audio API" >&5
  2468. echo $ECHO_N "checking for audio API... $ECHO_C" >&6
  2469. case $host in
  2470. *-*-linux*)
  2471. # Check whether --with-alsa or --without-alsa was given.
  2472. if test "${with_alsa+set}" = set; then
  2473. withval="$with_alsa"
  2474. sound_api=-D__LINUX_ALSA__
  2475. echo "$as_me:2692: result: using ALSA" >&5
  2476. echo "${ECHO_T}using ALSA" >&6
  2477. else
  2478. sound_api=-D__LINUX_OSS__
  2479. echo "$as_me:2696: result: using OSS" >&5
  2480. echo "${ECHO_T}using OSS" >&6
  2481. fi;
  2482. if test $sound_api = -D__LINUX_ALSA__; then
  2483. echo "$as_me:2702: checking for snd_pcm_open in -lasound" >&5
  2484. echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
  2485. if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
  2486. echo $ECHO_N "(cached) $ECHO_C" >&6
  2487. else
  2488. ac_check_lib_save_LIBS=$LIBS
  2489. LIBS="-lasound $LIBS"
  2490. cat >conftest.$ac_ext <<_ACEOF
  2491. #line 2710 "configure"
  2492. #include "confdefs.h"
  2493. /* Override any gcc2 internal prototype to avoid an error. */
  2494. #ifdef __cplusplus
  2495. extern "C"
  2496. #endif
  2497. /* We use char because int might match the return type of a gcc2
  2498. builtin and then its argument prototype would still apply. */
  2499. char snd_pcm_open ();
  2500. int
  2501. main ()
  2502. {
  2503. snd_pcm_open ();
  2504. ;
  2505. return 0;
  2506. }
  2507. _ACEOF
  2508. rm -f conftest.$ac_objext conftest$ac_exeext
  2509. if { (eval echo "$as_me:2729: \"$ac_link\"") >&5
  2510. (eval $ac_link) 2>&5
  2511. ac_status=$?
  2512. echo "$as_me:2732: \$? = $ac_status" >&5
  2513. (exit $ac_status); } &&
  2514. { ac_try='test -s conftest$ac_exeext'
  2515. { (eval echo "$as_me:2735: \"$ac_try\"") >&5
  2516. (eval $ac_try) 2>&5
  2517. ac_status=$?
  2518. echo "$as_me:2738: \$? = $ac_status" >&5
  2519. (exit $ac_status); }; }; then
  2520. ac_cv_lib_asound_snd_pcm_open=yes
  2521. else
  2522. echo "$as_me: failed program was:" >&5
  2523. cat conftest.$ac_ext >&5
  2524. ac_cv_lib_asound_snd_pcm_open=no
  2525. fi
  2526. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2527. LIBS=$ac_check_lib_save_LIBS
  2528. fi
  2529. echo "$as_me:2749: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  2530. echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
  2531. if test $ac_cv_lib_asound_snd_pcm_open = yes; then
  2532. cat >>confdefs.h <<EOF
  2533. #define HAVE_LIBASOUND 1
  2534. EOF
  2535. LIBS="-lasound $LIBS"
  2536. else
  2537. { { echo "$as_me:2759: error: ALSA support requires the asound library!" >&5
  2538. echo "$as_me: error: ALSA support requires the asound library!" >&2;}
  2539. { (exit 1); exit 1; }; }
  2540. fi
  2541. fi
  2542. ;;
  2543. *-sgi*)
  2544. sound_api=-D__IRIX_AL__
  2545. echo "$as_me:2770: result: using IRIX AL" >&5
  2546. echo "${ECHO_T}using IRIX AL" >&6
  2547. echo "$as_me:2773: checking for alOpenPort in -laudio" >&5
  2548. echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
  2549. if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
  2550. echo $ECHO_N "(cached) $ECHO_C" >&6
  2551. else
  2552. ac_check_lib_save_LIBS=$LIBS
  2553. LIBS="-laudio $LIBS"
  2554. cat >conftest.$ac_ext <<_ACEOF
  2555. #line 2781 "configure"
  2556. #include "confdefs.h"
  2557. /* Override any gcc2 internal prototype to avoid an error. */
  2558. #ifdef __cplusplus
  2559. extern "C"
  2560. #endif
  2561. /* We use char because int might match the return type of a gcc2
  2562. builtin and then its argument prototype would still apply. */
  2563. char alOpenPort ();
  2564. int
  2565. main ()
  2566. {
  2567. alOpenPort ();
  2568. ;
  2569. return 0;
  2570. }
  2571. _ACEOF
  2572. rm -f conftest.$ac_objext conftest$ac_exeext
  2573. if { (eval echo "$as_me:2800: \"$ac_link\"") >&5
  2574. (eval $ac_link) 2>&5
  2575. ac_status=$?
  2576. echo "$as_me:2803: \$? = $ac_status" >&5
  2577. (exit $ac_status); } &&
  2578. { ac_try='test -s conftest$ac_exeext'
  2579. { (eval echo "$as_me:2806: \"$ac_try\"") >&5
  2580. (eval $ac_try) 2>&5
  2581. ac_status=$?
  2582. echo "$as_me:2809: \$? = $ac_status" >&5
  2583. (exit $ac_status); }; }; then
  2584. ac_cv_lib_audio_alOpenPort=yes
  2585. else
  2586. echo "$as_me: failed program was:" >&5
  2587. cat conftest.$ac_ext >&5
  2588. ac_cv_lib_audio_alOpenPort=no
  2589. fi
  2590. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2591. LIBS=$ac_check_lib_save_LIBS
  2592. fi
  2593. echo "$as_me:2820: result: $ac_cv_lib_audio_alOpenPort" >&5
  2594. echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
  2595. if test $ac_cv_lib_audio_alOpenPort = yes; then
  2596. cat >>confdefs.h <<EOF
  2597. #define HAVE_LIBAUDIO 1
  2598. EOF
  2599. LIBS="-laudio $LIBS"
  2600. else
  2601. { { echo "$as_me:2830: error: IRIX audio support requires the audio library!" >&5
  2602. echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
  2603. { (exit 1); exit 1; }; }
  2604. fi
  2605. ;;
  2606. *-apple*)
  2607. # Check for CoreAudio framework
  2608. echo "$as_me:2839: checking for CoreAudio/CoreAudio.h" >&5
  2609. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  2610. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  2611. echo $ECHO_N "(cached) $ECHO_C" >&6
  2612. else
  2613. cat >conftest.$ac_ext <<_ACEOF
  2614. #line 2845 "configure"
  2615. #include "confdefs.h"
  2616. #include <CoreAudio/CoreAudio.h>
  2617. _ACEOF
  2618. if { (eval echo "$as_me:2849: \"$ac_cpp conftest.$ac_ext\"") >&5
  2619. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2620. ac_status=$?
  2621. egrep -v '^ *\+' conftest.er1 >conftest.err
  2622. rm -f conftest.er1
  2623. cat conftest.err >&5
  2624. echo "$as_me:2855: \$? = $ac_status" >&5
  2625. (exit $ac_status); } >/dev/null; then
  2626. if test -s conftest.err; then
  2627. ac_cpp_err=$ac_c_preproc_warn_flag
  2628. else
  2629. ac_cpp_err=
  2630. fi
  2631. else
  2632. ac_cpp_err=yes
  2633. fi
  2634. if test -z "$ac_cpp_err"; then
  2635. ac_cv_header_CoreAudio_CoreAudio_h=yes
  2636. else
  2637. echo "$as_me: failed program was:" >&5
  2638. cat conftest.$ac_ext >&5
  2639. ac_cv_header_CoreAudio_CoreAudio_h=no
  2640. fi
  2641. rm -f conftest.err conftest.$ac_ext
  2642. fi
  2643. echo "$as_me:2874: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  2644. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  2645. if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  2646. sound_api=-D__MACOSX_CORE__
  2647. else
  2648. { { echo "$as_me:2880: error: CoreAudio header files not found!" >&5
  2649. echo "$as_me: error: CoreAudio header files not found!" >&2;}
  2650. { (exit 1); exit 1; }; }
  2651. fi
  2652. frameworks="-framework CoreAudio"
  2653. echo "$as_me:2887: checking for printf in -lstdc++" >&5
  2654. echo $ECHO_N "checking for printf in -lstdc++... $ECHO_C" >&6
  2655. if test "${ac_cv_lib_stdcpp_printf+set}" = set; then
  2656. echo $ECHO_N "(cached) $ECHO_C" >&6
  2657. else
  2658. ac_check_lib_save_LIBS=$LIBS
  2659. LIBS="-lstdc++ $LIBS"
  2660. cat >conftest.$ac_ext <<_ACEOF
  2661. #line 2895 "configure"
  2662. #include "confdefs.h"
  2663. /* Override any gcc2 internal prototype to avoid an error. */
  2664. #ifdef __cplusplus
  2665. extern "C"
  2666. #endif
  2667. /* We use char because int might match the return type of a gcc2
  2668. builtin and then its argument prototype would still apply. */
  2669. char printf ();
  2670. int
  2671. main ()
  2672. {
  2673. printf ();
  2674. ;
  2675. return 0;
  2676. }
  2677. _ACEOF
  2678. rm -f conftest.$ac_objext conftest$ac_exeext
  2679. if { (eval echo "$as_me:2914: \"$ac_link\"") >&5
  2680. (eval $ac_link) 2>&5
  2681. ac_status=$?
  2682. echo "$as_me:2917: \$? = $ac_status" >&5
  2683. (exit $ac_status); } &&
  2684. { ac_try='test -s conftest$ac_exeext'
  2685. { (eval echo "$as_me:2920: \"$ac_try\"") >&5
  2686. (eval $ac_try) 2>&5
  2687. ac_status=$?
  2688. echo "$as_me:2923: \$? = $ac_status" >&5
  2689. (exit $ac_status); }; }; then
  2690. ac_cv_lib_stdcpp_printf=yes
  2691. else
  2692. echo "$as_me: failed program was:" >&5
  2693. cat conftest.$ac_ext >&5
  2694. ac_cv_lib_stdcpp_printf=no
  2695. fi
  2696. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2697. LIBS=$ac_check_lib_save_LIBS
  2698. fi
  2699. echo "$as_me:2934: result: $ac_cv_lib_stdcpp_printf" >&5
  2700. echo "${ECHO_T}$ac_cv_lib_stdcpp_printf" >&6
  2701. if test $ac_cv_lib_stdcpp_printf = yes; then
  2702. cat >>confdefs.h <<EOF
  2703. #define HAVE_LIBSTDC__ 1
  2704. EOF
  2705. LIBS="-lstdc++ $LIBS"
  2706. else
  2707. { { echo "$as_me:2944: error: RtAudio requires the C++ library!" >&5
  2708. echo "$as_me: error: RtAudio requires the C++ library!" >&2;}
  2709. { (exit 1); exit 1; }; }
  2710. fi
  2711. ;;
  2712. *)
  2713. # Default case for unknown realtime systems.
  2714. { { echo "$as_me:2953: error: Unknown system type for realtime support!" >&5
  2715. echo "$as_me: error: Unknown system type for realtime support!" >&2;}
  2716. { (exit 1); exit 1; }; }
  2717. ;;
  2718. esac
  2719. # Checks for library functions.
  2720. if test $ac_cv_c_compiler_gnu = yes; then
  2721. echo "$as_me:2961: checking whether $CC needs -traditional" >&5
  2722. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  2723. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  2724. echo $ECHO_N "(cached) $ECHO_C" >&6
  2725. else
  2726. ac_pattern="Autoconf.*'x'"
  2727. cat >conftest.$ac_ext <<_ACEOF
  2728. #line 2968 "configure"
  2729. #include "confdefs.h"
  2730. #include <sgtty.h>
  2731. Autoconf TIOCGETP
  2732. _ACEOF
  2733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2734. egrep "$ac_pattern" >/dev/null 2>&1; then
  2735. ac_cv_prog_gcc_traditional=yes
  2736. else
  2737. ac_cv_prog_gcc_traditional=no
  2738. fi
  2739. rm -f conftest*
  2740. if test $ac_cv_prog_gcc_traditional = no; then
  2741. cat >conftest.$ac_ext <<_ACEOF
  2742. #line 2983 "configure"
  2743. #include "confdefs.h"
  2744. #include <termio.h>
  2745. Autoconf TCGETA
  2746. _ACEOF
  2747. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2748. egrep "$ac_pattern" >/dev/null 2>&1; then
  2749. ac_cv_prog_gcc_traditional=yes
  2750. fi
  2751. rm -f conftest*
  2752. fi
  2753. fi
  2754. echo "$as_me:2996: result: $ac_cv_prog_gcc_traditional" >&5
  2755. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  2756. if test $ac_cv_prog_gcc_traditional = yes; then
  2757. CC="$CC -traditional"
  2758. fi
  2759. fi
  2760. cat >confcache <<\_ACEOF
  2761. # This file is a shell script that caches the results of configure
  2762. # tests run on this system so they can be shared between configure
  2763. # scripts and configure runs, see configure's option --config-cache.
  2764. # It is not useful on other systems. If it contains results you don't
  2765. # want to keep, you may remove or edit it.
  2766. #
  2767. # config.status only pays attention to the cache file if you give it
  2768. # the --recheck option to rerun configure.
  2769. #
  2770. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  2771. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2772. # following values.
  2773. _ACEOF
  2774. # The following way of writing the cache mishandles newlines in values,
  2775. # but we know of no workaround that is simple, portable, and efficient.
  2776. # So, don't put newlines in cache variables' values.
  2777. # Ultrix sh set writes to stderr and can't be redirected directly,
  2778. # and sets the high bit in the cache file unless we assign to the vars.
  2779. {
  2780. (set) 2>&1 |
  2781. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2782. *ac_space=\ *)
  2783. # `set' does not quote correctly, so add quotes (double-quote
  2784. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2785. sed -n \
  2786. "s/'/'\\\\''/g;
  2787. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2788. ;;
  2789. *)
  2790. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2791. sed -n \
  2792. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2793. ;;
  2794. esac;
  2795. } |
  2796. sed '
  2797. t clear
  2798. : clear
  2799. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2800. t end
  2801. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2802. : end' >>confcache
  2803. if cmp -s $cache_file confcache; then :; else
  2804. if test -w $cache_file; then
  2805. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  2806. cat confcache >$cache_file
  2807. else
  2808. echo "not updating unwritable cache $cache_file"
  2809. fi
  2810. fi
  2811. rm -f confcache
  2812. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2813. # Let make expand exec_prefix.
  2814. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2815. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  2816. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2817. # trailing colons and then remove the whole line if VPATH becomes empty
  2818. # (actually we leave an empty line to preserve line numbers).
  2819. if test "x$srcdir" = x.; then
  2820. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  2821. s/:*\$(srcdir):*/:/;
  2822. s/:*\${srcdir}:*/:/;
  2823. s/:*@srcdir@:*/:/;
  2824. s/^\([^=]*=[ ]*\):*/\1/;
  2825. s/:*$//;
  2826. s/^[^=]*=[ ]*$//;
  2827. }'
  2828. fi
  2829. # Transform confdefs.h into DEFS.
  2830. # Protect against shell expansion while executing Makefile rules.
  2831. # Protect against Makefile macro expansion.
  2832. #
  2833. # If the first sed substitution is executed (which looks for macros that
  2834. # take arguments), then we branch to the quote section. Otherwise,
  2835. # look for a macro that doesn't take arguments.
  2836. cat >confdef2opt.sed <<\EOF
  2837. t clear
  2838. : clear
  2839. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  2840. t quote
  2841. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  2842. t quote
  2843. d
  2844. : quote
  2845. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  2846. s,\[,\\&,g
  2847. s,\],\\&,g
  2848. s,\$,$$,g
  2849. p
  2850. EOF
  2851. # We use echo to avoid assuming a particular line-breaking character.
  2852. # The extra dot is to prevent the shell from consuming trailing
  2853. # line-breaks from the sub-command output. A line-break within
  2854. # single-quotes doesn't work because, if this script is created in a
  2855. # platform that uses two characters for line-breaks (e.g., DOS), tr
  2856. # would break.
  2857. ac_LF_and_DOT=`echo; echo .`
  2858. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  2859. rm -f confdef2opt.sed
  2860. : ${CONFIG_STATUS=./config.status}
  2861. ac_clean_files_save=$ac_clean_files
  2862. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2863. { echo "$as_me:3112: creating $CONFIG_STATUS" >&5
  2864. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2865. cat >$CONFIG_STATUS <<_ACEOF
  2866. #! $SHELL
  2867. # Generated automatically by configure.
  2868. # Run this file to recreate the current configuration.
  2869. # Compiler output produced by configure, useful for debugging
  2870. # configure, is in config.log if it exists.
  2871. debug=false
  2872. SHELL=\${CONFIG_SHELL-$SHELL}
  2873. ac_cs_invocation="\$0 \$@"
  2874. _ACEOF
  2875. cat >>$CONFIG_STATUS <<\_ACEOF
  2876. # Be Bourne compatible
  2877. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  2878. emulate sh
  2879. NULLCMD=:
  2880. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  2881. set -o posix
  2882. fi
  2883. # Name of the executable.
  2884. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  2885. if expr a : '\(a\)' >/dev/null 2>&1; then
  2886. as_expr=expr
  2887. else
  2888. as_expr=false
  2889. fi
  2890. rm -f conf$$ conf$$.exe conf$$.file
  2891. echo >conf$$.file
  2892. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2893. # We could just check for DJGPP; but this test a) works b) is more generic
  2894. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  2895. if test -f conf$$.exe; then
  2896. # Don't use ln at all; we don't have any links
  2897. as_ln_s='cp -p'
  2898. else
  2899. as_ln_s='ln -s'
  2900. fi
  2901. elif ln conf$$.file conf$$ 2>/dev/null; then
  2902. as_ln_s=ln
  2903. else
  2904. as_ln_s='cp -p'
  2905. fi
  2906. rm -f conf$$ conf$$.exe conf$$.file
  2907. as_executable_p="test -f"
  2908. # Support unset when possible.
  2909. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  2910. as_unset=unset
  2911. else
  2912. as_unset=false
  2913. fi
  2914. # NLS nuisances.
  2915. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  2916. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  2917. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  2918. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  2919. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  2920. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  2921. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  2922. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  2923. # IFS
  2924. # We need space, tab and new line, in precisely that order.
  2925. as_nl='
  2926. '
  2927. IFS=" $as_nl"
  2928. # CDPATH.
  2929. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  2930. exec 6>&1
  2931. _ACEOF
  2932. # Files that config.status was made for.
  2933. if test -n "$ac_config_files"; then
  2934. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  2935. fi
  2936. if test -n "$ac_config_headers"; then
  2937. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  2938. fi
  2939. if test -n "$ac_config_links"; then
  2940. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  2941. fi
  2942. if test -n "$ac_config_commands"; then
  2943. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  2944. fi
  2945. cat >>$CONFIG_STATUS <<\EOF
  2946. ac_cs_usage="\
  2947. \`$as_me' instantiates files from templates according to the
  2948. current configuration.
  2949. Usage: $0 [OPTIONS] [FILE]...
  2950. -h, --help print this help, then exit
  2951. -V, --version print version number, then exit
  2952. -d, --debug don't remove temporary files
  2953. --recheck update $as_me by reconfiguring in the same conditions
  2954. --file=FILE[:TEMPLATE]
  2955. instantiate the configuration file FILE
  2956. Configuration files:
  2957. $config_files
  2958. Report bugs to <bug-autoconf@gnu.org>."
  2959. EOF
  2960. cat >>$CONFIG_STATUS <<EOF
  2961. ac_cs_version="\\
  2962. RtAudio config.status 2.1
  2963. configured by $0, generated by GNU Autoconf 2.52,
  2964. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  2965. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  2966. Free Software Foundation, Inc.
  2967. This config.status script is free software; the Free Software Foundation
  2968. gives unlimited permission to copy, distribute and modify it."
  2969. srcdir=$srcdir
  2970. EOF
  2971. cat >>$CONFIG_STATUS <<\EOF
  2972. # If no file are specified by the user, then we need to provide default
  2973. # value. By we need to know if files were specified by the user.
  2974. ac_need_defaults=:
  2975. while test $# != 0
  2976. do
  2977. case $1 in
  2978. --*=*)
  2979. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  2980. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  2981. shift
  2982. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  2983. shift
  2984. ;;
  2985. -*);;
  2986. *) # This is not an option, so the user has probably given explicit
  2987. # arguments.
  2988. ac_need_defaults=false;;
  2989. esac
  2990. case $1 in
  2991. # Handling of the options.
  2992. EOF
  2993. cat >>$CONFIG_STATUS <<EOF
  2994. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2995. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  2996. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  2997. EOF
  2998. cat >>$CONFIG_STATUS <<\EOF
  2999. --version | --vers* | -V )
  3000. echo "$ac_cs_version"; exit 0 ;;
  3001. --he | --h)
  3002. # Conflict between --help and --header
  3003. { { echo "$as_me:3279: error: ambiguous option: $1
  3004. Try \`$0 --help' for more information." >&5
  3005. echo "$as_me: error: ambiguous option: $1
  3006. Try \`$0 --help' for more information." >&2;}
  3007. { (exit 1); exit 1; }; };;
  3008. --help | --hel | -h )
  3009. echo "$ac_cs_usage"; exit 0 ;;
  3010. --debug | --d* | -d )
  3011. debug=: ;;
  3012. --file | --fil | --fi | --f )
  3013. shift
  3014. CONFIG_FILES="$CONFIG_FILES $1"
  3015. ac_need_defaults=false;;
  3016. --header | --heade | --head | --hea )
  3017. shift
  3018. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  3019. ac_need_defaults=false;;
  3020. # This is an error.
  3021. -*) { { echo "$as_me:3298: error: unrecognized option: $1
  3022. Try \`$0 --help' for more information." >&5
  3023. echo "$as_me: error: unrecognized option: $1
  3024. Try \`$0 --help' for more information." >&2;}
  3025. { (exit 1); exit 1; }; } ;;
  3026. *) ac_config_targets="$ac_config_targets $1" ;;
  3027. esac
  3028. shift
  3029. done
  3030. exec 5>>config.log
  3031. cat >&5 << _ACEOF
  3032. ## ----------------------- ##
  3033. ## Running config.status. ##
  3034. ## ----------------------- ##
  3035. This file was extended by $as_me (RtAudio 2.1) 2.52, executed with
  3036. CONFIG_FILES = $CONFIG_FILES
  3037. CONFIG_HEADERS = $CONFIG_HEADERS
  3038. CONFIG_LINKS = $CONFIG_LINKS
  3039. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3040. > $ac_cs_invocation
  3041. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  3042. _ACEOF
  3043. EOF
  3044. cat >>$CONFIG_STATUS <<\EOF
  3045. for ac_config_target in $ac_config_targets
  3046. do
  3047. case "$ac_config_target" in
  3048. # Handling of arguments.
  3049. "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  3050. *) { { echo "$as_me:3334: error: invalid argument: $ac_config_target" >&5
  3051. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3052. { (exit 1); exit 1; }; };;
  3053. esac
  3054. done
  3055. # If the user did not use the arguments to specify the items to instantiate,
  3056. # then the envvar interface is used. Set only those that are not.
  3057. # We use the long form for the default assignment because of an extremely
  3058. # bizarre bug on SunOS 4.1.3.
  3059. if $ac_need_defaults; then
  3060. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3061. fi
  3062. # Create a temporary directory, and hook for its removal unless debugging.
  3063. $debug ||
  3064. {
  3065. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  3066. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3067. }
  3068. # Create a (secure) tmp directory for tmp files.
  3069. : ${TMPDIR=/tmp}
  3070. {
  3071. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  3072. test -n "$tmp" && test -d "$tmp"
  3073. } ||
  3074. {
  3075. tmp=$TMPDIR/cs$$-$RANDOM
  3076. (umask 077 && mkdir $tmp)
  3077. } ||
  3078. {
  3079. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  3080. { (exit 1); exit 1; }
  3081. }
  3082. EOF
  3083. cat >>$CONFIG_STATUS <<EOF
  3084. #
  3085. # CONFIG_FILES section.
  3086. #
  3087. # No need to generate the scripts if there are no CONFIG_FILES.
  3088. # This happens for instance when ./config.status config.h
  3089. if test -n "\$CONFIG_FILES"; then
  3090. # Protect against being on the right side of a sed subst in config.status.
  3091. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  3092. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  3093. s,@SHELL@,$SHELL,;t t
  3094. s,@exec_prefix@,$exec_prefix,;t t
  3095. s,@prefix@,$prefix,;t t
  3096. s,@program_transform_name@,$program_transform_name,;t t
  3097. s,@bindir@,$bindir,;t t
  3098. s,@sbindir@,$sbindir,;t t
  3099. s,@libexecdir@,$libexecdir,;t t
  3100. s,@datadir@,$datadir,;t t
  3101. s,@sysconfdir@,$sysconfdir,;t t
  3102. s,@sharedstatedir@,$sharedstatedir,;t t
  3103. s,@localstatedir@,$localstatedir,;t t
  3104. s,@libdir@,$libdir,;t t
  3105. s,@includedir@,$includedir,;t t
  3106. s,@oldincludedir@,$oldincludedir,;t t
  3107. s,@infodir@,$infodir,;t t
  3108. s,@mandir@,$mandir,;t t
  3109. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  3110. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  3111. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  3112. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  3113. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  3114. s,@build_alias@,$build_alias,;t t
  3115. s,@host_alias@,$host_alias,;t t
  3116. s,@target_alias@,$target_alias,;t t
  3117. s,@ECHO_C@,$ECHO_C,;t t
  3118. s,@ECHO_N@,$ECHO_N,;t t
  3119. s,@ECHO_T@,$ECHO_T,;t t
  3120. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  3121. s,@DEFS@,$DEFS,;t t
  3122. s,@LIBS@,$LIBS,;t t
  3123. s,@CC@,$CC,;t t
  3124. s,@CFLAGS@,$CFLAGS,;t t
  3125. s,@LDFLAGS@,$LDFLAGS,;t t
  3126. s,@CPPFLAGS@,$CPPFLAGS,;t t
  3127. s,@ac_ct_CC@,$ac_ct_CC,;t t
  3128. s,@EXEEXT@,$EXEEXT,;t t
  3129. s,@OBJEXT@,$OBJEXT,;t t
  3130. s,@CXX@,$CXX,;t t
  3131. s,@CXXFLAGS@,$CXXFLAGS,;t t
  3132. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  3133. s,@CPP@,$CPP,;t t
  3134. s,@debug@,$debug,;t t
  3135. s,@cflags@,$cflags,;t t
  3136. s,@object_path@,$object_path,;t t
  3137. s,@warn@,$warn,;t t
  3138. s,@build@,$build,;t t
  3139. s,@build_cpu@,$build_cpu,;t t
  3140. s,@build_vendor@,$build_vendor,;t t
  3141. s,@build_os@,$build_os,;t t
  3142. s,@host@,$host,;t t
  3143. s,@host_cpu@,$host_cpu,;t t
  3144. s,@host_vendor@,$host_vendor,;t t
  3145. s,@host_os@,$host_os,;t t
  3146. s,@sound_api@,$sound_api,;t t
  3147. s,@frameworks@,$frameworks,;t t
  3148. CEOF
  3149. EOF
  3150. cat >>$CONFIG_STATUS <<\EOF
  3151. # Split the substitutions into bite-sized pieces for seds with
  3152. # small command number limits, like on Digital OSF/1 and HP-UX.
  3153. ac_max_sed_lines=48
  3154. ac_sed_frag=1 # Number of current file.
  3155. ac_beg=1 # First line for current file.
  3156. ac_end=$ac_max_sed_lines # Line after last line for current file.
  3157. ac_more_lines=:
  3158. ac_sed_cmds=
  3159. while $ac_more_lines; do
  3160. if test $ac_beg -gt 1; then
  3161. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3162. else
  3163. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3164. fi
  3165. if test ! -s $tmp/subs.frag; then
  3166. ac_more_lines=false
  3167. else
  3168. # The purpose of the label and of the branching condition is to
  3169. # speed up the sed processing (if there are no `@' at all, there
  3170. # is no need to browse any of the substitutions).
  3171. # These are the two extra sed commands mentioned above.
  3172. (echo ':t
  3173. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  3174. if test -z "$ac_sed_cmds"; then
  3175. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  3176. else
  3177. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  3178. fi
  3179. ac_sed_frag=`expr $ac_sed_frag + 1`
  3180. ac_beg=$ac_end
  3181. ac_end=`expr $ac_end + $ac_max_sed_lines`
  3182. fi
  3183. done
  3184. if test -z "$ac_sed_cmds"; then
  3185. ac_sed_cmds=cat
  3186. fi
  3187. fi # test -n "$CONFIG_FILES"
  3188. EOF
  3189. cat >>$CONFIG_STATUS <<\EOF
  3190. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  3191. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3192. case $ac_file in
  3193. - | *:- | *:-:* ) # input from stdin
  3194. cat >$tmp/stdin
  3195. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3196. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3197. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3198. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3199. * ) ac_file_in=$ac_file.in ;;
  3200. esac
  3201. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  3202. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3203. X"$ac_file" : 'X\(//\)[^/]' \| \
  3204. X"$ac_file" : 'X\(//\)$' \| \
  3205. X"$ac_file" : 'X\(/\)' \| \
  3206. . : '\(.\)' 2>/dev/null ||
  3207. echo X"$ac_file" |
  3208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3209. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3210. /^X\(\/\/\)$/{ s//\1/; q; }
  3211. /^X\(\/\).*/{ s//\1/; q; }
  3212. s/.*/./; q'`
  3213. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3214. { case "$ac_dir" in
  3215. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  3216. *) as_incr_dir=.;;
  3217. esac
  3218. as_dummy="$ac_dir"
  3219. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  3220. case $as_mkdir_dir in
  3221. # Skip DOS drivespec
  3222. ?:) as_incr_dir=$as_mkdir_dir ;;
  3223. *)
  3224. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  3225. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  3226. ;;
  3227. esac
  3228. done; }
  3229. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  3230. # A "../" for each directory in $ac_dir_suffix.
  3231. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  3232. else
  3233. ac_dir_suffix= ac_dots=
  3234. fi
  3235. case $srcdir in
  3236. .) ac_srcdir=.
  3237. if test -z "$ac_dots"; then
  3238. ac_top_srcdir=.
  3239. else
  3240. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  3241. fi ;;
  3242. [\\/]* | ?:[\\/]* )
  3243. ac_srcdir=$srcdir$ac_dir_suffix;
  3244. ac_top_srcdir=$srcdir ;;
  3245. *) # Relative path.
  3246. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  3247. ac_top_srcdir=$ac_dots$srcdir ;;
  3248. esac
  3249. if test x"$ac_file" != x-; then
  3250. { echo "$as_me:3548: creating $ac_file" >&5
  3251. echo "$as_me: creating $ac_file" >&6;}
  3252. rm -f "$ac_file"
  3253. fi
  3254. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3255. # use $as_me), people would be surprised to read:
  3256. # /* config.h. Generated automatically by config.status. */
  3257. configure_input="Generated automatically from `echo $ac_file_in |
  3258. sed 's,.*/,,'` by configure."
  3259. # First look for the input files in the build tree, otherwise in the
  3260. # src tree.
  3261. ac_file_inputs=`IFS=:
  3262. for f in $ac_file_in; do
  3263. case $f in
  3264. -) echo $tmp/stdin ;;
  3265. [\\/$]*)
  3266. # Absolute (can't be DOS-style, as IFS=:)
  3267. test -f "$f" || { { echo "$as_me:3566: error: cannot find input file: $f" >&5
  3268. echo "$as_me: error: cannot find input file: $f" >&2;}
  3269. { (exit 1); exit 1; }; }
  3270. echo $f;;
  3271. *) # Relative
  3272. if test -f "$f"; then
  3273. # Build tree
  3274. echo $f
  3275. elif test -f "$srcdir/$f"; then
  3276. # Source tree
  3277. echo $srcdir/$f
  3278. else
  3279. # /dev/null tree
  3280. { { echo "$as_me:3579: error: cannot find input file: $f" >&5
  3281. echo "$as_me: error: cannot find input file: $f" >&2;}
  3282. { (exit 1); exit 1; }; }
  3283. fi;;
  3284. esac
  3285. done` || { (exit 1); exit 1; }
  3286. EOF
  3287. cat >>$CONFIG_STATUS <<EOF
  3288. sed "$ac_vpsub
  3289. $extrasub
  3290. EOF
  3291. cat >>$CONFIG_STATUS <<\EOF
  3292. :t
  3293. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3294. s,@configure_input@,$configure_input,;t t
  3295. s,@srcdir@,$ac_srcdir,;t t
  3296. s,@top_srcdir@,$ac_top_srcdir,;t t
  3297. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  3298. rm -f $tmp/stdin
  3299. if test x"$ac_file" != x-; then
  3300. mv $tmp/out $ac_file
  3301. else
  3302. cat $tmp/out
  3303. rm -f $tmp/out
  3304. fi
  3305. done
  3306. EOF
  3307. cat >>$CONFIG_STATUS <<\EOF
  3308. { (exit 0); exit 0; }
  3309. EOF
  3310. chmod +x $CONFIG_STATUS
  3311. ac_clean_files=$ac_clean_files_save
  3312. # configure is writing to config.log, and then calls config.status.
  3313. # config.status does its own redirection, appending to config.log.
  3314. # Unfortunately, on DOS this fails, as config.log is still kept open
  3315. # by configure, so config.status won't be able to write to it; its
  3316. # output is simply discarded. So we exec the FD to /dev/null,
  3317. # effectively closing config.log, so it can be properly (re)opened and
  3318. # appended to by config.status. When coming back to configure, we
  3319. # need to make the FD available again.
  3320. if test "$no_create" != yes; then
  3321. ac_cs_success=:
  3322. exec 5>/dev/null
  3323. $SHELL $CONFIG_STATUS || ac_cs_success=false
  3324. exec 5>>config.log
  3325. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3326. # would make configure fail if this is the last instruction.
  3327. $ac_cs_success || { (exit 1); exit 1; }
  3328. fi