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.

5770 lines
166KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for RtAudio 4.0.
  4. #
  5. # Report bugs to <gary@music.mcgill.ca>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='RtAudio'
  237. PACKAGE_TARNAME='rtaudio'
  238. PACKAGE_VERSION='4.0'
  239. PACKAGE_STRING='RtAudio 4.0'
  240. PACKAGE_BUGREPORT='gary@music.mcgill.ca'
  241. ac_unique_file="RtAudio.cpp"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GXX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR CPP EGREP debug cflags object_path warn build build_cpu build_vendor build_os host host_cpu host_vendor host_os sound_api audio_apis frameworks objects LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CXX_set=${CXX+set}
  678. ac_env_CXX_value=$CXX
  679. ac_cv_env_CXX_set=${CXX+set}
  680. ac_cv_env_CXX_value=$CXX
  681. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  682. ac_env_CXXFLAGS_value=$CXXFLAGS
  683. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  684. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. System types:
  739. --build=BUILD configure for building on BUILD [guessed]
  740. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  741. _ACEOF
  742. fi
  743. if test -n "$ac_init_help"; then
  744. case $ac_init_help in
  745. short | recursive ) echo "Configuration of RtAudio 4.0:";;
  746. esac
  747. cat <<\_ACEOF
  748. Optional Features:
  749. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  750. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  751. --enable-debug = enable various debug output
  752. Optional Packages:
  753. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  754. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  755. --with-jack = choose JACK server support (mac and linux only)
  756. --with-alsa = choose native ALSA API support (linux only)
  757. --with-oss = choose OSS API support (linux only)
  758. --with-jack = choose JACK server support (unix only)
  759. --with-core = choose CoreAudio API support (mac only)
  760. --with-asio = choose ASIO API support (windoze only)
  761. --with-ds = choose DirectSound API support (windoze only)
  762. Some influential environment variables:
  763. CC C compiler command
  764. CFLAGS C compiler flags
  765. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  766. nonstandard directory <lib dir>
  767. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  768. headers in a nonstandard directory <include dir>
  769. CXX C++ compiler command
  770. CXXFLAGS C++ compiler flags
  771. CPP C preprocessor
  772. Use these variables to override the choices made by `configure' or to help
  773. it to find libraries and programs with nonstandard names/locations.
  774. Report bugs to <gary@music.mcgill.ca>.
  775. _ACEOF
  776. fi
  777. if test "$ac_init_help" = "recursive"; then
  778. # If there are subdirs, report their specific --help.
  779. ac_popdir=`pwd`
  780. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  781. test -d $ac_dir || continue
  782. ac_builddir=.
  783. if test "$ac_dir" != .; then
  784. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  785. # A "../" for each directory in $ac_dir_suffix.
  786. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  787. else
  788. ac_dir_suffix= ac_top_builddir=
  789. fi
  790. case $srcdir in
  791. .) # No --srcdir option. We are building in place.
  792. ac_srcdir=.
  793. if test -z "$ac_top_builddir"; then
  794. ac_top_srcdir=.
  795. else
  796. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  797. fi ;;
  798. [\\/]* | ?:[\\/]* ) # Absolute path.
  799. ac_srcdir=$srcdir$ac_dir_suffix;
  800. ac_top_srcdir=$srcdir ;;
  801. *) # Relative path.
  802. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  803. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  804. esac
  805. # Do not use `cd foo && pwd` to compute absolute paths, because
  806. # the directories may not exist.
  807. case `pwd` in
  808. .) ac_abs_builddir="$ac_dir";;
  809. *)
  810. case "$ac_dir" in
  811. .) ac_abs_builddir=`pwd`;;
  812. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  813. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  814. esac;;
  815. esac
  816. case $ac_abs_builddir in
  817. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  818. *)
  819. case ${ac_top_builddir}. in
  820. .) ac_abs_top_builddir=$ac_abs_builddir;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  822. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  823. esac;;
  824. esac
  825. case $ac_abs_builddir in
  826. .) ac_abs_srcdir=$ac_srcdir;;
  827. *)
  828. case $ac_srcdir in
  829. .) ac_abs_srcdir=$ac_abs_builddir;;
  830. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  831. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  832. esac;;
  833. esac
  834. case $ac_abs_builddir in
  835. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  836. *)
  837. case $ac_top_srcdir in
  838. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  839. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  840. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  841. esac;;
  842. esac
  843. cd $ac_dir
  844. # Check for guested configure; otherwise get Cygnus style configure.
  845. if test -f $ac_srcdir/configure.gnu; then
  846. echo
  847. $SHELL $ac_srcdir/configure.gnu --help=recursive
  848. elif test -f $ac_srcdir/configure; then
  849. echo
  850. $SHELL $ac_srcdir/configure --help=recursive
  851. elif test -f $ac_srcdir/configure.ac ||
  852. test -f $ac_srcdir/configure.in; then
  853. echo
  854. $ac_configure --help
  855. else
  856. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  857. fi
  858. cd $ac_popdir
  859. done
  860. fi
  861. test -n "$ac_init_help" && exit 0
  862. if $ac_init_version; then
  863. cat <<\_ACEOF
  864. RtAudio configure 4.0
  865. generated by GNU Autoconf 2.59
  866. Copyright (C) 2003 Free Software Foundation, Inc.
  867. This configure script is free software; the Free Software Foundation
  868. gives unlimited permission to copy, distribute and modify it.
  869. _ACEOF
  870. exit 0
  871. fi
  872. exec 5>config.log
  873. cat >&5 <<_ACEOF
  874. This file contains any messages produced by compilers while
  875. running configure, to aid debugging if configure makes a mistake.
  876. It was created by RtAudio $as_me 4.0, which was
  877. generated by GNU Autoconf 2.59. Invocation command line was
  878. $ $0 $@
  879. _ACEOF
  880. {
  881. cat <<_ASUNAME
  882. ## --------- ##
  883. ## Platform. ##
  884. ## --------- ##
  885. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  886. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  887. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  888. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  889. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  890. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  891. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  892. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  893. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  894. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  895. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  896. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  897. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  898. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  899. _ASUNAME
  900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  901. for as_dir in $PATH
  902. do
  903. IFS=$as_save_IFS
  904. test -z "$as_dir" && as_dir=.
  905. echo "PATH: $as_dir"
  906. done
  907. } >&5
  908. cat >&5 <<_ACEOF
  909. ## ----------- ##
  910. ## Core tests. ##
  911. ## ----------- ##
  912. _ACEOF
  913. # Keep a trace of the command line.
  914. # Strip out --no-create and --no-recursion so they do not pile up.
  915. # Strip out --silent because we don't want to record it for future runs.
  916. # Also quote any args containing shell meta-characters.
  917. # Make two passes to allow for proper duplicate-argument suppression.
  918. ac_configure_args=
  919. ac_configure_args0=
  920. ac_configure_args1=
  921. ac_sep=
  922. ac_must_keep_next=false
  923. for ac_pass in 1 2
  924. do
  925. for ac_arg
  926. do
  927. case $ac_arg in
  928. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  930. | -silent | --silent | --silen | --sile | --sil)
  931. continue ;;
  932. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  933. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  934. esac
  935. case $ac_pass in
  936. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  937. 2)
  938. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  939. if test $ac_must_keep_next = true; then
  940. ac_must_keep_next=false # Got value, back to normal.
  941. else
  942. case $ac_arg in
  943. *=* | --config-cache | -C | -disable-* | --disable-* \
  944. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  945. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  946. | -with-* | --with-* | -without-* | --without-* | --x)
  947. case "$ac_configure_args0 " in
  948. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  949. esac
  950. ;;
  951. -* ) ac_must_keep_next=true ;;
  952. esac
  953. fi
  954. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  955. # Get rid of the leading space.
  956. ac_sep=" "
  957. ;;
  958. esac
  959. done
  960. done
  961. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  962. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  963. # When interrupted or exit'd, cleanup temporary files, and complete
  964. # config.log. We remove comments because anyway the quotes in there
  965. # would cause problems or look ugly.
  966. # WARNING: Be sure not to use single quotes in there, as some shells,
  967. # such as our DU 5.0 friend, will then `close' the trap.
  968. trap 'exit_status=$?
  969. # Save into config.log some information that might help in debugging.
  970. {
  971. echo
  972. cat <<\_ASBOX
  973. ## ---------------- ##
  974. ## Cache variables. ##
  975. ## ---------------- ##
  976. _ASBOX
  977. echo
  978. # The following way of writing the cache mishandles newlines in values,
  979. {
  980. (set) 2>&1 |
  981. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  982. *ac_space=\ *)
  983. sed -n \
  984. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  985. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  986. ;;
  987. *)
  988. sed -n \
  989. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  990. ;;
  991. esac;
  992. }
  993. echo
  994. cat <<\_ASBOX
  995. ## ----------------- ##
  996. ## Output variables. ##
  997. ## ----------------- ##
  998. _ASBOX
  999. echo
  1000. for ac_var in $ac_subst_vars
  1001. do
  1002. eval ac_val=$`echo $ac_var`
  1003. echo "$ac_var='"'"'$ac_val'"'"'"
  1004. done | sort
  1005. echo
  1006. if test -n "$ac_subst_files"; then
  1007. cat <<\_ASBOX
  1008. ## ------------- ##
  1009. ## Output files. ##
  1010. ## ------------- ##
  1011. _ASBOX
  1012. echo
  1013. for ac_var in $ac_subst_files
  1014. do
  1015. eval ac_val=$`echo $ac_var`
  1016. echo "$ac_var='"'"'$ac_val'"'"'"
  1017. done | sort
  1018. echo
  1019. fi
  1020. if test -s confdefs.h; then
  1021. cat <<\_ASBOX
  1022. ## ----------- ##
  1023. ## confdefs.h. ##
  1024. ## ----------- ##
  1025. _ASBOX
  1026. echo
  1027. sed "/^$/d" confdefs.h | sort
  1028. echo
  1029. fi
  1030. test "$ac_signal" != 0 &&
  1031. echo "$as_me: caught signal $ac_signal"
  1032. echo "$as_me: exit $exit_status"
  1033. } >&5
  1034. rm -f core *.core &&
  1035. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1036. exit $exit_status
  1037. ' 0
  1038. for ac_signal in 1 2 13 15; do
  1039. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1040. done
  1041. ac_signal=0
  1042. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1043. rm -rf conftest* confdefs.h
  1044. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1045. echo >confdefs.h
  1046. # Predefined preprocessor variables.
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_NAME "$PACKAGE_NAME"
  1049. _ACEOF
  1050. cat >>confdefs.h <<_ACEOF
  1051. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1052. _ACEOF
  1053. cat >>confdefs.h <<_ACEOF
  1054. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1055. _ACEOF
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_STRING "$PACKAGE_STRING"
  1058. _ACEOF
  1059. cat >>confdefs.h <<_ACEOF
  1060. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1061. _ACEOF
  1062. # Let the site file select an alternate cache file if it wants to.
  1063. # Prefer explicitly selected file to automatically selected ones.
  1064. if test -z "$CONFIG_SITE"; then
  1065. if test "x$prefix" != xNONE; then
  1066. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1067. else
  1068. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1069. fi
  1070. fi
  1071. for ac_site_file in $CONFIG_SITE; do
  1072. if test -r "$ac_site_file"; then
  1073. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1074. echo "$as_me: loading site script $ac_site_file" >&6;}
  1075. sed 's/^/| /' "$ac_site_file" >&5
  1076. . "$ac_site_file"
  1077. fi
  1078. done
  1079. if test -r "$cache_file"; then
  1080. # Some versions of bash will fail to source /dev/null (special
  1081. # files actually), so we avoid doing that.
  1082. if test -f "$cache_file"; then
  1083. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1084. echo "$as_me: loading cache $cache_file" >&6;}
  1085. case $cache_file in
  1086. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1087. *) . ./$cache_file;;
  1088. esac
  1089. fi
  1090. else
  1091. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1092. echo "$as_me: creating cache $cache_file" >&6;}
  1093. >$cache_file
  1094. fi
  1095. # Check that the precious variables saved in the cache have kept the same
  1096. # value.
  1097. ac_cache_corrupted=false
  1098. for ac_var in `(set) 2>&1 |
  1099. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1100. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1101. eval ac_new_set=\$ac_env_${ac_var}_set
  1102. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1103. eval ac_new_val="\$ac_env_${ac_var}_value"
  1104. case $ac_old_set,$ac_new_set in
  1105. set,)
  1106. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1107. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1108. ac_cache_corrupted=: ;;
  1109. ,set)
  1110. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1111. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1112. ac_cache_corrupted=: ;;
  1113. ,);;
  1114. *)
  1115. if test "x$ac_old_val" != "x$ac_new_val"; then
  1116. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1117. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1118. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1119. echo "$as_me: former value: $ac_old_val" >&2;}
  1120. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1121. echo "$as_me: current value: $ac_new_val" >&2;}
  1122. ac_cache_corrupted=:
  1123. fi;;
  1124. esac
  1125. # Pass precious variables to config.status.
  1126. if test "$ac_new_set" = set; then
  1127. case $ac_new_val in
  1128. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1129. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1130. *) ac_arg=$ac_var=$ac_new_val ;;
  1131. esac
  1132. case " $ac_configure_args " in
  1133. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1134. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1135. esac
  1136. fi
  1137. done
  1138. if $ac_cache_corrupted; then
  1139. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1140. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1141. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1142. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1143. { (exit 1); exit 1; }; }
  1144. fi
  1145. ac_ext=c
  1146. ac_cpp='$CPP $CPPFLAGS'
  1147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1150. ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
  1151. # Fill GXX with something before test.
  1152. GXX="no"
  1153. # Checks for programs.
  1154. ac_ext=c
  1155. ac_cpp='$CPP $CPPFLAGS'
  1156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1159. if test -n "$ac_tool_prefix"; then
  1160. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1161. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1164. if test "${ac_cv_prog_CC+set}" = set; then
  1165. echo $ECHO_N "(cached) $ECHO_C" >&6
  1166. else
  1167. if test -n "$CC"; then
  1168. ac_cv_prog_CC="$CC" # Let the user override the test.
  1169. else
  1170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1171. for as_dir in $PATH
  1172. do
  1173. IFS=$as_save_IFS
  1174. test -z "$as_dir" && as_dir=.
  1175. for ac_exec_ext in '' $ac_executable_extensions; do
  1176. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1177. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1179. break 2
  1180. fi
  1181. done
  1182. done
  1183. fi
  1184. fi
  1185. CC=$ac_cv_prog_CC
  1186. if test -n "$CC"; then
  1187. echo "$as_me:$LINENO: result: $CC" >&5
  1188. echo "${ECHO_T}$CC" >&6
  1189. else
  1190. echo "$as_me:$LINENO: result: no" >&5
  1191. echo "${ECHO_T}no" >&6
  1192. fi
  1193. fi
  1194. if test -z "$ac_cv_prog_CC"; then
  1195. ac_ct_CC=$CC
  1196. # Extract the first word of "gcc", so it can be a program name with args.
  1197. set dummy gcc; ac_word=$2
  1198. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1199. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1200. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1201. echo $ECHO_N "(cached) $ECHO_C" >&6
  1202. else
  1203. if test -n "$ac_ct_CC"; then
  1204. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1205. else
  1206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1207. for as_dir in $PATH
  1208. do
  1209. IFS=$as_save_IFS
  1210. test -z "$as_dir" && as_dir=.
  1211. for ac_exec_ext in '' $ac_executable_extensions; do
  1212. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1213. ac_cv_prog_ac_ct_CC="gcc"
  1214. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1215. break 2
  1216. fi
  1217. done
  1218. done
  1219. fi
  1220. fi
  1221. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1222. if test -n "$ac_ct_CC"; then
  1223. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1224. echo "${ECHO_T}$ac_ct_CC" >&6
  1225. else
  1226. echo "$as_me:$LINENO: result: no" >&5
  1227. echo "${ECHO_T}no" >&6
  1228. fi
  1229. CC=$ac_ct_CC
  1230. else
  1231. CC="$ac_cv_prog_CC"
  1232. fi
  1233. if test -z "$CC"; then
  1234. if test -n "$ac_tool_prefix"; then
  1235. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1236. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1237. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1239. if test "${ac_cv_prog_CC+set}" = set; then
  1240. echo $ECHO_N "(cached) $ECHO_C" >&6
  1241. else
  1242. if test -n "$CC"; then
  1243. ac_cv_prog_CC="$CC" # Let the user override the test.
  1244. else
  1245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1246. for as_dir in $PATH
  1247. do
  1248. IFS=$as_save_IFS
  1249. test -z "$as_dir" && as_dir=.
  1250. for ac_exec_ext in '' $ac_executable_extensions; do
  1251. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1252. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1254. break 2
  1255. fi
  1256. done
  1257. done
  1258. fi
  1259. fi
  1260. CC=$ac_cv_prog_CC
  1261. if test -n "$CC"; then
  1262. echo "$as_me:$LINENO: result: $CC" >&5
  1263. echo "${ECHO_T}$CC" >&6
  1264. else
  1265. echo "$as_me:$LINENO: result: no" >&5
  1266. echo "${ECHO_T}no" >&6
  1267. fi
  1268. fi
  1269. if test -z "$ac_cv_prog_CC"; then
  1270. ac_ct_CC=$CC
  1271. # Extract the first word of "cc", so it can be a program name with args.
  1272. set dummy cc; ac_word=$2
  1273. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1275. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1276. echo $ECHO_N "(cached) $ECHO_C" >&6
  1277. else
  1278. if test -n "$ac_ct_CC"; then
  1279. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1280. else
  1281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1282. for as_dir in $PATH
  1283. do
  1284. IFS=$as_save_IFS
  1285. test -z "$as_dir" && as_dir=.
  1286. for ac_exec_ext in '' $ac_executable_extensions; do
  1287. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1288. ac_cv_prog_ac_ct_CC="cc"
  1289. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1290. break 2
  1291. fi
  1292. done
  1293. done
  1294. fi
  1295. fi
  1296. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1297. if test -n "$ac_ct_CC"; then
  1298. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1299. echo "${ECHO_T}$ac_ct_CC" >&6
  1300. else
  1301. echo "$as_me:$LINENO: result: no" >&5
  1302. echo "${ECHO_T}no" >&6
  1303. fi
  1304. CC=$ac_ct_CC
  1305. else
  1306. CC="$ac_cv_prog_CC"
  1307. fi
  1308. fi
  1309. if test -z "$CC"; then
  1310. # Extract the first word of "cc", so it can be a program name with args.
  1311. set dummy cc; ac_word=$2
  1312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1314. if test "${ac_cv_prog_CC+set}" = set; then
  1315. echo $ECHO_N "(cached) $ECHO_C" >&6
  1316. else
  1317. if test -n "$CC"; then
  1318. ac_cv_prog_CC="$CC" # Let the user override the test.
  1319. else
  1320. ac_prog_rejected=no
  1321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1322. for as_dir in $PATH
  1323. do
  1324. IFS=$as_save_IFS
  1325. test -z "$as_dir" && as_dir=.
  1326. for ac_exec_ext in '' $ac_executable_extensions; do
  1327. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1328. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1329. ac_prog_rejected=yes
  1330. continue
  1331. fi
  1332. ac_cv_prog_CC="cc"
  1333. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1334. break 2
  1335. fi
  1336. done
  1337. done
  1338. if test $ac_prog_rejected = yes; then
  1339. # We found a bogon in the path, so make sure we never use it.
  1340. set dummy $ac_cv_prog_CC
  1341. shift
  1342. if test $# != 0; then
  1343. # We chose a different compiler from the bogus one.
  1344. # However, it has the same basename, so the bogon will be chosen
  1345. # first if we set CC to just the basename; use the full file name.
  1346. shift
  1347. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1348. fi
  1349. fi
  1350. fi
  1351. fi
  1352. CC=$ac_cv_prog_CC
  1353. if test -n "$CC"; then
  1354. echo "$as_me:$LINENO: result: $CC" >&5
  1355. echo "${ECHO_T}$CC" >&6
  1356. else
  1357. echo "$as_me:$LINENO: result: no" >&5
  1358. echo "${ECHO_T}no" >&6
  1359. fi
  1360. fi
  1361. if test -z "$CC"; then
  1362. if test -n "$ac_tool_prefix"; then
  1363. for ac_prog in cl
  1364. do
  1365. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1366. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1367. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1369. if test "${ac_cv_prog_CC+set}" = set; then
  1370. echo $ECHO_N "(cached) $ECHO_C" >&6
  1371. else
  1372. if test -n "$CC"; then
  1373. ac_cv_prog_CC="$CC" # Let the user override the test.
  1374. else
  1375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1376. for as_dir in $PATH
  1377. do
  1378. IFS=$as_save_IFS
  1379. test -z "$as_dir" && as_dir=.
  1380. for ac_exec_ext in '' $ac_executable_extensions; do
  1381. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1382. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1383. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1384. break 2
  1385. fi
  1386. done
  1387. done
  1388. fi
  1389. fi
  1390. CC=$ac_cv_prog_CC
  1391. if test -n "$CC"; then
  1392. echo "$as_me:$LINENO: result: $CC" >&5
  1393. echo "${ECHO_T}$CC" >&6
  1394. else
  1395. echo "$as_me:$LINENO: result: no" >&5
  1396. echo "${ECHO_T}no" >&6
  1397. fi
  1398. test -n "$CC" && break
  1399. done
  1400. fi
  1401. if test -z "$CC"; then
  1402. ac_ct_CC=$CC
  1403. for ac_prog in cl
  1404. do
  1405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1406. set dummy $ac_prog; ac_word=$2
  1407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1409. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1410. echo $ECHO_N "(cached) $ECHO_C" >&6
  1411. else
  1412. if test -n "$ac_ct_CC"; then
  1413. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1414. else
  1415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1416. for as_dir in $PATH
  1417. do
  1418. IFS=$as_save_IFS
  1419. test -z "$as_dir" && as_dir=.
  1420. for ac_exec_ext in '' $ac_executable_extensions; do
  1421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1422. ac_cv_prog_ac_ct_CC="$ac_prog"
  1423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1424. break 2
  1425. fi
  1426. done
  1427. done
  1428. fi
  1429. fi
  1430. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1431. if test -n "$ac_ct_CC"; then
  1432. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1433. echo "${ECHO_T}$ac_ct_CC" >&6
  1434. else
  1435. echo "$as_me:$LINENO: result: no" >&5
  1436. echo "${ECHO_T}no" >&6
  1437. fi
  1438. test -n "$ac_ct_CC" && break
  1439. done
  1440. CC=$ac_ct_CC
  1441. fi
  1442. fi
  1443. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1444. See \`config.log' for more details." >&5
  1445. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&2;}
  1447. { (exit 1); exit 1; }; }
  1448. # Provide some information about the compiler.
  1449. echo "$as_me:$LINENO:" \
  1450. "checking for C compiler version" >&5
  1451. ac_compiler=`set X $ac_compile; echo $2`
  1452. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1453. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1454. ac_status=$?
  1455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1456. (exit $ac_status); }
  1457. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1458. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1459. ac_status=$?
  1460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1461. (exit $ac_status); }
  1462. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1463. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1464. ac_status=$?
  1465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1466. (exit $ac_status); }
  1467. cat >conftest.$ac_ext <<_ACEOF
  1468. /* confdefs.h. */
  1469. _ACEOF
  1470. cat confdefs.h >>conftest.$ac_ext
  1471. cat >>conftest.$ac_ext <<_ACEOF
  1472. /* end confdefs.h. */
  1473. int
  1474. main ()
  1475. {
  1476. ;
  1477. return 0;
  1478. }
  1479. _ACEOF
  1480. ac_clean_files_save=$ac_clean_files
  1481. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1482. # Try to create an executable without -o first, disregard a.out.
  1483. # It will help us diagnose broken compilers, and finding out an intuition
  1484. # of exeext.
  1485. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1486. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1487. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1488. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1489. (eval $ac_link_default) 2>&5
  1490. ac_status=$?
  1491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1492. (exit $ac_status); }; then
  1493. # Find the output, starting from the most likely. This scheme is
  1494. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1495. # resort.
  1496. # Be careful to initialize this variable, since it used to be cached.
  1497. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1498. ac_cv_exeext=
  1499. # b.out is created by i960 compilers.
  1500. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1501. do
  1502. test -f "$ac_file" || continue
  1503. case $ac_file in
  1504. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1505. ;;
  1506. conftest.$ac_ext )
  1507. # This is the source file.
  1508. ;;
  1509. [ab].out )
  1510. # We found the default executable, but exeext='' is most
  1511. # certainly right.
  1512. break;;
  1513. *.* )
  1514. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1515. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1516. # but it would be cool to find out if it's true. Does anybody
  1517. # maintain Libtool? --akim.
  1518. export ac_cv_exeext
  1519. break;;
  1520. * )
  1521. break;;
  1522. esac
  1523. done
  1524. else
  1525. echo "$as_me: failed program was:" >&5
  1526. sed 's/^/| /' conftest.$ac_ext >&5
  1527. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1528. See \`config.log' for more details." >&5
  1529. echo "$as_me: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&2;}
  1531. { (exit 77); exit 77; }; }
  1532. fi
  1533. ac_exeext=$ac_cv_exeext
  1534. echo "$as_me:$LINENO: result: $ac_file" >&5
  1535. echo "${ECHO_T}$ac_file" >&6
  1536. # Check the compiler produces executables we can run. If not, either
  1537. # the compiler is broken, or we cross compile.
  1538. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1539. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1540. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1541. # If not cross compiling, check that we can run a simple program.
  1542. if test "$cross_compiling" != yes; then
  1543. if { ac_try='./$ac_file'
  1544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1545. (eval $ac_try) 2>&5
  1546. ac_status=$?
  1547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1548. (exit $ac_status); }; }; then
  1549. cross_compiling=no
  1550. else
  1551. if test "$cross_compiling" = maybe; then
  1552. cross_compiling=yes
  1553. else
  1554. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1555. If you meant to cross compile, use \`--host'.
  1556. See \`config.log' for more details." >&5
  1557. echo "$as_me: error: cannot run C compiled programs.
  1558. If you meant to cross compile, use \`--host'.
  1559. See \`config.log' for more details." >&2;}
  1560. { (exit 1); exit 1; }; }
  1561. fi
  1562. fi
  1563. fi
  1564. echo "$as_me:$LINENO: result: yes" >&5
  1565. echo "${ECHO_T}yes" >&6
  1566. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1567. ac_clean_files=$ac_clean_files_save
  1568. # Check the compiler produces executables we can run. If not, either
  1569. # the compiler is broken, or we cross compile.
  1570. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1571. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1572. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1573. echo "${ECHO_T}$cross_compiling" >&6
  1574. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1575. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1576. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1577. (eval $ac_link) 2>&5
  1578. ac_status=$?
  1579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1580. (exit $ac_status); }; then
  1581. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1582. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1583. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1584. # `rm'.
  1585. for ac_file in conftest.exe conftest conftest.*; do
  1586. test -f "$ac_file" || continue
  1587. case $ac_file in
  1588. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1589. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1590. export ac_cv_exeext
  1591. break;;
  1592. * ) break;;
  1593. esac
  1594. done
  1595. else
  1596. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1597. See \`config.log' for more details." >&5
  1598. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&2;}
  1600. { (exit 1); exit 1; }; }
  1601. fi
  1602. rm -f conftest$ac_cv_exeext
  1603. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1604. echo "${ECHO_T}$ac_cv_exeext" >&6
  1605. rm -f conftest.$ac_ext
  1606. EXEEXT=$ac_cv_exeext
  1607. ac_exeext=$EXEEXT
  1608. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1609. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1610. if test "${ac_cv_objext+set}" = set; then
  1611. echo $ECHO_N "(cached) $ECHO_C" >&6
  1612. else
  1613. cat >conftest.$ac_ext <<_ACEOF
  1614. /* confdefs.h. */
  1615. _ACEOF
  1616. cat confdefs.h >>conftest.$ac_ext
  1617. cat >>conftest.$ac_ext <<_ACEOF
  1618. /* end confdefs.h. */
  1619. int
  1620. main ()
  1621. {
  1622. ;
  1623. return 0;
  1624. }
  1625. _ACEOF
  1626. rm -f conftest.o conftest.obj
  1627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1628. (eval $ac_compile) 2>&5
  1629. ac_status=$?
  1630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1631. (exit $ac_status); }; then
  1632. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1633. case $ac_file in
  1634. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1635. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1636. break;;
  1637. esac
  1638. done
  1639. else
  1640. echo "$as_me: failed program was:" >&5
  1641. sed 's/^/| /' conftest.$ac_ext >&5
  1642. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1643. See \`config.log' for more details." >&5
  1644. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&2;}
  1646. { (exit 1); exit 1; }; }
  1647. fi
  1648. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1649. fi
  1650. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1651. echo "${ECHO_T}$ac_cv_objext" >&6
  1652. OBJEXT=$ac_cv_objext
  1653. ac_objext=$OBJEXT
  1654. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1655. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1656. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1657. echo $ECHO_N "(cached) $ECHO_C" >&6
  1658. else
  1659. cat >conftest.$ac_ext <<_ACEOF
  1660. /* confdefs.h. */
  1661. _ACEOF
  1662. cat confdefs.h >>conftest.$ac_ext
  1663. cat >>conftest.$ac_ext <<_ACEOF
  1664. /* end confdefs.h. */
  1665. int
  1666. main ()
  1667. {
  1668. #ifndef __GNUC__
  1669. choke me
  1670. #endif
  1671. ;
  1672. return 0;
  1673. }
  1674. _ACEOF
  1675. rm -f conftest.$ac_objext
  1676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1677. (eval $ac_compile) 2>conftest.er1
  1678. ac_status=$?
  1679. grep -v '^ *+' conftest.er1 >conftest.err
  1680. rm -f conftest.er1
  1681. cat conftest.err >&5
  1682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1683. (exit $ac_status); } &&
  1684. { ac_try='test -z "$ac_c_werror_flag"
  1685. || test ! -s conftest.err'
  1686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1687. (eval $ac_try) 2>&5
  1688. ac_status=$?
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); }; } &&
  1691. { ac_try='test -s conftest.$ac_objext'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; }; then
  1697. ac_compiler_gnu=yes
  1698. else
  1699. echo "$as_me: failed program was:" >&5
  1700. sed 's/^/| /' conftest.$ac_ext >&5
  1701. ac_compiler_gnu=no
  1702. fi
  1703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1704. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1705. fi
  1706. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1707. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1708. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1709. ac_test_CFLAGS=${CFLAGS+set}
  1710. ac_save_CFLAGS=$CFLAGS
  1711. CFLAGS="-g"
  1712. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1713. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1714. if test "${ac_cv_prog_cc_g+set}" = set; then
  1715. echo $ECHO_N "(cached) $ECHO_C" >&6
  1716. else
  1717. cat >conftest.$ac_ext <<_ACEOF
  1718. /* confdefs.h. */
  1719. _ACEOF
  1720. cat confdefs.h >>conftest.$ac_ext
  1721. cat >>conftest.$ac_ext <<_ACEOF
  1722. /* end confdefs.h. */
  1723. int
  1724. main ()
  1725. {
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. rm -f conftest.$ac_objext
  1731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1732. (eval $ac_compile) 2>conftest.er1
  1733. ac_status=$?
  1734. grep -v '^ *+' conftest.er1 >conftest.err
  1735. rm -f conftest.er1
  1736. cat conftest.err >&5
  1737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1738. (exit $ac_status); } &&
  1739. { ac_try='test -z "$ac_c_werror_flag"
  1740. || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag"
  1854. || test ! -s conftest.err'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; } &&
  1860. { ac_try='test -s conftest.$ac_objext'
  1861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1862. (eval $ac_try) 2>&5
  1863. ac_status=$?
  1864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; }; then
  1866. ac_cv_prog_cc_stdc=$ac_arg
  1867. break
  1868. else
  1869. echo "$as_me: failed program was:" >&5
  1870. sed 's/^/| /' conftest.$ac_ext >&5
  1871. fi
  1872. rm -f conftest.err conftest.$ac_objext
  1873. done
  1874. rm -f conftest.$ac_ext conftest.$ac_objext
  1875. CC=$ac_save_CC
  1876. fi
  1877. case "x$ac_cv_prog_cc_stdc" in
  1878. x|xno)
  1879. echo "$as_me:$LINENO: result: none needed" >&5
  1880. echo "${ECHO_T}none needed" >&6 ;;
  1881. *)
  1882. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1883. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1884. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1885. esac
  1886. # Some people use a C++ compiler to compile C. Since we use `exit',
  1887. # in C++ we need to declare it. In case someone uses the same compiler
  1888. # for both compiling C and C++ we need to have the C++ compiler decide
  1889. # the declaration of exit, since it's the most demanding environment.
  1890. cat >conftest.$ac_ext <<_ACEOF
  1891. #ifndef __cplusplus
  1892. choke me
  1893. #endif
  1894. _ACEOF
  1895. rm -f conftest.$ac_objext
  1896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1897. (eval $ac_compile) 2>conftest.er1
  1898. ac_status=$?
  1899. grep -v '^ *+' conftest.er1 >conftest.err
  1900. rm -f conftest.er1
  1901. cat conftest.err >&5
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); } &&
  1904. { ac_try='test -z "$ac_c_werror_flag"
  1905. || test ! -s conftest.err'
  1906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1907. (eval $ac_try) 2>&5
  1908. ac_status=$?
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); }; } &&
  1911. { ac_try='test -s conftest.$ac_objext'
  1912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1913. (eval $ac_try) 2>&5
  1914. ac_status=$?
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); }; }; then
  1917. for ac_declaration in \
  1918. '' \
  1919. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1920. 'extern "C" void std::exit (int); using std::exit;' \
  1921. 'extern "C" void exit (int) throw ();' \
  1922. 'extern "C" void exit (int);' \
  1923. 'void exit (int);'
  1924. do
  1925. cat >conftest.$ac_ext <<_ACEOF
  1926. /* confdefs.h. */
  1927. _ACEOF
  1928. cat confdefs.h >>conftest.$ac_ext
  1929. cat >>conftest.$ac_ext <<_ACEOF
  1930. /* end confdefs.h. */
  1931. $ac_declaration
  1932. #include <stdlib.h>
  1933. int
  1934. main ()
  1935. {
  1936. exit (42);
  1937. ;
  1938. return 0;
  1939. }
  1940. _ACEOF
  1941. rm -f conftest.$ac_objext
  1942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1943. (eval $ac_compile) 2>conftest.er1
  1944. ac_status=$?
  1945. grep -v '^ *+' conftest.er1 >conftest.err
  1946. rm -f conftest.er1
  1947. cat conftest.err >&5
  1948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1949. (exit $ac_status); } &&
  1950. { ac_try='test -z "$ac_c_werror_flag"
  1951. || test ! -s conftest.err'
  1952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1953. (eval $ac_try) 2>&5
  1954. ac_status=$?
  1955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1956. (exit $ac_status); }; } &&
  1957. { ac_try='test -s conftest.$ac_objext'
  1958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1959. (eval $ac_try) 2>&5
  1960. ac_status=$?
  1961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); }; }; then
  1963. :
  1964. else
  1965. echo "$as_me: failed program was:" >&5
  1966. sed 's/^/| /' conftest.$ac_ext >&5
  1967. continue
  1968. fi
  1969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1970. cat >conftest.$ac_ext <<_ACEOF
  1971. /* confdefs.h. */
  1972. _ACEOF
  1973. cat confdefs.h >>conftest.$ac_ext
  1974. cat >>conftest.$ac_ext <<_ACEOF
  1975. /* end confdefs.h. */
  1976. $ac_declaration
  1977. int
  1978. main ()
  1979. {
  1980. exit (42);
  1981. ;
  1982. return 0;
  1983. }
  1984. _ACEOF
  1985. rm -f conftest.$ac_objext
  1986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1987. (eval $ac_compile) 2>conftest.er1
  1988. ac_status=$?
  1989. grep -v '^ *+' conftest.er1 >conftest.err
  1990. rm -f conftest.er1
  1991. cat conftest.err >&5
  1992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1993. (exit $ac_status); } &&
  1994. { ac_try='test -z "$ac_c_werror_flag"
  1995. || test ! -s conftest.err'
  1996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1997. (eval $ac_try) 2>&5
  1998. ac_status=$?
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); }; } &&
  2001. { ac_try='test -s conftest.$ac_objext'
  2002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2003. (eval $ac_try) 2>&5
  2004. ac_status=$?
  2005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2006. (exit $ac_status); }; }; then
  2007. break
  2008. else
  2009. echo "$as_me: failed program was:" >&5
  2010. sed 's/^/| /' conftest.$ac_ext >&5
  2011. fi
  2012. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2013. done
  2014. rm -f conftest*
  2015. if test -n "$ac_declaration"; then
  2016. echo '#ifdef __cplusplus' >>confdefs.h
  2017. echo $ac_declaration >>confdefs.h
  2018. echo '#endif' >>confdefs.h
  2019. fi
  2020. else
  2021. echo "$as_me: failed program was:" >&5
  2022. sed 's/^/| /' conftest.$ac_ext >&5
  2023. fi
  2024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2025. ac_ext=c
  2026. ac_cpp='$CPP $CPPFLAGS'
  2027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2030. ac_ext=cc
  2031. ac_cpp='$CXXCPP $CPPFLAGS'
  2032. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2033. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2034. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2035. if test -n "$ac_tool_prefix"; then
  2036. for ac_prog in $CCC g++ CC c++ cxx
  2037. do
  2038. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2039. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2040. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2041. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2042. if test "${ac_cv_prog_CXX+set}" = set; then
  2043. echo $ECHO_N "(cached) $ECHO_C" >&6
  2044. else
  2045. if test -n "$CXX"; then
  2046. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2047. else
  2048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2049. for as_dir in $PATH
  2050. do
  2051. IFS=$as_save_IFS
  2052. test -z "$as_dir" && as_dir=.
  2053. for ac_exec_ext in '' $ac_executable_extensions; do
  2054. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2055. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2056. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2057. break 2
  2058. fi
  2059. done
  2060. done
  2061. fi
  2062. fi
  2063. CXX=$ac_cv_prog_CXX
  2064. if test -n "$CXX"; then
  2065. echo "$as_me:$LINENO: result: $CXX" >&5
  2066. echo "${ECHO_T}$CXX" >&6
  2067. else
  2068. echo "$as_me:$LINENO: result: no" >&5
  2069. echo "${ECHO_T}no" >&6
  2070. fi
  2071. test -n "$CXX" && break
  2072. done
  2073. fi
  2074. if test -z "$CXX"; then
  2075. ac_ct_CXX=$CXX
  2076. for ac_prog in $CCC g++ CC c++ cxx
  2077. do
  2078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2079. set dummy $ac_prog; ac_word=$2
  2080. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2082. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2083. echo $ECHO_N "(cached) $ECHO_C" >&6
  2084. else
  2085. if test -n "$ac_ct_CXX"; then
  2086. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2087. else
  2088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2089. for as_dir in $PATH
  2090. do
  2091. IFS=$as_save_IFS
  2092. test -z "$as_dir" && as_dir=.
  2093. for ac_exec_ext in '' $ac_executable_extensions; do
  2094. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2095. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2096. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2097. break 2
  2098. fi
  2099. done
  2100. done
  2101. fi
  2102. fi
  2103. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2104. if test -n "$ac_ct_CXX"; then
  2105. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2106. echo "${ECHO_T}$ac_ct_CXX" >&6
  2107. else
  2108. echo "$as_me:$LINENO: result: no" >&5
  2109. echo "${ECHO_T}no" >&6
  2110. fi
  2111. test -n "$ac_ct_CXX" && break
  2112. done
  2113. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2114. CXX=$ac_ct_CXX
  2115. fi
  2116. # Provide some information about the compiler.
  2117. echo "$as_me:$LINENO:" \
  2118. "checking for C++ compiler version" >&5
  2119. ac_compiler=`set X $ac_compile; echo $2`
  2120. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2121. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2122. ac_status=$?
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); }
  2125. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2126. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2127. ac_status=$?
  2128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2129. (exit $ac_status); }
  2130. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2131. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2132. ac_status=$?
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); }
  2135. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2136. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2137. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2138. echo $ECHO_N "(cached) $ECHO_C" >&6
  2139. else
  2140. cat >conftest.$ac_ext <<_ACEOF
  2141. /* confdefs.h. */
  2142. _ACEOF
  2143. cat confdefs.h >>conftest.$ac_ext
  2144. cat >>conftest.$ac_ext <<_ACEOF
  2145. /* end confdefs.h. */
  2146. int
  2147. main ()
  2148. {
  2149. #ifndef __GNUC__
  2150. choke me
  2151. #endif
  2152. ;
  2153. return 0;
  2154. }
  2155. _ACEOF
  2156. rm -f conftest.$ac_objext
  2157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2158. (eval $ac_compile) 2>conftest.er1
  2159. ac_status=$?
  2160. grep -v '^ *+' conftest.er1 >conftest.err
  2161. rm -f conftest.er1
  2162. cat conftest.err >&5
  2163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2164. (exit $ac_status); } &&
  2165. { ac_try='test -z "$ac_cxx_werror_flag"
  2166. || test ! -s conftest.err'
  2167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2168. (eval $ac_try) 2>&5
  2169. ac_status=$?
  2170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2171. (exit $ac_status); }; } &&
  2172. { ac_try='test -s conftest.$ac_objext'
  2173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2174. (eval $ac_try) 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; }; then
  2178. ac_compiler_gnu=yes
  2179. else
  2180. echo "$as_me: failed program was:" >&5
  2181. sed 's/^/| /' conftest.$ac_ext >&5
  2182. ac_compiler_gnu=no
  2183. fi
  2184. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2186. fi
  2187. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2188. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2189. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2190. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2191. ac_save_CXXFLAGS=$CXXFLAGS
  2192. CXXFLAGS="-g"
  2193. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2194. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2195. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2196. echo $ECHO_N "(cached) $ECHO_C" >&6
  2197. else
  2198. cat >conftest.$ac_ext <<_ACEOF
  2199. /* confdefs.h. */
  2200. _ACEOF
  2201. cat confdefs.h >>conftest.$ac_ext
  2202. cat >>conftest.$ac_ext <<_ACEOF
  2203. /* end confdefs.h. */
  2204. int
  2205. main ()
  2206. {
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. rm -f conftest.$ac_objext
  2212. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2213. (eval $ac_compile) 2>conftest.er1
  2214. ac_status=$?
  2215. grep -v '^ *+' conftest.er1 >conftest.err
  2216. rm -f conftest.er1
  2217. cat conftest.err >&5
  2218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2219. (exit $ac_status); } &&
  2220. { ac_try='test -z "$ac_cxx_werror_flag"
  2221. || test ! -s conftest.err'
  2222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2223. (eval $ac_try) 2>&5
  2224. ac_status=$?
  2225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2226. (exit $ac_status); }; } &&
  2227. { ac_try='test -s conftest.$ac_objext'
  2228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2229. (eval $ac_try) 2>&5
  2230. ac_status=$?
  2231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2232. (exit $ac_status); }; }; then
  2233. ac_cv_prog_cxx_g=yes
  2234. else
  2235. echo "$as_me: failed program was:" >&5
  2236. sed 's/^/| /' conftest.$ac_ext >&5
  2237. ac_cv_prog_cxx_g=no
  2238. fi
  2239. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2240. fi
  2241. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2242. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2243. if test "$ac_test_CXXFLAGS" = set; then
  2244. CXXFLAGS=$ac_save_CXXFLAGS
  2245. elif test $ac_cv_prog_cxx_g = yes; then
  2246. if test "$GXX" = yes; then
  2247. CXXFLAGS="-g -O2"
  2248. else
  2249. CXXFLAGS="-g"
  2250. fi
  2251. else
  2252. if test "$GXX" = yes; then
  2253. CXXFLAGS="-O2"
  2254. else
  2255. CXXFLAGS=
  2256. fi
  2257. fi
  2258. for ac_declaration in \
  2259. '' \
  2260. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2261. 'extern "C" void std::exit (int); using std::exit;' \
  2262. 'extern "C" void exit (int) throw ();' \
  2263. 'extern "C" void exit (int);' \
  2264. 'void exit (int);'
  2265. do
  2266. cat >conftest.$ac_ext <<_ACEOF
  2267. /* confdefs.h. */
  2268. _ACEOF
  2269. cat confdefs.h >>conftest.$ac_ext
  2270. cat >>conftest.$ac_ext <<_ACEOF
  2271. /* end confdefs.h. */
  2272. $ac_declaration
  2273. #include <stdlib.h>
  2274. int
  2275. main ()
  2276. {
  2277. exit (42);
  2278. ;
  2279. return 0;
  2280. }
  2281. _ACEOF
  2282. rm -f conftest.$ac_objext
  2283. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2284. (eval $ac_compile) 2>conftest.er1
  2285. ac_status=$?
  2286. grep -v '^ *+' conftest.er1 >conftest.err
  2287. rm -f conftest.er1
  2288. cat conftest.err >&5
  2289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2290. (exit $ac_status); } &&
  2291. { ac_try='test -z "$ac_cxx_werror_flag"
  2292. || test ! -s conftest.err'
  2293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2294. (eval $ac_try) 2>&5
  2295. ac_status=$?
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); }; } &&
  2298. { ac_try='test -s conftest.$ac_objext'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; }; then
  2304. :
  2305. else
  2306. echo "$as_me: failed program was:" >&5
  2307. sed 's/^/| /' conftest.$ac_ext >&5
  2308. continue
  2309. fi
  2310. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2311. cat >conftest.$ac_ext <<_ACEOF
  2312. /* confdefs.h. */
  2313. _ACEOF
  2314. cat confdefs.h >>conftest.$ac_ext
  2315. cat >>conftest.$ac_ext <<_ACEOF
  2316. /* end confdefs.h. */
  2317. $ac_declaration
  2318. int
  2319. main ()
  2320. {
  2321. exit (42);
  2322. ;
  2323. return 0;
  2324. }
  2325. _ACEOF
  2326. rm -f conftest.$ac_objext
  2327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2328. (eval $ac_compile) 2>conftest.er1
  2329. ac_status=$?
  2330. grep -v '^ *+' conftest.er1 >conftest.err
  2331. rm -f conftest.er1
  2332. cat conftest.err >&5
  2333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2334. (exit $ac_status); } &&
  2335. { ac_try='test -z "$ac_cxx_werror_flag"
  2336. || test ! -s conftest.err'
  2337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2338. (eval $ac_try) 2>&5
  2339. ac_status=$?
  2340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2341. (exit $ac_status); }; } &&
  2342. { ac_try='test -s conftest.$ac_objext'
  2343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2344. (eval $ac_try) 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }; }; then
  2348. break
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. fi
  2353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2354. done
  2355. rm -f conftest*
  2356. if test -n "$ac_declaration"; then
  2357. echo '#ifdef __cplusplus' >>confdefs.h
  2358. echo $ac_declaration >>confdefs.h
  2359. echo '#endif' >>confdefs.h
  2360. fi
  2361. ac_ext=c
  2362. ac_cpp='$CPP $CPPFLAGS'
  2363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2366. if test -n "$ac_tool_prefix"; then
  2367. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2368. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2371. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2372. echo $ECHO_N "(cached) $ECHO_C" >&6
  2373. else
  2374. if test -n "$RANLIB"; then
  2375. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2376. else
  2377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2378. for as_dir in $PATH
  2379. do
  2380. IFS=$as_save_IFS
  2381. test -z "$as_dir" && as_dir=.
  2382. for ac_exec_ext in '' $ac_executable_extensions; do
  2383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2384. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2386. break 2
  2387. fi
  2388. done
  2389. done
  2390. fi
  2391. fi
  2392. RANLIB=$ac_cv_prog_RANLIB
  2393. if test -n "$RANLIB"; then
  2394. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2395. echo "${ECHO_T}$RANLIB" >&6
  2396. else
  2397. echo "$as_me:$LINENO: result: no" >&5
  2398. echo "${ECHO_T}no" >&6
  2399. fi
  2400. fi
  2401. if test -z "$ac_cv_prog_RANLIB"; then
  2402. ac_ct_RANLIB=$RANLIB
  2403. # Extract the first word of "ranlib", so it can be a program name with args.
  2404. set dummy ranlib; ac_word=$2
  2405. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2407. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2408. echo $ECHO_N "(cached) $ECHO_C" >&6
  2409. else
  2410. if test -n "$ac_ct_RANLIB"; then
  2411. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2420. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2421. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2427. fi
  2428. fi
  2429. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2430. if test -n "$ac_ct_RANLIB"; then
  2431. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2432. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2433. else
  2434. echo "$as_me:$LINENO: result: no" >&5
  2435. echo "${ECHO_T}no" >&6
  2436. fi
  2437. RANLIB=$ac_ct_RANLIB
  2438. else
  2439. RANLIB="$ac_cv_prog_RANLIB"
  2440. fi
  2441. # Extract the first word of "ar", so it can be a program name with args.
  2442. set dummy ar; ac_word=$2
  2443. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2444. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2445. if test "${ac_cv_path_AR+set}" = set; then
  2446. echo $ECHO_N "(cached) $ECHO_C" >&6
  2447. else
  2448. case $AR in
  2449. [\\/]* | ?:[\\/]*)
  2450. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  2451. ;;
  2452. *)
  2453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2454. for as_dir in $PATH
  2455. do
  2456. IFS=$as_save_IFS
  2457. test -z "$as_dir" && as_dir=.
  2458. for ac_exec_ext in '' $ac_executable_extensions; do
  2459. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2460. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  2461. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2462. break 2
  2463. fi
  2464. done
  2465. done
  2466. test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
  2467. ;;
  2468. esac
  2469. fi
  2470. AR=$ac_cv_path_AR
  2471. if test -n "$AR"; then
  2472. echo "$as_me:$LINENO: result: $AR" >&5
  2473. echo "${ECHO_T}$AR" >&6
  2474. else
  2475. echo "$as_me:$LINENO: result: no" >&5
  2476. echo "${ECHO_T}no" >&6
  2477. fi
  2478. if [ $AR = "no" ] ; then
  2479. { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
  2480. echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
  2481. { (exit 1); exit 1; }; };
  2482. fi
  2483. # Checks for header files.
  2484. ac_ext=c
  2485. ac_cpp='$CPP $CPPFLAGS'
  2486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2489. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2490. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2491. # On Suns, sometimes $CPP names a directory.
  2492. if test -n "$CPP" && test -d "$CPP"; then
  2493. CPP=
  2494. fi
  2495. if test -z "$CPP"; then
  2496. if test "${ac_cv_prog_CPP+set}" = set; then
  2497. echo $ECHO_N "(cached) $ECHO_C" >&6
  2498. else
  2499. # Double quotes because CPP needs to be expanded
  2500. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2501. do
  2502. ac_preproc_ok=false
  2503. for ac_c_preproc_warn_flag in '' yes
  2504. do
  2505. # Use a header file that comes with gcc, so configuring glibc
  2506. # with a fresh cross-compiler works.
  2507. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2508. # <limits.h> exists even on freestanding compilers.
  2509. # On the NeXT, cc -E runs the code through the compiler's parser,
  2510. # not just through cpp. "Syntax error" is here to catch this case.
  2511. cat >conftest.$ac_ext <<_ACEOF
  2512. /* confdefs.h. */
  2513. _ACEOF
  2514. cat confdefs.h >>conftest.$ac_ext
  2515. cat >>conftest.$ac_ext <<_ACEOF
  2516. /* end confdefs.h. */
  2517. #ifdef __STDC__
  2518. # include <limits.h>
  2519. #else
  2520. # include <assert.h>
  2521. #endif
  2522. Syntax error
  2523. _ACEOF
  2524. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2525. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2526. ac_status=$?
  2527. grep -v '^ *+' conftest.er1 >conftest.err
  2528. rm -f conftest.er1
  2529. cat conftest.err >&5
  2530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2531. (exit $ac_status); } >/dev/null; then
  2532. if test -s conftest.err; then
  2533. ac_cpp_err=$ac_c_preproc_warn_flag
  2534. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2535. else
  2536. ac_cpp_err=
  2537. fi
  2538. else
  2539. ac_cpp_err=yes
  2540. fi
  2541. if test -z "$ac_cpp_err"; then
  2542. :
  2543. else
  2544. echo "$as_me: failed program was:" >&5
  2545. sed 's/^/| /' conftest.$ac_ext >&5
  2546. # Broken: fails on valid input.
  2547. continue
  2548. fi
  2549. rm -f conftest.err conftest.$ac_ext
  2550. # OK, works on sane cases. Now check whether non-existent headers
  2551. # can be detected and how.
  2552. cat >conftest.$ac_ext <<_ACEOF
  2553. /* confdefs.h. */
  2554. _ACEOF
  2555. cat confdefs.h >>conftest.$ac_ext
  2556. cat >>conftest.$ac_ext <<_ACEOF
  2557. /* end confdefs.h. */
  2558. #include <ac_nonexistent.h>
  2559. _ACEOF
  2560. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2561. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2562. ac_status=$?
  2563. grep -v '^ *+' conftest.er1 >conftest.err
  2564. rm -f conftest.er1
  2565. cat conftest.err >&5
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); } >/dev/null; then
  2568. if test -s conftest.err; then
  2569. ac_cpp_err=$ac_c_preproc_warn_flag
  2570. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2571. else
  2572. ac_cpp_err=
  2573. fi
  2574. else
  2575. ac_cpp_err=yes
  2576. fi
  2577. if test -z "$ac_cpp_err"; then
  2578. # Broken: success on invalid input.
  2579. continue
  2580. else
  2581. echo "$as_me: failed program was:" >&5
  2582. sed 's/^/| /' conftest.$ac_ext >&5
  2583. # Passes both tests.
  2584. ac_preproc_ok=:
  2585. break
  2586. fi
  2587. rm -f conftest.err conftest.$ac_ext
  2588. done
  2589. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2590. rm -f conftest.err conftest.$ac_ext
  2591. if $ac_preproc_ok; then
  2592. break
  2593. fi
  2594. done
  2595. ac_cv_prog_CPP=$CPP
  2596. fi
  2597. CPP=$ac_cv_prog_CPP
  2598. else
  2599. ac_cv_prog_CPP=$CPP
  2600. fi
  2601. echo "$as_me:$LINENO: result: $CPP" >&5
  2602. echo "${ECHO_T}$CPP" >&6
  2603. ac_preproc_ok=false
  2604. for ac_c_preproc_warn_flag in '' yes
  2605. do
  2606. # Use a header file that comes with gcc, so configuring glibc
  2607. # with a fresh cross-compiler works.
  2608. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2609. # <limits.h> exists even on freestanding compilers.
  2610. # On the NeXT, cc -E runs the code through the compiler's parser,
  2611. # not just through cpp. "Syntax error" is here to catch this case.
  2612. cat >conftest.$ac_ext <<_ACEOF
  2613. /* confdefs.h. */
  2614. _ACEOF
  2615. cat confdefs.h >>conftest.$ac_ext
  2616. cat >>conftest.$ac_ext <<_ACEOF
  2617. /* end confdefs.h. */
  2618. #ifdef __STDC__
  2619. # include <limits.h>
  2620. #else
  2621. # include <assert.h>
  2622. #endif
  2623. Syntax error
  2624. _ACEOF
  2625. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2626. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2627. ac_status=$?
  2628. grep -v '^ *+' conftest.er1 >conftest.err
  2629. rm -f conftest.er1
  2630. cat conftest.err >&5
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); } >/dev/null; then
  2633. if test -s conftest.err; then
  2634. ac_cpp_err=$ac_c_preproc_warn_flag
  2635. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2636. else
  2637. ac_cpp_err=
  2638. fi
  2639. else
  2640. ac_cpp_err=yes
  2641. fi
  2642. if test -z "$ac_cpp_err"; then
  2643. :
  2644. else
  2645. echo "$as_me: failed program was:" >&5
  2646. sed 's/^/| /' conftest.$ac_ext >&5
  2647. # Broken: fails on valid input.
  2648. continue
  2649. fi
  2650. rm -f conftest.err conftest.$ac_ext
  2651. # OK, works on sane cases. Now check whether non-existent headers
  2652. # can be detected and how.
  2653. cat >conftest.$ac_ext <<_ACEOF
  2654. /* confdefs.h. */
  2655. _ACEOF
  2656. cat confdefs.h >>conftest.$ac_ext
  2657. cat >>conftest.$ac_ext <<_ACEOF
  2658. /* end confdefs.h. */
  2659. #include <ac_nonexistent.h>
  2660. _ACEOF
  2661. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2662. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2663. ac_status=$?
  2664. grep -v '^ *+' conftest.er1 >conftest.err
  2665. rm -f conftest.er1
  2666. cat conftest.err >&5
  2667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); } >/dev/null; then
  2669. if test -s conftest.err; then
  2670. ac_cpp_err=$ac_c_preproc_warn_flag
  2671. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2672. else
  2673. ac_cpp_err=
  2674. fi
  2675. else
  2676. ac_cpp_err=yes
  2677. fi
  2678. if test -z "$ac_cpp_err"; then
  2679. # Broken: success on invalid input.
  2680. continue
  2681. else
  2682. echo "$as_me: failed program was:" >&5
  2683. sed 's/^/| /' conftest.$ac_ext >&5
  2684. # Passes both tests.
  2685. ac_preproc_ok=:
  2686. break
  2687. fi
  2688. rm -f conftest.err conftest.$ac_ext
  2689. done
  2690. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2691. rm -f conftest.err conftest.$ac_ext
  2692. if $ac_preproc_ok; then
  2693. :
  2694. else
  2695. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2696. See \`config.log' for more details." >&5
  2697. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2698. See \`config.log' for more details." >&2;}
  2699. { (exit 1); exit 1; }; }
  2700. fi
  2701. ac_ext=c
  2702. ac_cpp='$CPP $CPPFLAGS'
  2703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2706. echo "$as_me:$LINENO: checking for egrep" >&5
  2707. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2708. if test "${ac_cv_prog_egrep+set}" = set; then
  2709. echo $ECHO_N "(cached) $ECHO_C" >&6
  2710. else
  2711. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2712. then ac_cv_prog_egrep='grep -E'
  2713. else ac_cv_prog_egrep='egrep'
  2714. fi
  2715. fi
  2716. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2717. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2718. EGREP=$ac_cv_prog_egrep
  2719. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2720. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2721. if test "${ac_cv_header_stdc+set}" = set; then
  2722. echo $ECHO_N "(cached) $ECHO_C" >&6
  2723. else
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. #include <stdlib.h>
  2731. #include <stdarg.h>
  2732. #include <string.h>
  2733. #include <float.h>
  2734. int
  2735. main ()
  2736. {
  2737. ;
  2738. return 0;
  2739. }
  2740. _ACEOF
  2741. rm -f conftest.$ac_objext
  2742. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2743. (eval $ac_compile) 2>conftest.er1
  2744. ac_status=$?
  2745. grep -v '^ *+' conftest.er1 >conftest.err
  2746. rm -f conftest.er1
  2747. cat conftest.err >&5
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); } &&
  2750. { ac_try='test -z "$ac_c_werror_flag"
  2751. || test ! -s conftest.err'
  2752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2753. (eval $ac_try) 2>&5
  2754. ac_status=$?
  2755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); }; } &&
  2757. { ac_try='test -s conftest.$ac_objext'
  2758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2759. (eval $ac_try) 2>&5
  2760. ac_status=$?
  2761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2762. (exit $ac_status); }; }; then
  2763. ac_cv_header_stdc=yes
  2764. else
  2765. echo "$as_me: failed program was:" >&5
  2766. sed 's/^/| /' conftest.$ac_ext >&5
  2767. ac_cv_header_stdc=no
  2768. fi
  2769. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2770. if test $ac_cv_header_stdc = yes; then
  2771. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2772. cat >conftest.$ac_ext <<_ACEOF
  2773. /* confdefs.h. */
  2774. _ACEOF
  2775. cat confdefs.h >>conftest.$ac_ext
  2776. cat >>conftest.$ac_ext <<_ACEOF
  2777. /* end confdefs.h. */
  2778. #include <string.h>
  2779. _ACEOF
  2780. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2781. $EGREP "memchr" >/dev/null 2>&1; then
  2782. :
  2783. else
  2784. ac_cv_header_stdc=no
  2785. fi
  2786. rm -f conftest*
  2787. fi
  2788. if test $ac_cv_header_stdc = yes; then
  2789. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2790. cat >conftest.$ac_ext <<_ACEOF
  2791. /* confdefs.h. */
  2792. _ACEOF
  2793. cat confdefs.h >>conftest.$ac_ext
  2794. cat >>conftest.$ac_ext <<_ACEOF
  2795. /* end confdefs.h. */
  2796. #include <stdlib.h>
  2797. _ACEOF
  2798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2799. $EGREP "free" >/dev/null 2>&1; then
  2800. :
  2801. else
  2802. ac_cv_header_stdc=no
  2803. fi
  2804. rm -f conftest*
  2805. fi
  2806. if test $ac_cv_header_stdc = yes; then
  2807. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2808. if test "$cross_compiling" = yes; then
  2809. :
  2810. else
  2811. cat >conftest.$ac_ext <<_ACEOF
  2812. /* confdefs.h. */
  2813. _ACEOF
  2814. cat confdefs.h >>conftest.$ac_ext
  2815. cat >>conftest.$ac_ext <<_ACEOF
  2816. /* end confdefs.h. */
  2817. #include <ctype.h>
  2818. #if ((' ' & 0x0FF) == 0x020)
  2819. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2820. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2821. #else
  2822. # define ISLOWER(c) \
  2823. (('a' <= (c) && (c) <= 'i') \
  2824. || ('j' <= (c) && (c) <= 'r') \
  2825. || ('s' <= (c) && (c) <= 'z'))
  2826. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2827. #endif
  2828. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2829. int
  2830. main ()
  2831. {
  2832. int i;
  2833. for (i = 0; i < 256; i++)
  2834. if (XOR (islower (i), ISLOWER (i))
  2835. || toupper (i) != TOUPPER (i))
  2836. exit(2);
  2837. exit (0);
  2838. }
  2839. _ACEOF
  2840. rm -f conftest$ac_exeext
  2841. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2842. (eval $ac_link) 2>&5
  2843. ac_status=$?
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2847. (eval $ac_try) 2>&5
  2848. ac_status=$?
  2849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); }; }; then
  2851. :
  2852. else
  2853. echo "$as_me: program exited with status $ac_status" >&5
  2854. echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. ( exit $ac_status )
  2857. ac_cv_header_stdc=no
  2858. fi
  2859. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2860. fi
  2861. fi
  2862. fi
  2863. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2864. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2865. if test $ac_cv_header_stdc = yes; then
  2866. cat >>confdefs.h <<\_ACEOF
  2867. #define STDC_HEADERS 1
  2868. _ACEOF
  2869. fi
  2870. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2871. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2872. inttypes.h stdint.h unistd.h
  2873. do
  2874. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2875. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2876. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2877. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2878. echo $ECHO_N "(cached) $ECHO_C" >&6
  2879. else
  2880. cat >conftest.$ac_ext <<_ACEOF
  2881. /* confdefs.h. */
  2882. _ACEOF
  2883. cat confdefs.h >>conftest.$ac_ext
  2884. cat >>conftest.$ac_ext <<_ACEOF
  2885. /* end confdefs.h. */
  2886. $ac_includes_default
  2887. #include <$ac_header>
  2888. _ACEOF
  2889. rm -f conftest.$ac_objext
  2890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2891. (eval $ac_compile) 2>conftest.er1
  2892. ac_status=$?
  2893. grep -v '^ *+' conftest.er1 >conftest.err
  2894. rm -f conftest.er1
  2895. cat conftest.err >&5
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); } &&
  2898. { ac_try='test -z "$ac_c_werror_flag"
  2899. || test ! -s conftest.err'
  2900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2901. (eval $ac_try) 2>&5
  2902. ac_status=$?
  2903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904. (exit $ac_status); }; } &&
  2905. { ac_try='test -s conftest.$ac_objext'
  2906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2907. (eval $ac_try) 2>&5
  2908. ac_status=$?
  2909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2910. (exit $ac_status); }; }; then
  2911. eval "$as_ac_Header=yes"
  2912. else
  2913. echo "$as_me: failed program was:" >&5
  2914. sed 's/^/| /' conftest.$ac_ext >&5
  2915. eval "$as_ac_Header=no"
  2916. fi
  2917. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2918. fi
  2919. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2920. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2921. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2922. cat >>confdefs.h <<_ACEOF
  2923. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2924. _ACEOF
  2925. fi
  2926. done
  2927. for ac_header in sys/ioctl.h unistd.h
  2928. do
  2929. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2930. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2931. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2932. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2933. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2934. echo $ECHO_N "(cached) $ECHO_C" >&6
  2935. fi
  2936. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2937. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2938. else
  2939. # Is the header compilable?
  2940. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2941. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  2942. cat >conftest.$ac_ext <<_ACEOF
  2943. /* confdefs.h. */
  2944. _ACEOF
  2945. cat confdefs.h >>conftest.$ac_ext
  2946. cat >>conftest.$ac_ext <<_ACEOF
  2947. /* end confdefs.h. */
  2948. $ac_includes_default
  2949. #include <$ac_header>
  2950. _ACEOF
  2951. rm -f conftest.$ac_objext
  2952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2953. (eval $ac_compile) 2>conftest.er1
  2954. ac_status=$?
  2955. grep -v '^ *+' conftest.er1 >conftest.err
  2956. rm -f conftest.er1
  2957. cat conftest.err >&5
  2958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2959. (exit $ac_status); } &&
  2960. { ac_try='test -z "$ac_c_werror_flag"
  2961. || test ! -s conftest.err'
  2962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2963. (eval $ac_try) 2>&5
  2964. ac_status=$?
  2965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966. (exit $ac_status); }; } &&
  2967. { ac_try='test -s conftest.$ac_objext'
  2968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2969. (eval $ac_try) 2>&5
  2970. ac_status=$?
  2971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2972. (exit $ac_status); }; }; then
  2973. ac_header_compiler=yes
  2974. else
  2975. echo "$as_me: failed program was:" >&5
  2976. sed 's/^/| /' conftest.$ac_ext >&5
  2977. ac_header_compiler=no
  2978. fi
  2979. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2980. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2981. echo "${ECHO_T}$ac_header_compiler" >&6
  2982. # Is the header present?
  2983. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2984. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  2985. cat >conftest.$ac_ext <<_ACEOF
  2986. /* confdefs.h. */
  2987. _ACEOF
  2988. cat confdefs.h >>conftest.$ac_ext
  2989. cat >>conftest.$ac_ext <<_ACEOF
  2990. /* end confdefs.h. */
  2991. #include <$ac_header>
  2992. _ACEOF
  2993. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2994. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2995. ac_status=$?
  2996. grep -v '^ *+' conftest.er1 >conftest.err
  2997. rm -f conftest.er1
  2998. cat conftest.err >&5
  2999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3000. (exit $ac_status); } >/dev/null; then
  3001. if test -s conftest.err; then
  3002. ac_cpp_err=$ac_c_preproc_warn_flag
  3003. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3004. else
  3005. ac_cpp_err=
  3006. fi
  3007. else
  3008. ac_cpp_err=yes
  3009. fi
  3010. if test -z "$ac_cpp_err"; then
  3011. ac_header_preproc=yes
  3012. else
  3013. echo "$as_me: failed program was:" >&5
  3014. sed 's/^/| /' conftest.$ac_ext >&5
  3015. ac_header_preproc=no
  3016. fi
  3017. rm -f conftest.err conftest.$ac_ext
  3018. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3019. echo "${ECHO_T}$ac_header_preproc" >&6
  3020. # So? What about this header?
  3021. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3022. yes:no: )
  3023. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3024. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3025. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3026. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3027. ac_header_preproc=yes
  3028. ;;
  3029. no:yes:* )
  3030. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3031. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3032. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3033. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3034. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3035. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3036. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3037. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3038. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3039. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3040. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3041. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3042. (
  3043. cat <<\_ASBOX
  3044. ## ----------------------------------- ##
  3045. ## Report this to gary@music.mcgill.ca ##
  3046. ## ----------------------------------- ##
  3047. _ASBOX
  3048. ) |
  3049. sed "s/^/$as_me: WARNING: /" >&2
  3050. ;;
  3051. esac
  3052. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3053. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3054. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3055. echo $ECHO_N "(cached) $ECHO_C" >&6
  3056. else
  3057. eval "$as_ac_Header=\$ac_header_preproc"
  3058. fi
  3059. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3060. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3061. fi
  3062. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3063. cat >>confdefs.h <<_ACEOF
  3064. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3065. _ACEOF
  3066. fi
  3067. done
  3068. # Checks for typedefs, structures, and compiler characteristics.
  3069. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3070. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3071. if test "${ac_cv_c_const+set}" = set; then
  3072. echo $ECHO_N "(cached) $ECHO_C" >&6
  3073. else
  3074. cat >conftest.$ac_ext <<_ACEOF
  3075. /* confdefs.h. */
  3076. _ACEOF
  3077. cat confdefs.h >>conftest.$ac_ext
  3078. cat >>conftest.$ac_ext <<_ACEOF
  3079. /* end confdefs.h. */
  3080. int
  3081. main ()
  3082. {
  3083. /* FIXME: Include the comments suggested by Paul. */
  3084. #ifndef __cplusplus
  3085. /* Ultrix mips cc rejects this. */
  3086. typedef int charset[2];
  3087. const charset x;
  3088. /* SunOS 4.1.1 cc rejects this. */
  3089. char const *const *ccp;
  3090. char **p;
  3091. /* NEC SVR4.0.2 mips cc rejects this. */
  3092. struct point {int x, y;};
  3093. static struct point const zero = {0,0};
  3094. /* AIX XL C 1.02.0.0 rejects this.
  3095. It does not let you subtract one const X* pointer from another in
  3096. an arm of an if-expression whose if-part is not a constant
  3097. expression */
  3098. const char *g = "string";
  3099. ccp = &g + (g ? g-g : 0);
  3100. /* HPUX 7.0 cc rejects these. */
  3101. ++ccp;
  3102. p = (char**) ccp;
  3103. ccp = (char const *const *) p;
  3104. { /* SCO 3.2v4 cc rejects this. */
  3105. char *t;
  3106. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3107. *t++ = 0;
  3108. }
  3109. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3110. int x[] = {25, 17};
  3111. const int *foo = &x[0];
  3112. ++foo;
  3113. }
  3114. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3115. typedef const int *iptr;
  3116. iptr p = 0;
  3117. ++p;
  3118. }
  3119. { /* AIX XL C 1.02.0.0 rejects this saying
  3120. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3121. struct s { int j; const int *ap[3]; };
  3122. struct s *b; b->j = 5;
  3123. }
  3124. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3125. const int foo = 10;
  3126. }
  3127. #endif
  3128. ;
  3129. return 0;
  3130. }
  3131. _ACEOF
  3132. rm -f conftest.$ac_objext
  3133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3134. (eval $ac_compile) 2>conftest.er1
  3135. ac_status=$?
  3136. grep -v '^ *+' conftest.er1 >conftest.err
  3137. rm -f conftest.er1
  3138. cat conftest.err >&5
  3139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3140. (exit $ac_status); } &&
  3141. { ac_try='test -z "$ac_c_werror_flag"
  3142. || test ! -s conftest.err'
  3143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3144. (eval $ac_try) 2>&5
  3145. ac_status=$?
  3146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3147. (exit $ac_status); }; } &&
  3148. { ac_try='test -s conftest.$ac_objext'
  3149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3150. (eval $ac_try) 2>&5
  3151. ac_status=$?
  3152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3153. (exit $ac_status); }; }; then
  3154. ac_cv_c_const=yes
  3155. else
  3156. echo "$as_me: failed program was:" >&5
  3157. sed 's/^/| /' conftest.$ac_ext >&5
  3158. ac_cv_c_const=no
  3159. fi
  3160. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3161. fi
  3162. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3163. echo "${ECHO_T}$ac_cv_c_const" >&6
  3164. if test $ac_cv_c_const = no; then
  3165. cat >>confdefs.h <<\_ACEOF
  3166. #define const
  3167. _ACEOF
  3168. fi
  3169. # Check for debug
  3170. echo "$as_me:$LINENO: checking whether to compile debug version" >&5
  3171. echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
  3172. # Check whether --enable-debug or --disable-debug was given.
  3173. if test "${enable_debug+set}" = set; then
  3174. enableval="$enable_debug"
  3175. debug=-D__RTAUDIO_DEBUG__
  3176. cflags=-g
  3177. object_path=Debug
  3178. echo "$as_me:$LINENO: result: yes" >&5
  3179. echo "${ECHO_T}yes" >&6
  3180. else
  3181. debug=
  3182. cflags=-O2
  3183. object_path=Release
  3184. echo "$as_me:$LINENO: result: no" >&5
  3185. echo "${ECHO_T}no" >&6
  3186. fi;
  3187. # Checks for functions
  3188. echo "$as_me:$LINENO: checking for gettimeofday" >&5
  3189. echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
  3190. if test "${ac_cv_func_gettimeofday+set}" = set; then
  3191. echo $ECHO_N "(cached) $ECHO_C" >&6
  3192. else
  3193. cat >conftest.$ac_ext <<_ACEOF
  3194. /* confdefs.h. */
  3195. _ACEOF
  3196. cat confdefs.h >>conftest.$ac_ext
  3197. cat >>conftest.$ac_ext <<_ACEOF
  3198. /* end confdefs.h. */
  3199. /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
  3200. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3201. #define gettimeofday innocuous_gettimeofday
  3202. /* System header to define __stub macros and hopefully few prototypes,
  3203. which can conflict with char gettimeofday (); below.
  3204. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3205. <limits.h> exists even on freestanding compilers. */
  3206. #ifdef __STDC__
  3207. # include <limits.h>
  3208. #else
  3209. # include <assert.h>
  3210. #endif
  3211. #undef gettimeofday
  3212. /* Override any gcc2 internal prototype to avoid an error. */
  3213. #ifdef __cplusplus
  3214. extern "C"
  3215. {
  3216. #endif
  3217. /* We use char because int might match the return type of a gcc2
  3218. builtin and then its argument prototype would still apply. */
  3219. char gettimeofday ();
  3220. /* The GNU C library defines this for functions which it implements
  3221. to always fail with ENOSYS. Some functions are actually named
  3222. something starting with __ and the normal name is an alias. */
  3223. #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
  3224. choke me
  3225. #else
  3226. char (*f) () = gettimeofday;
  3227. #endif
  3228. #ifdef __cplusplus
  3229. }
  3230. #endif
  3231. int
  3232. main ()
  3233. {
  3234. return f != gettimeofday;
  3235. ;
  3236. return 0;
  3237. }
  3238. _ACEOF
  3239. rm -f conftest.$ac_objext conftest$ac_exeext
  3240. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3241. (eval $ac_link) 2>conftest.er1
  3242. ac_status=$?
  3243. grep -v '^ *+' conftest.er1 >conftest.err
  3244. rm -f conftest.er1
  3245. cat conftest.err >&5
  3246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3247. (exit $ac_status); } &&
  3248. { ac_try='test -z "$ac_c_werror_flag"
  3249. || test ! -s conftest.err'
  3250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3251. (eval $ac_try) 2>&5
  3252. ac_status=$?
  3253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3254. (exit $ac_status); }; } &&
  3255. { ac_try='test -s conftest$ac_exeext'
  3256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3257. (eval $ac_try) 2>&5
  3258. ac_status=$?
  3259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3260. (exit $ac_status); }; }; then
  3261. ac_cv_func_gettimeofday=yes
  3262. else
  3263. echo "$as_me: failed program was:" >&5
  3264. sed 's/^/| /' conftest.$ac_ext >&5
  3265. ac_cv_func_gettimeofday=no
  3266. fi
  3267. rm -f conftest.err conftest.$ac_objext \
  3268. conftest$ac_exeext conftest.$ac_ext
  3269. fi
  3270. echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
  3271. echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
  3272. if test $ac_cv_func_gettimeofday = yes; then
  3273. CFLAGS=$CFLAGS" -DHAVE_GETTIMEOFDAY"
  3274. fi
  3275. # Check compiler and use -Wall if gnu.
  3276. if test $GXX = "yes" ; then
  3277. warn=-Wall
  3278. fi
  3279. CFLAGS="$CFLAGS $cflags"
  3280. # Checks for package options and external software
  3281. ac_aux_dir=
  3282. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  3283. if test -f $ac_dir/install-sh; then
  3284. ac_aux_dir=$ac_dir
  3285. ac_install_sh="$ac_aux_dir/install-sh -c"
  3286. break
  3287. elif test -f $ac_dir/install.sh; then
  3288. ac_aux_dir=$ac_dir
  3289. ac_install_sh="$ac_aux_dir/install.sh -c"
  3290. break
  3291. elif test -f $ac_dir/shtool; then
  3292. ac_aux_dir=$ac_dir
  3293. ac_install_sh="$ac_aux_dir/shtool install -c"
  3294. break
  3295. fi
  3296. done
  3297. if test -z "$ac_aux_dir"; then
  3298. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  3299. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  3300. { (exit 1); exit 1; }; }
  3301. fi
  3302. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  3303. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  3304. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  3305. # Make sure we can run config.sub.
  3306. $ac_config_sub sun4 >/dev/null 2>&1 ||
  3307. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3308. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3309. { (exit 1); exit 1; }; }
  3310. echo "$as_me:$LINENO: checking build system type" >&5
  3311. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3312. if test "${ac_cv_build+set}" = set; then
  3313. echo $ECHO_N "(cached) $ECHO_C" >&6
  3314. else
  3315. ac_cv_build_alias=$build_alias
  3316. test -z "$ac_cv_build_alias" &&
  3317. ac_cv_build_alias=`$ac_config_guess`
  3318. test -z "$ac_cv_build_alias" &&
  3319. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3320. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3321. { (exit 1); exit 1; }; }
  3322. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3323. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3324. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3325. { (exit 1); exit 1; }; }
  3326. fi
  3327. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3328. echo "${ECHO_T}$ac_cv_build" >&6
  3329. build=$ac_cv_build
  3330. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3331. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3332. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3333. echo "$as_me:$LINENO: checking host system type" >&5
  3334. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3335. if test "${ac_cv_host+set}" = set; then
  3336. echo $ECHO_N "(cached) $ECHO_C" >&6
  3337. else
  3338. ac_cv_host_alias=$host_alias
  3339. test -z "$ac_cv_host_alias" &&
  3340. ac_cv_host_alias=$ac_cv_build_alias
  3341. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3342. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3343. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3344. { (exit 1); exit 1; }; }
  3345. fi
  3346. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3347. echo "${ECHO_T}$ac_cv_host" >&6
  3348. host=$ac_cv_host
  3349. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3350. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3351. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3352. echo "$as_me:$LINENO: checking for audio API" >&5
  3353. echo $ECHO_N "checking for audio API... $ECHO_C" >&6
  3354. case $host in
  3355. *-*-netbsd*)
  3356. sound_api=-D__LINUX_OSS__
  3357. echo "$as_me:$LINENO: result: using OSS" >&5
  3358. echo "${ECHO_T}using OSS" >&6
  3359. audio_apis=-D__LINUX_OSS__
  3360. CFLAGS=$CFLAGS" -lossaudio"
  3361. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  3362. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  3363. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  3364. echo $ECHO_N "(cached) $ECHO_C" >&6
  3365. else
  3366. ac_check_lib_save_LIBS=$LIBS
  3367. LIBS="-lpthread $LIBS"
  3368. cat >conftest.$ac_ext <<_ACEOF
  3369. /* confdefs.h. */
  3370. _ACEOF
  3371. cat confdefs.h >>conftest.$ac_ext
  3372. cat >>conftest.$ac_ext <<_ACEOF
  3373. /* end confdefs.h. */
  3374. /* Override any gcc2 internal prototype to avoid an error. */
  3375. #ifdef __cplusplus
  3376. extern "C"
  3377. #endif
  3378. /* We use char because int might match the return type of a gcc2
  3379. builtin and then its argument prototype would still apply. */
  3380. char pthread_create ();
  3381. int
  3382. main ()
  3383. {
  3384. pthread_create ();
  3385. ;
  3386. return 0;
  3387. }
  3388. _ACEOF
  3389. rm -f conftest.$ac_objext conftest$ac_exeext
  3390. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3391. (eval $ac_link) 2>conftest.er1
  3392. ac_status=$?
  3393. grep -v '^ *+' conftest.er1 >conftest.err
  3394. rm -f conftest.er1
  3395. cat conftest.err >&5
  3396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3397. (exit $ac_status); } &&
  3398. { ac_try='test -z "$ac_c_werror_flag"
  3399. || test ! -s conftest.err'
  3400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3401. (eval $ac_try) 2>&5
  3402. ac_status=$?
  3403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3404. (exit $ac_status); }; } &&
  3405. { ac_try='test -s conftest$ac_exeext'
  3406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3407. (eval $ac_try) 2>&5
  3408. ac_status=$?
  3409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3410. (exit $ac_status); }; }; then
  3411. ac_cv_lib_pthread_pthread_create=yes
  3412. else
  3413. echo "$as_me: failed program was:" >&5
  3414. sed 's/^/| /' conftest.$ac_ext >&5
  3415. ac_cv_lib_pthread_pthread_create=no
  3416. fi
  3417. rm -f conftest.err conftest.$ac_objext \
  3418. conftest$ac_exeext conftest.$ac_ext
  3419. LIBS=$ac_check_lib_save_LIBS
  3420. fi
  3421. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  3422. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  3423. if test $ac_cv_lib_pthread_pthread_create = yes; then
  3424. cat >>confdefs.h <<_ACEOF
  3425. #define HAVE_LIBPTHREAD 1
  3426. _ACEOF
  3427. LIBS="-lpthread $LIBS"
  3428. else
  3429. { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
  3430. echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
  3431. { (exit 1); exit 1; }; }
  3432. fi
  3433. ;;
  3434. *-*-linux*)
  3435. sound_api=_NO_API_
  3436. # Check whether --with-jack or --without-jack was given.
  3437. if test "${with_jack+set}" = set; then
  3438. withval="$with_jack"
  3439. sound_api=-D__UNIX_JACK__
  3440. echo "$as_me:$LINENO: result: using JACK" >&5
  3441. echo "${ECHO_T}using JACK" >&6
  3442. fi;
  3443. if test $sound_api = -D__UNIX_JACK__; then
  3444. TEMP_LIBS=$LIBS
  3445. echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
  3446. echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
  3447. if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
  3448. echo $ECHO_N "(cached) $ECHO_C" >&6
  3449. else
  3450. ac_check_lib_save_LIBS=$LIBS
  3451. LIBS="-ljack $LIBS"
  3452. cat >conftest.$ac_ext <<_ACEOF
  3453. /* confdefs.h. */
  3454. _ACEOF
  3455. cat confdefs.h >>conftest.$ac_ext
  3456. cat >>conftest.$ac_ext <<_ACEOF
  3457. /* end confdefs.h. */
  3458. /* Override any gcc2 internal prototype to avoid an error. */
  3459. #ifdef __cplusplus
  3460. extern "C"
  3461. #endif
  3462. /* We use char because int might match the return type of a gcc2
  3463. builtin and then its argument prototype would still apply. */
  3464. char jack_client_new ();
  3465. int
  3466. main ()
  3467. {
  3468. jack_client_new ();
  3469. ;
  3470. return 0;
  3471. }
  3472. _ACEOF
  3473. rm -f conftest.$ac_objext conftest$ac_exeext
  3474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3475. (eval $ac_link) 2>conftest.er1
  3476. ac_status=$?
  3477. grep -v '^ *+' conftest.er1 >conftest.err
  3478. rm -f conftest.er1
  3479. cat conftest.err >&5
  3480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3481. (exit $ac_status); } &&
  3482. { ac_try='test -z "$ac_c_werror_flag"
  3483. || test ! -s conftest.err'
  3484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3485. (eval $ac_try) 2>&5
  3486. ac_status=$?
  3487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3488. (exit $ac_status); }; } &&
  3489. { ac_try='test -s conftest$ac_exeext'
  3490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3491. (eval $ac_try) 2>&5
  3492. ac_status=$?
  3493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3494. (exit $ac_status); }; }; then
  3495. ac_cv_lib_jack_jack_client_new=yes
  3496. else
  3497. echo "$as_me: failed program was:" >&5
  3498. sed 's/^/| /' conftest.$ac_ext >&5
  3499. ac_cv_lib_jack_jack_client_new=no
  3500. fi
  3501. rm -f conftest.err conftest.$ac_objext \
  3502. conftest$ac_exeext conftest.$ac_ext
  3503. LIBS=$ac_check_lib_save_LIBS
  3504. fi
  3505. echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
  3506. echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
  3507. if test $ac_cv_lib_jack_jack_client_new = yes; then
  3508. cat >>confdefs.h <<_ACEOF
  3509. #define HAVE_LIBJACK 1
  3510. _ACEOF
  3511. LIBS="-ljack $LIBS"
  3512. else
  3513. { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
  3514. echo "$as_me: error: JACK support requires the jack library!" >&2;}
  3515. { (exit 1); exit 1; }; }
  3516. fi
  3517. echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
  3518. echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
  3519. if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
  3520. echo $ECHO_N "(cached) $ECHO_C" >&6
  3521. else
  3522. ac_check_lib_save_LIBS=$LIBS
  3523. LIBS="-lasound $LIBS"
  3524. cat >conftest.$ac_ext <<_ACEOF
  3525. /* confdefs.h. */
  3526. _ACEOF
  3527. cat confdefs.h >>conftest.$ac_ext
  3528. cat >>conftest.$ac_ext <<_ACEOF
  3529. /* end confdefs.h. */
  3530. /* Override any gcc2 internal prototype to avoid an error. */
  3531. #ifdef __cplusplus
  3532. extern "C"
  3533. #endif
  3534. /* We use char because int might match the return type of a gcc2
  3535. builtin and then its argument prototype would still apply. */
  3536. char snd_pcm_open ();
  3537. int
  3538. main ()
  3539. {
  3540. snd_pcm_open ();
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext conftest$ac_exeext
  3546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3547. (eval $ac_link) 2>conftest.er1
  3548. ac_status=$?
  3549. grep -v '^ *+' conftest.er1 >conftest.err
  3550. rm -f conftest.er1
  3551. cat conftest.err >&5
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } &&
  3554. { ac_try='test -z "$ac_c_werror_flag"
  3555. || test ! -s conftest.err'
  3556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3557. (eval $ac_try) 2>&5
  3558. ac_status=$?
  3559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); }; } &&
  3561. { ac_try='test -s conftest$ac_exeext'
  3562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3563. (eval $ac_try) 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); }; }; then
  3567. ac_cv_lib_asound_snd_pcm_open=yes
  3568. else
  3569. echo "$as_me: failed program was:" >&5
  3570. sed 's/^/| /' conftest.$ac_ext >&5
  3571. ac_cv_lib_asound_snd_pcm_open=no
  3572. fi
  3573. rm -f conftest.err conftest.$ac_objext \
  3574. conftest$ac_exeext conftest.$ac_ext
  3575. LIBS=$ac_check_lib_save_LIBS
  3576. fi
  3577. echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  3578. echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
  3579. if test $ac_cv_lib_asound_snd_pcm_open = yes; then
  3580. cat >>confdefs.h <<_ACEOF
  3581. #define HAVE_LIBASOUND 1
  3582. _ACEOF
  3583. LIBS="-lasound $LIBS"
  3584. else
  3585. { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
  3586. echo "$as_me: error: Jack support also requires the asound library!" >&2;}
  3587. { (exit 1); exit 1; }; }
  3588. fi
  3589. LIBS="`pkg-config --CFLAGS --libs jack` $TEMP_LIBS -lasound"
  3590. audio_apis="-D__UNIX_JACK__"
  3591. fi
  3592. # Look for ALSA flag
  3593. # Check whether --with-alsa or --without-alsa was given.
  3594. if test "${with_alsa+set}" = set; then
  3595. withval="$with_alsa"
  3596. sound_api=-D__LINUX_ALSA__
  3597. echo "$as_me:$LINENO: result: using ALSA" >&5
  3598. echo "${ECHO_T}using ALSA" >&6
  3599. fi;
  3600. if test $sound_api = -D__LINUX_ALSA__; then
  3601. echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
  3602. echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
  3603. if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
  3604. echo $ECHO_N "(cached) $ECHO_C" >&6
  3605. else
  3606. ac_check_lib_save_LIBS=$LIBS
  3607. LIBS="-lasound $LIBS"
  3608. cat >conftest.$ac_ext <<_ACEOF
  3609. /* confdefs.h. */
  3610. _ACEOF
  3611. cat confdefs.h >>conftest.$ac_ext
  3612. cat >>conftest.$ac_ext <<_ACEOF
  3613. /* end confdefs.h. */
  3614. /* Override any gcc2 internal prototype to avoid an error. */
  3615. #ifdef __cplusplus
  3616. extern "C"
  3617. #endif
  3618. /* We use char because int might match the return type of a gcc2
  3619. builtin and then its argument prototype would still apply. */
  3620. char snd_pcm_open ();
  3621. int
  3622. main ()
  3623. {
  3624. snd_pcm_open ();
  3625. ;
  3626. return 0;
  3627. }
  3628. _ACEOF
  3629. rm -f conftest.$ac_objext conftest$ac_exeext
  3630. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3631. (eval $ac_link) 2>conftest.er1
  3632. ac_status=$?
  3633. grep -v '^ *+' conftest.er1 >conftest.err
  3634. rm -f conftest.er1
  3635. cat conftest.err >&5
  3636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3637. (exit $ac_status); } &&
  3638. { ac_try='test -z "$ac_c_werror_flag"
  3639. || test ! -s conftest.err'
  3640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3641. (eval $ac_try) 2>&5
  3642. ac_status=$?
  3643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3644. (exit $ac_status); }; } &&
  3645. { ac_try='test -s conftest$ac_exeext'
  3646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3647. (eval $ac_try) 2>&5
  3648. ac_status=$?
  3649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3650. (exit $ac_status); }; }; then
  3651. ac_cv_lib_asound_snd_pcm_open=yes
  3652. else
  3653. echo "$as_me: failed program was:" >&5
  3654. sed 's/^/| /' conftest.$ac_ext >&5
  3655. ac_cv_lib_asound_snd_pcm_open=no
  3656. fi
  3657. rm -f conftest.err conftest.$ac_objext \
  3658. conftest$ac_exeext conftest.$ac_ext
  3659. LIBS=$ac_check_lib_save_LIBS
  3660. fi
  3661. echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  3662. echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
  3663. if test $ac_cv_lib_asound_snd_pcm_open = yes; then
  3664. cat >>confdefs.h <<_ACEOF
  3665. #define HAVE_LIBASOUND 1
  3666. _ACEOF
  3667. LIBS="-lasound $LIBS"
  3668. else
  3669. { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
  3670. echo "$as_me: error: ALSA support requires the asound library!" >&2;}
  3671. { (exit 1); exit 1; }; }
  3672. fi
  3673. audio_apis="-D__LINUX_ALSA__ $audio_apis"
  3674. fi
  3675. # Look for OSS flag
  3676. # Check whether --with-oss or --without-oss was given.
  3677. if test "${with_oss+set}" = set; then
  3678. withval="$with_oss"
  3679. sound_api=-D__LINUX_OSS__
  3680. echo "$as_me:$LINENO: result: using OSS" >&5
  3681. echo "${ECHO_T}using OSS" >&6
  3682. fi;
  3683. if test $sound_api = -D__LINUX_OSS__; then
  3684. audio_apis="-D__LINUX_OSS__ $audio_apis"
  3685. fi
  3686. # If no audio api flags specified, use ALSA
  3687. if test $sound_api = _NO_API_; then
  3688. echo "$as_me:$LINENO: result: using ALSA" >&5
  3689. echo "${ECHO_T}using ALSA" >&6
  3690. audio_apis=-D__LINUX_ALSA__
  3691. echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
  3692. echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
  3693. if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
  3694. echo $ECHO_N "(cached) $ECHO_C" >&6
  3695. else
  3696. ac_check_lib_save_LIBS=$LIBS
  3697. LIBS="-lasound $LIBS"
  3698. cat >conftest.$ac_ext <<_ACEOF
  3699. /* confdefs.h. */
  3700. _ACEOF
  3701. cat confdefs.h >>conftest.$ac_ext
  3702. cat >>conftest.$ac_ext <<_ACEOF
  3703. /* end confdefs.h. */
  3704. /* Override any gcc2 internal prototype to avoid an error. */
  3705. #ifdef __cplusplus
  3706. extern "C"
  3707. #endif
  3708. /* We use char because int might match the return type of a gcc2
  3709. builtin and then its argument prototype would still apply. */
  3710. char snd_pcm_open ();
  3711. int
  3712. main ()
  3713. {
  3714. snd_pcm_open ();
  3715. ;
  3716. return 0;
  3717. }
  3718. _ACEOF
  3719. rm -f conftest.$ac_objext conftest$ac_exeext
  3720. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3721. (eval $ac_link) 2>conftest.er1
  3722. ac_status=$?
  3723. grep -v '^ *+' conftest.er1 >conftest.err
  3724. rm -f conftest.er1
  3725. cat conftest.err >&5
  3726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. (exit $ac_status); } &&
  3728. { ac_try='test -z "$ac_c_werror_flag"
  3729. || test ! -s conftest.err'
  3730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3731. (eval $ac_try) 2>&5
  3732. ac_status=$?
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); }; } &&
  3735. { ac_try='test -s conftest$ac_exeext'
  3736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3737. (eval $ac_try) 2>&5
  3738. ac_status=$?
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); }; }; then
  3741. ac_cv_lib_asound_snd_pcm_open=yes
  3742. else
  3743. echo "$as_me: failed program was:" >&5
  3744. sed 's/^/| /' conftest.$ac_ext >&5
  3745. ac_cv_lib_asound_snd_pcm_open=no
  3746. fi
  3747. rm -f conftest.err conftest.$ac_objext \
  3748. conftest$ac_exeext conftest.$ac_ext
  3749. LIBS=$ac_check_lib_save_LIBS
  3750. fi
  3751. echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  3752. echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
  3753. if test $ac_cv_lib_asound_snd_pcm_open = yes; then
  3754. cat >>confdefs.h <<_ACEOF
  3755. #define HAVE_LIBASOUND 1
  3756. _ACEOF
  3757. LIBS="-lasound $LIBS"
  3758. else
  3759. { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
  3760. echo "$as_me: error: ALSA support requires the asound library!" >&2;}
  3761. { (exit 1); exit 1; }; }
  3762. fi
  3763. fi
  3764. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  3765. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  3766. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  3767. echo $ECHO_N "(cached) $ECHO_C" >&6
  3768. else
  3769. ac_check_lib_save_LIBS=$LIBS
  3770. LIBS="-lpthread $LIBS"
  3771. cat >conftest.$ac_ext <<_ACEOF
  3772. /* confdefs.h. */
  3773. _ACEOF
  3774. cat confdefs.h >>conftest.$ac_ext
  3775. cat >>conftest.$ac_ext <<_ACEOF
  3776. /* end confdefs.h. */
  3777. /* Override any gcc2 internal prototype to avoid an error. */
  3778. #ifdef __cplusplus
  3779. extern "C"
  3780. #endif
  3781. /* We use char because int might match the return type of a gcc2
  3782. builtin and then its argument prototype would still apply. */
  3783. char pthread_create ();
  3784. int
  3785. main ()
  3786. {
  3787. pthread_create ();
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. rm -f conftest.$ac_objext conftest$ac_exeext
  3793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3794. (eval $ac_link) 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } &&
  3801. { ac_try='test -z "$ac_c_werror_flag"
  3802. || test ! -s conftest.err'
  3803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3804. (eval $ac_try) 2>&5
  3805. ac_status=$?
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); }; } &&
  3808. { ac_try='test -s conftest$ac_exeext'
  3809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3810. (eval $ac_try) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); }; }; then
  3814. ac_cv_lib_pthread_pthread_create=yes
  3815. else
  3816. echo "$as_me: failed program was:" >&5
  3817. sed 's/^/| /' conftest.$ac_ext >&5
  3818. ac_cv_lib_pthread_pthread_create=no
  3819. fi
  3820. rm -f conftest.err conftest.$ac_objext \
  3821. conftest$ac_exeext conftest.$ac_ext
  3822. LIBS=$ac_check_lib_save_LIBS
  3823. fi
  3824. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  3825. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  3826. if test $ac_cv_lib_pthread_pthread_create = yes; then
  3827. cat >>confdefs.h <<_ACEOF
  3828. #define HAVE_LIBPTHREAD 1
  3829. _ACEOF
  3830. LIBS="-lpthread $LIBS"
  3831. else
  3832. { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
  3833. echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
  3834. { (exit 1); exit 1; }; }
  3835. fi
  3836. ;;
  3837. *-apple*)
  3838. sound_api=_NO_API_
  3839. # Check whether --with-jack or --without-jack was given.
  3840. if test "${with_jack+set}" = set; then
  3841. withval="$with_jack"
  3842. sound_api=-D__UNIX_JACK__
  3843. echo "$as_me:$LINENO: result: using JACK" >&5
  3844. echo "${ECHO_T}using JACK" >&6
  3845. fi;
  3846. if test $sound_api = -D__UNIX_JACK__; then
  3847. echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
  3848. echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
  3849. if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
  3850. echo $ECHO_N "(cached) $ECHO_C" >&6
  3851. else
  3852. ac_check_lib_save_LIBS=$LIBS
  3853. LIBS="-ljack $LIBS"
  3854. cat >conftest.$ac_ext <<_ACEOF
  3855. /* confdefs.h. */
  3856. _ACEOF
  3857. cat confdefs.h >>conftest.$ac_ext
  3858. cat >>conftest.$ac_ext <<_ACEOF
  3859. /* end confdefs.h. */
  3860. /* Override any gcc2 internal prototype to avoid an error. */
  3861. #ifdef __cplusplus
  3862. extern "C"
  3863. #endif
  3864. /* We use char because int might match the return type of a gcc2
  3865. builtin and then its argument prototype would still apply. */
  3866. char jack_client_new ();
  3867. int
  3868. main ()
  3869. {
  3870. jack_client_new ();
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. rm -f conftest.$ac_objext conftest$ac_exeext
  3876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3877. (eval $ac_link) 2>conftest.er1
  3878. ac_status=$?
  3879. grep -v '^ *+' conftest.er1 >conftest.err
  3880. rm -f conftest.er1
  3881. cat conftest.err >&5
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); } &&
  3884. { ac_try='test -z "$ac_c_werror_flag"
  3885. || test ! -s conftest.err'
  3886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3887. (eval $ac_try) 2>&5
  3888. ac_status=$?
  3889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890. (exit $ac_status); }; } &&
  3891. { ac_try='test -s conftest$ac_exeext'
  3892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3893. (eval $ac_try) 2>&5
  3894. ac_status=$?
  3895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3896. (exit $ac_status); }; }; then
  3897. ac_cv_lib_jack_jack_client_new=yes
  3898. else
  3899. echo "$as_me: failed program was:" >&5
  3900. sed 's/^/| /' conftest.$ac_ext >&5
  3901. ac_cv_lib_jack_jack_client_new=no
  3902. fi
  3903. rm -f conftest.err conftest.$ac_objext \
  3904. conftest$ac_exeext conftest.$ac_ext
  3905. LIBS=$ac_check_lib_save_LIBS
  3906. fi
  3907. echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
  3908. echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
  3909. if test $ac_cv_lib_jack_jack_client_new = yes; then
  3910. cat >>confdefs.h <<_ACEOF
  3911. #define HAVE_LIBJACK 1
  3912. _ACEOF
  3913. LIBS="-ljack $LIBS"
  3914. else
  3915. { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
  3916. echo "$as_me: error: JACK support requires the jack library!" >&2;}
  3917. { (exit 1); exit 1; }; }
  3918. fi
  3919. audio_apis="-D__UNIX_JACK__"
  3920. fi
  3921. # Look for Core flag
  3922. # Check whether --with-core or --without-core was given.
  3923. if test "${with_core+set}" = set; then
  3924. withval="$with_core"
  3925. sound_api=-D__MACOSX_CORE__
  3926. echo "$as_me:$LINENO: result: using CoreAudio" >&5
  3927. echo "${ECHO_T}using CoreAudio" >&6
  3928. fi;
  3929. if test $sound_api = -D__MACOSX_CORE__; then
  3930. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  3931. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  3932. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  3933. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  3934. echo $ECHO_N "(cached) $ECHO_C" >&6
  3935. fi
  3936. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  3937. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  3938. else
  3939. # Is the header compilable?
  3940. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  3941. echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
  3942. cat >conftest.$ac_ext <<_ACEOF
  3943. /* confdefs.h. */
  3944. _ACEOF
  3945. cat confdefs.h >>conftest.$ac_ext
  3946. cat >>conftest.$ac_ext <<_ACEOF
  3947. /* end confdefs.h. */
  3948. $ac_includes_default
  3949. #include <CoreAudio/CoreAudio.h>
  3950. _ACEOF
  3951. rm -f conftest.$ac_objext
  3952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3953. (eval $ac_compile) 2>conftest.er1
  3954. ac_status=$?
  3955. grep -v '^ *+' conftest.er1 >conftest.err
  3956. rm -f conftest.er1
  3957. cat conftest.err >&5
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); } &&
  3960. { ac_try='test -z "$ac_c_werror_flag"
  3961. || test ! -s conftest.err'
  3962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3963. (eval $ac_try) 2>&5
  3964. ac_status=$?
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); }; } &&
  3967. { ac_try='test -s conftest.$ac_objext'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; }; then
  3973. ac_header_compiler=yes
  3974. else
  3975. echo "$as_me: failed program was:" >&5
  3976. sed 's/^/| /' conftest.$ac_ext >&5
  3977. ac_header_compiler=no
  3978. fi
  3979. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3980. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3981. echo "${ECHO_T}$ac_header_compiler" >&6
  3982. # Is the header present?
  3983. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  3984. echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
  3985. cat >conftest.$ac_ext <<_ACEOF
  3986. /* confdefs.h. */
  3987. _ACEOF
  3988. cat confdefs.h >>conftest.$ac_ext
  3989. cat >>conftest.$ac_ext <<_ACEOF
  3990. /* end confdefs.h. */
  3991. #include <CoreAudio/CoreAudio.h>
  3992. _ACEOF
  3993. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3994. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3995. ac_status=$?
  3996. grep -v '^ *+' conftest.er1 >conftest.err
  3997. rm -f conftest.er1
  3998. cat conftest.err >&5
  3999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4000. (exit $ac_status); } >/dev/null; then
  4001. if test -s conftest.err; then
  4002. ac_cpp_err=$ac_c_preproc_warn_flag
  4003. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4004. else
  4005. ac_cpp_err=
  4006. fi
  4007. else
  4008. ac_cpp_err=yes
  4009. fi
  4010. if test -z "$ac_cpp_err"; then
  4011. ac_header_preproc=yes
  4012. else
  4013. echo "$as_me: failed program was:" >&5
  4014. sed 's/^/| /' conftest.$ac_ext >&5
  4015. ac_header_preproc=no
  4016. fi
  4017. rm -f conftest.err conftest.$ac_ext
  4018. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4019. echo "${ECHO_T}$ac_header_preproc" >&6
  4020. # So? What about this header?
  4021. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4022. yes:no: )
  4023. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4024. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4025. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  4026. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  4027. ac_header_preproc=yes
  4028. ;;
  4029. no:yes:* )
  4030. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  4031. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  4032. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
  4033. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
  4034. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  4035. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  4036. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
  4037. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4038. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  4039. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  4040. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  4041. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  4042. (
  4043. cat <<\_ASBOX
  4044. ## ----------------------------------- ##
  4045. ## Report this to gary@music.mcgill.ca ##
  4046. ## ----------------------------------- ##
  4047. _ASBOX
  4048. ) |
  4049. sed "s/^/$as_me: WARNING: /" >&2
  4050. ;;
  4051. esac
  4052. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  4053. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  4054. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  4055. echo $ECHO_N "(cached) $ECHO_C" >&6
  4056. else
  4057. ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  4058. fi
  4059. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  4060. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  4061. fi
  4062. if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  4063. :
  4064. else
  4065. { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
  4066. echo "$as_me: error: CoreAudio header files not found!" >&2;}
  4067. { (exit 1); exit 1; }; }
  4068. fi
  4069. frameworks="-framework CoreAudio -framework CoreFoundation"
  4070. audio_apis="-D__MACOSX_CORE__ $audio_apis"
  4071. fi
  4072. # If no audio api flags specified, use CoreAudio
  4073. if test $sound_api = _NO_API_; then
  4074. sound_api=-D__MACOSX_CORE__
  4075. echo "$as_me:$LINENO: result: using CoreAudio" >&5
  4076. echo "${ECHO_T}using CoreAudio" >&6
  4077. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  4078. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  4079. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  4080. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  4081. echo $ECHO_N "(cached) $ECHO_C" >&6
  4082. fi
  4083. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  4084. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  4085. else
  4086. # Is the header compilable?
  4087. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
  4088. echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
  4089. cat >conftest.$ac_ext <<_ACEOF
  4090. /* confdefs.h. */
  4091. _ACEOF
  4092. cat confdefs.h >>conftest.$ac_ext
  4093. cat >>conftest.$ac_ext <<_ACEOF
  4094. /* end confdefs.h. */
  4095. $ac_includes_default
  4096. #include <CoreAudio/CoreAudio.h>
  4097. _ACEOF
  4098. rm -f conftest.$ac_objext
  4099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4100. (eval $ac_compile) 2>conftest.er1
  4101. ac_status=$?
  4102. grep -v '^ *+' conftest.er1 >conftest.err
  4103. rm -f conftest.er1
  4104. cat conftest.err >&5
  4105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106. (exit $ac_status); } &&
  4107. { ac_try='test -z "$ac_c_werror_flag"
  4108. || test ! -s conftest.err'
  4109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4110. (eval $ac_try) 2>&5
  4111. ac_status=$?
  4112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. (exit $ac_status); }; } &&
  4114. { ac_try='test -s conftest.$ac_objext'
  4115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4116. (eval $ac_try) 2>&5
  4117. ac_status=$?
  4118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4119. (exit $ac_status); }; }; then
  4120. ac_header_compiler=yes
  4121. else
  4122. echo "$as_me: failed program was:" >&5
  4123. sed 's/^/| /' conftest.$ac_ext >&5
  4124. ac_header_compiler=no
  4125. fi
  4126. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4127. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4128. echo "${ECHO_T}$ac_header_compiler" >&6
  4129. # Is the header present?
  4130. echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
  4131. echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. #include <CoreAudio/CoreAudio.h>
  4139. _ACEOF
  4140. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4141. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4142. ac_status=$?
  4143. grep -v '^ *+' conftest.er1 >conftest.err
  4144. rm -f conftest.er1
  4145. cat conftest.err >&5
  4146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4147. (exit $ac_status); } >/dev/null; then
  4148. if test -s conftest.err; then
  4149. ac_cpp_err=$ac_c_preproc_warn_flag
  4150. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4151. else
  4152. ac_cpp_err=
  4153. fi
  4154. else
  4155. ac_cpp_err=yes
  4156. fi
  4157. if test -z "$ac_cpp_err"; then
  4158. ac_header_preproc=yes
  4159. else
  4160. echo "$as_me: failed program was:" >&5
  4161. sed 's/^/| /' conftest.$ac_ext >&5
  4162. ac_header_preproc=no
  4163. fi
  4164. rm -f conftest.err conftest.$ac_ext
  4165. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4166. echo "${ECHO_T}$ac_header_preproc" >&6
  4167. # So? What about this header?
  4168. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4169. yes:no: )
  4170. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4171. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4172. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
  4173. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
  4174. ac_header_preproc=yes
  4175. ;;
  4176. no:yes:* )
  4177. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
  4178. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
  4179. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
  4180. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
  4181. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
  4182. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
  4183. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
  4184. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4185. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
  4186. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
  4187. { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
  4188. echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
  4189. (
  4190. cat <<\_ASBOX
  4191. ## ----------------------------------- ##
  4192. ## Report this to gary@music.mcgill.ca ##
  4193. ## ----------------------------------- ##
  4194. _ASBOX
  4195. ) |
  4196. sed "s/^/$as_me: WARNING: /" >&2
  4197. ;;
  4198. esac
  4199. echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
  4200. echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
  4201. if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
  4202. echo $ECHO_N "(cached) $ECHO_C" >&6
  4203. else
  4204. ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
  4205. fi
  4206. echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
  4207. echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
  4208. fi
  4209. if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
  4210. audio_apis=-D__MACOSX_CORE__
  4211. else
  4212. { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
  4213. echo "$as_me: error: CoreAudio header files not found!" >&2;}
  4214. { (exit 1); exit 1; }; }
  4215. fi
  4216. frameworks="-framework CoreAudio -framework CoreFoundation"
  4217. fi
  4218. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  4219. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  4220. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  4221. echo $ECHO_N "(cached) $ECHO_C" >&6
  4222. else
  4223. ac_check_lib_save_LIBS=$LIBS
  4224. LIBS="-lpthread $LIBS"
  4225. cat >conftest.$ac_ext <<_ACEOF
  4226. /* confdefs.h. */
  4227. _ACEOF
  4228. cat confdefs.h >>conftest.$ac_ext
  4229. cat >>conftest.$ac_ext <<_ACEOF
  4230. /* end confdefs.h. */
  4231. /* Override any gcc2 internal prototype to avoid an error. */
  4232. #ifdef __cplusplus
  4233. extern "C"
  4234. #endif
  4235. /* We use char because int might match the return type of a gcc2
  4236. builtin and then its argument prototype would still apply. */
  4237. char pthread_create ();
  4238. int
  4239. main ()
  4240. {
  4241. pthread_create ();
  4242. ;
  4243. return 0;
  4244. }
  4245. _ACEOF
  4246. rm -f conftest.$ac_objext conftest$ac_exeext
  4247. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4248. (eval $ac_link) 2>conftest.er1
  4249. ac_status=$?
  4250. grep -v '^ *+' conftest.er1 >conftest.err
  4251. rm -f conftest.er1
  4252. cat conftest.err >&5
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); } &&
  4255. { ac_try='test -z "$ac_c_werror_flag"
  4256. || test ! -s conftest.err'
  4257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4258. (eval $ac_try) 2>&5
  4259. ac_status=$?
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); }; } &&
  4262. { ac_try='test -s conftest$ac_exeext'
  4263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4264. (eval $ac_try) 2>&5
  4265. ac_status=$?
  4266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4267. (exit $ac_status); }; }; then
  4268. ac_cv_lib_pthread_pthread_create=yes
  4269. else
  4270. echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272. ac_cv_lib_pthread_pthread_create=no
  4273. fi
  4274. rm -f conftest.err conftest.$ac_objext \
  4275. conftest$ac_exeext conftest.$ac_ext
  4276. LIBS=$ac_check_lib_save_LIBS
  4277. fi
  4278. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  4279. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  4280. if test $ac_cv_lib_pthread_pthread_create = yes; then
  4281. cat >>confdefs.h <<_ACEOF
  4282. #define HAVE_LIBPTHREAD 1
  4283. _ACEOF
  4284. LIBS="-lpthread $LIBS"
  4285. else
  4286. { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
  4287. echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
  4288. { (exit 1); exit 1; }; }
  4289. fi
  4290. ;;
  4291. *-mingw32*)
  4292. sound_api=_NO_API_
  4293. # Check whether --with-asio or --without-asio was given.
  4294. if test "${with_asio+set}" = set; then
  4295. withval="$with_asio"
  4296. sound_api=-D__WINDOWS_ASIO__
  4297. echo "$as_me:$LINENO: result: using ASIO" >&5
  4298. echo "${ECHO_T}using ASIO" >&6
  4299. fi;
  4300. if test $sound_api = -D__WINDOWS_ASIO__; then
  4301. audio_apis="-D__WINDOWS_ASIO__"
  4302. objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
  4303. fi
  4304. # Look for DirectSound flag
  4305. # Check whether --with-ds or --without-ds was given.
  4306. if test "${with_ds+set}" = set; then
  4307. withval="$with_ds"
  4308. sound_api=-D__WINDOWS_DS__
  4309. echo "$as_me:$LINENO: result: using DirectSound" >&5
  4310. echo "${ECHO_T}using DirectSound" >&6
  4311. fi;
  4312. if test $sound_api = -D__WINDOWS_DS__; then
  4313. audio_apis="-D__WINDOWS_DS__ $audio_apis"
  4314. LIBS="-ldsound -lwinmm $LIBS"
  4315. fi
  4316. # If no audio api flags specified, use DirectSound
  4317. if test $sound_api = _NO_API_; then
  4318. sound_api=-D__WINDOWS_DS__
  4319. echo "$as_me:$LINENO: result: using DirectSound" >&5
  4320. echo "${ECHO_T}using DirectSound" >&6
  4321. audio_apis="-D__WINDOWS_DS__"
  4322. LIBS="-ldsound -lwinmm $LIBS"
  4323. fi
  4324. LIBS="-lole32 $LIBS"
  4325. ;;
  4326. *)
  4327. # Default case for unknown realtime systems.
  4328. { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
  4329. echo "$as_me: error: Unknown system type for realtime support!" >&2;}
  4330. { (exit 1); exit 1; }; }
  4331. ;;
  4332. esac
  4333. # Checks for library functions.
  4334. if test $ac_cv_c_compiler_gnu = yes; then
  4335. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  4336. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  4337. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  4338. echo $ECHO_N "(cached) $ECHO_C" >&6
  4339. else
  4340. ac_pattern="Autoconf.*'x'"
  4341. cat >conftest.$ac_ext <<_ACEOF
  4342. /* confdefs.h. */
  4343. _ACEOF
  4344. cat confdefs.h >>conftest.$ac_ext
  4345. cat >>conftest.$ac_ext <<_ACEOF
  4346. /* end confdefs.h. */
  4347. #include <sgtty.h>
  4348. Autoconf TIOCGETP
  4349. _ACEOF
  4350. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4351. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  4352. ac_cv_prog_gcc_traditional=yes
  4353. else
  4354. ac_cv_prog_gcc_traditional=no
  4355. fi
  4356. rm -f conftest*
  4357. if test $ac_cv_prog_gcc_traditional = no; then
  4358. cat >conftest.$ac_ext <<_ACEOF
  4359. /* confdefs.h. */
  4360. _ACEOF
  4361. cat confdefs.h >>conftest.$ac_ext
  4362. cat >>conftest.$ac_ext <<_ACEOF
  4363. /* end confdefs.h. */
  4364. #include <termio.h>
  4365. Autoconf TCGETA
  4366. _ACEOF
  4367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4368. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  4369. ac_cv_prog_gcc_traditional=yes
  4370. fi
  4371. rm -f conftest*
  4372. fi
  4373. fi
  4374. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  4375. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  4376. if test $ac_cv_prog_gcc_traditional = yes; then
  4377. CC="$CC -traditional"
  4378. fi
  4379. fi
  4380. cat >confcache <<\_ACEOF
  4381. # This file is a shell script that caches the results of configure
  4382. # tests run on this system so they can be shared between configure
  4383. # scripts and configure runs, see configure's option --config-cache.
  4384. # It is not useful on other systems. If it contains results you don't
  4385. # want to keep, you may remove or edit it.
  4386. #
  4387. # config.status only pays attention to the cache file if you give it
  4388. # the --recheck option to rerun configure.
  4389. #
  4390. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4391. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4392. # following values.
  4393. _ACEOF
  4394. # The following way of writing the cache mishandles newlines in values,
  4395. # but we know of no workaround that is simple, portable, and efficient.
  4396. # So, don't put newlines in cache variables' values.
  4397. # Ultrix sh set writes to stderr and can't be redirected directly,
  4398. # and sets the high bit in the cache file unless we assign to the vars.
  4399. {
  4400. (set) 2>&1 |
  4401. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4402. *ac_space=\ *)
  4403. # `set' does not quote correctly, so add quotes (double-quote
  4404. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4405. sed -n \
  4406. "s/'/'\\\\''/g;
  4407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4408. ;;
  4409. *)
  4410. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4411. sed -n \
  4412. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4413. ;;
  4414. esac;
  4415. } |
  4416. sed '
  4417. t clear
  4418. : clear
  4419. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4420. t end
  4421. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4422. : end' >>confcache
  4423. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4424. if test -w $cache_file; then
  4425. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4426. cat confcache >$cache_file
  4427. else
  4428. echo "not updating unwritable cache $cache_file"
  4429. fi
  4430. fi
  4431. rm -f confcache
  4432. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4433. # Let make expand exec_prefix.
  4434. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4435. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4436. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4437. # trailing colons and then remove the whole line if VPATH becomes empty
  4438. # (actually we leave an empty line to preserve line numbers).
  4439. if test "x$srcdir" = x.; then
  4440. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4441. s/:*\$(srcdir):*/:/;
  4442. s/:*\${srcdir}:*/:/;
  4443. s/:*@srcdir@:*/:/;
  4444. s/^\([^=]*=[ ]*\):*/\1/;
  4445. s/:*$//;
  4446. s/^[^=]*=[ ]*$//;
  4447. }'
  4448. fi
  4449. # Transform confdefs.h into DEFS.
  4450. # Protect against shell expansion while executing Makefile rules.
  4451. # Protect against Makefile macro expansion.
  4452. #
  4453. # If the first sed substitution is executed (which looks for macros that
  4454. # take arguments), then we branch to the quote section. Otherwise,
  4455. # look for a macro that doesn't take arguments.
  4456. cat >confdef2opt.sed <<\_ACEOF
  4457. t clear
  4458. : clear
  4459. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  4460. t quote
  4461. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  4462. t quote
  4463. d
  4464. : quote
  4465. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  4466. s,\[,\\&,g
  4467. s,\],\\&,g
  4468. s,\$,$$,g
  4469. p
  4470. _ACEOF
  4471. # We use echo to avoid assuming a particular line-breaking character.
  4472. # The extra dot is to prevent the shell from consuming trailing
  4473. # line-breaks from the sub-command output. A line-break within
  4474. # single-quotes doesn't work because, if this script is created in a
  4475. # platform that uses two characters for line-breaks (e.g., DOS), tr
  4476. # would break.
  4477. ac_LF_and_DOT=`echo; echo .`
  4478. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  4479. rm -f confdef2opt.sed
  4480. ac_libobjs=
  4481. ac_ltlibobjs=
  4482. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4483. # 1. Remove the extension, and $U if already installed.
  4484. ac_i=`echo "$ac_i" |
  4485. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4486. # 2. Add them.
  4487. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4488. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4489. done
  4490. LIBOBJS=$ac_libobjs
  4491. LTLIBOBJS=$ac_ltlibobjs
  4492. : ${CONFIG_STATUS=./config.status}
  4493. ac_clean_files_save=$ac_clean_files
  4494. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4495. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4496. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4497. cat >$CONFIG_STATUS <<_ACEOF
  4498. #! $SHELL
  4499. # Generated by $as_me.
  4500. # Run this file to recreate the current configuration.
  4501. # Compiler output produced by configure, useful for debugging
  4502. # configure, is in config.log if it exists.
  4503. debug=false
  4504. ac_cs_recheck=false
  4505. ac_cs_silent=false
  4506. SHELL=\${CONFIG_SHELL-$SHELL}
  4507. _ACEOF
  4508. cat >>$CONFIG_STATUS <<\_ACEOF
  4509. ## --------------------- ##
  4510. ## M4sh Initialization. ##
  4511. ## --------------------- ##
  4512. # Be Bourne compatible
  4513. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4514. emulate sh
  4515. NULLCMD=:
  4516. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4517. # is contrary to our usage. Disable this feature.
  4518. alias -g '${1+"$@"}'='"$@"'
  4519. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4520. set -o posix
  4521. fi
  4522. DUALCASE=1; export DUALCASE # for MKS sh
  4523. # Support unset when possible.
  4524. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4525. as_unset=unset
  4526. else
  4527. as_unset=false
  4528. fi
  4529. # Work around bugs in pre-3.0 UWIN ksh.
  4530. $as_unset ENV MAIL MAILPATH
  4531. PS1='$ '
  4532. PS2='> '
  4533. PS4='+ '
  4534. # NLS nuisances.
  4535. for as_var in \
  4536. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4537. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4538. LC_TELEPHONE LC_TIME
  4539. do
  4540. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4541. eval $as_var=C; export $as_var
  4542. else
  4543. $as_unset $as_var
  4544. fi
  4545. done
  4546. # Required to use basename.
  4547. if expr a : '\(a\)' >/dev/null 2>&1; then
  4548. as_expr=expr
  4549. else
  4550. as_expr=false
  4551. fi
  4552. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4553. as_basename=basename
  4554. else
  4555. as_basename=false
  4556. fi
  4557. # Name of the executable.
  4558. as_me=`$as_basename "$0" ||
  4559. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4560. X"$0" : 'X\(//\)$' \| \
  4561. X"$0" : 'X\(/\)$' \| \
  4562. . : '\(.\)' 2>/dev/null ||
  4563. echo X/"$0" |
  4564. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4565. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4566. /^X\/\(\/\).*/{ s//\1/; q; }
  4567. s/.*/./; q'`
  4568. # PATH needs CR, and LINENO needs CR and PATH.
  4569. # Avoid depending upon Character Ranges.
  4570. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4571. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4572. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4573. as_cr_digits='0123456789'
  4574. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4575. # The user is always right.
  4576. if test "${PATH_SEPARATOR+set}" != set; then
  4577. echo "#! /bin/sh" >conf$$.sh
  4578. echo "exit 0" >>conf$$.sh
  4579. chmod +x conf$$.sh
  4580. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4581. PATH_SEPARATOR=';'
  4582. else
  4583. PATH_SEPARATOR=:
  4584. fi
  4585. rm -f conf$$.sh
  4586. fi
  4587. as_lineno_1=$LINENO
  4588. as_lineno_2=$LINENO
  4589. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4590. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4591. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4592. # Find who we are. Look in the path if we contain no path at all
  4593. # relative or not.
  4594. case $0 in
  4595. *[\\/]* ) as_myself=$0 ;;
  4596. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4602. done
  4603. ;;
  4604. esac
  4605. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4606. # in which case we are not to be found in the path.
  4607. if test "x$as_myself" = x; then
  4608. as_myself=$0
  4609. fi
  4610. if test ! -f "$as_myself"; then
  4611. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4612. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4613. { (exit 1); exit 1; }; }
  4614. fi
  4615. case $CONFIG_SHELL in
  4616. '')
  4617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4618. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4619. do
  4620. IFS=$as_save_IFS
  4621. test -z "$as_dir" && as_dir=.
  4622. for as_base in sh bash ksh sh5; do
  4623. case $as_dir in
  4624. /*)
  4625. if ("$as_dir/$as_base" -c '
  4626. as_lineno_1=$LINENO
  4627. as_lineno_2=$LINENO
  4628. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4629. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4630. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4631. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4632. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4633. CONFIG_SHELL=$as_dir/$as_base
  4634. export CONFIG_SHELL
  4635. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4636. fi;;
  4637. esac
  4638. done
  4639. done
  4640. ;;
  4641. esac
  4642. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4643. # uniformly replaced by the line number. The first 'sed' inserts a
  4644. # line-number line before each line; the second 'sed' does the real
  4645. # work. The second script uses 'N' to pair each line-number line
  4646. # with the numbered line, and appends trailing '-' during
  4647. # substitution so that $LINENO is not a special case at line end.
  4648. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4649. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4650. sed '=' <$as_myself |
  4651. sed '
  4652. N
  4653. s,$,-,
  4654. : loop
  4655. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4656. t loop
  4657. s,-$,,
  4658. s,^['$as_cr_digits']*\n,,
  4659. ' >$as_me.lineno &&
  4660. chmod +x $as_me.lineno ||
  4661. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4662. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4663. { (exit 1); exit 1; }; }
  4664. # Don't try to exec as it changes $[0], causing all sort of problems
  4665. # (the dirname of $[0] is not the place where we might find the
  4666. # original and so on. Autoconf is especially sensible to this).
  4667. . ./$as_me.lineno
  4668. # Exit status is that of the last command.
  4669. exit
  4670. }
  4671. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4672. *c*,-n*) ECHO_N= ECHO_C='
  4673. ' ECHO_T=' ' ;;
  4674. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4675. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4676. esac
  4677. if expr a : '\(a\)' >/dev/null 2>&1; then
  4678. as_expr=expr
  4679. else
  4680. as_expr=false
  4681. fi
  4682. rm -f conf$$ conf$$.exe conf$$.file
  4683. echo >conf$$.file
  4684. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4685. # We could just check for DJGPP; but this test a) works b) is more generic
  4686. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4687. if test -f conf$$.exe; then
  4688. # Don't use ln at all; we don't have any links
  4689. as_ln_s='cp -p'
  4690. else
  4691. as_ln_s='ln -s'
  4692. fi
  4693. elif ln conf$$.file conf$$ 2>/dev/null; then
  4694. as_ln_s=ln
  4695. else
  4696. as_ln_s='cp -p'
  4697. fi
  4698. rm -f conf$$ conf$$.exe conf$$.file
  4699. if mkdir -p . 2>/dev/null; then
  4700. as_mkdir_p=:
  4701. else
  4702. test -d ./-p && rmdir ./-p
  4703. as_mkdir_p=false
  4704. fi
  4705. as_executable_p="test -f"
  4706. # Sed expression to map a string onto a valid CPP name.
  4707. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4708. # Sed expression to map a string onto a valid variable name.
  4709. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4710. # IFS
  4711. # We need space, tab and new line, in precisely that order.
  4712. as_nl='
  4713. '
  4714. IFS=" $as_nl"
  4715. # CDPATH.
  4716. $as_unset CDPATH
  4717. exec 6>&1
  4718. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4719. # report actual input values of CONFIG_FILES etc. instead of their
  4720. # values after options handling. Logging --version etc. is OK.
  4721. exec 5>>config.log
  4722. {
  4723. echo
  4724. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4725. ## Running $as_me. ##
  4726. _ASBOX
  4727. } >&5
  4728. cat >&5 <<_CSEOF
  4729. This file was extended by RtAudio $as_me 4.0, which was
  4730. generated by GNU Autoconf 2.59. Invocation command line was
  4731. CONFIG_FILES = $CONFIG_FILES
  4732. CONFIG_HEADERS = $CONFIG_HEADERS
  4733. CONFIG_LINKS = $CONFIG_LINKS
  4734. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4735. $ $0 $@
  4736. _CSEOF
  4737. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4738. echo >&5
  4739. _ACEOF
  4740. # Files that config.status was made for.
  4741. if test -n "$ac_config_files"; then
  4742. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4743. fi
  4744. if test -n "$ac_config_headers"; then
  4745. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4746. fi
  4747. if test -n "$ac_config_links"; then
  4748. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4749. fi
  4750. if test -n "$ac_config_commands"; then
  4751. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4752. fi
  4753. cat >>$CONFIG_STATUS <<\_ACEOF
  4754. ac_cs_usage="\
  4755. \`$as_me' instantiates files from templates according to the
  4756. current configuration.
  4757. Usage: $0 [OPTIONS] [FILE]...
  4758. -h, --help print this help, then exit
  4759. -V, --version print version number, then exit
  4760. -q, --quiet do not print progress messages
  4761. -d, --debug don't remove temporary files
  4762. --recheck update $as_me by reconfiguring in the same conditions
  4763. --file=FILE[:TEMPLATE]
  4764. instantiate the configuration file FILE
  4765. Configuration files:
  4766. $config_files
  4767. Report bugs to <bug-autoconf@gnu.org>."
  4768. _ACEOF
  4769. cat >>$CONFIG_STATUS <<_ACEOF
  4770. ac_cs_version="\\
  4771. RtAudio config.status 4.0
  4772. configured by $0, generated by GNU Autoconf 2.59,
  4773. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4774. Copyright (C) 2003 Free Software Foundation, Inc.
  4775. This config.status script is free software; the Free Software Foundation
  4776. gives unlimited permission to copy, distribute and modify it."
  4777. srcdir=$srcdir
  4778. _ACEOF
  4779. cat >>$CONFIG_STATUS <<\_ACEOF
  4780. # If no file are specified by the user, then we need to provide default
  4781. # value. By we need to know if files were specified by the user.
  4782. ac_need_defaults=:
  4783. while test $# != 0
  4784. do
  4785. case $1 in
  4786. --*=*)
  4787. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4788. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4789. ac_shift=:
  4790. ;;
  4791. -*)
  4792. ac_option=$1
  4793. ac_optarg=$2
  4794. ac_shift=shift
  4795. ;;
  4796. *) # This is not an option, so the user has probably given explicit
  4797. # arguments.
  4798. ac_option=$1
  4799. ac_need_defaults=false;;
  4800. esac
  4801. case $ac_option in
  4802. # Handling of the options.
  4803. _ACEOF
  4804. cat >>$CONFIG_STATUS <<\_ACEOF
  4805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4806. ac_cs_recheck=: ;;
  4807. --version | --vers* | -V )
  4808. echo "$ac_cs_version"; exit 0 ;;
  4809. --he | --h)
  4810. # Conflict between --help and --header
  4811. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  4812. Try \`$0 --help' for more information." >&5
  4813. echo "$as_me: error: ambiguous option: $1
  4814. Try \`$0 --help' for more information." >&2;}
  4815. { (exit 1); exit 1; }; };;
  4816. --help | --hel | -h )
  4817. echo "$ac_cs_usage"; exit 0 ;;
  4818. --debug | --d* | -d )
  4819. debug=: ;;
  4820. --file | --fil | --fi | --f )
  4821. $ac_shift
  4822. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4823. ac_need_defaults=false;;
  4824. --header | --heade | --head | --hea )
  4825. $ac_shift
  4826. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4827. ac_need_defaults=false;;
  4828. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4829. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4830. ac_cs_silent=: ;;
  4831. # This is an error.
  4832. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  4833. Try \`$0 --help' for more information." >&5
  4834. echo "$as_me: error: unrecognized option: $1
  4835. Try \`$0 --help' for more information." >&2;}
  4836. { (exit 1); exit 1; }; } ;;
  4837. *) ac_config_targets="$ac_config_targets $1" ;;
  4838. esac
  4839. shift
  4840. done
  4841. ac_configure_extra_args=
  4842. if $ac_cs_silent; then
  4843. exec 6>/dev/null
  4844. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4845. fi
  4846. _ACEOF
  4847. cat >>$CONFIG_STATUS <<_ACEOF
  4848. if \$ac_cs_recheck; then
  4849. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4850. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4851. fi
  4852. _ACEOF
  4853. cat >>$CONFIG_STATUS <<\_ACEOF
  4854. for ac_config_target in $ac_config_targets
  4855. do
  4856. case "$ac_config_target" in
  4857. # Handling of arguments.
  4858. "rtaudio-config" ) CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
  4859. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4860. "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  4861. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4862. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4863. { (exit 1); exit 1; }; };;
  4864. esac
  4865. done
  4866. # If the user did not use the arguments to specify the items to instantiate,
  4867. # then the envvar interface is used. Set only those that are not.
  4868. # We use the long form for the default assignment because of an extremely
  4869. # bizarre bug on SunOS 4.1.3.
  4870. if $ac_need_defaults; then
  4871. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4872. fi
  4873. # Have a temporary directory for convenience. Make it in the build tree
  4874. # simply because there is no reason to put it here, and in addition,
  4875. # creating and moving files from /tmp can sometimes cause problems.
  4876. # Create a temporary directory, and hook for its removal unless debugging.
  4877. $debug ||
  4878. {
  4879. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4880. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4881. }
  4882. # Create a (secure) tmp directory for tmp files.
  4883. {
  4884. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  4885. test -n "$tmp" && test -d "$tmp"
  4886. } ||
  4887. {
  4888. tmp=./confstat$$-$RANDOM
  4889. (umask 077 && mkdir $tmp)
  4890. } ||
  4891. {
  4892. echo "$me: cannot create a temporary directory in ." >&2
  4893. { (exit 1); exit 1; }
  4894. }
  4895. _ACEOF
  4896. cat >>$CONFIG_STATUS <<_ACEOF
  4897. #
  4898. # CONFIG_FILES section.
  4899. #
  4900. # No need to generate the scripts if there are no CONFIG_FILES.
  4901. # This happens for instance when ./config.status config.h
  4902. if test -n "\$CONFIG_FILES"; then
  4903. # Protect against being on the right side of a sed subst in config.status.
  4904. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  4905. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  4906. s,@SHELL@,$SHELL,;t t
  4907. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  4908. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  4909. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  4910. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  4911. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  4912. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  4913. s,@exec_prefix@,$exec_prefix,;t t
  4914. s,@prefix@,$prefix,;t t
  4915. s,@program_transform_name@,$program_transform_name,;t t
  4916. s,@bindir@,$bindir,;t t
  4917. s,@sbindir@,$sbindir,;t t
  4918. s,@libexecdir@,$libexecdir,;t t
  4919. s,@datadir@,$datadir,;t t
  4920. s,@sysconfdir@,$sysconfdir,;t t
  4921. s,@sharedstatedir@,$sharedstatedir,;t t
  4922. s,@localstatedir@,$localstatedir,;t t
  4923. s,@libdir@,$libdir,;t t
  4924. s,@includedir@,$includedir,;t t
  4925. s,@oldincludedir@,$oldincludedir,;t t
  4926. s,@infodir@,$infodir,;t t
  4927. s,@mandir@,$mandir,;t t
  4928. s,@build_alias@,$build_alias,;t t
  4929. s,@host_alias@,$host_alias,;t t
  4930. s,@target_alias@,$target_alias,;t t
  4931. s,@DEFS@,$DEFS,;t t
  4932. s,@ECHO_C@,$ECHO_C,;t t
  4933. s,@ECHO_N@,$ECHO_N,;t t
  4934. s,@ECHO_T@,$ECHO_T,;t t
  4935. s,@LIBS@,$LIBS,;t t
  4936. s,@GXX@,$GXX,;t t
  4937. s,@CC@,$CC,;t t
  4938. s,@CFLAGS@,$CFLAGS,;t t
  4939. s,@LDFLAGS@,$LDFLAGS,;t t
  4940. s,@CPPFLAGS@,$CPPFLAGS,;t t
  4941. s,@ac_ct_CC@,$ac_ct_CC,;t t
  4942. s,@EXEEXT@,$EXEEXT,;t t
  4943. s,@OBJEXT@,$OBJEXT,;t t
  4944. s,@CXX@,$CXX,;t t
  4945. s,@CXXFLAGS@,$CXXFLAGS,;t t
  4946. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  4947. s,@RANLIB@,$RANLIB,;t t
  4948. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  4949. s,@AR@,$AR,;t t
  4950. s,@CPP@,$CPP,;t t
  4951. s,@EGREP@,$EGREP,;t t
  4952. s,@debug@,$debug,;t t
  4953. s,@cflags@,$cflags,;t t
  4954. s,@object_path@,$object_path,;t t
  4955. s,@warn@,$warn,;t t
  4956. s,@build@,$build,;t t
  4957. s,@build_cpu@,$build_cpu,;t t
  4958. s,@build_vendor@,$build_vendor,;t t
  4959. s,@build_os@,$build_os,;t t
  4960. s,@host@,$host,;t t
  4961. s,@host_cpu@,$host_cpu,;t t
  4962. s,@host_vendor@,$host_vendor,;t t
  4963. s,@host_os@,$host_os,;t t
  4964. s,@sound_api@,$sound_api,;t t
  4965. s,@audio_apis@,$audio_apis,;t t
  4966. s,@frameworks@,$frameworks,;t t
  4967. s,@objects@,$objects,;t t
  4968. s,@LIBOBJS@,$LIBOBJS,;t t
  4969. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  4970. CEOF
  4971. _ACEOF
  4972. cat >>$CONFIG_STATUS <<\_ACEOF
  4973. # Split the substitutions into bite-sized pieces for seds with
  4974. # small command number limits, like on Digital OSF/1 and HP-UX.
  4975. ac_max_sed_lines=48
  4976. ac_sed_frag=1 # Number of current file.
  4977. ac_beg=1 # First line for current file.
  4978. ac_end=$ac_max_sed_lines # Line after last line for current file.
  4979. ac_more_lines=:
  4980. ac_sed_cmds=
  4981. while $ac_more_lines; do
  4982. if test $ac_beg -gt 1; then
  4983. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4984. else
  4985. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4986. fi
  4987. if test ! -s $tmp/subs.frag; then
  4988. ac_more_lines=false
  4989. else
  4990. # The purpose of the label and of the branching condition is to
  4991. # speed up the sed processing (if there are no `@' at all, there
  4992. # is no need to browse any of the substitutions).
  4993. # These are the two extra sed commands mentioned above.
  4994. (echo ':t
  4995. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  4996. if test -z "$ac_sed_cmds"; then
  4997. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  4998. else
  4999. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5000. fi
  5001. ac_sed_frag=`expr $ac_sed_frag + 1`
  5002. ac_beg=$ac_end
  5003. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5004. fi
  5005. done
  5006. if test -z "$ac_sed_cmds"; then
  5007. ac_sed_cmds=cat
  5008. fi
  5009. fi # test -n "$CONFIG_FILES"
  5010. _ACEOF
  5011. cat >>$CONFIG_STATUS <<\_ACEOF
  5012. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5013. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5014. case $ac_file in
  5015. - | *:- | *:-:* ) # input from stdin
  5016. cat >$tmp/stdin
  5017. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5018. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5019. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5020. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5021. * ) ac_file_in=$ac_file.in ;;
  5022. esac
  5023. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5024. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5025. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5026. X"$ac_file" : 'X\(//\)[^/]' \| \
  5027. X"$ac_file" : 'X\(//\)$' \| \
  5028. X"$ac_file" : 'X\(/\)' \| \
  5029. . : '\(.\)' 2>/dev/null ||
  5030. echo X"$ac_file" |
  5031. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5032. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5033. /^X\(\/\/\)$/{ s//\1/; q; }
  5034. /^X\(\/\).*/{ s//\1/; q; }
  5035. s/.*/./; q'`
  5036. { if $as_mkdir_p; then
  5037. mkdir -p "$ac_dir"
  5038. else
  5039. as_dir="$ac_dir"
  5040. as_dirs=
  5041. while test ! -d "$as_dir"; do
  5042. as_dirs="$as_dir $as_dirs"
  5043. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5044. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5045. X"$as_dir" : 'X\(//\)[^/]' \| \
  5046. X"$as_dir" : 'X\(//\)$' \| \
  5047. X"$as_dir" : 'X\(/\)' \| \
  5048. . : '\(.\)' 2>/dev/null ||
  5049. echo X"$as_dir" |
  5050. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5051. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5052. /^X\(\/\/\)$/{ s//\1/; q; }
  5053. /^X\(\/\).*/{ s//\1/; q; }
  5054. s/.*/./; q'`
  5055. done
  5056. test ! -n "$as_dirs" || mkdir $as_dirs
  5057. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5058. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5059. { (exit 1); exit 1; }; }; }
  5060. ac_builddir=.
  5061. if test "$ac_dir" != .; then
  5062. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5063. # A "../" for each directory in $ac_dir_suffix.
  5064. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5065. else
  5066. ac_dir_suffix= ac_top_builddir=
  5067. fi
  5068. case $srcdir in
  5069. .) # No --srcdir option. We are building in place.
  5070. ac_srcdir=.
  5071. if test -z "$ac_top_builddir"; then
  5072. ac_top_srcdir=.
  5073. else
  5074. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5075. fi ;;
  5076. [\\/]* | ?:[\\/]* ) # Absolute path.
  5077. ac_srcdir=$srcdir$ac_dir_suffix;
  5078. ac_top_srcdir=$srcdir ;;
  5079. *) # Relative path.
  5080. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5081. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5082. esac
  5083. # Do not use `cd foo && pwd` to compute absolute paths, because
  5084. # the directories may not exist.
  5085. case `pwd` in
  5086. .) ac_abs_builddir="$ac_dir";;
  5087. *)
  5088. case "$ac_dir" in
  5089. .) ac_abs_builddir=`pwd`;;
  5090. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  5091. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  5092. esac;;
  5093. esac
  5094. case $ac_abs_builddir in
  5095. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  5096. *)
  5097. case ${ac_top_builddir}. in
  5098. .) ac_abs_top_builddir=$ac_abs_builddir;;
  5099. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  5100. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  5101. esac;;
  5102. esac
  5103. case $ac_abs_builddir in
  5104. .) ac_abs_srcdir=$ac_srcdir;;
  5105. *)
  5106. case $ac_srcdir in
  5107. .) ac_abs_srcdir=$ac_abs_builddir;;
  5108. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  5109. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  5110. esac;;
  5111. esac
  5112. case $ac_abs_builddir in
  5113. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  5114. *)
  5115. case $ac_top_srcdir in
  5116. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  5117. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  5118. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  5119. esac;;
  5120. esac
  5121. if test x"$ac_file" != x-; then
  5122. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5123. echo "$as_me: creating $ac_file" >&6;}
  5124. rm -f "$ac_file"
  5125. fi
  5126. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5127. # use $as_me), people would be surprised to read:
  5128. # /* config.h. Generated by config.status. */
  5129. if test x"$ac_file" = x-; then
  5130. configure_input=
  5131. else
  5132. configure_input="$ac_file. "
  5133. fi
  5134. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5135. sed 's,.*/,,'` by configure."
  5136. # First look for the input files in the build tree, otherwise in the
  5137. # src tree.
  5138. ac_file_inputs=`IFS=:
  5139. for f in $ac_file_in; do
  5140. case $f in
  5141. -) echo $tmp/stdin ;;
  5142. [\\/$]*)
  5143. # Absolute (can't be DOS-style, as IFS=:)
  5144. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5145. echo "$as_me: error: cannot find input file: $f" >&2;}
  5146. { (exit 1); exit 1; }; }
  5147. echo "$f";;
  5148. *) # Relative
  5149. if test -f "$f"; then
  5150. # Build tree
  5151. echo "$f"
  5152. elif test -f "$srcdir/$f"; then
  5153. # Source tree
  5154. echo "$srcdir/$f"
  5155. else
  5156. # /dev/null tree
  5157. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5158. echo "$as_me: error: cannot find input file: $f" >&2;}
  5159. { (exit 1); exit 1; }; }
  5160. fi;;
  5161. esac
  5162. done` || { (exit 1); exit 1; }
  5163. _ACEOF
  5164. cat >>$CONFIG_STATUS <<_ACEOF
  5165. sed "$ac_vpsub
  5166. $extrasub
  5167. _ACEOF
  5168. cat >>$CONFIG_STATUS <<\_ACEOF
  5169. :t
  5170. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5171. s,@configure_input@,$configure_input,;t t
  5172. s,@srcdir@,$ac_srcdir,;t t
  5173. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5174. s,@top_srcdir@,$ac_top_srcdir,;t t
  5175. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5176. s,@builddir@,$ac_builddir,;t t
  5177. s,@abs_builddir@,$ac_abs_builddir,;t t
  5178. s,@top_builddir@,$ac_top_builddir,;t t
  5179. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5180. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5181. rm -f $tmp/stdin
  5182. if test x"$ac_file" != x-; then
  5183. mv $tmp/out $ac_file
  5184. else
  5185. cat $tmp/out
  5186. rm -f $tmp/out
  5187. fi
  5188. done
  5189. _ACEOF
  5190. cat >>$CONFIG_STATUS <<\_ACEOF
  5191. { (exit 0); exit 0; }
  5192. _ACEOF
  5193. chmod +x $CONFIG_STATUS
  5194. ac_clean_files=$ac_clean_files_save
  5195. # configure is writing to config.log, and then calls config.status.
  5196. # config.status does its own redirection, appending to config.log.
  5197. # Unfortunately, on DOS this fails, as config.log is still kept open
  5198. # by configure, so config.status won't be able to write to it; its
  5199. # output is simply discarded. So we exec the FD to /dev/null,
  5200. # effectively closing config.log, so it can be properly (re)opened and
  5201. # appended to by config.status. When coming back to configure, we
  5202. # need to make the FD available again.
  5203. if test "$no_create" != yes; then
  5204. ac_cs_success=:
  5205. ac_config_status_args=
  5206. test "$silent" = yes &&
  5207. ac_config_status_args="$ac_config_status_args --quiet"
  5208. exec 5>/dev/null
  5209. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5210. exec 5>>config.log
  5211. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5212. # would make configure fail if this is the last instruction.
  5213. $ac_cs_success || { (exit 1); exit 1; }
  5214. fi
  5215. chmod oug+x rtaudio-config